浏览代码

code模糊查询改为标准查询

wangliang 2 年之前
父节点
当前提交
593dc8aa03

+ 1 - 1
themis-business/src/main/resources/mapper/TBExamInvigilateUserMapper.xml

@@ -25,7 +25,7 @@
                 and tbeiu.user_id = #{userId}
             </if>
             <if test="roomCode != null and roomCode != ''">
-                and tbeiu.room_code like concat('%', #{roomCode}, '%')
+                and tbeiu.room_code = #{roomCode}
             </if>
             <if test="orgId != null and orgId != ''">
                 and tbeiu.org_id = #{orgId}

+ 1 - 1
themis-business/src/main/resources/mapper/TBOrgMapper.xml

@@ -42,7 +42,7 @@
                 t_b_org tbo
             <where>
                 <if test="code != null and code != ''">
-                    and tbo.code like concat('%', #{code}, '%')
+                    and tbo.code = #{code}
                 </if>
                 <if test="name != null and name != ''">
                     and tbo.name like concat('%', #{name}, '%')

+ 1 - 1
themis-business/src/main/resources/mapper/TEExamActivityMapper.xml

@@ -99,7 +99,7 @@
                 and teea.exam_id = #{examId}
             </if>
             <if test="code != null and code != ''">
-                and teea.code like concat('%', #{code}, '%')
+                and teea.code = #{code}
             </if>
             <if test="startDate != null and startDate != ''">
                 and teea.start_time = #{startDate}

+ 1 - 1
themis-business/src/main/resources/mapper/TEExamCourseMapper.xml

@@ -50,7 +50,7 @@
 				and teec.exam_id = #{examId}
 			</if>
 			<if test="courseCode != null and courseCode != ''">
-				and teec.course_code like concat('%', #{courseCode}, '%')
+				and teec.course_code = #{courseCode}
 			</if>
 			<if test="courseName != null and courseName != ''">
 				and teec.course_name like concat('%', #{courseName}, '%')

+ 1 - 1
themis-business/src/main/resources/mapper/TEExamMapper.xml

@@ -117,7 +117,7 @@
                 and t.id = #{id}
             </if>
             <if test="code != null and code != ''">
-                and t.code like concat('%', #{code}, '%')
+                and t.code = #{code}
             </if>
             <if test="name != null and name != ''">
                 and t.name like concat('%', #{name}, '%')

+ 3 - 3
themis-business/src/main/resources/mapper/TEExamReexamMapper.xml

@@ -44,7 +44,7 @@
                 and tees.room_code = #{roomCode}
             </if>
             <if test="courseCode != null and courseCode != ''">
-                and tees.course_code like CONCAT('%', #{courseCode},'%')
+                and tees.course_code = #{courseCode}
             </if>
             <if test="name != null and name !=''">
                 and tees.name like CONCAT('%', #{name},'%')
@@ -103,7 +103,7 @@
                 and tees.room_code = #{roomCode}
             </if>
             <if test="courseCode != null and courseCode != ''">
-                and tees.course_code like CONCAT('%', #{courseCode},'%')
+                and tees.course_code = #{courseCode}
             </if>
             <if test="name != null and name !=''">
                 and tees.name like CONCAT('%', #{name},'%')
@@ -205,7 +205,7 @@
                 and tees.room_code = #{roomCode}
             </if>
             <if test="courseCode != null and courseCode != ''">
-                and tees.course_code like CONCAT('%', #{courseCode},'%')
+                and tees.course_code = #{courseCode}
             </if>
             <if test="name != null and name !=''">
                 and tees.name like CONCAT('%', #{name},'%')

+ 1 - 1
themis-business/src/main/resources/mapper/TEExamStudentMapper.xml

@@ -44,7 +44,7 @@
                 and tees.name like concat('%', #{name}, '%')
             </if>
             <if test="roomCode != null and roomCode != ''">
-                and tees.room_code like concat('%', #{roomCode}, '%')
+                and tees.room_code = #{roomCode}
             </if>
             <if test="courseCode != null and courseCode != ''">
                 and tees.course_code = #{courseCode}

+ 3 - 3
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -626,7 +626,7 @@
                 and tees.room_code = #{roomCode}
             </if>
             <if test="courseCode != null and courseCode != ''">
-                and tees.course_code like CONCAT('%', #{courseCode},'%')
+                and tees.course_code = #{courseCode}
             </if>
             <if test="name != null and name !=''">
                 and tees.name like CONCAT('%', #{name},'%')
@@ -702,7 +702,7 @@
                 and tees.room_code = #{roomCode}
             </if>
             <if test="courseCode != null and courseCode != ''">
-                and tees.course_code like CONCAT('%', #{courseCode},'%')
+                and tees.course_code = #{courseCode}
             </if>
             <if test="name != null and name !=''">
                 and tees.name like CONCAT('%', #{name},'%')
@@ -821,7 +821,7 @@
             and s.identity like CONCAT('%', #{identity},'%')
         </if>
         <if test="courseCode != null and courseCode != ''">
-            and s.course_code like CONCAT('%', #{courseCode},'%')
+            and s.course_code = #{courseCode}
         </if>
         ) temp
         left join t_oe_exam_record toer on