wks 2 лет назад
Родитель
Сommit
776b473580

+ 2 - 1
src/main/java/com/ydtech/modules/protocols/entity/po/PtlAgreementProductCostsAttrLinkHistory.java

@@ -1,6 +1,7 @@
 package com.ydtech.modules.protocols.entity.po;
 
 import com.alibaba.fastjson.JSONArray;
+import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
@@ -20,7 +21,7 @@ import java.time.LocalDateTime;
 @AllArgsConstructor
 public class PtlAgreementProductCostsAttrLinkHistory {
 
-    @TableId(value = "id")
+    @TableId(value = "id", type = IdType.AUTO)
     private Integer id;
 
     @ApiModelProperty(value = "费用id")

+ 2 - 1
src/main/java/com/ydtech/modules/protocols/entity/po/PtlAgreementUndwrtRulesAttrLinkHistory.java

@@ -1,6 +1,7 @@
 package com.ydtech.modules.protocols.entity.po;
 
 import com.alibaba.fastjson.JSONArray;
+import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
@@ -20,7 +21,7 @@ import java.time.LocalDateTime;
 @AllArgsConstructor
 public class PtlAgreementUndwrtRulesAttrLinkHistory {
 
-    @TableId(value = "id")
+    @TableId(value = "id", type = IdType.AUTO)
     private Integer id;
 
     @ApiModelProperty(value = "承包规则id")

+ 3 - 12
src/main/java/com/ydtech/modules/protocols/service/impl/PtlAgreementProductCostsAttrLinkServiceImpl.java

@@ -2,19 +2,9 @@ package com.ydtech.modules.protocols.service.impl;
 
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.ydtech.modules.protocols.dao.PtlAgreementProductCostsAttrLinkMapper;
-import com.ydtech.modules.protocols.dao.PtlAgreementProductCostsNewMapper;
 import com.ydtech.modules.protocols.entity.po.PtlAgreementProductCostsAttrLink;
-import com.ydtech.modules.protocols.entity.po.PtlAgreementProductCostsNew;
-import com.ydtech.modules.protocols.entity.vo.AgreementProductCosts;
 import com.ydtech.modules.protocols.service.PtlAgreementProductCostsAttrLinkService;
-import com.ydtech.modules.protocols.service.PtlAgreementProductCostsNewService;
-import com.ydtech.utils.idgen.IdGenerate;
-import org.springframework.beans.BeanUtils;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-import java.util.List;
 
 /**
  * @description 协议承保规则属性 service实现类
@@ -22,7 +12,8 @@ import java.util.List;
  * @Entity com.ydtech.modules.protocol.entity.po.PtlAgreementUndwrtRulesAttrMapper
  */
 @Service
-public class PtlAgreementProductCostsAttrLinkServiceImpl extends ServiceImpl<PtlAgreementProductCostsAttrLinkMapper, PtlAgreementProductCostsAttrLink>
+public class PtlAgreementProductCostsAttrLinkServiceImpl extends ServiceImpl<PtlAgreementProductCostsAttrLinkMapper,
+        PtlAgreementProductCostsAttrLink>
         implements PtlAgreementProductCostsAttrLinkService {
 
-}
+}