| | |
| | | @ManagerAuth |
| | | public R update(BasPlcerror basPlcerror){ |
| | | if (Cools.isEmpty(basPlcerror) || null==basPlcerror.getErrorCode()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | basPlcerror.setModiUser(getUserId()); |
| | | basPlcerror.setModiTime(new Date()); |
| | |
| | | public R delete(@RequestParam String param){ |
| | | List<BasPlcerror> list = JSONArray.parseArray(param, BasPlcerror.class); |
| | | if (Cools.isEmpty(list)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | for (BasPlcerror entity : list){ |
| | | basPlcerrorService.delete(new EntityWrapper<>(entity)); |