|
@@ -154,24 +154,24 @@ public class JyWorkContractService {
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
if (CollectionUtil.isNotEmpty(contractTypes)){
|
|
|
for (List<String> contractType : contractTypes) {
|
|
|
-// if (contractType.size()>0){
|
|
|
-// switch (contractType.get(0)){
|
|
|
-// case "1": //环境监测
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE4,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// case "2": //环境影响评价
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE3,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// case "3": //水土保持
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE2,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// case "4": //其他
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE1,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// default:
|
|
|
-// return null;
|
|
|
-// }
|
|
|
-// }
|
|
|
+ if (contractType.size()>0){
|
|
|
+ switch (contractType.get(0)){
|
|
|
+ case "1": //环境监测
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE4,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ case "2": //环境影响评价
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE3,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ case "3": //水土保持
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE2,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ case "4": //其他
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE1,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }
|
|
|
//判断合同类型是否有二级
|
|
|
if (contractType.size()>1){
|
|
|
sb.append(contractType.get(1)+",");
|
|
@@ -192,6 +192,7 @@ public class JyWorkContractService {
|
|
|
info.setCreateTime(new Date());
|
|
|
info.setUpdateById(userDTO.getId());
|
|
|
info.setUpdateTime(new Date());
|
|
|
+ info.setStatus("5");
|
|
|
info.setPrimaryLinkman(workContractInfoDto.getPrimaryLinkman()); //主委托人
|
|
|
info.setContractAmount(workContractInfoDto.getContractAmount()); //金额
|
|
|
info.setPaymentDescribe(workContractInfoDto.getPaymentDescribe()); //付款摘要
|
|
@@ -245,6 +246,7 @@ public class JyWorkContractService {
|
|
|
// info.setNo(serialNum);
|
|
|
info.setUpdateById(userDTO.getId());
|
|
|
info.setUpdateTime(new Date());
|
|
|
+ info.setStatus("5");
|
|
|
if (StringUtils.isBlank(workContractInfoDto.getContractNo())){
|
|
|
//合同编号生成
|
|
|
List<List<String>> contractTypes = new ArrayList<>();
|
|
@@ -254,22 +256,22 @@ public class JyWorkContractService {
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
for (List<String> contractType : contractTypes) {
|
|
|
if (contractType.size()>0){
|
|
|
-// switch (contractType.get(0)){
|
|
|
-// case "1": //环境监测
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE4,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// case "2": //环境影响评价
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE3,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// case "3": //水土保持
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE2,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// case "4": //其他
|
|
|
-// contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE1,TokenProvider.getCurrentToken());
|
|
|
-// break;
|
|
|
-// default:
|
|
|
-// return null;
|
|
|
-// }
|
|
|
+ switch (contractType.get(0)){
|
|
|
+ case "1": //环境监测
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE4,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ case "2": //环境影响评价
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE3,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ case "3": //水土保持
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE2,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ case "4": //其他
|
|
|
+ contractNo=SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), JyWorkContractInfoDto.BIZ_CODE1,TokenProvider.getCurrentToken());
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|
|
|
//判断合同类型是否有二级
|
|
|
if (contractType.size()>1){
|