Tiroble 3 gadi atpakaļ
vecāks
revīzija
1cfd3859b0

+ 1 - 1
src/main/resources/com/steerinfo/dil/mapper/WmspInboundResultMapper.xml

@@ -1362,7 +1362,7 @@
               where rms.material_id=(
               where rms.material_id=(
                   select distinct rms2.material_id from rms_material_steel rms2
                   select distinct rms2.material_id from rms_material_steel rms2
                   where material_steel_id =#{materialId}
                   where material_steel_id =#{materialId}
-                ) and INBOUND_ISCOMPLETE='1'  and wgm.deleted ='0'
+                ) and INBOUND_ISCOMPLETE='1'  and wgm.deleted ='0' and  wir.insert_time between sysdate and trunc(sysdate + 1, 'dd')
               order by wir.insert_time desc
               order by wir.insert_time desc
           ) where  Rownum='1'
           ) where  Rownum='1'
         )
         )