浏览代码

--update leaveWordService

zzy.zhiyuan.foxmail 8 年之前
父节点
当前提交
ac9cf37307
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/ekexiu/portal/service/LeaveWordService.java

+ 2 - 2
src/main/java/com/ekexiu/portal/service/LeaveWordService.java

@ -35,14 +35,14 @@ public class LeaveWordService {
35 35
	public String insert(@JdbcConn(true) Connection con,LeaveWord word) throws SQLException{
36 36
		String id = StringUtil.buildUUID();
37 37
		word.setId(id);
38
		word.setOrderKey(System.currentTimeMillis());
38
		word.setOrderKey(System.nanoTime());
39 39
		this.leaveWordDao.insert(con, word);
40 40
		return id;
41 41
	}
42 42
	
43 43
	@Get
44 44
	@Path("/ql")
45
	public List<LeaveWord> query(@JdbcConn Connection con,String articleId,@DefaultValue("com.ekexiu.portal.service.LeaveWordService.MAX_CREATETIME")  String createTime,@DefaultValue("0") long orderKey,@DefaultValue("10") int rows) throws SQLException{
45
	public List<LeaveWord> query(@JdbcConn Connection con,String articleId,@DefaultValue("com.ekexiu.portal.service.LeaveWordService.MAX_CREATETIME")  String createTime,@DefaultValue("Long.MAX_VALUE") long orderKey,@DefaultValue("10") int rows) throws SQLException{
46 46
		return this.leaveWordDao.query(con, articleId, createTime, orderKey, rows);
47 47
	}
48 48
}