| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.*; |
| | | |
| | | @Slf4j |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:qlyInspect:update')") |
| | | @ApiOperation("审核确认") |
| | | @PostMapping("/qlyInspect/verify/complate/{id}") |
| | | public R verifyComplate(@PathVariable Long id) { |
| | | if (Objects.isNull(id)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return qlyInspectService.verifyComplate(id); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:qlyInspect:update')") |
| | | @OperationLog("Update 质检信息") |
| | | @PostMapping("/qlyInspect/update") |
| | | public R update(@RequestBody QlyInspect qlyInspect) { |