【修改】优化mysql判分
This commit is contained in:
@@ -355,7 +355,7 @@ public class MysqlServericeImpl implements IMysqlServerice {
|
||||
Statement stmtstu = connstu.createStatement()) {
|
||||
try (ResultSet rsstu = stmtstu.executeQuery(verifySql)) {
|
||||
if (rsstu.next()) {
|
||||
int countstu = rs.getInt(1);
|
||||
int countstu = rsstu.getInt(1);
|
||||
if (countstu == 0) {
|
||||
//累加删除语句的所有权值 examQuestionKeywords累加scorerate
|
||||
appendToFile(answerLogPath, "验证通过:符合 DELETE 条件的记录已删除。");
|
||||
@@ -370,7 +370,7 @@ public class MysqlServericeImpl implements IMysqlServerice {
|
||||
}
|
||||
}
|
||||
}catch (SQLException e) {
|
||||
appendToFile(answerLogPath, "验证学生库失败:还有 " + count + " 条记录符合 DELETE 条件,未被删除。"+"得分:0 ❌");
|
||||
appendToFile(answerLogPath, "验证学生库失败,"+"得分:0 ❌");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -463,8 +463,11 @@ public class MysqlServericeImpl implements IMysqlServerice {
|
||||
|
||||
|
||||
}
|
||||
boolean isEquivalent =false;
|
||||
|
||||
boolean isEquivalent = compareResultsSelect(answerList, answerListStu);
|
||||
if (answerListStu!=null&&answerListStu.size()>0){
|
||||
isEquivalent = compareResultsSelect(answerList, answerListStu);
|
||||
}
|
||||
|
||||
if (isEquivalent) {
|
||||
//todo 得分
|
||||
|
Reference in New Issue
Block a user