Ver Código Fonte

--update leaveWordService

zzy.zhiyuan.foxmail 8 anos atrás
pai
commit
ac9cf37307

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

35
	public String insert(@JdbcConn(true) Connection con,LeaveWord word) throws SQLException{
35
	public String insert(@JdbcConn(true) Connection con,LeaveWord word) throws SQLException{
36
		String id = StringUtil.buildUUID();
36
		String id = StringUtil.buildUUID();
37
		word.setId(id);
37
		word.setId(id);
38
		word.setOrderKey(System.currentTimeMillis());
38
		word.setOrderKey(System.nanoTime());
39
		this.leaveWordDao.insert(con, word);
39
		this.leaveWordDao.insert(con, word);
40
		return id;
40
		return id;
41
	}
41
	}
42
	
42
	
43
	@Get
43
	@Get
44
	@Path("/ql")
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
		return this.leaveWordDao.query(con, articleId, createTime, orderKey, rows);
46
		return this.leaveWordDao.query(con, articleId, createTime, orderKey, rows);
47
	}
47
	}
48
}
48
}