zhs %!s(int64=2) %!d(string=hai) anos
pai
achega
90c2a3928c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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>