Browse Source

fix 批量删除

he2802 3 năm trước cách đây
mục cha
commit
d006097488

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/bo/ClassGradeUserQueryBo.java

@@ -133,4 +133,7 @@ public class ClassGradeUserQueryBo extends BaseEntity {
 
 	@ApiModelProperty("业务层次名称")
 	private String businessName;
+
+	@ApiModelProperty("搜索关键词")
+	private String searchKey;
 }

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

@@ -307,6 +307,9 @@
         <if test="businessId != null and businessId != ''">
             AND g.business_id = #{businessId}
         </if>
+        <if test="educationTypeId != null and educationTypeId != ''">
+            AND g.education_type_id = #{educationTypeId}
+        </if>
         <if test="schoolId != null and schoolId != ''">
             AND g.school_id = #{schoolId}
         </if>
@@ -328,6 +331,9 @@
         <if test="studyStatus != null and studyStatus == 2 ">
             and cgu.period_status != -1
         </if>
+        <if test="searchKey != null and searchKey != '' ">
+            and (u.realname like concat('%', #{searchKey}, '%') or u.id_card like concat('%', #{searchKey}, '%'))
+        </if>
         <if test="periodStatus != 2 ">
             order by cgu.update_time desc
         </if>