| | |
| | | import com.vincent.rsf.server.common.domain.BaseParam; |
| | | import com.vincent.rsf.server.common.domain.KeyValVo; |
| | | import com.vincent.rsf.server.common.domain.PageParam; |
| | | import com.vincent.rsf.server.manager.controller.params.WarehouseAreaParam; |
| | | import com.vincent.rsf.server.manager.entity.Loc; |
| | | import com.vincent.rsf.server.manager.entity.WarehouseAreas; |
| | | import com.vincent.rsf.server.manager.service.LocService; |
| | | import com.vincent.rsf.server.manager.service.WarehouseAreasService; |
| | | 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.*; |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:warehouseAreas:update')") |
| | | @ApiOperation("库区批量修改") |
| | | @PostMapping("/warehouseAreas/batch/update") |
| | | public R batchUpdate(@RequestBody WarehouseAreaParam params) { |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | if (Objects.isNull(params.getIds()) && params.getIds().isEmpty()) { |
| | | return R.error("库区ID不能为空!!"); |
| | | } |
| | | if (warehouseAreasService.batchUpdate(params, getLoginUserId())) { |
| | | return R.ok("修改成功!!"); |
| | | } else { |
| | | return R.error("修改失败!!"); |
| | | } |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:warehouseAreas:update')") |
| | | @OperationLog("Update 库区信息表") |
| | | @PostMapping("/warehouseAreas/update") |
| | | public R update(@RequestBody WarehouseAreas warehouseAreas) { |