| | |
| | | import com.vincent.rsf.server.manager.entity.ReviseLog; |
| | | import com.vincent.rsf.server.manager.service.ReviseLogService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return R.ok("Save Success").add(reviseLog); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:locRevise:update')") |
| | | @OperationLog("Update 库位调整历史") |
| | | @PostMapping("/reviseLog/update") |
| | |
| | | return R.ok().add(reviseLogService.reviseLoc(reviseLog, getLoginUserId())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:locRevise:update')") |
| | | @PostMapping("/reviseLog/complete/{id}") |
| | | @ApiOperation("确认调整库存") |
| | | public R completeTran(@PathVariable("id") Long id) { |
| | | if (Objects.isNull(id)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return reviseLogService.complete(id, getLoginUserId()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:locRevise:remove')") |
| | | @OperationLog("Delete 库位调整历史") |
| | | @PostMapping("/reviseLog/remove/{ids}") |