| | |
| | | import com.vincent.rsf.server.common.domain.PageParam; |
| | | import com.vincent.rsf.server.common.utils.FieldsUtils; |
| | | import com.vincent.rsf.server.manager.entity.LocItem; |
| | | import com.vincent.rsf.server.manager.entity.WarehouseAreasItem; |
| | | import com.vincent.rsf.server.manager.service.LocItemService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import com.vincent.rsf.server.system.enums.LocStsType; |
| | | import com.vincent.rsf.server.manager.enums.LocStsType; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return R.ok().add(page); |
| | | } |
| | | |
| | | /** |
| | | * 生成库存出库任务 |
| | | * @param map |
| | | * @return |
| | | */ |
| | | @PreAuthorize("hasAuthority('manager:locItem:list')") |
| | | @PostMapping("/locItem/generate/task") |
| | | public R generateTask(@RequestBody Map<String, Object> map) { |
| | |
| | | return locItemService.generateTask(map); |
| | | } |
| | | |
| | | /** |
| | | * 生成移库任务 |
| | | * @param map |
| | | * @return |
| | | */ |
| | | @PreAuthorize("hasAuthority('manager:locItem:list')") |
| | | @PostMapping("/locItem/generate/move/task") |
| | | public R genMoveTask(@RequestBody Map<String, Object> map) { |
| | | if (Objects.isNull(map)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return locItemService.genMoveTask(map); |
| | | } |
| | | |
| | | /** |
| | | * 生成盘点出库任务 |
| | | * @param map |
| | | * @return |
| | | */ |
| | | @PreAuthorize("hasAuthority('manager:locItem:list')") |
| | | @PostMapping("/locItem/check/task") |
| | | public R genStatisticalTask(@RequestBody Map<String, Object> map) { |
| | | if (Objects.isNull(map)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return locItemService.generateTask(map); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:locItem:list')") |
| | | @PostMapping("/locItem/list") |
| | | public R list(@RequestBody Map<String, Object> map) { |