|
@@ -11,6 +11,7 @@ import com.jeeplus.sys.utils.UserUtils;
|
|
import com.jeeplus.test.cw.contractRegistration.domain.ContractFile;
|
|
import com.jeeplus.test.cw.contractRegistration.domain.ContractFile;
|
|
import com.jeeplus.test.cw.contractRegistration.domain.ContractInfo;
|
|
import com.jeeplus.test.cw.contractRegistration.domain.ContractInfo;
|
|
import com.jeeplus.test.cw.contractRegistration.domain.ContractParticipant;
|
|
import com.jeeplus.test.cw.contractRegistration.domain.ContractParticipant;
|
|
|
|
+import com.jeeplus.test.cw.contractRegistration.mapper.ContractFileMapper;
|
|
import com.jeeplus.test.cw.contractRegistration.mapper.ContractInfoMapper;
|
|
import com.jeeplus.test.cw.contractRegistration.mapper.ContractInfoMapper;
|
|
import com.jeeplus.test.cw.contractRegistration.mapper.ContractParticipantMapper;
|
|
import com.jeeplus.test.cw.contractRegistration.mapper.ContractParticipantMapper;
|
|
import com.jeeplus.test.cw.workClientInfo.service.dto.CwWorkClientBaseDTO;
|
|
import com.jeeplus.test.cw.workClientInfo.service.dto.CwWorkClientBaseDTO;
|
|
@@ -47,6 +48,9 @@ public class ContractInfoService {
|
|
private OssServiceMapper ossServiceMapper;
|
|
private OssServiceMapper ossServiceMapper;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
|
|
+ private ContractFileMapper fileMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
private ContractParticipantMapper participantMapper;
|
|
private ContractParticipantMapper participantMapper;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -210,12 +214,23 @@ public class ContractInfoService {
|
|
// info.setNo(serialNum);
|
|
// info.setNo(serialNum);
|
|
contractInfo.setUpdateBy(userDTO.getId());
|
|
contractInfo.setUpdateBy(userDTO.getId());
|
|
contractInfo.setUpdateDate(new Date());
|
|
contractInfo.setUpdateDate(new Date());
|
|
- if (!contractInfo.getStatus().equals("5")){
|
|
|
|
|
|
+
|
|
|
|
+ if (StringUtils.isNotEmpty(contractInfo.getStatus()) &&!contractInfo.getStatus().equals("5")){
|
|
int num = Integer.parseInt(contractInfo.getChangeNum()) + 1;
|
|
int num = Integer.parseInt(contractInfo.getChangeNum()) + 1;
|
|
contractInfo.setChangeNum(num + "");
|
|
contractInfo.setChangeNum(num + "");
|
|
}else {
|
|
}else {
|
|
contractInfo.setChangeNum(contractInfo.getChangeNum());
|
|
contractInfo.setChangeNum(contractInfo.getChangeNum());
|
|
}
|
|
}
|
|
|
|
+ //对管理员上传归档文件进行相关操作
|
|
|
|
+ if (StringUtils.isNotEmpty(contractInfo.getFiledType()) && contractInfo.getFiledType().equals("5")){
|
|
|
|
+ //根据id找到归档表id
|
|
|
|
+ ContractFile contractFile = fileMapper.getInfoByConId(info.getId());
|
|
|
|
+ contractFile.setContractInfoList(info.getContractInfoList());
|
|
|
|
+ if (CollectionUtils.isNotEmpty(contractFile.getContractInfoList())){
|
|
|
|
+ updateFiles(contractFile.getContractInfoList(), userDTO, contractFile.getId());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
mapper.updateById(contractInfo);
|
|
mapper.updateById(contractInfo);
|