| | |
| | | <result column="box_type2" property="boxType2" /> |
| | | <result column="box_type3" property="boxType3" /> |
| | | <result column="cstateid" property="cstateid" /> |
| | | <result column="mk" property="mk" /> |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | |
| | | <if test="standby1!=null and standby1!='' "> |
| | | and a.standby1 like '%' + #{standby1} + '%' |
| | | </if> |
| | | <if test="mk!=null and mk!='' "> |
| | | <if test='mk=="Y"'> |
| | | and b.mk='Y' |
| | | </if> |
| | | <if test='mk=="N"'> |
| | | and (b.mk!='Y' or b.mk is null) |
| | | </if> |
| | | </if> |
| | | </sql> |
| | | |
| | | <select id="getStockOutPage" resultMap="BaseResultMap"> |
| | |
| | | ( |
| | | select |
| | | ROW_NUMBER() over (order by a.appe_time,a.matnr,a.loc_no) as row, |
| | | a.* |
| | | a.*, b.mk |
| | | from asr_loc_detl a |
| | | left join asr_loc_mast b on a.loc_no = b.loc_no |
| | | where 1=1 |