1.等级筛选多选

This commit is contained in:
2025-08-01 13:28:19 +08:00
parent 5f1ef25d13
commit 2dc363ab13
5 changed files with 17 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ public class EmployeeHostsPageReqVO extends PageParam {
private Long userId;
@Schema(description = "主播等级")
private String hostsLevel;
private List<String> hostsLevel;
@Schema(description = "主播金币")
private Integer[] hostsCoins;

View File

@@ -18,7 +18,7 @@ public class NewHostsPageReqVO extends PageParam {
private String hostsId;
@Schema(description = "主播等级")
private String hostsLevel;
private List<String> hostsLevel;
@Schema(description = "主播金币")
private Integer hostsCoins;

View File

@@ -22,8 +22,6 @@ import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
/**
* 主播数据 Service 实现类

View File

@@ -78,10 +78,12 @@
and operation_status =#{req.operationStatus,jdbcType=INTEGER}
</if>
<!-- 主播 Id 模糊搜索 -->
<if test="req.hostsId != '' and req.hostsId != null ">
and ns.hosts_id like concat(#{req.hostsId,jdbcType=VARCHAR},'%')
<if test="req.hostsLevel != null and req.hostsLevel.size() > 0">
AND ns.hosts_level IN
<foreach collection="req.hostsLevel" item="level" open="(" separator="," close=")">
#{level, jdbcType=VARCHAR}
</foreach>
</if>
<!-- 主播等级筛选 -->
<if test="req.hostsLevel != null and req.hostsLevel != ''">
and ns.hosts_level =#{req.hostsLevel,jdbcType=VARCHAR}
@@ -206,8 +208,11 @@
and ns.hosts_id like concat(#{req.hostsId,jdbcType=VARCHAR},'%')
</if>
<!-- 主播等级筛选 -->
<if test="req.hostsLevel != null and req.hostsLevel != ''">
and ns.hosts_level =#{req.hostsLevel,jdbcType=VARCHAR}
<if test="req.hostsLevel != null and req.hostsLevel.size() > 0">
AND ns.hosts_level IN
<foreach collection="req.hostsLevel" item="level" open="(" separator="," close=")">
#{level, jdbcType=VARCHAR}
</foreach>
</if>
<!-- 今日主播金币筛选 -->
<if test="req.hostsCoinsMin != null and req.hostsCoinsMax == null ">

View File

@@ -35,8 +35,11 @@
and ns.is_assigned =#{req.isAssigned,jdbcType=INTEGER}
</if>
<!-- 主播等级筛选 -->
<if test="req.hostsLevel != null and req.hostsLevel != ''">
and ns.hosts_level =#{req.hostsLevel,jdbcType=VARCHAR}
<if test="req.hostsLevel != null and req.hostsLevel.size() > 0">
AND ns.hosts_level IN
<foreach collection="req.hostsLevel" item="level" open="(" separator="," close=")">
#{level, jdbcType=VARCHAR}
</foreach>
</if>
<if test="req.aiOperation != null ">
and ns.ai_operation = #{req.aiOperation,jdbcType=TINYINT}