|
|
@@ -284,7 +284,7 @@ public class RoomBedServiceImpl extends MPJBaseServiceImpl<RoomBedMapper, RoomBe
|
|
|
List<StudentPayStatusVo> studentPayStatus = roomBedMapper.getStudentPayStatus(dto);
|
|
|
Map<Long, Integer> payStatusMap = new HashMap<>();
|
|
|
for (StudentPayStatusVo payStatus : studentPayStatus) {
|
|
|
- payStatusMap.put(payStatus.getId(), payStatus.getPayStatus());
|
|
|
+ payStatusMap.put(payStatus.getId(), (payStatus.getPayStatus() == null?0:payStatus.getPayStatus()));
|
|
|
}
|
|
|
for (String genderNumber : genderSet) {
|
|
|
//根据性别查询出所有空床位信息
|
|
|
@@ -411,12 +411,26 @@ public class RoomBedServiceImpl extends MPJBaseServiceImpl<RoomBedMapper, RoomBe
|
|
|
);
|
|
|
List<AdjustBedClassPageVo> result = new ArrayList<>();
|
|
|
List<AdjustBedClassStudentPageVo> allStudent = roomBedMapper.getClassStudetBed(dto);
|
|
|
+
|
|
|
+ //查询缴费状态
|
|
|
+ DistributeRoomBedDto distributeRoomBedDto = new DistributeRoomBedDto();
|
|
|
+ List<Long> classIds = new ArrayList<>();
|
|
|
+ for (BaseClass baseClass : classList) {
|
|
|
+ classIds.add(baseClass.getId());
|
|
|
+ }
|
|
|
+ distributeRoomBedDto.setClassIds(classIds);
|
|
|
+ List<StudentPayStatusVo> studentPayStatusVoList = roomBedMapper.getStudentPayStatus(distributeRoomBedDto);
|
|
|
+ Map<Long, Integer> payStatusMap = new HashMap<>();
|
|
|
+ for (StudentPayStatusVo statusVo : studentPayStatusVoList) {
|
|
|
+ payStatusMap.put(statusVo.getId(), statusVo.getPayStatus());
|
|
|
+ }
|
|
|
for (BaseClass classOne : classList) {
|
|
|
List<AdjustBedClassStudentPageVo> studentList = new ArrayList<>();
|
|
|
for (AdjustBedClassStudentPageVo adjustBedClassStudentPageVo : allStudent) {
|
|
|
if(!classOne.getId().toString().equals(adjustBedClassStudentPageVo.getClassId())){
|
|
|
continue;
|
|
|
}
|
|
|
+ adjustBedClassStudentPageVo.setPayStatus(payStatusMap.get(Long.valueOf(adjustBedClassStudentPageVo.getUserId())));
|
|
|
studentList.add(adjustBedClassStudentPageVo);
|
|
|
}
|
|
|
if(studentList.isEmpty()){
|