Commit 55a28cf4 by zhangxingmin

校验

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