|
@@ -153,8 +153,7 @@ public class PurchContractApprovalServiceImpl extends ServiceImpl<PurchContractA
|
|
throw new BusinessException(CodeUtil.FAIL, "获取不到对应采购合同审批信息");
|
|
throw new BusinessException(CodeUtil.FAIL, "获取不到对应采购合同审批信息");
|
|
}
|
|
}
|
|
PurchContractApprovalVo purchContractApprovalVo = new PurchContractApprovalVo();
|
|
PurchContractApprovalVo purchContractApprovalVo = new PurchContractApprovalVo();
|
|
-
|
|
|
|
- if (purchContractApproval.getSignMode() == 1){
|
|
|
|
|
|
+ if (purchContractApproval.getSignMode() != null && purchContractApproval.getSignMode() == 1){
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
.setEntityId(purchContractApproval.getId())
|
|
.setEntityId(purchContractApproval.getId())
|
|
.setChildEnum(FileModuleDict.ChildEnum.PURCHASE_CONTRACT_FILE_view)
|
|
.setChildEnum(FileModuleDict.ChildEnum.PURCHASE_CONTRACT_FILE_view)
|
|
@@ -322,7 +321,7 @@ public class PurchContractApprovalServiceImpl extends ServiceImpl<PurchContractA
|
|
|
|
|
|
|
|
|
|
if (purchContractApproval.getId() != null) {
|
|
if (purchContractApproval.getId() != null) {
|
|
- if (purchContractApproval.getSignMode() == 1){
|
|
|
|
|
|
+ if (purchContractApproval.getSignMode() != null && purchContractApproval.getSignMode() == 1){
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
.setEntityId(purchContractApproval.getId())
|
|
.setEntityId(purchContractApproval.getId())
|
|
.setChildEnum(FileModuleDict.ChildEnum.PURCHASE_CONTRACT_FILE_view)
|
|
.setChildEnum(FileModuleDict.ChildEnum.PURCHASE_CONTRACT_FILE_view)
|
|
@@ -677,7 +676,7 @@ public class PurchContractApprovalServiceImpl extends ServiceImpl<PurchContractA
|
|
|
|
|
|
String result = "";
|
|
String result = "";
|
|
if (purchContractApproval.getApprovalConclusion().equals(ConstantConversionUtil.APPROVAL_RESULT_PASS)) {
|
|
if (purchContractApproval.getApprovalConclusion().equals(ConstantConversionUtil.APPROVAL_RESULT_PASS)) {
|
|
- if (purchContractApproval.getSignMode() == 1) {
|
|
|
|
|
|
+ if (purchContractApproval.getSignMode() != null && purchContractApproval.getSignMode() == 1) {
|
|
result = "签署";
|
|
result = "签署";
|
|
} else {
|
|
} else {
|
|
result = "通过";
|
|
result = "通过";
|
|
@@ -763,7 +762,7 @@ public class PurchContractApprovalServiceImpl extends ServiceImpl<PurchContractA
|
|
|| StringUtil.isEmpty(purchContractDeliverClause.getDeliverMethod()) || StringUtil.isEmpty(purchContractDeliverClause.getTransportPremium())) {
|
|
|| StringUtil.isEmpty(purchContractDeliverClause.getDeliverMethod()) || StringUtil.isEmpty(purchContractDeliverClause.getTransportPremium())) {
|
|
throw new ValidatorException(CodeUtil.FAIL, "交货规定信息不全,请补全!");
|
|
throw new ValidatorException(CodeUtil.FAIL, "交货规定信息不全,请补全!");
|
|
}
|
|
}
|
|
- if (purchContractApprovalVo.getPurchContractApproval().getSignMode() == 0 && CollectionUtil.isEmpty(purchContractApprovalVo.getPurchContractApproval().getFileIds())) {
|
|
|
|
|
|
+ if (purchContractApprovalVo.getPurchContractApproval().getSignMode() != null && purchContractApprovalVo.getPurchContractApproval().getSignMode() == 0 && CollectionUtil.isEmpty(purchContractApprovalVo.getPurchContractApproval().getFileIds())) {
|
|
throw new ValidatorException(CodeUtil.FAIL, "请上传线下签署的文件!");
|
|
throw new ValidatorException(CodeUtil.FAIL, "请上传线下签署的文件!");
|
|
}
|
|
}
|
|
|
|
|