Bläddra i källkod

新增ai评卷参数表

wangliang 2 månader sedan
förälder
incheckning
93f8a4edaf

+ 2 - 2
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/entity/MarkAiQuestionScore.java → teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/entity/MarkAiQuestionPoint.java

@@ -15,8 +15,8 @@ import java.io.Serializable;
  * @author wangliang
  * @since 2025-04-10
  */
-@ApiModel(value = "MarkAiQuestionScore对象", description = "AI评卷得分明细表")
-public class MarkAiQuestionScore implements Serializable {
+@ApiModel(value = "MarkAiQuestionPoint对象", description = "AI评卷得分明细表")
+public class MarkAiQuestionPoint implements Serializable {
 
     private static final long serialVersionUID = 1L;
 

+ 2 - 2
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/mapper/MarkAiQuestionScoreMapper.java → teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/mapper/MarkAiQuestionPointMapper.java

@@ -1,7 +1,7 @@
 package com.qmth.teachcloud.mark.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.qmth.teachcloud.mark.entity.MarkAiQuestionScore;
+import com.qmth.teachcloud.mark.entity.MarkAiQuestionPoint;
 
 /**
  * <p>
@@ -11,6 +11,6 @@ import com.qmth.teachcloud.mark.entity.MarkAiQuestionScore;
  * @author wangliang
  * @since 2025-04-10
  */
-public interface MarkAiQuestionScoreMapper extends BaseMapper<MarkAiQuestionScore> {
+public interface MarkAiQuestionPointMapper extends BaseMapper<MarkAiQuestionPoint> {
 
 }

+ 3 - 3
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/MarkAiQuestionScoreService.java → teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/MarkAiQuestionPointService.java

@@ -1,7 +1,7 @@
 package com.qmth.teachcloud.mark.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;
-import com.qmth.teachcloud.mark.entity.MarkAiQuestionScore;
+import com.qmth.teachcloud.mark.entity.MarkAiQuestionPoint;
 
 import java.util.List;
 
@@ -13,7 +13,7 @@ import java.util.List;
  * @author wangliang
  * @since 2025-04-10
  */
-public interface MarkAiQuestionScoreService extends IService<MarkAiQuestionScore> {
+public interface MarkAiQuestionPointService extends IService<MarkAiQuestionPoint> {
 
-    List<MarkAiQuestionScore> listByAiQuestionId(Long id);
+    List<MarkAiQuestionPoint> listByAiQuestionId(Long id);
 }

+ 5 - 5
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/impl/MarkAiQuestionParamServiceImpl.java

@@ -4,12 +4,12 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.qmth.teachcloud.mark.entity.MarkAiQuestionLevel;
 import com.qmth.teachcloud.mark.entity.MarkAiQuestionParam;
-import com.qmth.teachcloud.mark.entity.MarkAiQuestionScore;
+import com.qmth.teachcloud.mark.entity.MarkAiQuestionPoint;
 import com.qmth.teachcloud.mark.enums.AiQuestionParamModeStatus;
 import com.qmth.teachcloud.mark.mapper.MarkAiQuestionParamMapper;
 import com.qmth.teachcloud.mark.service.MarkAiQuestionLevelService;
 import com.qmth.teachcloud.mark.service.MarkAiQuestionParamService;
-import com.qmth.teachcloud.mark.service.MarkAiQuestionScoreService;
+import com.qmth.teachcloud.mark.service.MarkAiQuestionPointService;
 import org.apache.commons.collections4.CollectionUtils;
 import org.springframework.stereotype.Service;
 
@@ -28,7 +28,7 @@ import java.util.List;
 public class MarkAiQuestionParamServiceImpl extends ServiceImpl<MarkAiQuestionParamMapper, MarkAiQuestionParam> implements MarkAiQuestionParamService {
 
     @Resource
-    private MarkAiQuestionScoreService markAiQuestionScoreService;
+    private MarkAiQuestionPointService markAiQuestionPointService;
     @Resource
     private MarkAiQuestionLevelService markAiQuestionLevelService;
 
@@ -40,8 +40,8 @@ public class MarkAiQuestionParamServiceImpl extends ServiceImpl<MarkAiQuestionPa
         }
         // 按得分点
         if (AiQuestionParamModeStatus.POINT.equals(markAiQuestionParam.getMode())) {
-            List<MarkAiQuestionScore> markAiQuestionScores = markAiQuestionScoreService.listByAiQuestionId(markAiQuestionParam.getId());
-            return CollectionUtils.isNotEmpty(markAiQuestionScores);
+            List<MarkAiQuestionPoint> markAiQuestionPoints = markAiQuestionPointService.listByAiQuestionId(markAiQuestionParam.getId());
+            return CollectionUtils.isNotEmpty(markAiQuestionPoints);
         }
         // 按档次
         if (AiQuestionParamModeStatus.LEVEL.equals(markAiQuestionParam.getMode())) {

+ 29 - 0
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/impl/MarkAiQuestionPointServiceImpl.java

@@ -0,0 +1,29 @@
+package com.qmth.teachcloud.mark.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.qmth.teachcloud.mark.entity.MarkAiQuestionPoint;
+import com.qmth.teachcloud.mark.mapper.MarkAiQuestionPointMapper;
+import com.qmth.teachcloud.mark.service.MarkAiQuestionPointService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * <p>
+ * AI评卷得分明细表 服务实现类
+ * </p>
+ *
+ * @author wangliang
+ * @since 2025-04-10
+ */
+@Service
+public class MarkAiQuestionPointServiceImpl extends ServiceImpl<MarkAiQuestionPointMapper, MarkAiQuestionPoint> implements MarkAiQuestionPointService {
+
+    @Override
+    public List<MarkAiQuestionPoint> listByAiQuestionId(Long id) {
+        QueryWrapper<MarkAiQuestionPoint> queryWrapper = new QueryWrapper<>();
+        queryWrapper.lambda().eq(MarkAiQuestionPoint::getAiQuestionId, id);
+        return this.list(queryWrapper);
+    }
+}

+ 0 - 29
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/impl/MarkAiQuestionScoreServiceImpl.java

@@ -1,29 +0,0 @@
-package com.qmth.teachcloud.mark.service.impl;
-
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.qmth.teachcloud.mark.entity.MarkAiQuestionScore;
-import com.qmth.teachcloud.mark.mapper.MarkAiQuestionScoreMapper;
-import com.qmth.teachcloud.mark.service.MarkAiQuestionScoreService;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-/**
- * <p>
- * AI评卷得分明细表 服务实现类
- * </p>
- *
- * @author wangliang
- * @since 2025-04-10
- */
-@Service
-public class MarkAiQuestionScoreServiceImpl extends ServiceImpl<MarkAiQuestionScoreMapper, MarkAiQuestionScore> implements MarkAiQuestionScoreService {
-
-    @Override
-    public List<MarkAiQuestionScore> listByAiQuestionId(Long id) {
-        QueryWrapper<MarkAiQuestionScore> queryWrapper = new QueryWrapper<>();
-        queryWrapper.lambda().eq(MarkAiQuestionScore::getAiQuestionId, id);
-        return this.list(queryWrapper);
-    }
-}

+ 1 - 1
teachcloud-mark/src/main/resources/mapper/MarkAiQuestionScoreMapper.xml → teachcloud-mark/src/main/resources/mapper/MarkAiQuestionPointMapper.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.qmth.teachcloud.mark.mapper.MarkAiQuestionScoreMapper">
+<mapper namespace="com.qmth.teachcloud.mark.mapper.MarkAiQuestionPointMapper">
 
 </mapper>