|
@@ -158,6 +158,15 @@
|
|
|
<if test="bh!=null and bh!=''">
|
|
|
AND D.BH LIKE CONCAT(CONCAT('%', '${bh}'),'%')
|
|
|
</if>
|
|
|
+ <if test="bgstart!=null and bgstart!=''">
|
|
|
+ AND D.BGSJ >=
|
|
|
+ TRUNC(#{bgstart}, 'dd')
|
|
|
+ </if>
|
|
|
+ <if test="bgend!=null and bgend!=''">
|
|
|
+ <![CDATA[AND D.BGSJ <=
|
|
|
+ TRUNC(#{bgend}+1, 'dd')
|
|
|
+ ]]>
|
|
|
+ </if>
|
|
|
ORDER BY D.BGSJ DESC
|
|
|
<![CDATA[
|
|
|
) tt WHERE ROWNUM <= ${dataend} ) table_alias WHERE table_alias.rowno >= ${datafrom}
|