|
|
@@ -25,10 +25,8 @@ import com.ydtech.modules.admin.dao.SysUserLinkPtlAgreementMapper;
|
|
|
import com.ydtech.modules.admin.dao.SysUserMapper;
|
|
|
import com.ydtech.modules.admin.model.*;
|
|
|
import com.ydtech.modules.admin.model.dto.SysUserLinkPtlAgreementDto;
|
|
|
-import com.ydtech.modules.admin.service.SysDeptService;
|
|
|
-import com.ydtech.modules.admin.service.SysUserInfoService;
|
|
|
-import com.ydtech.modules.admin.service.SysUserRoleService;
|
|
|
-import com.ydtech.modules.admin.service.SysUserService;
|
|
|
+import com.ydtech.modules.admin.model.po.SysUserIsDial;
|
|
|
+import com.ydtech.modules.admin.service.*;
|
|
|
import com.ydtech.modules.esm.model.EsmUserReferrer;
|
|
|
import com.ydtech.modules.esm.service.EsmUserReferrerService;
|
|
|
import com.ydtech.modules.fee.service.CostsCalcService;
|
|
|
@@ -151,6 +149,9 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
@Autowired
|
|
|
private PtlAgreementUndwrtRulesAttrService ptlAgreementUndwrtRulesAttrService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SysUserIsDialService sysUserIsDialService;
|
|
|
+
|
|
|
|
|
|
public InsOrdersServiceImpl(OrderComponents orderComponents, SysUserService sysUserService,
|
|
|
SysUserRoleService sysUserRoleService,
|
|
|
@@ -275,6 +276,10 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
daikeFlag = true;
|
|
|
}
|
|
|
}
|
|
|
+ //添加后线人员不能报价的验证
|
|
|
+ if(!"admin".equals(realUserId) && !realUserId.contains("M")){
|
|
|
+ throw new SystemException("后线人员不允许报价!!");
|
|
|
+ }
|
|
|
// 1. 验证订单参数
|
|
|
orderComponents.checkEmpty(quoteInfoVo);
|
|
|
SysUser user = sysUserService.getById(realUserId);
|
|
|
@@ -1143,6 +1148,14 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
orderAndAreaCompany.setOwnerinfo(setNewIdentifyType(orderAndAreaCompany.getOwnerinfo()));
|
|
|
orderAndAreaCompany.setApplyinfo(setNewIdentifyType(orderAndAreaCompany.getApplyinfo()));
|
|
|
orderAndAreaCompany.setInsureinfo(setNewIdentifyType(orderAndAreaCompany.getInsureinfo()));
|
|
|
+
|
|
|
+ //查询当前用户是否拥有拨号权限
|
|
|
+ SysUserIsDial userIsDial = sysUserIsDialService.getOne(new LambdaQueryWrapper<SysUserIsDial>().eq(SysUserIsDial::getUserId, userId));
|
|
|
+ if (userIsDial == null) {
|
|
|
+ orderAndAreaCompany.setIsDial("0");
|
|
|
+ }else {
|
|
|
+ orderAndAreaCompany.setIsDial(userIsDial.getIsDial());
|
|
|
+ }
|
|
|
return HttpResult.ok("success", orderAndAreaCompany);
|
|
|
}
|
|
|
|