添加主播七日数据接口
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user