1.去除主播更新数据校验条件

This commit is contained in:
2025-07-08 20:29:45 +08:00
parent 80c2decba4
commit 443c19375c
6 changed files with 5 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ public class EmployeeBigBrotherController {
@PutMapping("/update")
@Operation(summary = "更新大哥数据员工业务")
@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);
return success(true);
}

View File

@@ -2,8 +2,6 @@ package cn.iocoder.yudao.module.tkdata.controller.admin.employeebigbrother.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
@Schema(description = "管理后台 - 大哥数据员工业务新增/修改 Request VO")
@Data

View File

@@ -48,7 +48,7 @@ public class EmployeeHostsController {
@PutMapping("/update")
@Operation(summary = "更新员工分配主播")
@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);
return success(true);
}

View File

@@ -12,8 +12,7 @@ public class EmployeeHostsSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14489")
private Long id;
@Schema(description = "主播id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26407")
@NotEmpty(message = "主播id不能为空")
@Schema(description = "主播id", example = "26407")
private String hostsId;
@Schema(description = "用户 Id", example = "22763")

View File

@@ -28,7 +28,7 @@ public interface EmployeeBigBrotherService {
*
* @param updateReqVO 更新信息
*/
void updateEmployeeBigBrother(@Valid EmployeeBigBrotherSaveReqVO updateReqVO);
void updateEmployeeBigBrother( EmployeeBigBrotherSaveReqVO updateReqVO);
/**
* 删除大哥数据员工业务

View File

@@ -27,7 +27,7 @@ public interface EmployeeHostsService {
*
* @param updateReqVO 更新信息
*/
void updateEmployeeHosts(@Valid EmployeeHostsSaveReqVO updateReqVO);
void updateEmployeeHosts( EmployeeHostsSaveReqVO updateReqVO);
/**
* 删除员工分配主播表结构和主播表相同多了user_id 字段来区分所属员工