| | |
| | | <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" /> |
| | |
| | | and a."LOC_NO" like '%' + #{loc_no} + '%' |
| | | </if> |
| | | <if test="matNo!=null and matNo!='' "> |
| | | and a."matnr" like '%' + #{matNo} + '%' |
| | | and a."MATNR" like '%' + #{matNo} + '%' |
| | | </if> |
| | | <if test="matName!=null and matName!='' "> |
| | | and a."maktx" like '%' + #{matName} + '%' |
| | | and a."MAKTX" like '%' + #{matName} + '%' |
| | | </if> |
| | | <if test="anfme!=null and anfme!='' "> |
| | | and a."anfme" like '%' + #{anfme} + '%' |
| | | and a."ANFME" like '%' + #{anfme} + '%' |
| | | </if> |
| | | <if test="altme!=null and altme!='' "> |
| | | and a."altme" like '%' + #{altme} + '%' |
| | | and a."ALTME" like '%' + #{altme} + '%' |
| | | </if> |
| | | <if test="startTime!=null and endTime!=null"> |
| | | and a."modi_time" between #{startTime} and #{endTime} |
| | | and a."MODI_TIME" between #{startTime} and #{endTime} |
| | | </if> |
| | | </sql> |
| | | |
| | |
| | | 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> |