Commit bae3c6db by zhangxingmin

校验

parent 55a28cf4
...@@ -232,7 +232,7 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -232,7 +232,7 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
} }
//新增或者编辑预约入参字段校验 - 产品计划信息字段校验 - 产品计划主信息字段校验 //新增或者编辑预约入参字段校验 - 产品计划信息字段校验 - 产品计划主信息字段校验
checkApiProductPlanMainInfoDtoCommon(dto,tipStr); checkApiProductPlanMainInfoDtoCommon(dto,tipStr,0);
return Result.success(); return Result.success();
} }
...@@ -254,7 +254,7 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -254,7 +254,7 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
} }
//新增或者编辑预约入参字段校验 - 产品计划信息字段校验 - 产品计划主信息字段校验 //新增或者编辑预约入参字段校验 - 产品计划信息字段校验 - 产品计划主信息字段校验
checkApiProductPlanMainInfoDtoCommon(dto,tipStr); checkApiProductPlanMainInfoDtoCommon(dto,tipStr,1);
return Result.success(); return Result.success();
} }
...@@ -263,9 +263,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -263,9 +263,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
* @param dto * @param dto
* @return * @return
*/ */
public Result checkApiProductPlanMainInfoDtoCommon(ApiProductPlanMainInfoDto dto,String tipStr) { public Result checkApiProductPlanMainInfoDtoCommon(ApiProductPlanMainInfoDto dto,String tipStr,Integer source) {
if (StringUtils.isBlank(dto.getProductBizId())) { if (StringUtils.isBlank(dto.getProductBizId())) {
throw new BusinessException(tipStr+"保险产品唯一业务ID不能为空"); throw new BusinessException(tipStr+"保险产品唯一业务ID(中台保险产品业务id,冗余)不能为空");
} }
if (StringUtils.isBlank(dto.getProductName())) { if (StringUtils.isBlank(dto.getProductName())) {
throw new BusinessException(tipStr+"保险产品名称不能为空"); throw new BusinessException(tipStr+"保险产品名称不能为空");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment