ZY
2024-08-16 7178ac3731005f2829fa9cca16dc125fc34ec12e
zy-asrs-wms/src/main/resources/mapper/asrs/LocDetlMapper.xml
@@ -15,5 +15,19 @@
            </foreach>
        </if>
    </select>
    <select id="getStock" resultType="com.zy.asrs.wms.asrs.entity.LocDetl">
        select * from man_loc_detl
        where matnr = #{matnr}
        <if test="batch!=null">
            and batch = #{batch}
        </if>
        <if test="ids!=null and ids.size()>0">
            and id in
            <foreach item="item" collection="ids" index="index"  separator="," open="(" close=")">
                #{item}
            </foreach>
        </if>
    </select>
    
</mapper>