|
@@ -393,7 +393,8 @@ public class PtlAgreementCostServiceImpl extends ServiceImpl<PtlAgreementCostMap
|
|
|
|
|
|
|
|
@GlobalTransactional
|
|
@GlobalTransactional
|
|
|
@Override
|
|
@Override
|
|
|
- public Boolean costCopy(PtlAgreementCostCopyParam costCopyParam) {
|
|
|
|
|
|
|
+ public List<String> costCopy(PtlAgreementCostCopyParam costCopyParam) {
|
|
|
|
|
+ List<String> newCostId = new ArrayList<>();
|
|
|
List<String> costIds = costCopyParam.getCostIds();
|
|
List<String> costIds = costCopyParam.getCostIds();
|
|
|
costIds.forEach(oldCostId-> {
|
|
costIds.forEach(oldCostId-> {
|
|
|
PtlAgreementCost ptlAgreementCost = ptlAgreementCostMapper.selectById(oldCostId);
|
|
PtlAgreementCost ptlAgreementCost = ptlAgreementCostMapper.selectById(oldCostId);
|
|
@@ -409,6 +410,7 @@ public class PtlAgreementCostServiceImpl extends ServiceImpl<PtlAgreementCostMap
|
|
|
ptlAgreementCost.setPtlAgreementId(costCopyParam.getAgreementId());
|
|
ptlAgreementCost.setPtlAgreementId(costCopyParam.getAgreementId());
|
|
|
ptlAgreementCost.setCostDescribe("复制的费用:" + ptlAgreementCost.getCostDescribe());
|
|
ptlAgreementCost.setCostDescribe("复制的费用:" + ptlAgreementCost.getCostDescribe());
|
|
|
ptlAgreementCost.setCreateTime(LocalDateTime.now());
|
|
ptlAgreementCost.setCreateTime(LocalDateTime.now());
|
|
|
|
|
+ ptlAgreementCost.setUpdateTime(LocalDateTime.now());
|
|
|
ptlAgreementCost.setProductId(costCopyParam.getProductId());
|
|
ptlAgreementCost.setProductId(costCopyParam.getProductId());
|
|
|
ptlAgreementCost.setProductName(costCopyParam.getProductName());
|
|
ptlAgreementCost.setProductName(costCopyParam.getProductName());
|
|
|
// 复制的费用为待审核
|
|
// 复制的费用为待审核
|
|
@@ -447,10 +449,10 @@ public class PtlAgreementCostServiceImpl extends ServiceImpl<PtlAgreementCostMap
|
|
|
ptlAgreementCostMapper.insert(ptlAgreementCost);
|
|
ptlAgreementCostMapper.insert(ptlAgreementCost);
|
|
|
ptlAgreementCostTypeMapper.insert(newPtlAgreementCostTypes);
|
|
ptlAgreementCostTypeMapper.insert(newPtlAgreementCostTypes);
|
|
|
ptlAgreementCostRuleMapper.insert(ptlAgreementCostRules);
|
|
ptlAgreementCostRuleMapper.insert(ptlAgreementCostRules);
|
|
|
|
|
+ newCostId.add(ptlAgreementCost.getId());
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
- return true;
|
|
|
|
|
|
|
+ return newCostId;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|