|
|
@ -19,8 +19,11 @@ |
|
|
|
OR drkcmc LIKE '%' || #{fuzzy} || '%' |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="ckbm != null and ckbm != ''"> |
|
|
|
AND (dckcbm = #{ckbm} OR drkcbm = #{ckbm}) |
|
|
|
<if test="drkcbm != null and drkcbm != ''"> |
|
|
|
AND (drkcbm = #{drkcbm}) |
|
|
|
</if> |
|
|
|
<if test="dckcbm != null and dckcbm != ''"> |
|
|
|
AND (dckcbm = #{dckcbm}) |
|
|
|
</if> |
|
|
|
ORDER BY CJSJ DESC ) temp ) |
|
|
|
</select> |
|
|
@ -39,8 +42,11 @@ |
|
|
|
OR drkcmc LIKE '%' || #{fuzzy} || '%' |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="ckbm != null and ckbm != ''"> |
|
|
|
AND (dckcbm = #{ckbm} OR drkcbm = #{ckbm}) |
|
|
|
<if test="drkcbm != null and drkcbm != ''"> |
|
|
|
AND (drkcbm = #{drkcbm}) |
|
|
|
</if> |
|
|
|
<if test="dckcbm != null and dckcbm != ''"> |
|
|
|
AND (dckcbm = #{dckcbm}) |
|
|
|
</if> |
|
|
|
ORDER BY CJSJ DESC ) temp WHERE <![CDATA[ ROWNUM <= #{size} * #{page} ]]>) WHERE |
|
|
|
<![CDATA[ row_num > #{size} * (#{page} - 1) ]]> |
|
|
@ -51,7 +57,7 @@ |
|
|
|
SELECT * FROM ( |
|
|
|
SELECT V.*, ROW_NUMBER() OVER (ORDER BY V.YWRQ DESC) AS RNUM |
|
|
|
FROM EAS_NOBLE.V_UC_STOCKTRANSFERBILL V |
|
|
|
WHERE V.DJID = #{djid} |
|
|
|
WHERE V.DJID = #{djid} ORDER BY V.WLBM ASC |
|
|
|
) |
|
|
|
WHERE RNUM BETWEEN (#{page} - 1) * #{size} + 1 AND #{page} * #{size} |
|
|
|
</select> |
|
|
|