Browse Source

【网格开通情况】SQL修改-王公峰-2020-07-30

feature/dangjian
wanggongfeng 6 years ago
parent
commit
2697223473
  1. 12
      esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/user/UserAnalysisDao.xml

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

@ -239,7 +239,7 @@
COUNT( DISTINCT ut.ID ) communityTopicCount
FROM
esua_epdc_group.epdc_group epgr
left join esua_epdc_group.epdc_group epgrCount on epgr.id = epgrCount,id
left join esua_epdc_group.epdc_group epgrCount on epgr.id = epgrCount.id
<if test="startTime != null and endTime != null and endTime != ''">
AND DATE_FORMAT(epgrCount.CREATED_TIME,'%Y-%m-%d') BETWEEN #{startTime} AND #{endTime}
</if>
@ -1077,7 +1077,7 @@
SELECT
AUTHENTICATED_TYPE
FROM
epdc_user_authenticate_history
esua_epdc_user.epdc_user_authenticate_history
WHERE
DEL_FLAG = '0'
AND AUTHENTICATED_TYPE IN ( '0', '1' )
@ -1094,7 +1094,7 @@
SELECT
AUTHENTICATED_FLAG
FROM
epdc_user_authenticate_history
esua_epdc_user.epdc_user_authenticate_history
WHERE
DEL_FLAG = '0'
AND AUTHENTICATED_TYPE IN ( '0', '1' )
@ -1199,7 +1199,7 @@
SELECT
AUTHENTICATED_TYPE
FROM
epdc_user_authenticate_history
esua_epdc_user.epdc_user_authenticate_history
WHERE
DEL_FLAG = '0'
AND AUTHENTICATED_TYPE IN ( '0', '1' )
@ -1216,7 +1216,7 @@
SELECT
AUTHENTICATED_FLAG
FROM
epdc_user_authenticate_history
esua_epdc_user.epdc_user_authenticate_history
WHERE
DEL_FLAG = '0'
AND AUTHENTICATED_TYPE IN ( '0', '1' )
@ -1233,7 +1233,7 @@
SELECT
count( id ) AS HistoryCount
FROM
epdc_user_authenticate_history
esua_epdc_user.epdc_user_authenticate_history
WHERE
DEL_FLAG = '0'
AND AUTHENTICATED_TYPE IN ( '0', '1' )

Loading…
Cancel
Save