Explorar el Código

修改查询条件

wks hace 2 años
padre
commit
dfbc085a1f

+ 2 - 2
src/main/resources/mapper/modules/largescreen/AgreementDataMapper.xml

@@ -71,11 +71,11 @@
             ins_orders io on (io.userid like CONCAT(sd.id,'%') or io.operatorid = CONCAT(sd.id,'%')) and orderstatus = 3
                 LEFT JOIN
             ins_area_company iac on iac.orderno = io.orderno and iac.orderstatus = 3
+        WHERE
+            sd.comlevel = 3
             <if test="startDate != null and startDate != ''">
                 and iac.createtime BETWEEN #{startDate} and #{endDate}
             </if>
-        WHERE
-            sd.comlevel = 3
         AND
             sd.id != 9991401
         group by