| | |
| | | } |
| | | return R.ok().add(stockStatis); |
| | | } |
| | | @RequestMapping(value = "/locDetl/ownerStatis/auth") |
| | | @ManagerAuth |
| | | public R statis2(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam Map<String, Object> param) { |
| | | |
| | | Object owner = param.get("owner"); |
| | | if (!Cools.isEmpty(owner)){ |
| | | LocOwner owner1 = locOwnerService.selectOne(new EntityWrapper<LocOwner>().like("owner", owner.toString())); |
| | | |
| | | param.put("owner",owner1.getId()); |
| | | }else { |
| | | param.remove("owner"); |
| | | } |
| | | |
| | | Page<LocDetlAll> stockStatis = locDetlService.getOwnerStatisAll(toPage(curr, limit, param, LocDetlAll.class)); |
| | | for (LocDetlAll locDetlAll : stockStatis.getRecords()) { |
| | | Mat mat = matService.selectByMatnr(locDetlAll.getMatnr()); |
| | | if (mat != null) { |
| | | locDetlAll.sync(mat); |
| | | } |
| | | } |
| | | return R.ok().add(stockStatis); |
| | | } |
| | | |
| | | @Autowired |
| | | private LocDetlMapper LocDetlMapper; |