【修改】细节
This commit is contained in:
@@ -109,7 +109,7 @@ public interface ExamQuestionMapper extends BaseMapperX<ExamQuestion>
|
|||||||
|
|
||||||
long getSchoolNameTotal(TenantDto tenantDto);
|
long getSchoolNameTotal(TenantDto tenantDto);
|
||||||
|
|
||||||
int auditQueByIds(@Param("quIds")List<String> quIds);
|
int auditQueByIds(@Param("quIds")List<String> quIds,@Param("updater") String loginUserNickname);
|
||||||
|
|
||||||
int noAuditQue(@Param("quIds")List<String> quIds);
|
int noAuditQue(@Param("quIds")List<String> quIds);
|
||||||
|
|
||||||
|
@@ -477,7 +477,7 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
|||||||
public int auditQueByIds(List<String> quIds) {
|
public int auditQueByIds(List<String> quIds) {
|
||||||
|
|
||||||
examQuestionMapper.updateExamQuestionByIds(SecurityFrameworkUtils.getLoginUserNickname(),quIds);
|
examQuestionMapper.updateExamQuestionByIds(SecurityFrameworkUtils.getLoginUserNickname(),quIds);
|
||||||
return examQuestionMapper.auditQueByIds(quIds);
|
return examQuestionMapper.auditQueByIds(quIds,SecurityFrameworkUtils.getLoginUserNickname());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -48,16 +48,18 @@
|
|||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getCourseList" resultType="java.lang.String">
|
<select id="getCourseList" resultType="java.lang.String">
|
||||||
SELECT sp_name
|
SELECT DISTINCT sp_name
|
||||||
FROM exam_specialty
|
FROM exam_specialty
|
||||||
WHERE ancestors REGEXP '^[0-9]+,[0-9]+,[0-9]+$'
|
WHERE ancestors REGEXP '^[0-9]+,[0-9]+,[0-9]+$'
|
||||||
and deleted='0'
|
and deleted='0'
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getKeywords" resultType="java.lang.String">
|
<select id="getKeywords" resultType="java.lang.String">
|
||||||
SELECT DISTINCT keywords FROM exam_question
|
SELECT DISTINCT keywords
|
||||||
where deleted='0'
|
FROM exam_question
|
||||||
|
WHERE deleted = '0'
|
||||||
|
AND keywords IS NOT NULL
|
||||||
|
AND TRIM(keywords) <> ''
|
||||||
</select>
|
</select>
|
||||||
<select id="getPoints" resultMap="ExamSpecialtyResult">
|
<select id="getPoints" resultMap="ExamSpecialtyResult">
|
||||||
|
|
||||||
|
@@ -249,7 +249,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
<update id="updateExamQuestionByIds">
|
<update id="updateExamQuestionByIds">
|
||||||
UPDATE exam_question
|
UPDATE education_question_examine
|
||||||
SET updater = #{updater},
|
SET updater = #{updater},
|
||||||
update_time = now()
|
update_time = now()
|
||||||
WHERE qu_id IN
|
WHERE qu_id IN
|
||||||
|
@@ -130,7 +130,7 @@ public class BrowserServericeImpl implements IBrowserServerice {
|
|||||||
// 计算该考点的权重得分并保留一位小数
|
// 计算该考点的权重得分并保留一位小数
|
||||||
double weightScore = ((double) currentScore / total) * score;
|
double weightScore = ((double) currentScore / total) * score;
|
||||||
String formattedWeightScore = String.format("%.1f", weightScore);
|
String formattedWeightScore = String.format("%.1f", weightScore);
|
||||||
appendToFile(answerLogPath,"✅考点"+answer.getContent() + " -> 得分权值:" + answer.getScoreRate()+"-> 得分:"+weightScore);
|
appendToFile(answerLogPath,"✅考点"+answer.getContent() + " -> 得分权值:" + answer.getScoreRate()+"-> 得分:"+formattedWeightScore);
|
||||||
}else {
|
}else {
|
||||||
|
|
||||||
appendToFile(answerLogPath,"❌考点"+answer.getContent() + " -> 得分权值:" + answer.getScoreRate()+"-> 得分:0");
|
appendToFile(answerLogPath,"❌考点"+answer.getContent() + " -> 得分权值:" + answer.getScoreRate()+"-> 得分:0");
|
||||||
|
@@ -734,8 +734,8 @@ public class MysqlServericeImpl implements IMysqlServerice {
|
|||||||
String keywordValue = keyword.getKeyword();
|
String keywordValue = keyword.getKeyword();
|
||||||
if (keywordValue != null && !keywordValue.isEmpty() && !matchedKeywords.contains(keywordValue)) {
|
if (keywordValue != null && !keywordValue.isEmpty() && !matchedKeywords.contains(keywordValue)) {
|
||||||
// 使用正则,确保是完整单词(字段)匹配
|
// 使用正则,确保是完整单词(字段)匹配
|
||||||
String regex = "(?i)([^\\w]|^)" + Pattern.quote(keywordValue) + "([^\\w]|$)";
|
String regex = keywordValue;
|
||||||
if (sql.matches(".*" + regex + ".*")) {
|
if (sql.contains(regex)) {
|
||||||
try {
|
try {
|
||||||
totalScoreRate += Integer.parseInt(keyword.getScoreRate());
|
totalScoreRate += Integer.parseInt(keyword.getScoreRate());
|
||||||
|
|
||||||
@@ -1001,21 +1001,21 @@ public class MysqlServericeImpl implements IMysqlServerice {
|
|||||||
* 打印查询结果
|
* 打印查询结果
|
||||||
*/
|
*/
|
||||||
private static void printResult(List<List<String>> result) {
|
private static void printResult(List<List<String>> result) {
|
||||||
// if (result.isEmpty()) {
|
if (result.isEmpty()) {
|
||||||
// appendToFile(answerLogPath,"查询结果为空");
|
appendToFile(answerLogPath,"查询结果为空");
|
||||||
// } else {
|
} else {
|
||||||
// // 打印每一行数据
|
// 打印每一行数据
|
||||||
// for (int i = 0; i < result.size(); i++) {
|
for (int i = 0; i < result.size(); i++) {
|
||||||
// List<String> row = result.get(i);
|
List<String> row = result.get(i);
|
||||||
// if (i == 0) { // 打印列名
|
if (i == 0) { // 打印列名
|
||||||
// appendToFile(answerLogPath,"列名:");
|
appendToFile(answerLogPath,"列名:");
|
||||||
// }
|
}
|
||||||
// for (String value : row) {
|
for (String value : row) {
|
||||||
// appendToFile(answerLogPath,value + "\t");
|
appendToFile(answerLogPath,value + "\t");
|
||||||
// }
|
}
|
||||||
// System.out.println();
|
System.out.println();
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 使用提供的正则表达式模式从给定的 SQL 语句中提取视图名称。
|
* 使用提供的正则表达式模式从给定的 SQL 语句中提取视图名称。
|
||||||
|
@@ -95,6 +95,7 @@ public class EndStuMonitorUtils {
|
|||||||
|
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
//todo 抛出异常
|
||||||
System.out.println(e);
|
System.out.println(e);
|
||||||
} finally {
|
} finally {
|
||||||
// 删除临时文件
|
// 删除临时文件
|
||||||
|
Reference in New Issue
Block a user