| | |
| | | select |
| | | a.* |
| | | from wms_loc_detl a |
| | | left join wms_loc_mast b on a.loc_no = b.loc_no |
| | | left join common_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | <if test="no!=null and no == 1"> |
| | | and b.row1 >= 31 |
| | |
| | | b.bay1 as bay, |
| | | sum(anfme) as count |
| | | from wms_loc_detl a |
| | | left join wms_loc_mast b on a.loc_no = b.loc_no |
| | | left join common_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | and a.matnr = #{matnr} |
| | |
| | | b.bay1 as bay, |
| | | sum(anfme) as count |
| | | from wms_loc_detl a |
| | | left join wms_loc_mast b on a.loc_no = b.loc_no |
| | | left join common_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | and a.matnr = #{matnr} |
| | |
| | | b.bay1 as bay, |
| | | sum(anfme) as count |
| | | from wms_loc_detl a |
| | | left join wms_loc_mast b on a.loc_no = b.loc_no |
| | | left join common_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | and a.matnr = #{matnr} |
| | |
| | | <include refid="batchSeq"></include> |
| | | </update> |
| | | |
| | | <select id="getStockOutPage" resultType="com.zy.asrs.common.wms.entity.LocDetl"> |
| | | select |
| | | a.* |
| | | from wms_loc_detl a |
| | | left join common_loc_mast b on a.loc_no = b.loc_no and a.host_id = b.host_id |
| | | where 1=1 |
| | | and b.loc_sts = 'F' |
| | | and b.host_id = #{map.hostId} |
| | | <include refid="stockOutCondition"></include> |
| | | </select> |
| | | |
| | | </mapper> |