| | |
| | | @ManagerAuth |
| | | public R update(AgvWrkDetlLog wrkDetlLog){ |
| | | if (Cools.isEmpty(wrkDetlLog) || null==wrkDetlLog.getWrkNo()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | wrkDetlLogService.updateById(wrkDetlLog); |
| | | return R.ok(); |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<AgvWrkDetlLog> list = JSONArray.parseArray(param, AgvWrkDetlLog.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | for (AgvWrkDetlLog entity : list){ |
| | | wrkDetlLogService.delete(new EntityWrapper<>(entity)); |