jiapeng 7 years ago
parent
commit
a95247aa2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/ekexiu/portal/question/QuestionDao.java

+ 1 - 1
src/main/java/com/ekexiu/portal/question/QuestionDao.java

@ -85,7 +85,7 @@ public interface QuestionDao {
85 85
	List<Answer> byQes(Connection con, String qid, @LtEq String createTime, @GreaterThan String id, int rows) throws SQLException;
86 86
	@LimitQuery
87 87
	@OrderBy("ORDER BY SCORE DESC,ID ASC")
88
	List<SortedAnswwer> byQes(Connection con, String qid, @SqlColumn(handlerClass = IntHandler.class, value = { "10000 * AGREE / BALLOT <= ?  " }) int score, @GreaterThan String id, int rows) throws SQLException;
88
	List<SortedAnswwer> byQes(Connection con, String qid, @SqlColumn(handlerClass = IntHandler.class, value = { "(10000 * AGREE+1) / (BALLOT+1) <= ?  " }) int score, @GreaterThan String id, int rows) throws SQLException;
89 89

90 90
	@Insert
91 91
	int insert(Connection con,AnswerAgreeRec aar)throws SQLException;