1.大哥数据添加是否分配字段
This commit is contained in:
@@ -51,6 +51,8 @@ public class BigBrotherPageReqVO extends PageParam {
|
|||||||
@Schema(description = "该数据所属的账号id", example = "30487")
|
@Schema(description = "该数据所属的账号id", example = "30487")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
|
@Schema(description = "是否分配", example = "0")
|
||||||
|
private Byte isAssigned;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 大哥的等级
|
* 大哥的等级
|
||||||
|
|||||||
@@ -68,4 +68,7 @@ public class BigBrotherRespVO {
|
|||||||
@ExcelProperty("创建时间")
|
@ExcelProperty("创建时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
@Schema(description = "是否分配")
|
||||||
|
@ExcelProperty("是否分配")
|
||||||
|
private Byte isAssigned;
|
||||||
}
|
}
|
||||||
@@ -52,4 +52,7 @@ public class BigBrotherSaveReqVO {
|
|||||||
@Schema(description = "操作状态", example = "30487")
|
@Schema(description = "操作状态", example = "30487")
|
||||||
private Byte operation_status;
|
private Byte operation_status;
|
||||||
|
|
||||||
|
@Schema(description = "是否分配", example = "0")
|
||||||
|
private Byte isAssigned;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -80,4 +80,6 @@ public class BigBrotherDO extends BaseDO {
|
|||||||
* 该数据所属的租户id
|
* 该数据所属的租户id
|
||||||
*/
|
*/
|
||||||
private Long tenantId;
|
private Long tenantId;
|
||||||
|
|
||||||
|
private Byte isAssigned;
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<select id="selectPageWithXML" resultType="cn.iocoder.yudao.module.tkdata.dal.dataobject.bigbrother.BigBrotherDO">
|
<select id="selectPageWithXML" resultType="cn.iocoder.yudao.module.tkdata.dal.dataobject.bigbrother.BigBrotherDO">
|
||||||
select sbr.id, sbr.display_id, sbr.user_id_str,sbr.nickname,sbr.level,sbr.hostcoins,
|
select sbr.id, sbr.display_id, sbr.user_id_str,sbr.nickname,sbr.level,sbr.hostcoins,
|
||||||
sbr.follower_count, sbr.following_count, sbr.region, sbr.historic_high_coins, sbr.total_gift_coins,
|
sbr.follower_count, sbr.following_count, sbr.region, sbr.historic_high_coins, sbr.total_gift_coins,
|
||||||
sbr.host_display_id,sbr.create_time from
|
sbr.host_display_id,sbr.create_time, sbr.is_assigned from
|
||||||
server_big_brother sbr left join server_country_info ci ON sbr.region = ci.country_name
|
server_big_brother sbr left join server_country_info ci ON sbr.region = ci.country_name
|
||||||
where sbr.tenant_id=#{dto.tenantId}
|
where sbr.tenant_id=#{dto.tenantId}
|
||||||
and sbr.deleted = 0
|
and sbr.deleted = 0
|
||||||
@@ -87,6 +87,9 @@
|
|||||||
<if test="dto.levelMin != null and dto.levelMax != null " >
|
<if test="dto.levelMin != null and dto.levelMax != null " >
|
||||||
and sbr.level between #{dto.levelMin,jdbcType=INTEGER} and #{dto.levelMax,jdbcType=INTEGER}
|
and sbr.level between #{dto.levelMin,jdbcType=INTEGER} and #{dto.levelMax,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="dto.isAssigned != null">
|
||||||
|
and sbr.is_assigned =#{dto.isAssigned}
|
||||||
|
</if>
|
||||||
group by sbr.display_id
|
group by sbr.display_id
|
||||||
order by
|
order by
|
||||||
<!-- 排序类型 -->
|
<!-- 排序类型 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user