| | |
| | | </if> |
| | | and b.host_id = #{hostId} |
| | | and b.loc_sts = 'F' |
| | | and b.row1 in (1,2,3,4) |
| | | order by b.row1 |
| | | </select> |
| | | |
| | |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | and b.host_id = #{map.hostId} |
| | | and b.row1 in (1,2,3,4) |
| | | <include refid="stockOutCondition"></include> |
| | | </select> |
| | | |
| | |
| | | group by a.matnr |
| | | </select> |
| | | |
| | | <select id="getStock" resultType="com.zy.asrs.common.domain.dto.ReportStockDto"> |
| | | select loc_no as locNo,count(loc_no) as anfme from |
| | | (select matnr,count(matnr) counts,loc_no |
| | | from wms_loc_detl where matnr IN |
| | | <foreach item="item" collection="matnr" open="(" separator="," close=")"> |
| | | #{item, jdbcType=VARCHAR} |
| | | </foreach> GROUP BY matnr,loc_no) aa |
| | | GROUP BY aa.loc_no |
| | | order by anfme desc |
| | | </select> |
| | | |
| | | </mapper> |