便利查询--指定用户有权限直接获取当前数据库部分数据

This commit is contained in:
2024-03-04 16:33:23 +08:00
parent 7803decb29
commit a016f16052
5 changed files with 91 additions and 2 deletions

View File

@@ -25,5 +25,19 @@
#{switchCategory},
#{createDate});
</insert>
<select id="getDesignStatistic" resultType="com.ai.da.model.dto.UserDesignStatisticDTO" parameterType="String">
select a.account_id,count(a.account_id) use_design_times,b.user_email,b.user_name,b.is_trial
from t_design a
left join `t_account` b
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>
</mapper>