Commit 11fa4598 by 墨竹

fix:收费bug修改

parent d9914a11
...@@ -48,16 +48,17 @@ ...@@ -48,16 +48,17 @@
<if test="endDate != null and endDate != ''"> <if test="endDate != null and endDate != ''">
and intercept_time <![CDATA[ >= ]]> #{endDate} and intercept_time <![CDATA[ >= ]]> #{endDate}
</if> </if>
<choose>
<when test="interceptFlag != null and interceptFlag == 0">
and DATE_SUB(CURDATE(), INTERVAL 30 DAY) <![CDATA[ <= ]]> date(intercept_time)
GROUP BY wx_enterprise_id
order by intercept_time asc
</when>
<otherwise>
order by intercept_time desc
</otherwise>
</choose>
</where> </where>
<choose>
<when test="interceptFlag != null and interceptFlag == 0">
GROUP BY wx_enterprise_id
order by intercept_time asc
</when>
<otherwise>
order by intercept_time desc
</otherwise>
</choose>
</select> </select>
......
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