Example #1
0
 /**
  * @Description 根据指定条件删除
  *
  * @param entity
  * @return JsonResult
  * @author davidwan
  */
 public JsonResult remove(MeetingRoom entity) {
   int result = meetingRoomDao.deleteEntity(entity);
   if (result > 0) {
     return new JsonResult(true);
   } else {
     return new JsonResult(false);
   }
 }
Example #2
0
 /**
  * @Description 根据多个Id删除
  *
  * @param ids
  * @return JsonResult
  * @author davidwan
  */
 public JsonResult removeByIds(String ids) {
   MeetingRoom entity = new MeetingRoom();
   entity.getMap().put("ids", ids.split(","));
   int result = meetingRoomDao.deleteEntity(entity);
   if (result > 0) {
     // 添加操作日志
     systemLogService.create(EnumLogModule.会议室管理.getValue(), "批量删除会议室", "批量删除会议室ID:" + ids);
     return new JsonResult(true);
   } else {
     return new JsonResult(false);
   }
 }
Example #3
0
 /**
  * @Description 根据Id删除
  *
  * @param id
  * @return JsonResult
  * @author davidwan
  */
 public JsonResult removeById(Integer id) {
   MeetingRoom entity = new MeetingRoom();
   entity.setId(id);
   int result = meetingRoomDao.deleteEntity(entity);
   if (result > 0) {
     // 添加操作日志
     systemLogService.create(EnumLogModule.会议室管理.getValue(), "删除会议室", "删除会议室ID:" + id);
     return new JsonResult(true);
   } else {
     return new JsonResult(false);
   }
 }