瀏覽代碼

学生班级查询调整

dzx 7 月之前
父節點
當前提交
b670ea4cf0

+ 3 - 0
src/main/java/com/xjrsoft/module/student/dto/BaseStudentSimpleInfoDto.java

@@ -20,4 +20,7 @@ public class BaseStudentSimpleInfoDto {
     private String name;
 
     private String idNumber;
+
+    @ApiModelProperty("学籍状态")
+    private String archivesStatus;
 }

+ 1 - 0
src/main/java/com/xjrsoft/module/student/service/impl/BaseStudentSchoolRollServiceImpl.java

@@ -274,6 +274,7 @@ public class BaseStudentSchoolRollServiceImpl extends MPJBaseServiceImpl<BaseStu
 
     @Override
     public List<BaseStudentSompleInfoVo> getInfosByParam(BaseStudentSimpleInfoDto dto) {
+        dto.setArchivesStatus(ArchivesStatusEnum.FB2901.getCode());
         List<BaseStudentSompleInfoVo> userList = userMapper.getInfosByParam(dto);
         if(userList.isEmpty()){
             userList = newStudentMapper.getInfosByParam(dto);

+ 3 - 0
src/main/resources/mapper/organization/UserMapper.xml

@@ -47,6 +47,9 @@
         <if test="dto.userId != null">
             AND t1.id = #{dto.userId}
         </if>
+        <if test="dto.archivesStatus != null and dto.archivesStatus != ''">
+            AND t3.archives_status = ${dto.archivesStatus}
+        </if>
     </select>
     <select id="personPage" parameterType="com.xjrsoft.module.organization.dto.PersonPageDto" resultType="com.xjrsoft.module.organization.vo.PersonPageVo">
         SELECT t1.id,t1.name,t1.user_name,t1.mobile,t3.name AS gender_cn,t2.employ_type,t2.employ_way FROM xjr_user t1