添加主播七日数据接口

This commit is contained in:
2025-06-17 17:59:45 +08:00
parent 023a62e13b
commit 047ceaea21
7 changed files with 97 additions and 0 deletions

View File

@@ -346,4 +346,29 @@
</when>
</choose>
</select>
<select id="selectSevenDaysData" resultType="com.yupi.springbootinit.model.vo.hosts.SevenDaysData">
select create_time as createTime,
<choose>
<when test="historyDataName != null and historyDataName != ''">
<if test="historyDataName == 'fans' ">
fans dataContent
</if>
<if test="historyDataName == 'hostsCoins' ">
hosts_coins as dataContent
</if>
<if test="historyDataName == 'fllowernum'">
fllowernum as dataContent
</if>
<if test="historyDataName == 'onlineFans'">
online_fans as dataContent
</if>
</when>
</choose>
from server_new_hosts
where hosts_id =#{hostsId,jdbcType=VARCHAR}
and creator =#{userId,jdbcType=BIGINT}
and tenant_id =#{tenantId,jdbcType=BIGINT}
ORDER BY create_time DESC LIMIT 7
</select>
</mapper>