|
|
@@ -14,11 +14,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</update>
|
|
|
|
|
|
<select id="selectFastgptPushTokenTotal" resultType="com.fs.fastGpt.domain.FastGptPushTokenTotal">
|
|
|
- select id,`type`,qw_user_id as qwUserId,company_id as companyId,status,date_format(create_time,'%Y-%m-%d') as statTime,count(id) count
|
|
|
+ select `type`,
|
|
|
+ qw_user_id as qwUserId,
|
|
|
+ company_id as companyId,
|
|
|
+ 1 as status,
|
|
|
+ #{createTime} as statTime,
|
|
|
+ count(id) as count
|
|
|
from qw_restriction_push_record
|
|
|
- where create_time like concat(#{createTime}, '%') and qw_user_id is not null and status = 1
|
|
|
- GROUP BY `type`,company_id,qw_user_id
|
|
|
- ORDER BY `type`,company_id,qw_user_id
|
|
|
+ where create_time >= concat(#{createTime}, ' 00:00:00')
|
|
|
+ and create_time <= concat(#{createTime}, ' 23:59:59')
|
|
|
+ and qw_user_id is not null
|
|
|
+ and status = 1
|
|
|
+ group by `type`, company_id, qw_user_id
|
|
|
+ order by `type`, company_id, qw_user_id
|
|
|
</select>
|
|
|
|
|
|
<select id="selectFastGptPushTokenTotalByInfo" resultType="com.fs.fastGpt.domain.FastGptPushTokenTotal">
|
|
|
@@ -72,4 +80,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
group by t4.dept_id,ft.stat_time
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+</mapper>
|