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