예제 #1
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);
   }
 }
예제 #2
0
 /**
  * @Description 根据Id获取实体
  *
  * @param id
  * @return MeetingRoom
  * @author davidwan
  */
 public MeetingRoom findById(Integer id) {
   MeetingRoom entity = new MeetingRoom();
   entity.setId(id);
   return meetingRoomDao.selectEntity(entity);
 }