|
|
@@ -12,6 +12,7 @@
|
|
|
<result property="collegeId" column="college_id"/>
|
|
|
<result property="location" column="location"/>
|
|
|
<result property="operate" column="operate"/>
|
|
|
+ <result property="authType" column="auth_type"/>
|
|
|
<result property="subjectId" column="subject_id"/>
|
|
|
<result property="subjectName" column="subject_name"/>
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
@@ -32,6 +33,7 @@
|
|
|
college_id,
|
|
|
location,
|
|
|
operate,
|
|
|
+ auth_type,
|
|
|
subject_id,
|
|
|
subject_name,
|
|
|
dept_id,
|
|
|
@@ -55,9 +57,12 @@
|
|
|
<if test="collegeId != null">and t.college_id = #{collegeId}</if>
|
|
|
<if test="location != null and location != '' ">and t.location = #{location}</if>
|
|
|
<if test="operate != null ">and t.operate = #{operate}</if>
|
|
|
+ <if test="authType != null ">and t.auth_type = #{authType}</if>
|
|
|
<if test="subjectId != null ">and t.subject_id = #{subjectId}</if>
|
|
|
<if test="subjectName != null ">and t.subject_name = #{subjectName}</if>
|
|
|
- <if test="deptId != null ">and t.dept_id = #{deptId}</if>
|
|
|
+ <if test="deptId != null ">and ( t.dept_id in (SELECT dt.dept_id FROM sys_dept dt WHERE
|
|
|
+ find_in_set(#{deptId} ,ancestors )) or t.dept_id = #{deptId} )
|
|
|
+ </if>
|
|
|
<if test="deptName != null ">and t.dept_name = #{deptName}</if>
|
|
|
<if test="isStart != null ">and t.is_start = #{isStart}</if>
|
|
|
<if test="userId != null ">and t.user_id = #{userId}</if>
|
|
|
@@ -65,6 +70,13 @@
|
|
|
<if test="createTime != null ">and t.create_time = #{createTime}</if>
|
|
|
<if test="updateBy != null ">and t.update_by = #{updateBy}</if>
|
|
|
<if test="updateTime != null">and t.update_time =#{updateTime}</if>
|
|
|
+ <if test="searchValue != null and searchValue != ''">
|
|
|
+ and (
|
|
|
+ t.card_name like concat('%', #{searchValue}, '%')
|
|
|
+ or t.card_num like concat('%', #{searchValue}, '%')
|
|
|
+ or t.subject_name like concat('%', #{searchValue}, '%')
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -82,6 +94,7 @@
|
|
|
<if test="collegeId != null">college_id,</if>
|
|
|
<if test="location != null">location,</if>
|
|
|
<if test="operate != null">operate,</if>
|
|
|
+ <if test="authType != null">auth_type,</if>
|
|
|
<if test="subjectId != null">subject_id,</if>
|
|
|
<if test="subjectName != null">subject_name,</if>
|
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
@@ -100,6 +113,7 @@
|
|
|
<if test="collegeId != null">#{collegeId},</if>
|
|
|
<if test="location != null">#{location},</if>
|
|
|
<if test="operate != null">#{operate},</if>
|
|
|
+ <if test="authType != null">#{authType},</if>
|
|
|
<if test="subjectId != null">#{subjectId},</if>
|
|
|
<if test="subjectName != null">#{subjectName},</if>
|
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
@@ -122,6 +136,7 @@
|
|
|
<if test="collegeId != null">college_id = #{collegeId},</if>
|
|
|
<if test="location != null">location = #{location},</if>
|
|
|
<if test="operate != null">operate = #{operate},</if>
|
|
|
+ <if test="authType != null">auth_type = #{authType},</if>
|
|
|
<if test="subjectId != null">subject_id = #{subjectId},</if>
|
|
|
<if test="subjectName != null">subject_name = #{subjectName},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|