|
@@ -923,6 +923,33 @@ public class ContractInfoService {
|
|
|
//案卷号修改
|
|
//案卷号修改
|
|
|
public void updateFileNumber(ContractInfo info) {
|
|
public void updateFileNumber(ContractInfo info) {
|
|
|
paperMapper.updateFileNumber(info.getFiledNo(),info.getId());
|
|
paperMapper.updateFileNumber(info.getFiledNo(),info.getId());
|
|
|
|
|
+
|
|
|
|
|
+ //修改合同名称
|
|
|
|
|
+ mapper.updateContractNameAndClient(info.getId(), info.getContractName(),info.getCustomerId());
|
|
|
|
|
+
|
|
|
|
|
+ //获取当前登录人信息
|
|
|
|
|
+ UserDTO userDTO = SpringUtil.getBean ( IUserApi.class ).getByToken(TokenProvider.getCurrentToken());
|
|
|
|
|
+ ContractParticipant participant = new ContractParticipant();
|
|
|
|
|
+ //对参与签约方进行操作
|
|
|
|
|
+ participantMapper.deleteFromParticipant(info.getId());
|
|
|
|
|
+ //在操作前,清空之前的信息
|
|
|
|
|
+ if (info.getCwWorkClientContactDTOList() != null){
|
|
|
|
|
+ if (info.getCwWorkClientContactDTOList().size()>0){
|
|
|
|
|
+ info.getCwWorkClientContactDTOList().forEach(cw->{
|
|
|
|
|
+
|
|
|
|
|
+ String parId = UUID.randomUUID().toString().replace("-", "");
|
|
|
|
|
+ participant.setId(parId);
|
|
|
|
|
+ participant.setContractInfoId(info.getId());
|
|
|
|
|
+ participant.setCustomerName(cw.getName());
|
|
|
|
|
+ participant.setCustomerNo(cw.getNo());
|
|
|
|
|
+ participant.setCreateById(userDTO.getId());
|
|
|
|
|
+ participant.setCreateTime(info.getCreateTime());
|
|
|
|
|
+ participant.setUpdateById(userDTO.getId());
|
|
|
|
|
+ participant.setUpdateTime(new Date());
|
|
|
|
|
+ participantMapper.insert(participant);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|