Commit 0f4c22d7 by jianan

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

parent 869fa1c2
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
WHERE t.practitioner_id = p.id WHERE t.practitioner_id = p.id
<choose> <choose>
<when test="type != null and date != null"> <when test="type != null and date != null">
AND t.statistic_time_unit = #{type,jdbcType=BIGINT}
<if test="type == 1"> <if test="type == 1">
AND year(t.created_at) = year(#{date,jdbcType=VARCHAR}) AND year(t.created_at) = year(#{date,jdbcType=VARCHAR})
</if> </if>
......
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