|
@@ -129,7 +129,7 @@ public class PurchContractSupplementApprovalServiceImpl extends ServiceImpl<Purc
|
|
|
purchContractSupplementApproval.setComments(comments);
|
|
|
}
|
|
|
|
|
|
- if (purchContractSupplementApproval.getSignMode() == 1){
|
|
|
+ if (purchContractSupplementApproval.getSignMode() != null && purchContractSupplementApproval.getSignMode() == 1){
|
|
|
//系统制作的文件
|
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
|
.setEntityId(id)
|
|
@@ -220,7 +220,7 @@ public class PurchContractSupplementApprovalServiceImpl extends ServiceImpl<Purc
|
|
|
}
|
|
|
|
|
|
if (approval.getApprovalConclusion().equals(ConstantConversionUtil.APPROVAL_RESULT_PASS)) {
|
|
|
- if (approval.getSignMode() == 1){
|
|
|
+ if (approval.getSignMode() != null && approval.getSignMode() == 1){
|
|
|
//制作采购合同补充合同
|
|
|
FileStorage supplementContract = supplementInfoService.makeContract(approval);
|
|
|
fileStorageService.saveAttachmentRefByFileStorage(supplementContract, FileModuleDict.ChildEnum.PURCHASE_CONTRACT_SUPPLEMENT_MAKE_FILE, approval.getId());
|
|
@@ -272,7 +272,7 @@ public class PurchContractSupplementApprovalServiceImpl extends ServiceImpl<Purc
|
|
|
}
|
|
|
|
|
|
} else if (approval.getApprovalConclusion().equals(ConstantConversionUtil.APPROVAL_RESULT_PASS)) {
|
|
|
- if (approval.getSignMode() == 1){
|
|
|
+ if (approval.getSignMode() != null && approval.getSignMode() == 1){
|
|
|
String assigneeKey = ConstantUtil.PURCH_CONTRACT_CHANGE_SIGN_CONFIRM + ConstantUtil.ASSIGNEE;
|
|
|
result = "线上";
|
|
|
//供应商签署
|
|
@@ -363,7 +363,7 @@ public class PurchContractSupplementApprovalServiceImpl extends ServiceImpl<Purc
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- if (approval.getSignMode() == 0 && CollectionUtil.isEmpty(approval.getFileIds())){
|
|
|
+ if (approval.getSignMode() != null && approval.getSignMode() == 0 && CollectionUtil.isEmpty(approval.getFileIds())){
|
|
|
//签署方式为线下签署时校验是否上传线下签署文件
|
|
|
throw new ValidatorException(CodeUtil.FAIL,"线下签署的文件不能为空!");
|
|
|
}
|
|
@@ -407,7 +407,7 @@ public class PurchContractSupplementApprovalServiceImpl extends ServiceImpl<Purc
|
|
|
supplementApproval.setComments(commentStrs);
|
|
|
}
|
|
|
|
|
|
- if (supplementApproval.getSignMode() == 1){
|
|
|
+ if (supplementApproval.getSignMode() != null && supplementApproval.getSignMode() == 1){
|
|
|
//系统制作的文件
|
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
|
.setEntityId(supplementApproval.getId())
|