Commit 869fa1c2 by jianan

导出运营报表2-经纪人日程管理,销售目标,活动量

parent b4575e29
......@@ -150,10 +150,10 @@
<choose>
<when test="type != null and date != null">
<if test="type == 1">
AND t.created_at = year(#{date,jdbcType=VARCHAR})
AND year(t.created_at) = year(#{date,jdbcType=VARCHAR})
</if>
<if test="type == 3">
AND t.created_at = DATE_FORMAT(#{date,jdbcType=VARCHAR}, '%Y%m' )
AND DATE_FORMAT(t.created_at, '%Y%m') = DATE_FORMAT(#{date,jdbcType=VARCHAR}, '%Y%m')
</if>
</when>
<when test="type != null and date == null">
......
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