This commit is contained in:
guohb
2024-04-07 10:29:57 +08:00
parent 1e0d1d9240
commit c6afd0ec38
3 changed files with 30 additions and 7 deletions

View File

@@ -37,6 +37,9 @@ public class KdzApiServiceImpl implements KdzApiService {
throw new ServiceException("kdzBusinessId解析异常,请检查");
}
LineInfoDO lineInfoDO = lineInfoMapper.getByLineId(Long.valueOf(lineId));
if (Objects.isNull(lineInfoDO)){
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
}
try {
if (request.getAuditResult() == 1){
AuditPassRequest auditPassRequest = new AuditPassRequest();
@@ -53,7 +56,7 @@ public class KdzApiServiceImpl implements KdzApiService {
commonService.getLineFlowService(auditRejectRequest.getWorkflowSubStage()).auditReject(auditRejectRequest);
}
}catch (Exception e){
throw new ServiceException(e.getMessage());
throw new ServiceException(ErrorCodeEnum.UNKNOWN);
}
return true;
}