|
|
@@ -316,6 +316,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
//生成批次ID
|
|
|
String uuid = UUID.randomUUID().toString();
|
|
|
ptlAgreementProductCostsNewHistory.setBatch(uuid);
|
|
|
+ ptlAgreementProductCostsNewHistory.setId(null);
|
|
|
ptlAgreementProductCostsNewHistory.setOperatorType("add");
|
|
|
ptlAgreementProductCostsNewHistory.setModifier(BaseController.getUser().getId());
|
|
|
ptlAgreementProductCostsNewHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -342,6 +343,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
BeanUtils.copyProperties(x, costsAttrLinkHistory);
|
|
|
//设置产品费用因子历史记录
|
|
|
costsAttrLinkHistory.setBatch(uuid);
|
|
|
+ costsAttrLinkHistory.setId(null);
|
|
|
costsAttrLinkHistory.setOperatorType("add");
|
|
|
costsAttrLinkHistory.setModifier(BaseController.getUser().getId());
|
|
|
costsAttrLinkHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -355,7 +357,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
BeanUtils.copyProperties(x, costsAttrLinkHistory);
|
|
|
//设置产品费用因子历史记录
|
|
|
costsAttrLinkHistory.setBatch(uuid);
|
|
|
-
|
|
|
+ costsAttrLinkHistory.setId(null);
|
|
|
costsAttrLinkHistory.setOperatorType("add");
|
|
|
costsAttrLinkHistory.setModifier(BaseController.getUser().getId());
|
|
|
costsAttrLinkHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -406,7 +408,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
//生成批次ID
|
|
|
String uuid = UUID.randomUUID().toString();
|
|
|
ptlAgreementProductCostsNewHistory.setBatch(uuid);
|
|
|
-
|
|
|
+ ptlAgreementProductCostsNewHistory.setId(null);
|
|
|
ptlAgreementProductCostsNewHistory.setOperatorType("update");
|
|
|
ptlAgreementProductCostsNewHistory.setModifier(BaseController.getUser().getId());
|
|
|
ptlAgreementProductCostsNewHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -444,7 +446,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
PtlAgreementProductCostsAttrLinkHistory costsAttrLinkHistory = new PtlAgreementProductCostsAttrLinkHistory();
|
|
|
BeanUtils.copyProperties(x, costsAttrLinkHistory);
|
|
|
costsAttrLinkHistory.setBatch(uuid);
|
|
|
-
|
|
|
+ costsAttrLinkHistory.setId(null);
|
|
|
costsAttrLinkHistory.setOperatorType("update");
|
|
|
costsAttrLinkHistory.setModifier(BaseController.getUser().getId());
|
|
|
costsAttrLinkHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -461,7 +463,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
PtlAgreementProductCostsAttrLinkHistory costsAttrLinkHistory = new PtlAgreementProductCostsAttrLinkHistory();
|
|
|
BeanUtils.copyProperties(x, costsAttrLinkHistory);
|
|
|
costsAttrLinkHistory.setBatch(uuid);
|
|
|
-
|
|
|
+ costsAttrLinkHistory.setId(null);
|
|
|
costsAttrLinkHistory.setOperatorType("update");
|
|
|
costsAttrLinkHistory.setModifier(BaseController.getUser().getId());
|
|
|
costsAttrLinkHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -477,7 +479,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
PtlAgreementProductCostsAttrLinkHistory costsAttrLinkHistory = new PtlAgreementProductCostsAttrLinkHistory();
|
|
|
BeanUtils.copyProperties(x, costsAttrLinkHistory);
|
|
|
costsAttrLinkHistory.setBatch(uuid);
|
|
|
-
|
|
|
+ costsAttrLinkHistory.setId(null);
|
|
|
costsAttrLinkHistory.setOperatorType("update");
|
|
|
costsAttrLinkHistory.setModifier(BaseController.getUser().getId());
|
|
|
costsAttrLinkHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -510,7 +512,7 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
//生成批次ID
|
|
|
String uuid = UUID.randomUUID().toString();
|
|
|
ptlAgreementProductCostsNewHistory.setBatch(uuid);
|
|
|
-
|
|
|
+ ptlAgreementProductCostsNewHistory.setId(null);
|
|
|
ptlAgreementProductCostsNewHistory.setOperatorType("delete");
|
|
|
ptlAgreementProductCostsNewHistory.setModifier(BaseController.getUser().getId());
|
|
|
ptlAgreementProductCostsNewHistory.setOperatorTime(LocalDateTime.now());
|
|
|
@@ -527,8 +529,9 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
PtlAgreementProductCostsAttrLinkHistory costsAttrLinkHistory = new PtlAgreementProductCostsAttrLinkHistory();
|
|
|
BeanUtils.copyProperties(x, costsAttrLinkHistory);
|
|
|
//设置产品费用因子历史记录
|
|
|
+ costsAttrLinkHistory.setId(null);
|
|
|
costsAttrLinkHistory.setBatch(uuid);
|
|
|
- costsAttrLinkHistory.setOperatorType("add");
|
|
|
+ costsAttrLinkHistory.setOperatorType("delete");
|
|
|
costsAttrLinkHistory.setModifier(BaseController.getUser().getId());
|
|
|
costsAttrLinkHistory.setOperatorTime(LocalDateTime.now());
|
|
|
costsAttrLinkHistories.add(costsAttrLinkHistory);
|