|
@@ -1,5 +1,6 @@
|
|
|
package org.dromara.main.mapper;
|
|
package org.dromara.main.mapper;
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
import org.apache.ibatis.annotations.Update;
|
|
@@ -19,6 +20,7 @@ public interface MainExamApplyMapper extends BaseMapperPlus<MainExamApply, MainE
|
|
|
@Update("UPDATE main_exam_apply SET del_flag = '0', apply_source = '3', apply_status = '0', schedule_start_time = NOW(), deadline_time = NULL, max_attempt_count = 1, finished_time = NULL, final_result = NULL, update_time = NOW() WHERE id = #{id}")
|
|
@Update("UPDATE main_exam_apply SET del_flag = '0', apply_source = '3', apply_status = '0', schedule_start_time = NOW(), deadline_time = NULL, max_attempt_count = 1, finished_time = NULL, final_result = NULL, update_time = NOW() WHERE id = #{id}")
|
|
|
int restoreDeletedApply(@Param("id") Long id);
|
|
int restoreDeletedApply(@Param("id") Long id);
|
|
|
|
|
|
|
|
|
|
+ @InterceptorIgnore(tenantLine = "true")
|
|
|
@Select("""
|
|
@Select("""
|
|
|
SELECT
|
|
SELECT
|
|
|
a.id,
|
|
a.id,
|
|
@@ -45,7 +47,7 @@ public interface MainExamApplyMapper extends BaseMapperPlus<MainExamApply, MainE
|
|
|
a.finished_time AS finishedTime,
|
|
a.finished_time AS finishedTime,
|
|
|
a.create_time AS createTime
|
|
a.create_time AS createTime
|
|
|
FROM main_exam_apply a
|
|
FROM main_exam_apply a
|
|
|
- LEFT JOIN main_exam_evaluation e ON a.evaluation_id = e.id AND IFNULL(e.del_flag, '0') = '0'
|
|
|
|
|
|
|
+ LEFT JOIN main_exam_evaluation e ON a.evaluation_id = e.id
|
|
|
LEFT JOIN main_position p ON e.position_id = p.id
|
|
LEFT JOIN main_position p ON e.position_id = p.id
|
|
|
WHERE IFNULL(a.del_flag, '0') = '0'
|
|
WHERE IFNULL(a.del_flag, '0') = '0'
|
|
|
AND a.student_id = #{studentId}
|
|
AND a.student_id = #{studentId}
|