1.去除主播更新数据校验条件
This commit is contained in:
@@ -48,7 +48,7 @@ public class EmployeeBigBrotherController {
|
|||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新大哥数据员工业务")
|
@Operation(summary = "更新大哥数据员工业务")
|
||||||
@PreAuthorize("@ss.hasPermission('server:employee-big-brother:update')")
|
@PreAuthorize("@ss.hasPermission('server:employee-big-brother:update')")
|
||||||
public CommonResult<Boolean> updateEmployeeBigBrother(@Valid @RequestBody EmployeeBigBrotherSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateEmployeeBigBrother(@RequestBody EmployeeBigBrotherSaveReqVO updateReqVO) {
|
||||||
employeeBigBrotherService.updateEmployeeBigBrother(updateReqVO);
|
employeeBigBrotherService.updateEmployeeBigBrother(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ package cn.iocoder.yudao.module.tkdata.controller.admin.employeebigbrother.vo;
|
|||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
|
||||||
import javax.validation.constraints.*;
|
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 大哥数据员工业务新增/修改 Request VO")
|
@Schema(description = "管理后台 - 大哥数据员工业务新增/修改 Request VO")
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class EmployeeHostsController {
|
|||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新员工分配主播")
|
@Operation(summary = "更新员工分配主播")
|
||||||
@PreAuthorize("@ss.hasPermission('server:employee-hosts:update')")
|
@PreAuthorize("@ss.hasPermission('server:employee-hosts:update')")
|
||||||
public CommonResult<Boolean> updateEmployeeHosts(@Valid @RequestBody EmployeeHostsSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateEmployeeHosts( @RequestBody EmployeeHostsSaveReqVO updateReqVO) {
|
||||||
employeeHostsService.updateEmployeeHosts(updateReqVO);
|
employeeHostsService.updateEmployeeHosts(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ public class EmployeeHostsSaveReqVO {
|
|||||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14489")
|
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14489")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "主播id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26407")
|
@Schema(description = "主播id", example = "26407")
|
||||||
@NotEmpty(message = "主播id不能为空")
|
|
||||||
private String hostsId;
|
private String hostsId;
|
||||||
|
|
||||||
@Schema(description = "用户 Id", example = "22763")
|
@Schema(description = "用户 Id", example = "22763")
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ public interface EmployeeBigBrotherService {
|
|||||||
*
|
*
|
||||||
* @param updateReqVO 更新信息
|
* @param updateReqVO 更新信息
|
||||||
*/
|
*/
|
||||||
void updateEmployeeBigBrother(@Valid EmployeeBigBrotherSaveReqVO updateReqVO);
|
void updateEmployeeBigBrother( EmployeeBigBrotherSaveReqVO updateReqVO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除大哥数据员工业务
|
* 删除大哥数据员工业务
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public interface EmployeeHostsService {
|
|||||||
*
|
*
|
||||||
* @param updateReqVO 更新信息
|
* @param updateReqVO 更新信息
|
||||||
*/
|
*/
|
||||||
void updateEmployeeHosts(@Valid EmployeeHostsSaveReqVO updateReqVO);
|
void updateEmployeeHosts( EmployeeHostsSaveReqVO updateReqVO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除员工分配主播表,结构和主播表相同,多了user_id 字段来区分所属员工
|
* 删除员工分配主播表,结构和主播表相同,多了user_id 字段来区分所属员工
|
||||||
|
|||||||
Reference in New Issue
Block a user