| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.tika.utils.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | return mobileService.getReceiptAreas(getLoginUser()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:warehouseAreas:list')") |
| | | @ApiOperation("获取可用库区") |
| | | @GetMapping("/areas/user/all") |
| | | public R getAreasUserAll() { |
| | | return mobileService.getAreasUserAll(getLoginUser()); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:asnOrder:list')") |
| | | @GetMapping("/orders/asn") |
| | |
| | | if (!Objects.isNull(params.get("type")) && params.get("type").equals("unbind")) { |
| | | return mobileService.getUnItemByContainer(params); |
| | | } else { |
| | | return mobileService.getItemByContainer(params); |
| | | return mobileService.getItemByContainer(params,getLoginUser()); |
| | | } |
| | | } |
| | | |
| | |
| | | public R pikinOrder(@RequestBody WaitPakinParam waitPakin) { |
| | | Long userId = getLoginUserId(); |
| | | if (Objects.isNull(waitPakin)) { |
| | | return R.error("参数不能为空!!"); |
| | | return R.error( "参数不能为空!!"); |
| | | } |
| | | if (org.apache.commons.lang3.StringUtils.isBlank(waitPakin.getBarcode())) { |
| | | return R.error("托盘码不能为空!!"); |
| | |
| | | if (Objects.isNull(map)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |
| | | return mobileService.getItemByContainer(map); |
| | | return mobileService.getItemByContainer(map,getLoginUser()); |
| | | } |
| | | |
| | | @ApiOperation("获取订单不良物料") |