1.添加主播 flag 旗帜字段
This commit is contained in:
@@ -126,4 +126,7 @@ public class EmployeeHostsPageReqVO extends PageParam {
|
||||
private String sortName;
|
||||
|
||||
private Long tenantId;
|
||||
|
||||
@Schema(description = "旗帜")
|
||||
private String flag;
|
||||
}
|
||||
@@ -76,4 +76,7 @@ public class EmployeeHostsRespVO {
|
||||
|
||||
@Schema(description = "uid", example = "1")
|
||||
private String uid;
|
||||
|
||||
@Schema(description = "旗帜")
|
||||
private String flag;
|
||||
}
|
||||
@@ -51,4 +51,6 @@ public class EmployeeHostsSaveReqVO {
|
||||
@Schema(description = "备注", example = "1")
|
||||
private String remake;
|
||||
|
||||
@Schema(description = "旗帜")
|
||||
private String flag;
|
||||
}
|
||||
@@ -47,5 +47,8 @@ public class AllocationHostsSaveReqVO {
|
||||
@Schema(description = "用户 Id", example = "10967")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "旗帜")
|
||||
private String flag;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -138,4 +138,7 @@ public class NewHostsPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "是否删除原数据")
|
||||
private Boolean deleteFlag;
|
||||
|
||||
@Schema(description = "旗帜")
|
||||
private String flag;
|
||||
}
|
||||
@@ -87,4 +87,7 @@ public class NewHostsRespVO {
|
||||
@ExcelProperty("是否建联")
|
||||
private Byte operationStatus;
|
||||
|
||||
@Schema(description = "旗帜")
|
||||
@ExcelProperty("旗帜")
|
||||
private String flag;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.tkdata.controller.admin.newhosts.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
@@ -58,4 +59,6 @@ public class NewHostsSaveReqVO {
|
||||
@Schema(description = "是否建联", example = "1")
|
||||
private Byte operationStatus;
|
||||
|
||||
@Schema(description = "旗帜")
|
||||
private String flag;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.tkdata.dal.dataobject.employeehosts;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
@@ -82,4 +83,6 @@ public class EmployeeHostsDO extends BaseDO {
|
||||
private String uid;
|
||||
|
||||
private Long tenantId;
|
||||
|
||||
private String flag;
|
||||
}
|
||||
@@ -65,12 +65,15 @@ public class EmployeeHostsServiceImpl implements EmployeeHostsService {
|
||||
// 校验存在
|
||||
validateEmployeeHostsExists(updateReqVO.getId());
|
||||
// 更新
|
||||
List<EmployeeHostsDO> employeeHostsDOS = employeeHostsMapper.selectList(new LambdaQueryWrapper<EmployeeHostsDO>().
|
||||
eq(EmployeeHostsDO::getHostsId, updateReqVO.getHostsId())
|
||||
List<EmployeeHostsDO> employeeHostsDOS = employeeHostsMapper.selectList(new LambdaQueryWrapper<EmployeeHostsDO>()
|
||||
.eq(EmployeeHostsDO::getHostsId, updateReqVO.getHostsId())
|
||||
.eq(EmployeeHostsDO::getUserId, updateReqVO.getUserId()));
|
||||
for (EmployeeHostsDO hostsDO : employeeHostsDOS) {
|
||||
hostsDO.setOperationStatus(updateReqVO.getOperationStatus());
|
||||
hostsDO.setRemake(updateReqVO.getRemake());
|
||||
if (updateReqVO.getFlag() != null){
|
||||
hostsDO.setFlag(updateReqVO.getFlag());
|
||||
}
|
||||
}
|
||||
employeeHostsMapper.updateById(employeeHostsDOS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user