| | |
| | | <result column="ITEM_NUM" property="itemNum" /> |
| | | <result column="SAFE_QTY" property="safeQty" /> |
| | | <result column="WEIGHT" property="weight" /> |
| | | <result column="LENGTH" property="length" /> |
| | | <result column="MAN_LENGTH" property="manLength" /> |
| | | <result column="VOLUME" property="volume" /> |
| | | <result column="THREE_CODE" property="threeCode" /> |
| | | <result column="SUPP" property="supp" /> |
| | |
| | | select * from |
| | | ( |
| | | select |
| | | ROW_NUMBER() over (order by a."appe_time",a."matnr",a."loc_no") as row, |
| | | ROW_NUMBER() over (order by a."appe_time",a."MATNR",a."LOC_NO") as ROW, |
| | | a.* |
| | | from "SOURCE"."asr_loc_detl" a |
| | | left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no" |
| | | left join "SOURCE"."asr_loc_mast" b on a."LOC_NO" = b."LOC_NO" |
| | | where 1=1 |
| | | and b."loc_sts" = 'F' |
| | | and b."LOC_STS" = 'F' |
| | | <include refid="stockOutCondition"></include> |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | ) t where t.ROW between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |
| | | |
| | | <select id="getStockOutPageCount" parameterType="java.util.Map" resultType="java.lang.Integer"> |
| | | select |
| | | count(1) |
| | | from "SOURCE"."asr_loc_detl" a |
| | | left join "SOURCE"."asr_loc_mast" b on a."loc_no" = b."loc_no" |
| | | left join "SOURCE"."asr_loc_mast" b on a."LOC_NO" = b."LOC_NO" |
| | | where 1=1 |
| | | and b."loc_sts" = 'F' |
| | | and b."LOC_STS" = 'F' |
| | | <include refid="stockOutCondition"></include> |
| | | </select> |
| | | </mapper> |