From 13f796dc50449ae2ec525ef02aaf4b49a91a564b Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期三, 29 十一月 2023 11:16:42 +0800 Subject: [PATCH] 修改重置 --- src/main/resources/mapper/ExamTemplatesMapper.xml | 21 ++------------------- 1 files changed, 2 insertions(+), 19 deletions(-) diff --git a/src/main/resources/mapper/ExamTemplatesMapper.xml b/src/main/resources/mapper/ExamTemplatesMapper.xml index 3e2fda7..817a36f 100644 --- a/src/main/resources/mapper/ExamTemplatesMapper.xml +++ b/src/main/resources/mapper/ExamTemplatesMapper.xml @@ -34,28 +34,11 @@ <select id="gets" resultMap="BaseResultMap" parameterType="com.mindskip.xzs.domain.vo.ExamTemplatesVO"> select - e.* + DISTINCT e.id + , e.name, e.paper_type, e.suggest_time, e.title_name, e.ctime, e.status, e.menu_ids,e.start_time,e.end_time from t_exam_templates e inner join t_exam_templates_user u on e.id = u.templates_id <where> - paper_type != 7 - <if test="status != null"> - and e.status = 0 - </if> - <if test="status == null"> - and e.status is null - </if> - <if test="userId != null"> - and u.user_id = #{userId} - </if> - </where> - union all - select - e.* - from t_exam_templates e - inner join t_exam_templates_user u on e.id = u.templates_id - <where> - paper_type = 7 <if test="status != null"> and e.status = 0 </if> -- Gitblit v1.8.0