Commit e845e3c1 by jianan

新单跟进53

parent 469f3dbc
......@@ -314,6 +314,17 @@ public class PolicyFollowServiceImpl extends ServiceImpl<PolicyFollowMapper, Pol
// 校验状态
validPolicyFollowStatus(currentStatusEnum, policyFollowStatusEnum);
// 保单号和转接人都有的情况下,才能修改为已完成状态
if (PolicyFollowStatusEnum.FINISHED.equals(policyFollowStatusEnum)) {
if (StringUtils.isBlank(policyFollow.getPolicyNo())) {
throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "保单号和转接人都不能为空,才能修改为已完成状态");
}
boolean exists = policyBrokerService.exists(new QueryWrapper<PolicyBroker>().eq("policy_biz_id", policyBizId));
if (!exists) {
throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "保单号和转接人都不能为空,才能修改为已完成状态");
}
}
// 获取当前登录用户
AuthUserDto currentLoginUser = SecurityUtil.getCurrentLoginUser();
String loginUserId = currentLoginUser.getId().toString();
......
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