Browse Source

【pc端 用户数据分析-运营导出数据】-【新闻发布数sql修改】-(魏凯)-2020/05/19

feature/dangjian
weikai 5 years ago
parent
commit
dfa0b0046c
  1. 4
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/user/UserAnalysisDao.xml

4
esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/user/UserAnalysisDao.xml

@ -515,10 +515,10 @@
LEFT JOIN esua_epdc_news.epdc_news un ON find_in_set(t0.id, un.ALL_DEPT_IDS) LEFT JOIN esua_epdc_news.epdc_news un ON find_in_set(t0.id, un.ALL_DEPT_IDS)
AND un.DEL_FLAG = '0' AND un.DEL_FLAG = '0'
<if test="operationStartTime != null and operationEndTime != null and operationEndTime != ''"> <if test="operationStartTime != null and operationEndTime != null and operationEndTime != ''">
AND un.CREATED_TIME BETWEEN #{operationStartTime} AND #{operationEndTime} AND DATE_FORMAT(un.CREATED_TIME,'%Y-%m-%d') BETWEEN #{operationStartTime} AND #{operationEndTime}
</if> </if>
<if test="endTime != null and endTime != ''"> <if test="endTime != null and endTime != ''">
and un.CREATED_TIME &lt;=#{endTime} and DATE_FORMAT(un.CREATED_TIME,'%Y-%m-%d') &lt;=#{endTime}
</if> </if>
GROUP BY GROUP BY
t0.id t0.id

Loading…
Cancel
Save