| | |
| | | @RequestMapping(value = "/locDetl/update/auth") |
| | | @ManagerAuth(memo = "库位明细修改") |
| | | public R update(LocDetl locDetl){ |
| | | if (Cools.isEmpty(locDetl) || null==locDetl.getMatnr()){ |
| | | if (Cools.isEmpty(locDetl) || null==locDetl.getBatch()){ |
| | | return R.error(); |
| | | } |
| | | locDetl.setModiUser(getUserId()); |
| | | locDetl.setModiTime(new Date()); |
| | | locDetlService.updateById(locDetl); |
| | | LocDetl locDetl1 = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no", locDetl.getLocNo()).eq("batch", locDetl.getBatch())); |
| | | if (Cools.isEmpty(locDetl1) ){ |
| | | return R.error(); |
| | | } |
| | | locDetl1.setModiUser(getUserId()); |
| | | locDetl1.setModiTime(new Date()); |
| | | locDetl1.setDanger(locDetl.getDanger()); |
| | | locDetlService.update(locDetl1,new EntityWrapper<LocDetl>().eq("loc_no", locDetl.getLocNo()).eq("batch", locDetl.getBatch())); |
| | | // locDetlService.updateById(locDetl1); |
| | | return R.ok(); |
| | | } |
| | | |