| | |
| | | @Transactional |
| | | public R update(AgvLocMast locMast){ |
| | | if (Cools.isEmpty(locMast) || null==locMast.getLocNo()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | AgvWrkMast wrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>() |
| | | .eq("source_loc_no", locMast.getLocNo()) |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<AgvLocMast> list = JSONArray.parseArray(param, AgvLocMast.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | for (AgvLocMast entity : list){ |
| | | agvLockMastService.delete(new EntityWrapper<>(entity)); |