|
@@ -1194,6 +1194,10 @@ public class KwcContractLogisticsService {
|
|
|
if (Objects.nonNull(req.getId())){
|
|
if (Objects.nonNull(req.getId())){
|
|
|
saveContractLogistics.setId(req.getId());
|
|
saveContractLogistics.setId(req.getId());
|
|
|
}else {
|
|
}else {
|
|
|
|
|
+ KwcContractLogistics kwcContractLogistics = kwcContractLogisticsRepository.queryByContractCode(req.getBaseInfo().getContractCode());
|
|
|
|
|
+ if (Objects.nonNull(kwcContractLogistics)){
|
|
|
|
|
+ throw new BusinessException("合同编号已存在");
|
|
|
|
|
+ }
|
|
|
saveContractLogistics.setId(contactId);
|
|
saveContractLogistics.setId(contactId);
|
|
|
}
|
|
}
|
|
|
saveContractLogistics.setEntId(LoginUserHolder.getEntId());
|
|
saveContractLogistics.setEntId(LoginUserHolder.getEntId());
|