|
|
@@ -812,7 +812,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
try {
|
|
|
reqData = FlexJsonUtil.fromJson(rawJson, SNBindDelRequest.class);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,"传参数据格式错误"));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),"传参数据格式错误",requestId));
|
|
|
}
|
|
|
// 手动校验
|
|
|
Set<ConstraintViolation<SNBindDelRequest>> violations = validator.validate(reqData);
|
|
|
@@ -821,7 +821,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
.map(ConstraintViolation::getMessage)
|
|
|
.distinct() // 按消息内容去重
|
|
|
.collect(Collectors.joining(";"));
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,msg));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),msg,requestId));
|
|
|
}
|
|
|
return reqData;
|
|
|
}
|
|
|
@@ -1131,7 +1131,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
try {
|
|
|
reqData = FlexJsonUtil.fromJson(rawJson, ProdBindSetRequest.class);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,"传参数据格式错误"));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),"传参数据格式错误",requestId));
|
|
|
//return ApiResponse.failRsp(ErrorMessage.BUSINESS_ILLEGAL.getCode(), requestId, "传参数据格式错误");
|
|
|
}
|
|
|
// 手动校验
|
|
|
@@ -1141,7 +1141,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
.map(ConstraintViolation::getMessage)
|
|
|
.distinct() // 按消息内容去重
|
|
|
.collect(Collectors.joining(";"));
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,"传参数据格式错误"));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),"传参数据格式错误",requestId));
|
|
|
}
|
|
|
return reqData;
|
|
|
}
|
|
|
@@ -1151,7 +1151,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
try {
|
|
|
reqData = FlexJsonUtil.fromJson(rawJson, SNBindInfoRequest.class);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,"传参数据格式错误"));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),"传参数据格式错误",requestId));
|
|
|
}
|
|
|
// 手动校验
|
|
|
Set<ConstraintViolation<SNBindInfoRequest>> violations = validator.validate(reqData);
|
|
|
@@ -1160,7 +1160,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
.map(ConstraintViolation::getMessage)
|
|
|
.distinct() // 按消息内容去重
|
|
|
.collect(Collectors.joining(";"));
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,msg));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),msg,requestId));
|
|
|
}
|
|
|
return reqData;
|
|
|
}
|
|
|
@@ -1171,7 +1171,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
try {
|
|
|
reqData = FlexJsonUtil.fromJson(rawJson, SNBindMaterialRequest.class);
|
|
|
} catch (Exception e) {
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,"传参数据格式错误"));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),"传参数据格式错误",requestId));
|
|
|
}
|
|
|
// 手动校验
|
|
|
Set<ConstraintViolation<SNBindMaterialRequest>> violations = validator.validate(reqData);
|
|
|
@@ -1180,7 +1180,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
.map(ConstraintViolation::getMessage)
|
|
|
.distinct() // 按消息内容去重
|
|
|
.collect(Collectors.joining(";"));
|
|
|
- throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),requestId,msg));
|
|
|
+ throw new ApiSystemException(new ApiResult(ErrorMessage.ACCESSKEY_ILLEGAL.getCode(),msg,requestId));
|
|
|
}
|
|
|
return reqData;
|
|
|
}
|