Commit 3d95a4b7 by 朱亚洁

faet:[1004073]RAYS新增保底支持书刊bug

parent 03d1e6c5
...@@ -2682,8 +2682,8 @@ ...@@ -2682,8 +2682,8 @@
SELECT DISTINCT BOOK_ID FROM book_minimum_support SELECT DISTINCT BOOK_ID FROM book_minimum_support
WHERE 1=1 WHERE 1=1
<if test="isCurrentMonth != null"> <if test="isCurrentMonth != null">
AND DATE_FORMAT(START_TIME, '%Y-%m') <![CDATA[ <= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m') AND DATE_FORMAT(START_TIME, '%Y-%m-%d') <![CDATA[ <= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m-%d')
AND DATE_FORMAT(END_TIME, '%Y-%m') <![CDATA[ >= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m') AND DATE_FORMAT(END_TIME, '%Y-%m-%d') <![CDATA[ >= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m-%d')
</if> </if>
<if test="isOverdue != null"> <if test="isOverdue != null">
GROUP BY book_id GROUP BY book_id
...@@ -2744,8 +2744,8 @@ ...@@ -2744,8 +2744,8 @@
SELECT DISTINCT BOOK_ID FROM book_minimum_support SELECT DISTINCT BOOK_ID FROM book_minimum_support
WHERE 1=1 WHERE 1=1
<if test="isCurrentMonth != null"> <if test="isCurrentMonth != null">
AND DATE_FORMAT(START_TIME, '%Y-%m') <![CDATA[ <= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m') AND DATE_FORMAT(START_TIME, '%Y-%m-%d') <![CDATA[ <= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m-%d')
AND DATE_FORMAT(END_TIME, '%Y-%m') <![CDATA[ >= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m') AND DATE_FORMAT(END_TIME, '%Y-%m-%d') <![CDATA[ >= ]]> DATE_FORMAT(CURRENT_DATE(), '%Y-%m-%d')
</if> </if>
<if test="isOverdue != null"> <if test="isOverdue != null">
GROUP BY book_id GROUP BY book_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment