| | |
| | | @ManagerAuth |
| | | public R edit(OperateLog operateLog) { |
| | | if (Cools.isEmpty(operateLog)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | if (null == operateLog.getId()){ |
| | | operateLogService.insert(operateLog); |
| | |
| | | @ManagerAuth |
| | | public R update(OperateLog operateLog){ |
| | | if (Cools.isEmpty(operateLog) || null==operateLog.getId()){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | operateLogService.updateById(operateLog); |
| | | return R.ok(); |
| | |
| | | @ManagerAuth |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | return R.error(); |
| | | return R.error("参数缺失"); |
| | | } |
| | | operateLogService.deleteBatchIds(Arrays.asList(ids)); |
| | | return R.ok(); |