public List<ActivityLabel> getAllActivityLabels() { List<ActivityLabel> list = activityLabelDao.findAll(); return list; }
/** * 获取内置的活动标签 add by chq * * @return */ public List<ActivityLabel> getAllSystemActivityLabels() { List<ActivityLabel> list = activityLabelDao.findByProperty("acla_type", "1"); return list; }
public ActivityLabel getActivityLabel(Integer id) { ActivityLabel activityLabel = activityLabelDao.get(id); return activityLabel; }
public int batchDeleteActivityLabels(Integer[] ids) { int rows = activityLabelDao.batchDelete(ids); return rows; }
public int deleteActivityLabel(Integer id) { int rows = activityLabelDao.delete(id); return rows; }
public int updateActivityLabel(ActivityLabel activityLabel) { int rows = activityLabelDao.dynamicUpdate(activityLabel); return rows; }
public int addActivityLabel(ActivityLabel activityLabel) { int rows = activityLabelDao.save(activityLabel); return rows; }