yonge 5 năm trước cách đây
mục cha
commit
e8a52ce6d2

+ 10 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/StudentManageQueryInfo.java

@@ -22,6 +22,8 @@ public class StudentManageQueryInfo extends QueryInfo {
 
     @ApiModelProperty(value = "状态(在读、请假、退学)",required = false)
     private ClassGroupStudentStatusEnum studentStatus;
+    
+    private Boolean isActive;
 
     public String getStudentName() {
         return studentName;
@@ -54,4 +56,12 @@ public class StudentManageQueryInfo extends QueryInfo {
     public void setMusicGroupId(String musicGroupId) {
         this.musicGroupId = musicGroupId;
     }
+
+	public Boolean getIsActive() {
+		return isActive;
+	}
+
+	public void setIsActive(Boolean isActive) {
+		this.isActive = isActive;
+	}
 }

+ 6 - 0
mec-biz/src/main/resources/config/mybatis/StudentManageDao.xml

@@ -136,6 +136,12 @@
             <if test="search != null and search != ''">
                 AND (su.phone_ LIKE CONCAT('%',#{search},'%') OR su.username_ LIKE CONCAT('%',#{search},'%') OR su.id_ LIKE CONCAT('%',#{search},'%'))
             </if>
+            <if test="isActive != null and isActive == true">
+            	and su.password_ is not null
+            </if>
+            <if test="isActive != null and isActive == false">
+            	and su.password_ is null
+            </if>
         </where>
     </sql>