2025-06-11 14:45:40 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace= "com.yupi.springbootinit.mapper.NewHostsMapper" >
<resultMap id= "BaseResultMap" type= "com.yupi.springbootinit.model.entity.NewHosts" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
<!-- @Table server_new_hosts -->
2025-06-11 14:45:40 +08:00
<id column= "id" jdbcType= "BIGINT" property= "id" />
<result column= "hosts_id" jdbcType= "VARCHAR" property= "hostsId" />
<result column= "hosts_level" jdbcType= "VARCHAR" property= "hostsLevel" />
<result column= "hosts_coins" jdbcType= "INTEGER" property= "hostsCoins" />
<result column= "Invitation_type" jdbcType= "INTEGER" property= "invitationType" />
<result column= "fans" jdbcType= "INTEGER" property= "fans" />
<result column= "fllowernum" jdbcType= "INTEGER" property= "fllowernum" />
<result column= "yesterday_coins" jdbcType= "INTEGER" property= "yesterdayCoins" />
<result column= "country" jdbcType= "VARCHAR" property= "country" />
<result column= "hosts_kind" jdbcType= "VARCHAR" property= "hostsKind" />
<result column= "tenant_id" jdbcType= "BIGINT" property= "tenantId" />
2025-06-11 18:29:06 +08:00
<result column= "creator" jdbcType= "BIGINT" property= "creator" />
2025-06-11 14:45:40 +08:00
<result column= "create_time" jdbcType= "TIMESTAMP" property= "createTime" />
<result column= "updater" jdbcType= "VARCHAR" property= "updater" />
2025-06-12 21:11:36 +08:00
<result column= "online_fans" jdbcType= "INTEGER" property= "onlineFans" />
2025-06-11 14:45:40 +08:00
<result column= "update_time" jdbcType= "TIMESTAMP" property= "updateTime" />
2025-06-13 15:05:01 +08:00
<result column= "user_id" jdbcType= "BIGINT" property= "userId" />
2025-06-11 14:45:40 +08:00
</resultMap>
2025-06-12 19:43:16 +08:00
<resultMap id= "HostInfoVo" type= "com.yupi.springbootinit.model.vo.hosts.NewHostsVO" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
<!-- @Table server_new_hosts -->
2025-06-12 19:43:16 +08:00
<id column= "id" jdbcType= "BIGINT" property= "id" />
<result column= "hosts_id" jdbcType= "VARCHAR" property= "hostsId" />
<result column= "hosts_level" jdbcType= "VARCHAR" property= "hostsLevel" />
<result column= "hosts_coins" jdbcType= "INTEGER" property= "hostsCoins" />
<result column= "Invitation_type" jdbcType= "INTEGER" property= "invitationType" />
<result column= "fans" jdbcType= "INTEGER" property= "fans" />
<result column= "fllowernum" jdbcType= "INTEGER" property= "fllowernum" />
<result column= "yesterday_coins" jdbcType= "INTEGER" property= "yesterdayCoins" />
<result column= "country" jdbcType= "VARCHAR" property= "country" />
<result column= "hosts_kind" jdbcType= "VARCHAR" property= "hostsKind" />
2025-06-12 21:11:36 +08:00
<result column= "online_fans" jdbcType= "INTEGER" property= "onlineFans" />
2025-06-12 19:43:16 +08:00
<result column= "create_time" jdbcType= "TIMESTAMP" property= "createTime" />
</resultMap>
2025-06-11 14:45:40 +08:00
<sql id= "Base_Column_List" >
<!-- @mbg.generated -->
id, hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum, yesterday_coins,
2025-06-13 15:05:01 +08:00
country, hosts_kind, tenant_id, creator, create_time, updater, update_time, user_id
2025-06-11 14:45:40 +08:00
</sql>
<select id= "selectByPrimaryKey" parameterType= "java.lang.Long" resultMap= "BaseResultMap" >
<!-- @mbg.generated -->
select
<include refid= "Base_Column_List" />
2025-06-16 13:34:32 +08:00
from server_new_hosts
2025-06-11 14:45:40 +08:00
where id = #{id,jdbcType=BIGINT}
</select>
<delete id= "deleteByPrimaryKey" parameterType= "java.lang.Long" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
delete from server_new_hosts
2025-06-11 14:45:40 +08:00
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id= "insert" keyColumn= "id" keyProperty= "id" parameterType= "com.yupi.springbootinit.model.entity.NewHosts" useGeneratedKeys= "true" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
insert into server_new_hosts (hosts_id, hosts_level, hosts_coins,
2025-06-11 14:45:40 +08:00
Invitation_type, fans, fllowernum,
yesterday_coins, country, hosts_kind,
2025-06-13 15:05:01 +08:00
tenant_id, creator, user_id
2025-06-11 18:19:40 +08:00
)
2025-06-11 14:45:40 +08:00
values (#{hostsId,jdbcType=VARCHAR}, #{hostsLevel,jdbcType=VARCHAR}, #{hostsCoins,jdbcType=INTEGER},
#{invitationType,jdbcType=INTEGER}, #{fans,jdbcType=INTEGER}, #{fllowernum,jdbcType=INTEGER},
#{yesterdayCoins,jdbcType=INTEGER}, #{country,jdbcType=VARCHAR}, #{hostsKind,jdbcType=VARCHAR},
2025-06-13 15:05:01 +08:00
#{tenantId,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT})
2025-06-11 14:45:40 +08:00
</insert>
<insert id= "insertSelective" keyColumn= "id" keyProperty= "id" parameterType= "com.yupi.springbootinit.model.entity.NewHosts" useGeneratedKeys= "true" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
insert into server_new_hosts
2025-06-11 14:45:40 +08:00
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
<if test= "hostsId != null" >
hosts_id,
</if>
<if test= "hostsLevel != null" >
hosts_level,
</if>
<if test= "hostsCoins != null" >
hosts_coins,
</if>
<if test= "invitationType != null" >
Invitation_type,
</if>
<if test= "fans != null" >
fans,
</if>
<if test= "fllowernum != null" >
fllowernum,
</if>
<if test= "yesterdayCoins != null" >
yesterday_coins,
</if>
<if test= "country != null" >
country,
</if>
<if test= "hostsKind != null" >
hosts_kind,
</if>
<if test= "tenantId != null" >
tenant_id,
</if>
<if test= "creator != null" >
creator,
</if>
<if test= "createTime != null" >
create_time,
</if>
<if test= "updater != null" >
updater,
</if>
<if test= "updateTime != null" >
update_time,
</if>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "hostsId != null" >
#{hostsId,jdbcType=VARCHAR},
</if>
<if test= "hostsLevel != null" >
#{hostsLevel,jdbcType=VARCHAR},
</if>
<if test= "hostsCoins != null" >
#{hostsCoins,jdbcType=INTEGER},
</if>
<if test= "invitationType != null" >
#{invitationType,jdbcType=INTEGER},
</if>
<if test= "fans != null" >
#{fans,jdbcType=INTEGER},
</if>
<if test= "fllowernum != null" >
#{fllowernum,jdbcType=INTEGER},
</if>
<if test= "yesterdayCoins != null" >
#{yesterdayCoins,jdbcType=INTEGER},
</if>
<if test= "country != null" >
#{country,jdbcType=VARCHAR},
</if>
<if test= "hostsKind != null" >
#{hostsKind,jdbcType=VARCHAR},
</if>
<if test= "tenantId != null" >
#{tenantId,jdbcType=BIGINT},
</if>
<if test= "creator != null" >
2025-06-11 18:29:06 +08:00
#{creator,jdbcType=BIGINT},
2025-06-11 14:45:40 +08:00
</if>
<if test= "createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test= "updater != null" >
#{updater,jdbcType=VARCHAR},
</if>
<if test= "updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id= "updateByPrimaryKeySelective" parameterType= "com.yupi.springbootinit.model.entity.NewHosts" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
update server_new_hosts
2025-06-11 14:45:40 +08:00
<set >
<if test= "hostsId != null" >
hosts_id = #{hostsId,jdbcType=VARCHAR},
</if>
<if test= "hostsLevel != null" >
hosts_level = #{hostsLevel,jdbcType=VARCHAR},
</if>
<if test= "hostsCoins != null" >
hosts_coins = #{hostsCoins,jdbcType=INTEGER},
</if>
<if test= "invitationType != null" >
Invitation_type = #{invitationType,jdbcType=INTEGER},
</if>
<if test= "fans != null" >
fans = #{fans,jdbcType=INTEGER},
</if>
<if test= "fllowernum != null" >
fllowernum = #{fllowernum,jdbcType=INTEGER},
</if>
<if test= "yesterdayCoins != null" >
yesterday_coins = #{yesterdayCoins,jdbcType=INTEGER},
</if>
<if test= "country != null" >
country = #{country,jdbcType=VARCHAR},
</if>
<if test= "hostsKind != null" >
hosts_kind = #{hostsKind,jdbcType=VARCHAR},
</if>
<if test= "tenantId != null" >
tenant_id = #{tenantId,jdbcType=BIGINT},
</if>
<if test= "creator != null" >
creator = #{creator,jdbcType=INTEGER},
</if>
<if test= "createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test= "updater != null" >
updater = #{updater,jdbcType=VARCHAR},
</if>
<if test= "updateTime != null" >
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id= "updateByPrimaryKey" parameterType= "com.yupi.springbootinit.model.entity.NewHosts" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
update server_new_hosts
2025-06-11 14:45:40 +08:00
set hosts_id = #{hostsId,jdbcType=VARCHAR},
hosts_level = #{hostsLevel,jdbcType=VARCHAR},
hosts_coins = #{hostsCoins,jdbcType=INTEGER},
Invitation_type = #{invitationType,jdbcType=INTEGER},
fans = #{fans,jdbcType=INTEGER},
fllowernum = #{fllowernum,jdbcType=INTEGER},
yesterday_coins = #{yesterdayCoins,jdbcType=INTEGER},
country = #{country,jdbcType=VARCHAR},
hosts_kind = #{hostsKind,jdbcType=VARCHAR},
tenant_id = #{tenantId,jdbcType=BIGINT},
creator = #{creator,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
updater = #{updater,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<insert id= "batchInsert" keyColumn= "id" keyProperty= "id" parameterType= "map" >
<!-- @mbg.generated -->
2025-06-16 13:34:32 +08:00
insert into server_new_hosts
2025-06-11 14:45:40 +08:00
(hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum, yesterday_coins,
2025-06-13 15:05:01 +08:00
country, hosts_kind, tenant_id, creator, user_id)
2025-06-11 14:45:40 +08:00
values
<foreach collection= "list" item= "item" separator= "," >
(#{item.hostsId,jdbcType=VARCHAR}, #{item.hostsLevel,jdbcType=VARCHAR}, #{item.hostsCoins,jdbcType=INTEGER},
#{item.invitationType,jdbcType=INTEGER}, #{item.fans,jdbcType=INTEGER}, #{item.fllowernum,jdbcType=INTEGER},
#{item.yesterdayCoins,jdbcType=INTEGER}, #{item.country,jdbcType=VARCHAR}, #{item.hostsKind,jdbcType=VARCHAR},
2025-06-13 15:05:01 +08:00
#{item.tenantId,jdbcType=BIGINT}, #{item.creator,jdbcType=INTEGER},#{item.userId,jdbcType=BIGINT})
2025-06-11 14:45:40 +08:00
</foreach>
</insert>
2025-06-12 19:43:16 +08:00
<select id= "selectPageByCondition" resultMap= "HostInfoVo" >
2025-06-16 13:34:32 +08:00
select ns.id,hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum,
2025-06-25 14:20:32 +08:00
yesterday_coins,ns.create_time, country, online_fans,hosts_kind from server_new_hosts ns left join server_country_info ci ON ns.country = ci.country_name
2025-06-23 13:03:55 +08:00
where ns.tenant_id=#{hostInfoDTO.tenantId}
2025-06-13 13:29:06 +08:00
<!-- 主播国家筛选 -->
2025-06-12 19:43:16 +08:00
<if test= "hostInfoDTO.country!= '' and hostInfoDTO.country != null" >
2025-06-16 13:34:32 +08:00
and ci.country_group_name =#{hostInfoDTO.country,jdbcType=VARCHAR}
2025-06-12 19:43:16 +08:00
</if>
2025-06-13 13:29:06 +08:00
<!-- 按照入库时间筛选主播 -->
2025-06-12 19:43:16 +08:00
<if test= "hostInfoDTO.createTime != null" >
2025-06-16 13:34:32 +08:00
and DATE(ns.create_time) =#{hostInfoDTO.createTime}
2025-06-12 19:43:16 +08:00
</if>
2025-06-13 13:29:06 +08:00
<!-- 主播 Id 模糊搜索 -->
2025-06-12 19:43:16 +08:00
<if test= "hostInfoDTO.hostsId != '' and hostInfoDTO.hostsId != null " >
2025-06-16 13:34:32 +08:00
and ns.hosts_id like concat(#{hostInfoDTO.hostsId,jdbcType=VARCHAR},'%')
2025-06-12 19:43:16 +08:00
</if>
<!-- 今日主播金币筛选 -->
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.hostsCoinsMin != null and hostInfoDTO.hostsCoinsMax == null and hostInfoDTO.hostsCoinsMax != '' " >
2025-06-16 13:34:32 +08:00
and ns.hosts_coins >=#{hostInfoDTO.hostsCoinsMin,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.hostsCoinsMax != null and hostInfoDTO.hostsCoinsMin == null and hostInfoDTO.hostsCoinsMin !='' " >
2025-06-16 13:34:32 +08:00
and ns.hosts_coins < =#{hostInfoDTO.hostsCoinsMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
<if test= "hostInfoDTO.hostsCoinsMin != null and hostInfoDTO.hostsCoinsMax != null " >
2025-06-16 13:34:32 +08:00
and ns.hosts_coins between #{hostInfoDTO.hostsCoinsMin,jdbcType=INTEGER} and #{hostInfoDTO.hostsCoinsMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
<!-- 昨日主播金币筛选 -->
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.yesterdayCoinsMin != null and hostInfoDTO.yesterdayCoinsMax == null and hostInfoDTO.yesterdayCoinsMax != ''" >
2025-06-16 13:34:32 +08:00
and ns.yesterday_coins >=#{hostInfoDTO.yesterdayCoinsMin,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.yesterdayCoinsMax != null and hostInfoDTO.yesterdayCoinsMin == null and hostInfoDTO.yesterdayCoinsMin != '' " >
2025-06-16 13:34:32 +08:00
and ns.yesterday_coins < =#{hostInfoDTO.yesterdayCoinsMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
<if test= "hostInfoDTO.yesterdayCoinsMin != null and hostInfoDTO.yesterdayCoinsMax != null " >
2025-06-16 13:34:32 +08:00
and ns.yesterday_coins between #{hostInfoDTO.yesterdayCoinsMin,jdbcType=INTEGER} and #{hostInfoDTO.yesterdayCoinsMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
<!-- 主播粉丝数筛选 -->
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.fansMin != null and hostInfoDTO.fansMax == null and hostInfoDTO.fansMax != ''" >
2025-06-16 13:34:32 +08:00
and ns.fans >=#{hostInfoDTO.fansMin,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.fansMax != null and hostInfoDTO.fansMin == null and hostInfoDTO.fansMin != '' " >
and ns.fans < =#{hostInfoDTO.fansMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
<if test= "hostInfoDTO.fansMin != null and hostInfoDTO.fansMax != null " >
2025-06-16 13:34:32 +08:00
and ns.fans between #{hostInfoDTO.fansMin,jdbcType=INTEGER} and #{hostInfoDTO.fansMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
2025-06-12 21:11:36 +08:00
<!-- 主播关注筛选 -->
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax == null and hostInfoDTO.fllowernumMax != ''" >
2025-06-16 13:34:32 +08:00
and ns.fllowernum >=#{hostInfoDTO.fllowernumMin,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.fllowernumMax != null and hostInfoDTO.fllowernumMin == null and hostInfoDTO.fllowernumMin != ''" >
2025-06-16 13:34:32 +08:00
and ns.fllowernum < =#{hostInfoDTO.fllowernumMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
<if test= "hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax != null " >
2025-06-16 13:34:32 +08:00
and ns.fllowernum between #{hostInfoDTO.fllowernumMin,jdbcType=INTEGER} and #{hostInfoDTO.fllowernumMax,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
2025-06-12 21:11:36 +08:00
<!-- 主播在线人数筛选 -->
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.onlineFansMin != null and hostInfoDTO.onlineFansMax == null and hostInfoDTO.onlineFansMax != '' " >
2025-06-16 13:34:32 +08:00
and ns.online_fans >=#{hostInfoDTO.onlineFansMin,jdbcType=INTEGER}
2025-06-12 21:11:36 +08:00
</if>
2025-06-23 15:43:11 +08:00
<if test= "hostInfoDTO.onlineFansMax != null and hostInfoDTO.onlineFansMin == null and hostInfoDTO.onlineFansMin != ''" >
and ns.online_fans < = #{hostInfoDTO.onlineFansMax,jdbcType=INTEGER}
2025-06-12 21:11:36 +08:00
</if>
<if test= "hostInfoDTO.onlineFansMin != null and hostInfoDTO.onlineFansMax != null " >
2025-06-16 13:34:32 +08:00
and ns.online_fans between #{hostInfoDTO.onlineFansMin,jdbcType=INTEGER} and #{hostInfoDTO.onlineFansMax,jdbcType=INTEGER}
2025-06-12 21:11:36 +08:00
</if>
2025-06-12 19:43:16 +08:00
<!-- 邀请类筛选 -->
<if test= "hostInfoDTO.invitationType != null" >
2025-06-16 13:34:32 +08:00
and ns.Invitation_type =#{hostInfoDTO.invitationType,jdbcType=INTEGER}
2025-06-12 19:43:16 +08:00
</if>
<!-- 排序类型 -->
order by
<choose >
<!-- 传空和默认的情况下按照时间降序排序 -->
2025-06-26 17:39:43 +08:00
<when test= "hostInfoDTO.sortName == '' or hostInfoDTO.sortName == null" >
2025-06-16 13:34:32 +08:00
ns.create_time desc
2025-06-12 19:43:16 +08:00
</when>
<!-- sortNmae 有值的情况下排序 -->
2025-06-26 17:39:43 +08:00
<when test= "hostInfoDTO.sortName != null or hostInfoDTO.sort != null " >
2025-06-23 13:03:55 +08:00
<if test= "hostInfoDTO.sortName == 'createTime' and hostInfoDTO.sort != null" >
ns.create_time ${hostInfoDTO.sort}
</if>
2025-06-12 19:43:16 +08:00
<!-- 昨日主播金币条件排序 -->
<if test= "hostInfoDTO.sortName == 'yesterdayCoins' and hostInfoDTO.sort != null" >
2025-06-16 13:34:32 +08:00
ns.yesterday_coins ${hostInfoDTO.sort}
2025-06-12 19:43:16 +08:00
</if>
<!-- 主播金币条件排序 -->
<if test= "hostInfoDTO.sortName == 'hostsCoins' and hostInfoDTO.sort != null" >
2025-06-16 13:34:32 +08:00
ns.hosts_coins ${hostInfoDTO.sort}
2025-06-12 19:43:16 +08:00
</if>
<!-- 主播粉丝条件排序 -->
<if test= "hostInfoDTO.sortName == 'fans' and hostInfoDTO.sort != null" >
2025-06-16 13:34:32 +08:00
ns.fans ${hostInfoDTO.sort}
2025-06-12 19:43:16 +08:00
</if>
<!-- 主播关注数量排序 -->
<if test= "hostInfoDTO.sortName == 'fllowernum' and hostInfoDTO.sort != null" >
2025-06-16 13:34:32 +08:00
ns.fllowernum ${hostInfoDTO.sort}
2025-06-12 19:43:16 +08:00
</if>
2025-06-12 21:11:36 +08:00
<!-- 主播直播间在线数量排序 -->
<if test= "hostInfoDTO.sortName == 'onlineFans' and hostInfoDTO.sort != null" >
2025-06-23 15:43:11 +08:00
ns.online_fans ${hostInfoDTO.sort}
2025-06-12 21:11:36 +08:00
</if>
2025-06-12 19:43:16 +08:00
</when>
</choose>
</select>
2025-06-17 17:59:45 +08:00
2025-06-17 18:26:59 +08:00
<!-- <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> -->
2025-06-11 14:45:40 +08:00
</mapper>