| | |
| | | <if test="mat_name!=null and mat_name!='' "> |
| | | and a.mat_name like '%' + #{mat_name} + '%' |
| | | </if> |
| | | <if test="str3!=null and str3!=''" > |
| | | and a.str3 like '%'+#{str3}+'%' |
| | | </if> |
| | | <if test="qty!=null and qty!='' "> |
| | | and a.qty = #{qty} |
| | | </if> |
| | |
| | | where loc_no=#{locNo} |
| | | </select> |
| | | <select id="getStockStatis" resultMap="BaseResultMap"> |
| | | select a.mat_name,a.mat_no,a.supplier,sum(a.qty) qty from |
| | | select a.mat_name,a.mat_no,a.supplier,a.str3,sum(a.qty) qty from |
| | | ( |
| | | select |
| | | ROW_NUMBER() over (order by c.appe_time,c.mat_no,c.loc_no) as row, |
| | |
| | | from asr_loc_detl c |
| | | ) a where a.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | <include refid="stockOutCondition"></include> |
| | | group by a.mat_no,a.mat_name,a.supplier |
| | | group by a.mat_no,a.mat_name,a.supplier,a.str3 |
| | | </select> |
| | | <select id="getStockStatisCount" resultType="integer"> |
| | | select |