Commit 55a28cf4 by zhangxingmin

校验

parent 3ab942f8
...@@ -88,6 +88,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -88,6 +88,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
* @return * @return
*/ */
public Result checkAddApiAppointmentInfoDto(ApiAppointmentInfoDto dto) { public Result checkAddApiAppointmentInfoDto(ApiAppointmentInfoDto dto) {
if (Objects.isNull(dto)) {
dto = new ApiAppointmentInfoDto();
}
String tipStr = "预约信息-"; String tipStr = "预约信息-";
if (!Objects.isNull(dto.getId())) { if (!Objects.isNull(dto.getId())) {
throw new BusinessException(tipStr+"预约信息表主键id不传值"); throw new BusinessException(tipStr+"预约信息表主键id不传值");
...@@ -181,6 +184,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -181,6 +184,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
* @return * @return
*/ */
public Result checkAddApiProductPlanInfoDto(ApiProductPlanInfoDto dto) { public Result checkAddApiProductPlanInfoDto(ApiProductPlanInfoDto dto) {
if (Objects.isNull(dto)) {
dto = new ApiProductPlanInfoDto();
}
//新增预约入参字段校验 - 产品计划信息字段校验 - 产品计划主信息字段校验 //新增预约入参字段校验 - 产品计划信息字段校验 - 产品计划主信息字段校验
checkAddApiProductPlanMainInfoDto(dto.getApiProductPlanMainInfoDto()); checkAddApiProductPlanMainInfoDto(dto.getApiProductPlanMainInfoDto());
...@@ -211,6 +217,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -211,6 +217,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
* @return * @return
*/ */
public Result checkAddApiProductPlanMainInfoDto(ApiProductPlanMainInfoDto dto){ public Result checkAddApiProductPlanMainInfoDto(ApiProductPlanMainInfoDto dto){
if (Objects.isNull(dto)) {
dto = new ApiProductPlanMainInfoDto();
}
String tipStr = "产品计划-"; String tipStr = "产品计划-";
if (!Objects.isNull(dto.getId())) { if (!Objects.isNull(dto.getId())) {
throw new BusinessException(tipStr+"产品计划表主键id不传值"); throw new BusinessException(tipStr+"产品计划表主键id不传值");
...@@ -362,6 +371,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -362,6 +371,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
* @return * @return
*/ */
public Result checkAddApiPolicyholderInfoDto(ApiPolicyholderInfoDto dto) { public Result checkAddApiPolicyholderInfoDto(ApiPolicyholderInfoDto dto) {
if (Objects.isNull(dto)) {
dto = new ApiPolicyholderInfoDto();
}
String tipStr = "投保人-"; String tipStr = "投保人-";
if (StringUtils.isBlank(dto.getCustomerType())) { if (StringUtils.isBlank(dto.getCustomerType())) {
throw new BusinessException(tipStr+"客户类型不能为空"); throw new BusinessException(tipStr+"客户类型不能为空");
...@@ -451,6 +463,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -451,6 +463,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
* @return * @return
*/ */
public Result checkAddApiInsurantInfoDto(ApiInsurantInfoDto dto) { public Result checkAddApiInsurantInfoDto(ApiInsurantInfoDto dto) {
if (Objects.isNull(dto)) {
dto = new ApiInsurantInfoDto();
}
String tipStr = "受保人-"; String tipStr = "受保人-";
if (StringUtils.isBlank(dto.getCustomerType())) { if (StringUtils.isBlank(dto.getCustomerType())) {
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