自动化立体仓库 - WMS系统
luxiaotao1123
2021-08-26 37286cd9b177e9a1b8f28bfbc054c8cfedec6a5e
src/main/resources/mapper/LocDetlMapper.xml
@@ -69,4 +69,18 @@
        and b.loc_sts = 'F'
        <include refid="stockOutCondition"></include>
    </select>
    <select id="selectLocDetlList" resultMap="BaseResultMap">
        select a.*
        from asr_loc_detl a
        left join asr_loc_mast b on a.loc_no = b.loc_no
        where 1=1
        and b.loc_sts = 'F' and a.mat_no= #{mat_no}
        order by a.appe_time
    </select>
    <select id="selectLocDetlSumQty" resultType="double">
        select SUM(qty) qty
        from asr_loc_detl
        where loc_no=#{locNo}
    </select>
</mapper>