@@ -116,6 +116,9 @@ public class StudentManageServiceImpl implements StudentManageService {
Map<String, Object> params = new HashMap<String, Object>();
MapUtil.populateMap(params, queryInfo);
+ String[] organIds = queryInfo.getOrganId().split(",");
+ params.put("organIds", organIds);
+
List<StudentManageListDto> dataList = null;
int count = studentManageDao.countStudentByOrganId(params);
if (count > 0) {
@@ -33,6 +33,7 @@
h1 {
font-size: 16px;
text-align: center;
+ margin-bottom: 8px;
}
h2 {
@@ -168,8 +168,11 @@
<sql id="findStudentsByOrganIdSql">
<where>
su.del_flag_ = 0
- <if test="organId != null and organId != ''">
- AND FIND_IN_SET(su.organ_id_,#{organId})
+ <if test="organIds != null and organIds.length>0">
+ AND su.organ_id_ IN
+ <foreach collection="organIds" item="organId" open="(" close=")" separator=",">
+ #{organId}
+ </foreach>
</if>
<if test="search != null and search != ''">
AND (su.phone_ LIKE CONCAT('%',#{search},'%') OR su.username_ LIKE CONCAT('%',#{search},'%') OR su.id_ LIKE CONCAT('%',#{search},'%'))