Showing
1 changed file
with
7 additions
and
1 deletions
| @@ -578,9 +578,15 @@ public class ContractDistributorStandardController extends DefaultBaseController | @@ -578,9 +578,15 @@ public class ContractDistributorStandardController extends DefaultBaseController | ||
| 578 | }) | 578 | }) |
| 579 | @PostMapping("/uploadStandardContract") | 579 | @PostMapping("/uploadStandardContract") |
| 580 | public InvokeResult<Void> uploadStandardContract(@RequestBody UpdateContractDistributorStandardVo vo) { | 580 | public InvokeResult<Void> uploadStandardContract(@RequestBody UpdateContractDistributorStandardVo vo) { |
| 581 | - if (StringUtils.isBlank(vo.getStandardFileId()) || StringUtils.isBlank(vo.getId())) { | 581 | + if (vo == null || StringUtils.isBlank(vo.getId())) { |
| 582 | + throw new DefaultClientException("参数错误!"); | ||
| 583 | + } | ||
| 584 | + if (StringUtils.isBlank(vo.getStandardFileId())) { | ||
| 582 | throw new DefaultClientException("规范性合同附件不能为空!"); | 585 | throw new DefaultClientException("规范性合同附件不能为空!"); |
| 583 | } | 586 | } |
| 587 | + if (vo.getStandardStandardized() == null) { | ||
| 588 | + throw new DefaultClientException("合同是否规范不能为空!"); | ||
| 589 | + } | ||
| 584 | 590 | ||
| 585 | contractDistributorStandardService.uploadStandardContract(vo); | 591 | contractDistributorStandardService.uploadStandardContract(vo); |
| 586 | 592 |