소스 검색

根据物资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">