ソースを参照

根据物资ID查询收货单位

txf 3 年 前
コミット
8b45902b06

+ 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">