af2137fa5766e2afb4137bfeb234eca2be5a97ec.svn-base
1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Copyright © 2015-2018 ODM All rights reserved.
*/
package com.thinkgem.jeesite.modules.cms.dao;
import java.util.List;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.cms.entity.Article;
import com.thinkgem.jeesite.modules.cms.entity.Category;
/**
* 文章DAO接口
* @author ThinkGem
* @version 2013-8-23
*/
@MyBatisDao
public interface ArticleDao extends CrudDao<Article> {
public List<Article> findByIdIn(String[] ids);
// {
// return find("from Article where id in (:p1)", new Parameter(new Object[]{ids}));
// }
public int updateHitsAddOne(String id);
// {
// return update("update Article set hits=hits+1 where id = :p1", new Parameter(id));
// }
public int updateExpiredWeight(Article article);
public List<Category> findStats(Category category);
// {
// return update("update Article set weight=0 where weight > 0 and weightDate < current_timestamp()");
// }
}