Accept Merge Request #93: (hyc -> master)
Merge Request: 【修改】优化mysql判分 Created By: @华允传 Accepted By: @华允传 URL: https://g-iswv8783.coding.net/p/education/d/pengchen-exam-java/git/merge/93?initial=true
This commit is contained in:
@@ -355,7 +355,7 @@ public class MysqlServericeImpl implements IMysqlServerice {
|
|||||||
Statement stmtstu = connstu.createStatement()) {
|
Statement stmtstu = connstu.createStatement()) {
|
||||||
try (ResultSet rsstu = stmtstu.executeQuery(verifySql)) {
|
try (ResultSet rsstu = stmtstu.executeQuery(verifySql)) {
|
||||||
if (rsstu.next()) {
|
if (rsstu.next()) {
|
||||||
int countstu = rs.getInt(1);
|
int countstu = rsstu.getInt(1);
|
||||||
if (countstu == 0) {
|
if (countstu == 0) {
|
||||||
//累加删除语句的所有权值 examQuestionKeywords累加scorerate
|
//累加删除语句的所有权值 examQuestionKeywords累加scorerate
|
||||||
appendToFile(answerLogPath, "验证通过:符合 DELETE 条件的记录已删除。");
|
appendToFile(answerLogPath, "验证通过:符合 DELETE 条件的记录已删除。");
|
||||||
@@ -370,7 +370,7 @@ public class MysqlServericeImpl implements IMysqlServerice {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}catch (SQLException e) {
|
}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) {
|
if (isEquivalent) {
|
||||||
//todo 得分
|
//todo 得分
|
||||||
|
Reference in New Issue
Block a user