瀏覽代碼

问题修改

zhs 2 年之前
父節點
當前提交
90c2a3928c
共有 1 個文件被更改,包括 4 次插入1 次删除
  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>