|
@@ -78,10 +78,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryDeptByTimes" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
<select id="queryDeptByTimes" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
|
- select spa.time, COUNT(spa.user_id) as countNum
|
|
|
|
|
|
|
+ select spa.time, COUNT(spa.id) as countNum
|
|
|
from(
|
|
from(
|
|
|
SELECT
|
|
SELECT
|
|
|
- s.user_id,DATE_FORMAT(s.create_time, '%Y-%m-%d %H' ) as time
|
|
|
|
|
|
|
+ s.id,DATE_FORMAT(s.create_time, '%Y-%m-%d %H' ) as time
|
|
|
FROM sys_user s
|
|
FROM sys_user s
|
|
|
<where>
|
|
<where>
|
|
|
s.type = 3 and s.status in (1, 4, 5, 6, 7)
|
|
s.type = 3 and s.status in (1, 4, 5, 6, 7)
|
|
@@ -89,7 +89,7 @@
|
|
|
and s.referrer_id = #{userId}
|
|
and s.referrer_id = #{userId}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="dto.beginTime != null and dto.beginTime != '' and dto.endTime != null and dto.endTime != ''">
|
|
<if test="dto.beginTime != null and dto.beginTime != '' and dto.endTime != null and dto.endTime != ''">
|
|
|
- and (DATE_FORMAT(s.create_time, '%Y-%m-%d' ) like CONCAT( DATE_FORMAT( #{dto.startTime}, '%Y-%m-%d' ), '%' ))
|
|
|
|
|
|
|
+ and (DATE_FORMAT(s.create_time, '%Y-%m-%d' ) like CONCAT( DATE_FORMAT( #{dto.beginTime}, '%Y-%m-%d' ), '%' ))
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
) as spa
|
|
) as spa
|
|
@@ -100,10 +100,10 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryDeptByTime" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
<select id="queryDeptByTime" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
|
- select spa.time, COUNT(spa.user_id) as countNum
|
|
|
|
|
|
|
+ select spa.time, COUNT(spa.id) as countNum
|
|
|
from(
|
|
from(
|
|
|
SELECT
|
|
SELECT
|
|
|
- s.user_id,DATE_FORMAT(s.create_time, '%Y-%m-%d' ) as time
|
|
|
|
|
|
|
+ s.id,DATE_FORMAT(s.create_time, '%Y-%m-%d' ) as time
|
|
|
FROM sys_user s
|
|
FROM sys_user s
|
|
|
<where>
|
|
<where>
|
|
|
s.type = 3 and s.status in (1, 4, 5, 6, 7)
|
|
s.type = 3 and s.status in (1, 4, 5, 6, 7)
|
|
@@ -122,10 +122,10 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryUserByTimes" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
<select id="queryUserByTimes" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
|
- select spa.time, COUNT(spa.user_id) as countNum
|
|
|
|
|
|
|
+ select spa.time, COUNT(spa.id) as countNum
|
|
|
from(
|
|
from(
|
|
|
SELECT
|
|
SELECT
|
|
|
- s.user_id,DATE_FORMAT(s.create_time, '%Y-%m-%d %H' ) as time
|
|
|
|
|
|
|
+ s.id,DATE_FORMAT(s.create_time, '%Y-%m-%d %H' ) as time
|
|
|
FROM sys_user s
|
|
FROM sys_user s
|
|
|
<where>
|
|
<where>
|
|
|
s.status in (1, 4, 5, 6, 7)
|
|
s.status in (1, 4, 5, 6, 7)
|
|
@@ -136,7 +136,7 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="dto.beginTime != null and dto.beginTime != '' and dto.endTime != null and dto.endTime != ''">
|
|
<if test="dto.beginTime != null and dto.beginTime != '' and dto.endTime != null and dto.endTime != ''">
|
|
|
- and (DATE_FORMAT(s.create_time, '%Y-%m-%d' ) like CONCAT( DATE_FORMAT( #{dto.startTime}, '%Y-%m-%d' ), '%' ))
|
|
|
|
|
|
|
+ and (DATE_FORMAT(s.create_time, '%Y-%m-%d' ) like CONCAT( DATE_FORMAT( #{dto.beginTime}, '%Y-%m-%d' ), '%' ))
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
) as spa
|
|
) as spa
|
|
@@ -148,10 +148,10 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryUserByTime" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
<select id="queryUserByTime" resultType="com.ydtech.modules.admin.model.vo.CountUserNumVo">
|
|
|
- select spa.time, COUNT(spa.user_id) as countNum
|
|
|
|
|
|
|
+ select spa.time, COUNT(spa.id) as countNum
|
|
|
from(
|
|
from(
|
|
|
SELECT
|
|
SELECT
|
|
|
- s.user_id,DATE_FORMAT(s.create_time, '%Y-%m-%d' ) as time
|
|
|
|
|
|
|
+ s.id,DATE_FORMAT(s.create_time, '%Y-%m-%d' ) as time
|
|
|
FROM sys_user s
|
|
FROM sys_user s
|
|
|
<where>
|
|
<where>
|
|
|
s.status in (1, 4, 5, 6, 7)
|
|
s.status in (1, 4, 5, 6, 7)
|