|
@ -89,8 +89,8 @@ public interface QuestionDao {
|
89
|
89
|
@OrderBy("ORDER BY TIME_DESC DESC")
|
90
|
90
|
List<Answer> byQes(Connection con, String qid, @LessThan String timeDesc, int rows) throws SQLException;
|
91
|
91
|
@LimitQuery
|
92
|
|
@OrderBy("ORDER BY SCORE_DESC ASC")
|
93
|
|
List<SortedAnswwer> byQesScore(Connection con, String qid, @SqlColumn(handlerClass = StringHandler.class, value = { "(TO_CHAR((10000 * (AGREE+1)) / (BALLOT+1),'00009')||ID) < ? " }) String score, int rows) throws SQLException;
|
|
92
|
@OrderBy("ORDER BY SCORE_DESC DESC")
|
|
93
|
List<SortedAnswwer> byQesScore(Connection con, String qid, @SqlColumn(handlerClass = StringHandler.class, value = { "(case when ballot=0 then '00000' else TO_CHAR(10000 *AGREE / BALLOT,'00009') end || ID) < ? " }) String score, int rows) throws SQLException;
|
94
|
94
|
|
95
|
95
|
@Insert
|
96
|
96
|
int insert(Connection con,AnswerAgreeRec aar)throws SQLException;
|