dzx 1 rok pred
rodič
commit
42f14e5f4c

+ 3 - 2
src/main/java/com/xjrsoft/module/student/mapper/BaseStudentSchoolRollMapper.java

@@ -11,6 +11,7 @@ import com.xjrsoft.module.student.vo.BaseStudentInfoPageDataVo;
 import com.xjrsoft.module.student.vo.BaseStudentInfoPageVo;
 import org.apache.ibatis.annotations.Delete;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Update;
 
 import java.util.List;
@@ -35,14 +36,14 @@ public interface BaseStudentSchoolRollMapper extends MPJBaseMapper<BaseStudentSc
      * @param dto
      * @return
      */
-    List<BaseStudentInfoCategoryVo> getGenderCount(BaseStudentInfoPageDto dto);
+    List<BaseStudentInfoCategoryVo> getGenderCount(@Param("dto") BaseStudentInfoPageDto dto);
 
     /**
      * 根据就读方式统计学生人数
      * @param dto
      * @return
      */
-    List<BaseStudentInfoCategoryVo> getStudyStatusCount(BaseStudentInfoPageDto dto);
+    List<BaseStudentInfoCategoryVo> getStudyStatusCount(@Param("dto") BaseStudentInfoPageDto dto);
 
 }
 

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

@@ -83,6 +83,7 @@ public class BaseStudentSchoolRollServiceImpl extends MPJBaseServiceImpl<BaseStu
                 result.setFemaleCount(categoryVo.getNumber());
             }
         }
+        result.setTotalCount(totalCount);
         List<BaseStudentInfoCategoryVo> studyStatusCount = baseStudentSchoolRollMapper.getStudyStatusCount(dto);
         for (BaseStudentInfoCategoryVo categoryVo : studyStatusCount) {
             if(StudyStatusEnum.InResidence.getCode().equals(categoryVo.getCategory())){