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