Browse Source

麻柳新厂厂外库功能

xiaosonghong 4 weeks ago
parent
commit
5a67f1dd41

+ 8 - 0
src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

@@ -6823,6 +6823,14 @@
         and ASO.DELETED = 0
         and ASO.DELETED = 0
         AND ASM.DELETED IS NULL
         AND ASM.DELETED IS NULL
         and ASO.SALE_TYPE = 50
         and ASO.SALE_TYPE = 50
+        <choose>
+            <when test="businessType != null and businessType != ''">
+                AND ASO.business_type = #{businessType}
+            </when>
+            <otherwise>
+                AND ASO.business_type IS NULL
+            </otherwise>
+        </choose>
         <if test="oneDate != null and orderNoFlag == null and dateType != 2">
         <if test="oneDate != null and orderNoFlag == null and dateType != 2">
             and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') &lt; = to_date(to_char(ASOM.SALE_DATE_OF_RECEIPT,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
             and to_date(#{oneDate}, 'yyyy-mm-dd hh24:mi:ss') &lt; = to_date(to_char(ASOM.SALE_DATE_OF_RECEIPT,'yyyy-mm-dd hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss')
         </if>
         </if>