浏览代码

根据物资ID查询收货单位

txf 3 年之前
父节点
当前提交
8b45902b06
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

+ 2 - 3
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -291,11 +291,10 @@
                                     on apo.BATCH_ID = DB.BATCH_ID
                           join RMS_SUPPLIER RS
                                     on RS.SUPPLIER_ID = apo.SUPPLIER_UNIT_ID
-                 <where>
+                    where APO.DELETED = 0
                     <if test="materialId != null">
-                        DB.MATERIAL_ID = #{materialId}
+                      and  DB.MATERIAL_ID = #{materialId}
                     </if>
-                 </where>
              )
         <where>
             <if test="index != null">