瀏覽代碼

添加 MxRealExamScore,删除考试集合关联数据。

tom 2 周之前
父節點
當前提交
98641f190c

+ 91 - 0
ruoyi-sim/src/main/java/com/ruoyi/sim/controller/MxRealExamScoreController.java

@@ -0,0 +1,91 @@
+package com.ruoyi.sim.controller;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.ruoyi.sim.domain.MxRealExamScore;
+import com.ruoyi.sim.service.impl.MxRealExamScoreService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * sim_考试得分结果Controller
+ *
+ * @author ruoyi
+ * @date 2025-08-21
+ */
+@RestController
+@RequestMapping("/system/score")
+public class MxRealExamScoreController extends BaseController {
+    @Autowired
+    private MxRealExamScoreService mxRealExamScoreService;
+
+    /**
+     * 查询sim_考试得分结果列表
+     */
+    @GetMapping("/list")
+    public TableDataInfo list(MxRealExamScore mxRealExamScore) {
+        startPage();
+        List<MxRealExamScore> list = mxRealExamScoreService.selectMxRealExamScoreList(mxRealExamScore);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出sim_考试得分结果列表
+     */
+    @Log(title = "sim_考试得分结果", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, MxRealExamScore mxRealExamScore) {
+        List<MxRealExamScore> list = mxRealExamScoreService.selectMxRealExamScoreList(mxRealExamScore);
+        ExcelUtil<MxRealExamScore> util = new ExcelUtil<MxRealExamScore>(MxRealExamScore.class);
+        util.exportExcel(response, list, "sim_考试得分结果数据");
+    }
+
+    /**
+     * 获取sim_考试得分结果详细信息
+     */
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(mxRealExamScoreService.selectMxRealExamScoreById(id));
+    }
+
+    /**
+     * 新增sim_考试得分结果
+     */
+    @Log(title = "sim_考试得分结果", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody MxRealExamScore mxRealExamScore) {
+        return toAjax(mxRealExamScoreService.insertMxRealExamScore(mxRealExamScore));
+    }
+
+    /**
+     * 修改sim_考试得分结果
+     */
+    @Log(title = "sim_考试得分结果", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody MxRealExamScore mxRealExamScore) {
+        return toAjax(mxRealExamScoreService.updateMxRealExamScore(mxRealExamScore));
+    }
+
+    /**
+     * 删除sim_考试得分结果
+     */
+    @Log(title = "sim_考试得分结果", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(mxRealExamScoreService.deleteMxRealExamScoreByIds(ids));
+    }
+}

+ 323 - 0
ruoyi-sim/src/main/java/com/ruoyi/sim/domain/MxRealExamScore.java

@@ -0,0 +1,323 @@
+package com.ruoyi.sim.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * sim_考试得分结果对象 mx_real_exam_score
+ *
+ * @author ruoyi
+ * @date 2025-08-21
+ */
+public class MxRealExamScore extends BaseEntity {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * $column.columnComment
+     */
+    private Long id;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long examCollectionId;
+
+    /**
+     * 考试id
+     */
+    @Excel(name = "考试id")
+    private Long examId;
+
+    /**
+     * 总分
+     */
+    @Excel(name = "总分")
+    private Long total;
+
+    /**
+     * 故障1扣分
+     */
+    @Excel(name = "故障1扣分")
+    private Long faultOneScore;
+
+    /**
+     * 故障2扣分
+     */
+    @Excel(name = "故障2扣分")
+    private Long faultTwoScore;
+
+    /**
+     * 故障3扣分
+     */
+    @Excel(name = "故障3扣分")
+    private Long faultThreeScore;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long xianxianScore;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String xianxianContent;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long yuanyinSocre;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String yuanyinContent;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long buweiScore;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String buweiContent;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long fangfaScore;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String fangfaContent;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long jielunScore;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private Long overtimeScore;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String otherReplace;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String otherReport;
+
+    /**
+     * $column.columnComment
+     */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String otherJielun;
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setExamCollectionId(Long examCollectionId) {
+        this.examCollectionId = examCollectionId;
+    }
+
+    public Long getExamCollectionId() {
+        return examCollectionId;
+    }
+
+    public void setExamId(Long examId) {
+        this.examId = examId;
+    }
+
+    public Long getExamId() {
+        return examId;
+    }
+
+    public void setTotal(Long total) {
+        this.total = total;
+    }
+
+    public Long getTotal() {
+        return total;
+    }
+
+    public void setFaultOneScore(Long faultOneScore) {
+        this.faultOneScore = faultOneScore;
+    }
+
+    public Long getFaultOneScore() {
+        return faultOneScore;
+    }
+
+    public void setFaultTwoScore(Long faultTwoScore) {
+        this.faultTwoScore = faultTwoScore;
+    }
+
+    public Long getFaultTwoScore() {
+        return faultTwoScore;
+    }
+
+    public void setFaultThreeScore(Long faultThreeScore) {
+        this.faultThreeScore = faultThreeScore;
+    }
+
+    public Long getFaultThreeScore() {
+        return faultThreeScore;
+    }
+
+    public void setXianxianScore(Long xianxianScore) {
+        this.xianxianScore = xianxianScore;
+    }
+
+    public Long getXianxianScore() {
+        return xianxianScore;
+    }
+
+    public void setXianxianContent(String xianxianContent) {
+        this.xianxianContent = xianxianContent;
+    }
+
+    public String getXianxianContent() {
+        return xianxianContent;
+    }
+
+    public void setYuanyinSocre(Long yuanyinSocre) {
+        this.yuanyinSocre = yuanyinSocre;
+    }
+
+    public Long getYuanyinSocre() {
+        return yuanyinSocre;
+    }
+
+    public void setYuanyinContent(String yuanyinContent) {
+        this.yuanyinContent = yuanyinContent;
+    }
+
+    public String getYuanyinContent() {
+        return yuanyinContent;
+    }
+
+    public void setBuweiScore(Long buweiScore) {
+        this.buweiScore = buweiScore;
+    }
+
+    public Long getBuweiScore() {
+        return buweiScore;
+    }
+
+    public void setBuweiContent(String buweiContent) {
+        this.buweiContent = buweiContent;
+    }
+
+    public String getBuweiContent() {
+        return buweiContent;
+    }
+
+    public void setFangfaScore(Long fangfaScore) {
+        this.fangfaScore = fangfaScore;
+    }
+
+    public Long getFangfaScore() {
+        return fangfaScore;
+    }
+
+    public void setFangfaContent(String fangfaContent) {
+        this.fangfaContent = fangfaContent;
+    }
+
+    public String getFangfaContent() {
+        return fangfaContent;
+    }
+
+    public void setJielunScore(Long jielunScore) {
+        this.jielunScore = jielunScore;
+    }
+
+    public Long getJielunScore() {
+        return jielunScore;
+    }
+
+    public void setOvertimeScore(Long overtimeScore) {
+        this.overtimeScore = overtimeScore;
+    }
+
+    public Long getOvertimeScore() {
+        return overtimeScore;
+    }
+
+    public void setOtherReplace(String otherReplace) {
+        this.otherReplace = otherReplace;
+    }
+
+    public String getOtherReplace() {
+        return otherReplace;
+    }
+
+    public void setOtherReport(String otherReport) {
+        this.otherReport = otherReport;
+    }
+
+    public String getOtherReport() {
+        return otherReport;
+    }
+
+    public void setOtherJielun(String otherJielun) {
+        this.otherJielun = otherJielun;
+    }
+
+    public String getOtherJielun() {
+        return otherJielun;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("examCollectionId", getExamCollectionId())
+                .append("examId", getExamId())
+                .append("total", getTotal())
+                .append("faultOneScore", getFaultOneScore())
+                .append("faultTwoScore", getFaultTwoScore())
+                .append("faultThreeScore", getFaultThreeScore())
+                .append("xianxianScore", getXianxianScore())
+                .append("xianxianContent", getXianxianContent())
+                .append("yuanyinSocre", getYuanyinSocre())
+                .append("yuanyinContent", getYuanyinContent())
+                .append("buweiScore", getBuweiScore())
+                .append("buweiContent", getBuweiContent())
+                .append("fangfaScore", getFangfaScore())
+                .append("fangfaContent", getFangfaContent())
+                .append("jielunScore", getJielunScore())
+                .append("overtimeScore", getOvertimeScore())
+                .append("otherReplace", getOtherReplace())
+                .append("otherReport", getOtherReport())
+                .append("otherJielun", getOtherJielun())
+                .append("createtime", getCreateTime())
+                .append("updatetime", getUpdateTime())
+                .toString();
+    }
+}

+ 61 - 0
ruoyi-sim/src/main/java/com/ruoyi/sim/mapper/MxRealExamScoreMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.sim.mapper;
+
+import com.ruoyi.sim.domain.MxRealExamScore;
+
+import java.util.List;
+
+/**
+ * sim_考试得分结果Mapper接口
+ *
+ * @author ruoyi
+ * @date 2025-08-21
+ */
+public interface MxRealExamScoreMapper {
+    /**
+     * 查询sim_考试得分结果
+     *
+     * @param id sim_考试得分结果主键
+     * @return sim_考试得分结果
+     */
+    public MxRealExamScore selectMxRealExamScoreById(Long id);
+
+    /**
+     * 查询sim_考试得分结果列表
+     *
+     * @param mxRealExamScore sim_考试得分结果
+     * @return sim_考试得分结果集合
+     */
+    public List<MxRealExamScore> selectMxRealExamScoreList(MxRealExamScore mxRealExamScore);
+
+    /**
+     * 新增sim_考试得分结果
+     *
+     * @param mxRealExamScore sim_考试得分结果
+     * @return 结果
+     */
+    public int insertMxRealExamScore(MxRealExamScore mxRealExamScore);
+
+    /**
+     * 修改sim_考试得分结果
+     *
+     * @param mxRealExamScore sim_考试得分结果
+     * @return 结果
+     */
+    public int updateMxRealExamScore(MxRealExamScore mxRealExamScore);
+
+    /**
+     * 删除sim_考试得分结果
+     *
+     * @param id sim_考试得分结果主键
+     * @return 结果
+     */
+    public int deleteMxRealExamScoreById(Long id);
+
+    /**
+     * 批量删除sim_考试得分结果
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteMxRealExamScoreByIds(Long[] ids);
+}

+ 80 - 0
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/MxRealExamScoreService.java

@@ -0,0 +1,80 @@
+package com.ruoyi.sim.service.impl;
+
+import java.util.List;
+
+import com.ruoyi.sim.domain.MxRealExamScore;
+import com.ruoyi.sim.mapper.MxRealExamScoreMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * sim_考试得分结果Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2025-08-21
+ */
+@Service
+public class MxRealExamScoreService {
+    @Autowired
+    private MxRealExamScoreMapper mxRealExamScoreMapper;
+
+    /**
+     * 查询sim_考试得分结果
+     *
+     * @param id sim_考试得分结果主键
+     * @return sim_考试得分结果
+     */
+    public MxRealExamScore selectMxRealExamScoreById(Long id) {
+        return mxRealExamScoreMapper.selectMxRealExamScoreById(id);
+    }
+
+    /**
+     * 查询sim_考试得分结果列表
+     *
+     * @param mxRealExamScore sim_考试得分结果
+     * @return sim_考试得分结果
+     */
+    public List<MxRealExamScore> selectMxRealExamScoreList(MxRealExamScore mxRealExamScore) {
+        return mxRealExamScoreMapper.selectMxRealExamScoreList(mxRealExamScore);
+    }
+
+    /**
+     * 新增sim_考试得分结果
+     *
+     * @param mxRealExamScore sim_考试得分结果
+     * @return 结果
+     */
+    public int insertMxRealExamScore(MxRealExamScore mxRealExamScore) {
+        return mxRealExamScoreMapper.insertMxRealExamScore(mxRealExamScore);
+    }
+
+    /**
+     * 修改sim_考试得分结果
+     *
+     * @param mxRealExamScore sim_考试得分结果
+     * @return 结果
+     */
+    public int updateMxRealExamScore(MxRealExamScore mxRealExamScore) {
+        return mxRealExamScoreMapper.updateMxRealExamScore(mxRealExamScore);
+    }
+
+    /**
+     * 批量删除sim_考试得分结果
+     *
+     * @param ids 需要删除的sim_考试得分结果主键
+     * @return 结果
+     */
+    public int deleteMxRealExamScoreByIds(Long[] ids) {
+        return mxRealExamScoreMapper.deleteMxRealExamScoreByIds(ids);
+    }
+
+    /**
+     * 删除sim_考试得分结果信息
+     *
+     * @param id sim_考试得分结果主键
+     * @return 结果
+     */
+    public int deleteMxRealExamScoreById(Long id) {
+        return mxRealExamScoreMapper.deleteMxRealExamScoreById(id);
+    }
+}

+ 7 - 5
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/RealExamCollectionService.java

@@ -559,16 +559,18 @@ public class RealExamCollectionService extends Ele6RYBaseService {
      * mx_real_exam_comp_request
      * mx_real_exam_comp_request
      * mx_real_exam_fault
      * mx_real_exam_fault
      * mx_real_exam_score
      * mx_real_exam_score
+     *
      * @param id
      * @param id
-     * @return
-     * todo:不支持删除考试
+     * @return todo:不支持删除考试
      */
      */
     public AjaxResult deleteRef(Long id) {
     public AjaxResult deleteRef(Long id) {
+        // 删除mx_real_exam_collection表数据
+        int count = deleteRealExamCollectionByExamCollectionId(id);
+        l.info("考试集合删除数量 = {}", count);
         // delete ref exam data.
         // delete ref exam data.
+        // 删除mx_real_exam表关联数据
         realExamService.deleteRefByExamCollectionId(id);
         realExamService.deleteRefByExamCollectionId(id);
-        // 
-        int count = deleteRealExamCollectionByExamCollectionId(id);
-        return AjaxResult.success("删除成功");
+        return AjaxResult.success("考试集合数据删除成功!");
     }
     }
 
 
     /**
     /**

+ 14 - 0
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/RealExamCompRequestService.java

@@ -123,4 +123,18 @@ public class RealExamCompRequestService extends Ele6RYBaseService {
     public AjaxResult updateTurnDownByTeacher(Long[] relIds) {
     public AjaxResult updateTurnDownByTeacher(Long[] relIds) {
         return AjaxResult.success();
         return AjaxResult.success();
     }
     }
+
+    /**
+     * 删除mx_real_exam_comp_request表关联数据
+     *
+     * @param examId
+     */
+    public void deleteRefByExamId(Long examId) {
+        RealExamCompRequest q = new RealExamCompRequest();
+        q.setExamId(examId);
+        List<RealExamCompRequest> list = selectRealExamCompRequestList(q);
+        list.forEach(ecr -> {
+            deleteRealExamCompRequestByRelId(ecr.getRelId());
+        });
+    }
 }
 }

+ 8 - 3
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/RealExamFaultService.java

@@ -171,7 +171,7 @@ public class RealExamFaultService {
     }
     }
 
 
     /**
     /**
-     * 
+     *
      * @param examId
      * @param examId
      * @return
      * @return
      */
      */
@@ -393,12 +393,17 @@ public class RealExamFaultService {
         return null;
         return null;
     }
     }
 
 
+    /**
+     * 删除mx_real_exam_fault表关联数据
+     *
+     * @param examId
+     */
     public void deleteRefByExamId(Long examId) {
     public void deleteRefByExamId(Long examId) {
         RealExamFault q = new RealExamFault();
         RealExamFault q = new RealExamFault();
         q.setExamId(examId);
         q.setExamId(examId);
         List<RealExamFault> list = selectRealExamFaultList(q);
         List<RealExamFault> list = selectRealExamFaultList(q);
-        list.forEach(ref -> {
-            deleteRealExamFaultByRefId(ref.getRefId());
+        list.forEach(ef -> {
+            deleteRealExamFaultByRefId(ef.getRefId());
         });
         });
     }
     }
 }
 }

+ 18 - 4
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/RealExamService.java

@@ -115,6 +115,8 @@ public class RealExamService {
     private SimConfig simConfig;
     private SimConfig simConfig;
     @Autowired
     @Autowired
     private SocketService socketService;
     private SocketService socketService;
+    @Autowired
+    private RealExamCompRequestService realExamCompRequestService;
 
 
     /**
     /**
      * examId 是否有效。
      * examId 是否有效。
@@ -470,7 +472,7 @@ public class RealExamService {
         }
         }
         // Check:针对特殊类型模拟器的检查。
         // Check:针对特殊类型模拟器的检查。
         {
         {
-            AjaxResult ar = commCheckService.checkSpecialBySimType(sim,examCollectionType);
+            AjaxResult ar = commCheckService.checkSpecialBySimType(sim, examCollectionType);
             if (ar.isError()) {
             if (ar.isError()) {
                 return ar;
                 return ar;
             } else {
             } else {
@@ -704,7 +706,7 @@ public class RealExamService {
         // Check:交卷报文信息检查
         // Check:交卷报文信息检查
         {
         {
             Sim sim = simService.selectSimBySimId(re.getSimId());
             Sim sim = simService.selectSimBySimId(re.getSimId());
-            AjaxResult ar =  commSendService.readOneSimAllFaultSubmitCheck(seatNow, sim);
+            AjaxResult ar = commSendService.readOneSimAllFaultSubmitCheck(seatNow, sim);
             if (ar.isError()) {
             if (ar.isError()) {
                 return ar;
                 return ar;
             }
             }
@@ -844,14 +846,26 @@ public class RealExamService {
         }
         }
     }
     }
 
 
+    /**
+     * 删除mx_real_exam表关联数据
+     *
+     * @param examCollectionId
+     */
     public void deleteRefByExamCollectionId(Long examCollectionId) {
     public void deleteRefByExamCollectionId(Long examCollectionId) {
         RealExam q = new RealExam();
         RealExam q = new RealExam();
         q.setExamCollectionId(examCollectionId);
         q.setExamCollectionId(examCollectionId);
         List<RealExam> list = selectRealExamList(q);
         List<RealExam> list = selectRealExamList(q);
         list.forEach(e -> {
         list.forEach(e -> {
-            // delete ref exam fault data.
-            realExamFaultService.deleteRefByExamId(e.getExamId());
+            Long examId = e.getExamId();
+            //
             deleteRealExamByExamId(e.getExamId());
             deleteRealExamByExamId(e.getExamId());
+            // delete ref exam fault data.
+            // 删除mx_real_exam_fault表关联数据
+            realExamFaultService.deleteRefByExamId(examId);
+            // 删除mx_real_exam_comp_request表关联数据
+            realExamCompRequestService.deleteRefByExamId(e.getExamId());
+            // 删除mx_real_exam_score表关联数据
+
         });
         });
     }
     }
 }
 }

+ 180 - 0
ruoyi-sim/src/main/resources/mapper/sim/MxRealExamScoreMapper.xml

@@ -0,0 +1,180 @@
+<?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.ruoyi.sim.mapper.MxRealExamScoreMapper">
+
+    <resultMap type="MxRealExamScore" id="MxRealExamScoreResult">
+        <result property="id" column="id"/>
+        <result property="examCollectionId" column="exam_collection_id"/>
+        <result property="examId" column="exam_id"/>
+        <result property="total" column="total"/>
+        <result property="faultOneScore" column="fault_one_score"/>
+        <result property="faultTwoScore" column="fault_two_score"/>
+        <result property="faultThreeScore" column="fault_three_score"/>
+        <result property="xianxianScore" column="xianxian_score"/>
+        <result property="xianxianContent" column="xianxian_content"/>
+        <result property="yuanyinSocre" column="yuanyin_socre"/>
+        <result property="yuanyinContent" column="yuanyin_content"/>
+        <result property="buweiScore" column="buwei_score"/>
+        <result property="buweiContent" column="buwei_content"/>
+        <result property="fangfaScore" column="fangfa_score"/>
+        <result property="fangfaContent" column="fangfa_content"/>
+        <result property="jielunScore" column="jielun_score"/>
+        <result property="overtimeScore" column="overtime_score"/>
+        <result property="otherReplace" column="other_replace"/>
+        <result property="otherReport" column="other_report"/>
+        <result property="otherJielun" column="other_jielun"/>
+        <result property="createtime" column="createtime"/>
+        <result property="updatetime" column="updatetime"/>
+    </resultMap>
+
+    <sql id="selectMxRealExamScoreVo">
+        select id,
+               exam_collection_id,
+               exam_id,
+               total,
+               fault_one_score,
+               fault_two_score,
+               fault_three_score,
+               xianxian_score,
+               xianxian_content,
+               yuanyin_socre,
+               yuanyin_content,
+               buwei_score,
+               buwei_content,
+               fangfa_score,
+               fangfa_content,
+               jielun_score,
+               overtime_score,
+               other_replace,
+               other_report,
+               other_jielun,
+               createtime,
+               updatetime
+        from mx_real_exam_score
+    </sql>
+
+    <select id="selectMxRealExamScoreList" parameterType="MxRealExamScore" resultMap="MxRealExamScoreResult">
+        <include refid="selectMxRealExamScoreVo"/>
+        <where>
+            <if test="examCollectionId != null ">and exam_collection_id = #{examCollectionId}</if>
+            <if test="examId != null ">and exam_id = #{examId}</if>
+            <if test="total != null ">and total = #{total}</if>
+            <if test="faultOneScore != null ">and fault_one_score = #{faultOneScore}</if>
+            <if test="faultTwoScore != null ">and fault_two_score = #{faultTwoScore}</if>
+            <if test="faultThreeScore != null ">and fault_three_score = #{faultThreeScore}</if>
+            <if test="xianxianScore != null ">and xianxian_score = #{xianxianScore}</if>
+            <if test="xianxianContent != null  and xianxianContent != ''">and xianxian_content = #{xianxianContent}</if>
+            <if test="yuanyinSocre != null ">and yuanyin_socre = #{yuanyinSocre}</if>
+            <if test="yuanyinContent != null  and yuanyinContent != ''">and yuanyin_content = #{yuanyinContent}</if>
+            <if test="buweiScore != null ">and buwei_score = #{buweiScore}</if>
+            <if test="buweiContent != null  and buweiContent != ''">and buwei_content = #{buweiContent}</if>
+            <if test="fangfaScore != null ">and fangfa_score = #{fangfaScore}</if>
+            <if test="fangfaContent != null  and fangfaContent != ''">and fangfa_content = #{fangfaContent}</if>
+            <if test="jielunScore != null ">and jielun_score = #{jielunScore}</if>
+            <if test="overtimeScore != null ">and overtime_score = #{overtimeScore}</if>
+            <if test="otherReplace != null  and otherReplace != ''">and other_replace = #{otherReplace}</if>
+            <if test="otherReport != null  and otherReport != ''">and other_report = #{otherReport}</if>
+            <if test="otherJielun != null  and otherJielun != ''">and other_jielun = #{otherJielun}</if>
+            <if test="createtime != null ">and createtime = #{createtime}</if>
+            <if test="updatetime != null ">and updatetime = #{updatetime}</if>
+        </where>
+    </select>
+
+    <select id="selectMxRealExamScoreById" parameterType="Long" resultMap="MxRealExamScoreResult">
+        <include refid="selectMxRealExamScoreVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertMxRealExamScore" parameterType="MxRealExamScore" useGeneratedKeys="true" keyProperty="id">
+        insert into mx_real_exam_score
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="examCollectionId != null">exam_collection_id,</if>
+            <if test="examId != null">exam_id,</if>
+            <if test="total != null">total,</if>
+            <if test="faultOneScore != null">fault_one_score,</if>
+            <if test="faultTwoScore != null">fault_two_score,</if>
+            <if test="faultThreeScore != null">fault_three_score,</if>
+            <if test="xianxianScore != null">xianxian_score,</if>
+            <if test="xianxianContent != null">xianxian_content,</if>
+            <if test="yuanyinSocre != null">yuanyin_socre,</if>
+            <if test="yuanyinContent != null">yuanyin_content,</if>
+            <if test="buweiScore != null">buwei_score,</if>
+            <if test="buweiContent != null">buwei_content,</if>
+            <if test="fangfaScore != null">fangfa_score,</if>
+            <if test="fangfaContent != null">fangfa_content,</if>
+            <if test="jielunScore != null">jielun_score,</if>
+            <if test="overtimeScore != null">overtime_score,</if>
+            <if test="otherReplace != null">other_replace,</if>
+            <if test="otherReport != null">other_report,</if>
+            <if test="otherJielun != null">other_jielun,</if>
+            <if test="createtime != null">createtime,</if>
+            <if test="updatetime != null">updatetime,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="examCollectionId != null">#{examCollectionId},</if>
+            <if test="examId != null">#{examId},</if>
+            <if test="total != null">#{total},</if>
+            <if test="faultOneScore != null">#{faultOneScore},</if>
+            <if test="faultTwoScore != null">#{faultTwoScore},</if>
+            <if test="faultThreeScore != null">#{faultThreeScore},</if>
+            <if test="xianxianScore != null">#{xianxianScore},</if>
+            <if test="xianxianContent != null">#{xianxianContent},</if>
+            <if test="yuanyinSocre != null">#{yuanyinSocre},</if>
+            <if test="yuanyinContent != null">#{yuanyinContent},</if>
+            <if test="buweiScore != null">#{buweiScore},</if>
+            <if test="buweiContent != null">#{buweiContent},</if>
+            <if test="fangfaScore != null">#{fangfaScore},</if>
+            <if test="fangfaContent != null">#{fangfaContent},</if>
+            <if test="jielunScore != null">#{jielunScore},</if>
+            <if test="overtimeScore != null">#{overtimeScore},</if>
+            <if test="otherReplace != null">#{otherReplace},</if>
+            <if test="otherReport != null">#{otherReport},</if>
+            <if test="otherJielun != null">#{otherJielun},</if>
+            <if test="createtime != null">#{createtime},</if>
+            <if test="updatetime != null">#{updatetime},</if>
+        </trim>
+    </insert>
+
+    <update id="updateMxRealExamScore" parameterType="MxRealExamScore">
+        update mx_real_exam_score
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="examCollectionId != null">exam_collection_id = #{examCollectionId},</if>
+            <if test="examId != null">exam_id = #{examId},</if>
+            <if test="total != null">total = #{total},</if>
+            <if test="faultOneScore != null">fault_one_score = #{faultOneScore},</if>
+            <if test="faultTwoScore != null">fault_two_score = #{faultTwoScore},</if>
+            <if test="faultThreeScore != null">fault_three_score = #{faultThreeScore},</if>
+            <if test="xianxianScore != null">xianxian_score = #{xianxianScore},</if>
+            <if test="xianxianContent != null">xianxian_content = #{xianxianContent},</if>
+            <if test="yuanyinSocre != null">yuanyin_socre = #{yuanyinSocre},</if>
+            <if test="yuanyinContent != null">yuanyin_content = #{yuanyinContent},</if>
+            <if test="buweiScore != null">buwei_score = #{buweiScore},</if>
+            <if test="buweiContent != null">buwei_content = #{buweiContent},</if>
+            <if test="fangfaScore != null">fangfa_score = #{fangfaScore},</if>
+            <if test="fangfaContent != null">fangfa_content = #{fangfaContent},</if>
+            <if test="jielunScore != null">jielun_score = #{jielunScore},</if>
+            <if test="overtimeScore != null">overtime_score = #{overtimeScore},</if>
+            <if test="otherReplace != null">other_replace = #{otherReplace},</if>
+            <if test="otherReport != null">other_report = #{otherReport},</if>
+            <if test="otherJielun != null">other_jielun = #{otherJielun},</if>
+            <if test="createtime != null">createtime = #{createtime},</if>
+            <if test="updatetime != null">updatetime = #{updatetime},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteMxRealExamScoreById" parameterType="Long">
+        delete
+        from mx_real_exam_score
+        where id = #{id}
+    </delete>
+
+    <delete id="deleteMxRealExamScoreByIds" parameterType="String">
+        delete from mx_real_exam_score where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>