Ver Fonte

1.控制台业务数据保险公司

wuhp há 1 ano atrás
pai
commit
fa39348a14

+ 7 - 3
src/main/resources/mapper/modules/order/InsAreaCompanyMapper.xml

@@ -2279,6 +2279,7 @@
         ins_area_company iac
         LEFT JOIN ptl_agreement agree ON iac.agreement_id = agree.id
         LEFT JOIN ins_orders  io  on  io.orderno  = iac.orderno
+        LEFT JOIN sys_user  su  on  io.userid  =su.id
         LEFT JOIN ins_fee_audit ifa  on ifa.ins_order_no =iac.id
         LEFT JOIN esm_ins_company ins ON agree.partner_companies_id = ins.id
         WHERE
@@ -2325,7 +2326,7 @@
         </if>
 
         <if test="vo.userIds != null and vo.userIds != '' and vo.userIds.size() > 0">
-            AND io.userid  in
+            AND su.leader_id  in
             <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
                 #{item}
             </foreach>
@@ -2376,6 +2377,7 @@
         ins_area_company iac
         LEFT JOIN ptl_agreement agree ON iac.agreement_id = agree.id
         LEFT JOIN ins_orders  io  on  io.orderno  = iac.orderno
+        LEFT JOIN sys_user  su  on  io.userid  =su.id
         LEFT JOIN ins_fee_audit ifa  on ifa.ins_order_no =iac.id
         WHERE
         agree.id IS NOT NULL
@@ -2421,7 +2423,7 @@
         </if>
 
         <if test="vo.userIds != null and vo.userIds != '' and vo.userIds.size() > 0">
-            AND io.userid  in
+            AND su.leader_id  in
             <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
                 #{item}
             </foreach>
@@ -2442,6 +2444,8 @@
         LEFT JOIN ptl_agreement agree ON iac.agreement_id = agree.id
         LEFT JOIN ins_orders  io  on  io.orderno  = iac.orderno
         LEFT JOIN ins_fee_audit ifa  on ifa.ins_order_no =iac.id
+        LEFT JOIN sys_user  su  on  io.userid  =su.id
+
         WHERE
         agree.id IS NOT NULL
         and  iac.orderstatus = '3'
@@ -2486,7 +2490,7 @@
         </if>
 
         <if test="vo.userIds != null and vo.userIds != '' and vo.userIds.size() > 0">
-            AND io.userid  in
+            AND su.leader_id  in
             <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
                 #{item}
             </foreach>