发起资质审批增加信息缺失校验
This commit is contained in:
@@ -54,7 +54,7 @@ public class MDMHttpRequest {
|
||||
log.info("url:{}, response:{}", url, JSONObject.toJSONString(responseEntity));
|
||||
if (Objects.nonNull(responseEntity.getBody()) && responseEntity.getBody().isSuccess()) {
|
||||
AccessTokenDTO accessTokenDTO = JSONObject.parseObject(JSONObject.toJSONString(responseEntity.getBody().getData()), AccessTokenDTO.class);
|
||||
if(accessTokenDTO==null || StringUtils.isBlank(accessTokenDTO.getAccessToken())){
|
||||
if(accessTokenDTO == null || StringUtils.isBlank(accessTokenDTO.getAccessToken())){
|
||||
throw new ServiceException("获取Mdm token失败!");
|
||||
}
|
||||
return accessTokenDTO.getAccessToken();
|
||||
@@ -186,7 +186,7 @@ public class MDMHttpRequest {
|
||||
private void checkResponse(ResponseEntity<MDMResultDTO> MDMResp) throws ApiException {
|
||||
int code = Objects.requireNonNull(MDMResp.getBody()).getCode();
|
||||
if (code != 200) {
|
||||
throw new ApiException(MDMResp.getBody().getMessage());
|
||||
throw new ApiException(String.valueOf(MDMResp.getBody().getData()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -171,8 +171,11 @@ public class FlowServiceImpl implements FlowService {
|
||||
}
|
||||
rpcRequest.getData().setUserSiteDevDingUserId(dingdingUserDO.getUserid());
|
||||
}
|
||||
} else {
|
||||
throw new ApiException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
|
||||
}
|
||||
|
||||
} else {
|
||||
throw new ApiException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
|
||||
}
|
||||
//通过 rpc 请求审核系统获取返回数据
|
||||
//上传证明文件数据
|
||||
|
||||
Reference in New Issue
Block a user