|
@ -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;
|