Commit 3ab942f8 by zhangxingmin

校验

parent 0a9a797a
...@@ -163,9 +163,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -163,9 +163,9 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
if (StringUtils.isBlank(dto.getCustomerBizId())) { if (StringUtils.isBlank(dto.getCustomerBizId())) {
throw new BusinessException(tipStr+"客户信息表唯一业务ID不能为空"); throw new BusinessException(tipStr+"客户信息表唯一业务ID不能为空");
} }
if (StringUtils.isBlank(dto.getCustomerNo())) { // if (StringUtils.isBlank(dto.getCustomerNo())) {
throw new BusinessException(tipStr+"客户编号不能为空"); // throw new BusinessException(tipStr+"客户编号不能为空");
} // }
if (StringUtils.isBlank(dto.getFnaBizId())) { if (StringUtils.isBlank(dto.getFnaBizId())) {
throw new BusinessException(tipStr+"FNA信息表唯一业务ID不能为空"); throw new BusinessException(tipStr+"FNA信息表唯一业务ID不能为空");
} }
...@@ -674,14 +674,14 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic ...@@ -674,14 +674,14 @@ public class ApiAppointmentCheckServiceImpl implements ApiAppointmentCheckServic
* @return * @return
*/ */
public Result checkCustomerBizIdAndNo(String customerBizId,String customerNo,String tipStr) { public Result checkCustomerBizIdAndNo(String customerBizId,String customerNo,String tipStr) {
if (StringUtils.isNotBlank(customerNo) && StringUtils.isBlank(customerBizId)) { // if (StringUtils.isNotBlank(customerNo) && StringUtils.isBlank(customerBizId)) {
//关联客户编号不为空并且关联客户信息表唯一业务ID为空,提示:客户信息表唯一业务ID不能为空 // //关联客户编号不为空并且关联客户信息表唯一业务ID为空,提示:客户信息表唯一业务ID不能为空
throw new BusinessException(tipStr+"客户信息表唯一业务ID不能为空"); // throw new BusinessException(tipStr+"客户信息表唯一业务ID不能为空");
} // }
if (StringUtils.isNotBlank(customerBizId) && StringUtils.isBlank(customerNo)) { // if (StringUtils.isNotBlank(customerBizId) && StringUtils.isBlank(customerNo)) {
//关联客户编号为空并且关联客户信息表唯一业务ID不为空,提示:客户编号不能为空 // //关联客户编号为空并且关联客户信息表唯一业务ID不为空,提示:客户编号不能为空
throw new BusinessException(tipStr+"客户编号不能为空"); // throw new BusinessException(tipStr+"客户编号不能为空");
} // }
return Result.success(); return Result.success();
} }
......
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