소스 검색

麻柳新厂厂外库功能

xiaosonghong 1 개월 전
부모
커밋
5a67f1dd41
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/main/resources/com/steerinfo/dil/mapper/StatisticalReportMapper.xml

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

@@ -6823,6 +6823,14 @@
         and ASO.DELETED = 0
         AND ASM.DELETED IS NULL
         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">
             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>