Browse Source

Merge branch 'feature/active_user'

feature/dangjian
李鹏飞 5 years ago
parent
commit
756788fc60
  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

@ -1351,9 +1351,9 @@
</if> </if>
<if test="operationStartTime != null and operationStartTime != '' and operationEndTime != null and operationEndTime != ''"> <if test="operationStartTime != null and operationStartTime != '' and operationEndTime != null and operationEndTime != ''">
and (#{operationStartTime} BETWEEN DATE_FORMAT(ecu.REACH_ACTIVE_TIME,'%Y-%m-%d') and DATE_FORMAT(ecu.VALID_TIME,'%Y-%m-%d') and (DATE_FORMAT(ecu.REACH_ACTIVE_TIME,'%Y-%m-%d') BETWEEN #{operationStartTime} and #{operationEndTime}
or or
#{operationEndTime} BETWEEN DATE_FORMAT(ecu.REACH_ACTIVE_TIME,'%Y-%m-%d') and DATE_FORMAT(ecu.VALID_TIME,'%Y-%m-%d')) DATE_FORMAT(ecu.VALID_TIME,'%Y-%m-%d') BETWEEN #{operationStartTime} and #{operationEndTime})
</if> </if>
group by ecu.USER_ID -- 去重 group by ecu.USER_ID -- 去重
)total )total

Loading…
Cancel
Save