| | |
| | | return R.ok(locDetls); |
| | | } |
| | | |
| | | @PostMapping("/getBoxLocDateByLocNo") |
| | | @ManagerAuth(memo = "根据包装组号提取一整箱库存") |
| | | public R getBoxLocDateByLocNo(@RequestBody List<String> packageNoList) { |
| | | |
| | | List<LocDetl> locDetls = locDetlMapper.selectList(new EntityWrapper<LocDetl>().in("loc_no", packageNoList)); |
| | | |
| | | return R.ok(locDetls); |
| | | } |
| | | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void importLocData1(MultipartFile multipartFile) throws IOException { |
| | | EasyExcel.read(multipartFile.getInputStream(), LocMat.class, |
| | |
| | | return R.ok(stockOut); |
| | | } |
| | | |
| | | @RequestMapping(value = "/stock/boxOut/list/auth") |
| | | @ManagerAuth |
| | | public R boxOut(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param){ |
| | | if (!Cools.isEmpty(param.get("modi_time"))){ |
| | | String val = String.valueOf(param.get("modi_time")); |
| | | if (val.contains(RANGE_TIME_LINK)) { |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | param.put("startTime", DateUtils.convert(dates[0])); |
| | | param.put("endTime", DateUtils.convert(dates[1])); |
| | | param.remove("modi_time"); |
| | | } |
| | | } |
| | | param.put("matnr","空箱"); |
| | | Page<LocDetl> stockOut = locDetlService.getStockOut(toPage(curr, limit, param, LocDetl.class)); |
| | | if (stockOut.getRecords().size()==0){ |
| | | stockOut = locDetlService.getStockOut(toPage(1, limit, param, LocDetl.class)); |
| | | } |
| | | return R.ok(stockOut); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locDetl/list/auth")// /locDetl/list/auth 接口问题 |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |