Преглед изворни кода

1.去掉大订单已承保数据

wuhp пре 1 година
родитељ
комит
3f03dacbb2

+ 1 - 2
src/main/resources/mapper/modules/admin/CompanyDataReport.xml

@@ -128,8 +128,7 @@
         left join ins_orders io on io.orderno = iac.orderno
         LEFT JOIN sys_user su on io.userid=su.id
             <where>
-                io.orderstatus = '3'
-                and iac.orderstatus = '3'
+                 iac.orderstatus = '3'
                 and io.licenseno is not null
                 <if test="vo.beginDate  != null  and  vo.beginDate!=''  and vo.endDate  != null  and  vo.endDate!=''">
                     AND io.createtime BETWEEN #{vo.beginDate} AND #{vo.endDate}

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

@@ -3167,9 +3167,7 @@
         from ins_area_company iac
         left join ins_orders io on io.orderno = iac.orderno
         <where>
-            1=1
-            and  iac.orderstatus ='3'
-            and io.orderstatus ='3'
+            iac.orderstatus ='3'
             <if test="vo.licenseno !=null  and vo.licenseno!=''">
                 AND io.licenseno =#{vo.licenseno}
             </if>