浏览代码

修改表名。

tom 4 月之前
父节点
当前提交
02799ff81a

+ 3 - 1
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/RealExamService.java

@@ -15,6 +15,7 @@ import com.ruoyi.sim.domain.vo.StudentRealExamPreVo;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import com.ruoyi.sim.mapper.RealExamMapper;
 import org.springframework.transaction.annotation.Transactional;
@@ -107,7 +108,8 @@ public class RealExamService {
     private RealExamCollectionService realExamCollectionService;
     @Autowired
     private RealExamFaultService realExamFaultService;
-    // @Autowired todo:临时注解
+    @Autowired
+    @Lazy
     private CommSendService commSendService;
     @Autowired
     private SimConfig simConfig;

+ 5 - 5
ruoyi-sim/src/main/resources/mapper/sim/FaultMapper.xml

@@ -44,7 +44,7 @@
                update_by,
                update_time,
                remark
-        from sim_fault
+        from mx_fault
     </sql>
 
     <select id="selectFaultList" parameterType="Fault" resultMap="FaultResult">
@@ -82,7 +82,7 @@
         <selectKey keyProperty="faultId" order="AFTER" resultType="java.lang.String">
             select LAST_INSERT_ID()
         </selectKey>
-        insert into sim_fault
+        insert into mx_fault
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="faultId != null">fault_id,</if>
             <if test="parentFaultId != null and parentFaultId != ''">parent_fault_id,</if>
@@ -126,7 +126,7 @@
     </insert>
 
     <update id="updateFault" parameterType="Fault">
-        update sim_fault
+        update mx_fault
         <trim prefix="SET" suffixOverrides=",">
             <if test="parentFaultId != null and parentFaultId != ''">parent_fault_id = #{parentFaultId},</if>
             <if test="refType330FaultId != null and refType330FaultId != ''">ref_type3_30_fault_id =
@@ -154,12 +154,12 @@
 
     <delete id="deleteFaultByFaultId" parameterType="String">
         delete
-        from sim_fault
+        from mx_fault
         where fault_id = #{faultId}
     </delete>
 
     <delete id="deleteFaultByFaultIds" parameterType="String">
-        delete from sim_fault where fault_id in
+        delete from mx_fault where fault_id in
         <foreach item="faultId" collection="array" open="(" separator="," close=")">
             #{faultId}
         </foreach>

+ 5 - 5
ruoyi-sim/src/main/resources/mapper/sim/RealExamCollectionMapper.xml

@@ -40,7 +40,7 @@
                update_by,
                update_time,
                remark
-        from sim_real_exam_collection
+        from mx_real_exam_collection
     </sql>
 
     <select id="selectRealExamCollectionList" parameterType="RealExamCollection" resultMap="RealExamCollectionResult">
@@ -77,7 +77,7 @@
         <selectKey keyProperty="examCollectionId" order="AFTER" resultType="java.lang.Long">
             select LAST_INSERT_ID()
         </selectKey>
-        insert into sim_real_exam_collection
+        insert into mx_real_exam_collection
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="simType != null and simType != ''">sim_type,</if>
             <if test="questionSettingMethod != null and questionSettingMethod != ''">question_setting_method,</if>
@@ -115,7 +115,7 @@
     </insert>
 
     <update id="updateRealExamCollection" parameterType="RealExamCollection">
-        update sim_real_exam_collection
+        update mx_real_exam_collection
         <trim prefix="SET" suffixOverrides=",">
             <if test="simType != null and simType != ''">sim_type = #{simType},</if>
             <if test="questionSettingMethod != null and questionSettingMethod != ''">question_setting_method =
@@ -144,12 +144,12 @@
 
     <delete id="deleteRealExamCollectionByExamCollectionId" parameterType="Long">
         delete
-        from sim_real_exam_collection
+        from mx_real_exam_collection
         where exam_collection_id = #{examCollectionId}
     </delete>
 
     <delete id="deleteRealExamCollectionByExamCollectionIds" parameterType="String">
-        delete from sim_real_exam_collection where exam_collection_id in
+        delete from mx_real_exam_collection where exam_collection_id in
         <foreach item="examCollectionId" collection="array" open="(" separator="," close=")">
             #{examCollectionId}
         </foreach>

+ 5 - 5
ruoyi-sim/src/main/resources/mapper/sim/RealExamFaultMapper.xml

@@ -42,7 +42,7 @@
                update_by,
                update_time,
                remark
-        from sim_real_exam_fault
+        from mx_real_exam_fault
     </sql>
 
     <select id="selectRealExamFaultList" parameterType="RealExamFault" resultMap="RealExamFaultResult">
@@ -79,7 +79,7 @@
         <selectKey keyProperty="refId" order="AFTER" resultType="java.lang.Long">
             select LAST_INSERT_ID()
         </selectKey>
-        insert into sim_real_exam_fault
+        insert into mx_real_exam_fault
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="examId != null">exam_id,</if>
             <if test="faultId != null and faultId != ''">fault_id,</if>
@@ -119,7 +119,7 @@
     </insert>
 
     <update id="updateRealExamFault" parameterType="RealExamFault">
-        update sim_real_exam_fault
+        update mx_real_exam_fault
         <trim prefix="SET" suffixOverrides=",">
             <if test="examId != null">exam_id = #{examId},</if>
             <if test="faultId != null and faultId != ''">fault_id = #{faultId},</if>
@@ -143,12 +143,12 @@
 
     <delete id="deleteRealExamFaultByRefId" parameterType="Long">
         delete
-        from sim_real_exam_fault
+        from mx_real_exam_fault
         where ref_id = #{refId}
     </delete>
 
     <delete id="deleteRealExamFaultByRefIds" parameterType="String">
-        delete from sim_real_exam_fault where ref_id in
+        delete from mx_real_exam_fault where ref_id in
         <foreach item="refId" collection="array" open="(" separator="," close=")">
             #{refId}
         </foreach>

+ 5 - 5
ruoyi-sim/src/main/resources/mapper/sim/RealExamMapper.xml

@@ -42,7 +42,7 @@
                update_by,
                update_time,
                remark
-        from sim_real_exam
+        from mx_real_exam
     </sql>
 
     <select id="selectRealExamList" parameterType="RealExam" resultMap="RealExamResult">
@@ -71,7 +71,7 @@
         <selectKey keyProperty="examId" order="AFTER" resultType="java.lang.Long">
             select LAST_INSERT_ID()
         </selectKey>
-        insert into sim_real_exam
+        insert into mx_real_exam
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="examId != null">exam_id,</if>
             <if test="examCollectionId != null">exam_collection_id,</if>
@@ -113,7 +113,7 @@
     </insert>
 
     <update id="updateRealExam" parameterType="RealExam">
-        update sim_real_exam
+        update mx_real_exam
         <trim prefix="SET" suffixOverrides=",">
             <if test="examCollectionId != null">exam_collection_id = #{examCollectionId},</if>
             <if test="userId != null">user_id = #{userId},</if>
@@ -137,12 +137,12 @@
 
     <delete id="deleteRealExamByExamId" parameterType="Long">
         delete
-        from sim_real_exam
+        from mx_real_exam
         where exam_id = #{examId}
     </delete>
 
     <delete id="deleteRealExamByExamIds" parameterType="String">
-        delete from sim_real_exam where exam_id in
+        delete from mx_real_exam where exam_id in
         <foreach item="examId" collection="array" open="(" separator="," close=")">
             #{examId}
         </foreach>