| | |
| | | @ManagerAuth(memo = "工作历史档修改") |
| | | public R update(AgvWrkMastLog wrkMastLog){ |
| | | if (Cools.isEmpty(wrkMastLog) || null==wrkMastLog.getId()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | wrkMastLogService.updateById(wrkMastLog); |
| | | return R.ok(); |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<AgvWrkMastLog> list = JSONArray.parseArray(param, AgvWrkMastLog.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | for (AgvWrkMastLog entity : list){ |
| | | wrkMastLogService.delete(new EntityWrapper<>(entity)); |