便利查询--各版本管理员查看用户的design频次和各生成功能使用频次以及积分使用情况

This commit is contained in:
2025-04-13 17:20:14 +08:00
parent 7b75e6ac69
commit cbc760ebaf
7 changed files with 237 additions and 42 deletions

View File

@@ -34,8 +34,19 @@
from t_account a
left join t_design b on a.id = b.account_id
<where>
<choose>
<when test="role == 'corp'">
a.system_user IN (5, 6)
</when>
<when test="role == 'edu'">
a.system_user IN (7, 8)
</when>
<when test="role == 'prsn'">
a.system_user IN (0, 1, 2, 3, 4)
</when>
</choose>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
b.create_date between #{startTime} and #{endTime}
AND b.create_date between #{startTime} and #{endTime}
</if>
</where>
and b.create_date not like '%:01'
@@ -52,17 +63,6 @@
GROUP BY b.account_id
ORDER BY b.account_id asc) d
left join trial_order c on d.user_email = c.email
<!--select a.account_id,count(a.account_id) use_design_times,b.user_email,b.user_name,b.is_trial
from `t_account` b
left join t_design a
on a.account_id = b.id
<where>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
a.create_date between #{startTime} and #{endTime}
</if>
</where>
GROUP BY a.account_id
ORDER BY a.account_id ASC;-->
</select>
<select id="selectDeleteList" resultType="com.ai.da.mapper.primary.entity.Design">