| | |
| | | <if test="owner != null and owner !='' "> |
| | | and t.owner like '%' + #{owner} + '%' |
| | | </if> |
| | | <if test="payment != null and payment !='' "> |
| | | and t.payment = #{payment} |
| | | </if> |
| | | |
| | | </sql> |
| | | <select id="selectAllOwner" resultType="com.zy.asrs.entity.result.LocDetlAll" parameterType="com.zy.asrs.entity.result.LocDetlDTO"> |
| | |
| | | SELECT ROW_NUMBER() over(order by matnr) as row,* FROM ( |
| | | SELECT * FROM asr_loc_detl_all |
| | | ) t |
| | | WHERE 1=1 and t.payment = 0 |
| | | WHERE 1=1 |
| | | <include refid="selectAllSql"></include> |
| | | ) a |
| | | WHERE a.row BETWEEN ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | |
| | | SELECT ROW_NUMBER() over(order by matnr) as row,* FROM ( |
| | | SELECT * FROM asr_loc_detl_all |
| | | ) t |
| | | WHERE 1=1 and t.payment = 0 |
| | | WHERE 1=1 |
| | | <include refid="selectAllSql"></include> |
| | | ) a |
| | | |