1.等级筛选多选
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 实现类
|
||||
|
||||
@@ -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 ">
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user