Browse Source

问题修改

zhs 2 years ago
parent
commit
90c2a3928c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/resources/mapper/WarehousingMapper.xml

+ 4 - 1
src/main/resources/mapper/WarehousingMapper.xml

@@ -458,9 +458,12 @@
             <if test="endTime != null and endTime != ''">
                 and b.notice_time <![CDATA[<=]]> #{endTime}
             </if>
-            <if test="partType != null and partType != ''">
+            <if test="partType != null and partType == '产成品'.toString()">
                 and c.part_type = #{partType}
             </if>
+            <if test="partType != null and partType == '半成品'.toString()">
+                and c.part_type ='半成品' or c.part_type ='原材料'
+            </if>
             <if test="companyNumber != null and companyNumber != ''">
                 and b.company_number = #{companyNumber}
             </if>