Browse Source

【用户数据分析】【企业数时间查询格式化】-王公峰-2020-05-22

feature/dangjian
wanggongfeng 5 years ago
parent
commit
d7738a035e
  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

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

Loading…
Cancel
Save