feat: 排行榜普通方法

This commit is contained in:
2024-03-06 20:39:28 +08:00
parent 0c2026eb80
commit 2a1d171b5f
18 changed files with 254 additions and 17 deletions

View File

@@ -168,6 +168,15 @@
</if>
limit #{start},#{pageSize}
</select>
<select id="getContributeCount" resultType="com.landaiqing.subject.infra.basic.entity.SubjectInfo">
select count(1) as subjectCount,
created_by as createdBy
from subject_info
where is_deleted = 0
and created_by is not null
group by created_by
limit 0,5
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">