Browse Source

监考日志修改

wangliang 4 years ago
parent
commit
7957ce2e2e

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

@@ -19,7 +19,7 @@
                 and tbeiu.user_id = #{userId}
                 and tbeiu.user_id = #{userId}
             </if>
             </if>
             <if test="roomCode != null and roomCode != ''">
             <if test="roomCode != null and roomCode != ''">
-                and tbeiu.room_code like concat('%', #{roomCode}, '%')
+                and tbeiu.room_code like concat(#{roomCode}, '%')
             </if>
             </if>
         </where>
         </where>
         ) t
         ) t
@@ -59,7 +59,7 @@
             t_b_exam_invigilate_user tbeiu
             t_b_exam_invigilate_user tbeiu
         <where>
         <where>
             <if test="roomName != null and roomName != ''">
             <if test="roomName != null and roomName != ''">
-                and tbeiu.room_name like concat('%', #{roomName}, '%')
+                and tbeiu.room_name like concat(#{roomName}, '%')
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>

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

@@ -45,7 +45,7 @@
                     and tbo.code = #{code}
                     and tbo.code = #{code}
                 </if>
                 </if>
                 <if test="name != null and name != ''">
                 <if test="name != null and name != ''">
-                    and tbo.login_name like concat('%', #{name}, '%')
+                    and tbo.login_name like concat(#{name}, '%')
                 </if>
                 </if>
                 <if test="enable != null and enable != '' or enable == 0">
                 <if test="enable != null and enable != '' or enable == 0">
                     and tbo.enable = #{enable}
                     and tbo.enable = #{enable}

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

@@ -48,10 +48,10 @@
                     and tbu.id = #{id}
                     and tbu.id = #{id}
                 </if>
                 </if>
                 <if test="loginName != null and loginName != ''">
                 <if test="loginName != null and loginName != ''">
-                    and tbu.login_name like concat('%', #{loginName}, '%')
+                    and tbu.login_name like concat(#{loginName}, '%')
                 </if>
                 </if>
                 <if test="name != null and name != ''">
                 <if test="name != null and name != ''">
-                    and tbu.name like concat('%', #{name}, '%')
+                    and tbu.name like concat(#{name}, '%')
                 </if>
                 </if>
                 <if test="enable != null and enable != '' or enable == 0">
                 <if test="enable != null and enable != '' or enable == 0">
                     and tbu.enable = #{enable}
                     and tbu.enable = #{enable}
@@ -59,7 +59,7 @@
             </where> group by tbu.org_id,tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
             </where> group by tbu.org_id,tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
             <where>
             <where>
                 <if test="role != null and role != ''">
                 <if test="role != null and role != ''">
-                    and t.roleCodeStr like concat('%', #{role}, '%')
+                    and t.roleCodeStr like concat(#{role}, '%')
                 </if>
                 </if>
             </where>
             </where>
              order by t.name
              order by t.name

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

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

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

@@ -48,10 +48,10 @@
 				and teec.exam_id = #{examId}
 				and teec.exam_id = #{examId}
 			</if>
 			</if>
 			<if test="courseCode != null and courseCode != ''">
 			<if test="courseCode != null and courseCode != ''">
-				and teec.course_code like concat('%', #{courseCode}, '%')
+				and teec.course_code like concat(#{courseCode}, '%')
 			</if>
 			</if>
 			<if test="courseName != null and courseName != ''">
 			<if test="courseName != null and courseName != ''">
-				and teec.course_name like concat('%', #{courseName}, '%')
+				and teec.course_name like concat(#{courseName}, '%')
 			</if>
 			</if>
 			<if test="hasPaper != null and hasPaper != '' or hasPaper == 0">
 			<if test="hasPaper != null and hasPaper != '' or hasPaper == 0">
 				<choose>
 				<choose>

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

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

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

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

+ 2 - 2
themis-business/src/main/resources/mapper/TEStudentMapper.xml

@@ -20,10 +20,10 @@
             tbo.id = tes.org_id
             tbo.id = tes.org_id
         <where>
         <where>
             <if test="identity != null and identity != ''">
             <if test="identity != null and identity != ''">
-                and tes.identity like concat('%', #{identity}, '%')
+                and tes.identity like concat(#{identity}, '%')
             </if>
             </if>
             <if test="name != null and name != ''">
             <if test="name != null and name != ''">
-                and tes.name like concat('%', #{name}, '%')
+                and tes.name like concat(#{name}, '%')
             </if>
             </if>
             <if test="enable != null and enable != '' or enable == 0">
             <if test="enable != null and enable != '' or enable == 0">
                 and tes.enable = #{enable}
                 and tes.enable = #{enable}