|
@@ -91,10 +91,10 @@ public class contractServiceImpl extends ServiceImpl<ContractMapper, ContractEnt
|
|
|
contractEntity.setInternalCompanyName(interName);
|
|
contractEntity.setInternalCompanyName(interName);
|
|
|
|
|
|
|
|
contractEntity.setContractStatus("0");
|
|
contractEntity.setContractStatus("0");
|
|
|
- if(contractDto.getExpiringDate() !=null){
|
|
|
|
|
- LocalDateTime shouldPostponedDate =this.saveShouldPostponedDate(contractDto);
|
|
|
|
|
- contractEntity.setShouldPostponedDate(shouldPostponedDate);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if(contractDto.getExpiringDate() !=null){
|
|
|
|
|
+// LocalDateTime shouldPostponedDate =this.saveShouldPostponedDate(contractDto);
|
|
|
|
|
+// contractEntity.setShouldPostponedDate(shouldPostponedDate);
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
baseMapper.insert(contractEntity);
|
|
baseMapper.insert(contractEntity);
|
|
|
if (contractDto.getSupplierIdList() != null) {
|
|
if (contractDto.getSupplierIdList() != null) {
|
|
@@ -119,10 +119,10 @@ public class contractServiceImpl extends ServiceImpl<ContractMapper, ContractEnt
|
|
|
contractEntity.setInternalCompanyName(interName);
|
|
contractEntity.setInternalCompanyName(interName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(contractDto.getExpiringDate() !=null){
|
|
|
|
|
- LocalDateTime shouldPostponedDate =this.saveShouldPostponedDate(contractDto);
|
|
|
|
|
- contractEntity.setShouldPostponedDate(shouldPostponedDate);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if(contractDto.getExpiringDate() !=null){
|
|
|
|
|
+// LocalDateTime shouldPostponedDate =this.saveShouldPostponedDate(contractDto);
|
|
|
|
|
+// contractEntity.setShouldPostponedDate(shouldPostponedDate);
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
baseMapper.updateById(contractEntity);
|
|
baseMapper.updateById(contractEntity);
|
|
|
contractSupplierService.saveAndUpdate(contractDto.getSupplierIdList(), contractEntity.getId());
|
|
contractSupplierService.saveAndUpdate(contractDto.getSupplierIdList(), contractEntity.getId());
|
|
@@ -217,6 +217,9 @@ public class contractServiceImpl extends ServiceImpl<ContractMapper, ContractEnt
|
|
|
String firtLetter = "";
|
|
String firtLetter = "";
|
|
|
String contractCode = contractDto.getContractCode();
|
|
String contractCode = contractDto.getContractCode();
|
|
|
String simpleName = this.getSimpleName(contractDto.getExternalCompaniesId());
|
|
String simpleName = this.getSimpleName(contractDto.getExternalCompaniesId());
|
|
|
|
|
+ if (StringUtils.isEmpty(simpleName)) {
|
|
|
|
|
+ throw new SystemException("甲方简称为空不能新增 生成不了合同编号");
|
|
|
|
|
+ }
|
|
|
if (simpleName.isEmpty()) {
|
|
if (simpleName.isEmpty()) {
|
|
|
return contractCode;
|
|
return contractCode;
|
|
|
}
|
|
}
|