| | |
| | | <if test="specs!=null and specs!='' "> |
| | | and a.specs like '%' + #{specs} + '%' |
| | | </if> |
| | | |
| | | <if test="sPgNO!=null and sPgNO!='' "> |
| | | and a.pg_no like '%' + #{sPgNO} + '%' |
| | | </if> |
| | | <if test="outOrderNo!=null and outOrderNo!='' "> |
| | | and a.out_order_no like '%' + #{outOrderNo} + '%' |
| | | </if> |
| | | <if test="zpallet!=null and zpallet!='' "> |
| | | and a.zpallet like '%' + #{zpallet} + '%' |
| | | </if> |
| | | </sql> |
| | | |
| | | <select id="getStockOutPage" resultMap="BaseResultMap"> |
| | |
| | | and asrsQty != erpQty |
| | | </if> |
| | | <if test="different != null and different == 0 "> |
| | | and asrsQty = erpQty |
| | | |
| | | </if> |
| | | <if test="matnr != null and matnr != ''"> |
| | | AND matnr like #{matnr} |
| | | AND matnr like '%' + #{matnr}+ '%' |
| | | </if> |
| | | <if test="maktx != null and maktx != ''"> |
| | | AND maktx like #{maktx} |
| | | AND maktx like '%' + #{maktx}+ '%' |
| | | </if> |
| | | <if test="specs != null and specs != ''"> |
| | | AND specs like #{specs} |
| | | AND specs like '%' + #{specs}+ '%' |
| | | </if> |
| | | <if test="sPgNO != null"> |
| | | AND pgNO like #{sPgNO} |
| | | <if test="sPgNO != null and sPgNO != ''"> |
| | | AND pgNO like '%' + #{sPgNO} + '%' |
| | | </if> |
| | | <if test="outOrderNo != null"> |
| | | AND outOrderNo like #{outOrderNo} |
| | | <if test="outOrderNo != null and outOrderNo != ''"> |
| | | AND outOrderNo like '%' + #{outOrderNo} + '%' |
| | | </if> |
| | | ) d ) e WHERE 1=1 and e.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize}) |
| | | </select> |