1.取消displayId的条件校验

This commit is contained in:
2025-07-07 19:05:36 +08:00
parent eee82c36fa
commit 1d71bd8ccb
2 changed files with 19 additions and 23 deletions

View File

@@ -1,35 +1,32 @@
package cn.iocoder.yudao.module.tkdata.controller.admin.employeebigbrother;
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
import cn.iocoder.yudao.module.tkdata.controller.admin.employeebigbrother.vo.EmployeeBigBrotherPageReqVO;
import cn.iocoder.yudao.module.tkdata.controller.admin.employeebigbrother.vo.EmployeeBigBrotherRespVO;
import cn.iocoder.yudao.module.tkdata.controller.admin.employeebigbrother.vo.EmployeeBigBrotherSaveReqVO;
import cn.iocoder.yudao.module.tkdata.dal.dataobject.employeebigbrother.EmployeeBigBrotherDO;
import cn.iocoder.yudao.module.tkdata.service.employeebigbrother.EmployeeBigBrotherService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.*;
import javax.validation.*;
import javax.servlet.http.*;
import java.util.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;
import java.util.List;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
@Tag(name = "管理后台 - 大哥数据员工业务")
@@ -122,9 +119,9 @@ public class EmployeeBigBrotherController {
@PutMapping("/batch_update")
@Operation(summary = "批量更新大哥数据员工业务")
@Operation(summary = "批量更新已分配给员工的大哥数据")
@PreAuthorize("@ss.hasPermission('server:employee-big-brother:batchupdate')")
public CommonResult<Boolean> batchupdateEmployeeBigBrother(@Valid @RequestBody List<EmployeeBigBrotherSaveReqVO> updateReqVO) {
public CommonResult<Boolean> batchupdateEmployeeBigBrother(@RequestBody List<EmployeeBigBrotherSaveReqVO> updateReqVO) {
employeeBigBrotherService.batchUpdateEmployeeBigBrother(updateReqVO);
return success(true);
}

View File

@@ -12,8 +12,7 @@ public class EmployeeBigBrotherSaveReqVO {
@Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31905")
private Integer id;
@Schema(description = "大哥的display_id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15943")
@NotEmpty(message = "大哥的display_id不能为空")
@Schema(description = "大哥的display_id", example = "15943")
private String displayId;
@Schema(description = "大哥的用户id")