1.分配主播给员工时默认设置操作状态
This commit is contained in:
@@ -2,11 +2,10 @@ package cn.iocoder.yudao.module.tkdata.controller.admin.employeehosts.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
|
||||
@Schema(description = "管理后台 - 员工分配主播 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
|
||||
@@ -46,7 +46,7 @@ public class EmployeeHostsSaveReqVO {
|
||||
@Schema(description = "直播类型 娱乐,游戏 ")
|
||||
private String hostsKind;
|
||||
|
||||
@Schema(description = "操作状态", example = "1")
|
||||
@Schema(description = "操作状态", example = "1" ,defaultValue = "0")
|
||||
private Integer operationStatus;
|
||||
|
||||
@Schema(description = "备注", example = "1")
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package cn.iocoder.yudao.module.tkdata.controller.admin.newhosts.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 主播数据 Response VO")
|
||||
@Data
|
||||
|
||||
@@ -114,7 +114,9 @@ public class EmployeeHostsServiceImpl implements EmployeeHostsService {
|
||||
newHostsDO.setUserId(employeeHostsSaveReqVO.getUserId());
|
||||
newHostsDO.setIsAssigned(1);
|
||||
newHostsDOArrayList.add(newHostsDO);
|
||||
employeeHostsDOS.add(BeanUtils.toBean(employeeHostsSaveReqVO, EmployeeHostsDO.class));
|
||||
EmployeeHostsDO employeeHostsDO = BeanUtils.toBean(employeeHostsSaveReqVO, EmployeeHostsDO.class);
|
||||
employeeHostsDO.setOperationStatus(0);
|
||||
employeeHostsDOS.add(employeeHostsDO);
|
||||
}
|
||||
int i = employeeHostsMapper.batchInsertIgnore(employeeHostsDOS);
|
||||
newHostsMapper.updateBatch(newHostsDOArrayList);
|
||||
|
||||
Reference in New Issue
Block a user