| | |
| | | </resultMap> |
| | | |
| | | <sql id="condition"> |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and a.loc_no like '%' + #{loc_no} + '%' |
| | | <if test="bill_no!=null and bill_no!='' "> |
| | | and bill_no like '%' + #{bill_no} + '%' |
| | | </if> |
| | | <if test="mat_no!=null and mat_no!='' "> |
| | | and a.mat_no like '%' + #{mat_no} + '%' |
| | |
| | | from ( |
| | | select distinct bill_no, bill_type, appe_time |
| | | from ints_wait_matin |
| | | where 1=1 |
| | | <include refid="condition"></include> |
| | | ) r |
| | | ) t where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | |
| | | from ( |
| | | select distinct bill_no, bill_type, appe_time |
| | | from ints_wait_matin |
| | | where 1=1 |
| | | <include refid="condition"></include> |
| | | ) r |
| | | ) t |