1.大哥数据添加是否分配字段

This commit is contained in:
2025-07-07 14:39:48 +08:00
parent 21466e5f86
commit e868054e8f
5 changed files with 14 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ public class BigBrotherPageReqVO extends PageParam {
@Schema(description = "该数据所属的账号id", example = "30487")
private Long userId;
@Schema(description = "是否分配", example = "0")
private Byte isAssigned;
/**
* 大哥的等级

View File

@@ -68,4 +68,7 @@ public class BigBrotherRespVO {
@ExcelProperty("创建时间")
private LocalDateTime createTime;
@Schema(description = "是否分配")
@ExcelProperty("是否分配")
private Byte isAssigned;
}

View File

@@ -52,4 +52,7 @@ public class BigBrotherSaveReqVO {
@Schema(description = "操作状态", example = "30487")
private Byte operation_status;
@Schema(description = "是否分配", example = "0")
private Byte isAssigned;
}

View File

@@ -80,4 +80,6 @@ public class BigBrotherDO extends BaseDO {
* 该数据所属的租户id
*/
private Long tenantId;
private Byte isAssigned;
}

View File

@@ -38,7 +38,7 @@
<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,
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
where sbr.tenant_id=#{dto.tenantId}
and sbr.deleted = 0
@@ -87,6 +87,9 @@
<if test="dto.levelMin != null and dto.levelMax != null " >
and sbr.level between #{dto.levelMin,jdbcType=INTEGER} and #{dto.levelMax,jdbcType=INTEGER}
</if>
<if test="dto.isAssigned != null">
and sbr.is_assigned =#{dto.isAssigned}
</if>
group by sbr.display_id
order by
<!-- 排序类型 -->