| | |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and loc_no like '%' + #{loc_no} + '%' |
| | | </if> |
| | | <if test="matnr!=null and matnr!='' "> |
| | | and matnr like '%' + #{matnr} + '%' |
| | | <if test="mat_no!=null and mat_no!='' "> |
| | | and mat_no like '%' + #{mat_no} + '%' |
| | | </if> |
| | | <if test="stay_time!=null and stay_time!='' "> |
| | | and stay_time > #{stay_time} |
| | |
| | | <!-- <if test="appe_time!=null and appe_time!='' "> --> |
| | | <!-- and appe_time > #{appe_time} --> |
| | | <!-- </if> --> |
| | | <if test="maktx!=null and maktx!='' "> |
| | | and (maktx like '%' + #{maktx} + '%' |
| | | or lgnum like '%' + #{maktx} + '%' |
| | | or tbnum like '%' + #{maktx} + '%' |
| | | or tbpos like '%' + #{maktx} + '%' |
| | | or zmatid like '%' + #{maktx} + '%' |
| | | or werks like '%' + #{maktx} + '%' |
| | | or anfme like '%' + #{maktx} + '%' |
| | | or altme like '%' + #{maktx} + '%' |
| | | or zpallet like '%' + #{maktx} + '%' |
| | | or bname like '%' + #{maktx} + '%' |
| | | <if test="mat_name!=null and mat_name!='' "> |
| | | and (mat_name like '%' + #{mat_name} + '%' |
| | | or specs like '%' + #{mat_name} + '%' |
| | | or size like '%' + #{mat_name} + '%' |
| | | or color like '%' + #{mat_name} + '%' |
| | | or weight like '%' + #{mat_name} + '%' |
| | | or qty like '%' + #{qty} + '%' |
| | | or unit like '%' + #{mat_name} + '%' |
| | | or zpallet like '%' + #{mat_name} + '%' |
| | | ) |
| | | </if> |
| | | <if test="begin_date!=null and begin_date!='' "> |
| | |
| | | <!-- 分页查询所有信息 --> |
| | | <select id="queryViewStayTimeList" parameterType="com.zy.asrs.entity.ViewStayTimeBean" resultType="com.zy.asrs.entity.ViewStayTimeBean"> |
| | | select * from ( |
| | | select *,ROW_NUMBER() OVER(Order by appe_time,loc_no,matnr) as rowid |
| | | select *,ROW_NUMBER() OVER(Order by appe_time,loc_no,mat_no) as rowid |
| | | from asr_stk_staytime_view |
| | | <where> |
| | | 1=1 |