| | |
| | | return R.ok(detls); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locDetl/forlocNo/auth") |
| | | @ManagerAuth |
| | | public R forlocNo(@RequestParam String orderNo,@RequestParam String locNo,@RequestParam String batch,@RequestParam String matnr) { |
| | | LambdaQueryWrapper<LocDetl> locDetlLambdaQueryWrapper = new LambdaQueryWrapper<LocDetl>() |
| | | .eq(LocDetl::getLocNo, locNo) |
| | | .eq(LocDetl::getHostId, getHostId()) |
| | | .eq(LocDetl::getMatnr, matnr); |
| | | if (!Cools.isEmpty(batch)){ |
| | | locDetlLambdaQueryWrapper.eq(LocDetl::getBatch,batch); |
| | | } |
| | | List<LocDetl> detls = locDetlService.list(locDetlLambdaQueryWrapper); |
| | | if (Cools.isEmpty(detls)){ |
| | | return R.error("未查询到库存数据"); |
| | | } |
| | | return R.ok(detls); |
| | | } |
| | | |
| | | @RequestMapping(value = "/locDetl/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |