|
|
@@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.date.DatePattern;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
@@ -944,6 +945,7 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
// 生成订单的条件
|
|
|
// 1个保险公司只有一个主订单 不区分险种
|
|
|
// 唯一性的判定标准:保险公司编号+ 车牌号 + 车架号
|
|
|
+ log.info("生成一个主订单和多个子订单:quoteVo=[{}],companyName=[{}]", JSONUtil.toJsonStr(quoteVo), companyName);
|
|
|
InsOrders mainOrders = this.getMainOrders(
|
|
|
quoteVo.getOrder().getInsuranceCompanyCode(),
|
|
|
quoteVo.getCarInfoVo().getLicenseNo(),
|
|
|
@@ -1161,6 +1163,18 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
insOrdersParam.setJzgInfoId(jzgInfoId);
|
|
|
}
|
|
|
Page<OrderListVo> orderListVoPage = insOrdersMapper.queryOrderList(insOrdersParam.getPage(), insOrdersParam);
|
|
|
+ // modify by lipf, 2026年4月29日11:06:02 解决业务员类型缺失的问题
|
|
|
+ List<OrderListVo> records = orderListVoPage.getRecords();
|
|
|
+ if(CollUtil.isNotEmpty(records)){
|
|
|
+ Map<String, String> attrTypeMap = orgClient.queryAllTypeAttrMap();
|
|
|
+ List<OrderListVo> list = records.stream().peek(action -> {
|
|
|
+ String jzgInfoId1 = action.getJzgInfoId();
|
|
|
+ if (StrUtil.isNotEmpty(jzgInfoId1)) {
|
|
|
+ action.setSalesmanType(attrTypeMap.get(jzgInfoId1));
|
|
|
+ }
|
|
|
+ }).toList();
|
|
|
+ orderListVoPage.setRecords(list);
|
|
|
+ }
|
|
|
if (StringUtils.equals("1",insOrdersParam.getIsLargeOrder())){
|
|
|
processMainOrder(orderListVoPage);
|
|
|
}
|