Parcourir la source

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

wuhp il y a 1 an
Parent
commit
85c3c8b175

+ 6 - 0
src/main/resources/mapper/modules/order/InsAreaCompanyMapper.xml

@@ -2301,10 +2301,12 @@
         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  ins_fee_audit ifa  ON ifa.orderno = io.orderno
         LEFT JOIN esm_ins_company ins ON agree.partner_companies_id = ins.id
         WHERE
         agree.id IS NOT NULL
         and  iac.orderstatus = '3'
+        and  ifa.auditstatus != '2'
         <if test="vo.companyId  != null  and  vo.companyId!='' ">
             and  agree.insurance_company_id = #{vo.companyId}
         </if>
@@ -2383,9 +2385,11 @@
         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  ins_fee_audit ifa  ON ifa.orderno = io.orderno
         WHERE
         agree.id IS NOT NULL
         and  iac.orderstatus = '3'
+        and  ifa.auditstatus != '2'
         <if test="vo.companyId  != null  and  vo.companyId!='' ">
             and  agree.insurance_company_id = #{vo.companyId}
         </if>
@@ -2435,9 +2439,11 @@
         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  ins_fee_audit ifa  ON ifa.orderno = io.orderno
         WHERE
         agree.id IS NOT NULL
         and  iac.orderstatus = '3'
+        and  ifa.auditstatus = '2'
         <if test="vo.companyId  != null  and  vo.companyId!='' ">
             and  agree.insurance_company_id = #{vo.companyId}
         </if>