Qchen 1 tahun lalu
induk
melakukan
819d5dadaf

+ 1 - 1
tenant/insurance/quotation-summary/src/main/java/com/jzg/quotation/summary/service/impl/InsOrdersServiceImpl.java

@@ -539,7 +539,7 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
                 ordersOther.setScore(quoteResponse.getScoreVo().getScore());
                 ordersOther.setScore(quoteResponse.getScoreVo().getScore());
                 ordersOther.setJqScore(quoteResponse.getScoreVo().getJqScore());
                 ordersOther.setJqScore(quoteResponse.getScoreVo().getJqScore());
                 ordersOther.setSyScore(quoteResponse.getScoreVo().getSyScore());
                 ordersOther.setSyScore(quoteResponse.getScoreVo().getSyScore());
-                ordersOther.setLossRation(new BigDecimal(quoteResponse.getScoreVo().getLossRation()));
+                ordersOther.setLossRation(new BigDecimal(quoteResponse.getScoreVo().getLossRation() != null ? quoteResponse.getScoreVo().getLossRation() : "0"));
                 ordersOther.setJqLossRation(new BigDecimal(quoteResponse.getScoreVo().getJqLossRation() != null ? quoteResponse.getScoreVo().getJqLossRation() : "0"));
                 ordersOther.setJqLossRation(new BigDecimal(quoteResponse.getScoreVo().getJqLossRation() != null ? quoteResponse.getScoreVo().getJqLossRation() : "0"));
                 ordersOther.setSyLossRation(new BigDecimal(quoteResponse.getScoreVo().getSyLossRation() != null ? quoteResponse.getScoreVo().getSyLossRation() : "0"));
                 ordersOther.setSyLossRation(new BigDecimal(quoteResponse.getScoreVo().getSyLossRation() != null ? quoteResponse.getScoreVo().getSyLossRation() : "0"));
                 ordersOther.setTpColorScore(quoteResponse.getScoreVo().getTpColorScore() != null ? quoteResponse.getScoreVo().getTpColorScore() : "");
                 ordersOther.setTpColorScore(quoteResponse.getScoreVo().getTpColorScore() != null ? quoteResponse.getScoreVo().getTpColorScore() : "");

+ 2 - 1
tenant/insurance/quotation-summary/src/main/resources/mapper/InsOrdersMapper.xml

@@ -356,7 +356,7 @@
             s.tax_premium,
             s.tax_premium,
             o.real_quote_user_id,
             o.real_quote_user_id,
             suji.name as real_quote_user_name,
             suji.name as real_quote_user_name,
-            eic.name_simple as company_name
+            sd.name as salesmanCompany
         FROM
         FROM
             ins_orders o
             ins_orders o
                 LEFT JOIN ins_orders_car_info c ON c.order_no = o.id
                 LEFT JOIN ins_orders_car_info c ON c.order_no = o.id
@@ -364,6 +364,7 @@
                 LEFT JOIN sys_user su ON su.mobile = o.real_quote_user_id
                 LEFT JOIN sys_user su ON su.mobile = o.real_quote_user_id
                 LEFT JOIN sys_user_jzg_info suji ON suji.user_id = su.id
                 LEFT JOIN sys_user_jzg_info suji ON suji.user_id = su.id
                 LEFT JOIN esm_ins_company eic on o.company_id = eic.id
                 LEFT JOIN esm_ins_company eic on o.company_id = eic.id
+                left join sys_dept sd on sd.id = suji.dept_id
 
 
         <where>
         <where>
             o.is_delete = 0
             o.is_delete = 0