|
|
@@ -306,6 +306,7 @@ public class RoomBedServiceImpl extends MPJBaseServiceImpl<RoomBedMapper, RoomBe
|
|
|
.eq(BaseClass::getId, classId)
|
|
|
.eq(XjrUser::getGender, genderNumber)
|
|
|
.eq(BaseStudentSchoolRoll::getStduyStatus, "FB3002")
|
|
|
+ .eq(BaseStudentSchoolRoll::getArchivesStatus, "FB2901")//只查询在读学生
|
|
|
.eq(BaseStudent::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
.eq(XjrUser::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
.innerJoin(XjrUser.class, XjrUser::getId, BaseStudent::getUserId)
|
|
|
@@ -422,7 +423,11 @@ public class RoomBedServiceImpl extends MPJBaseServiceImpl<RoomBedMapper, RoomBe
|
|
|
List<StudentPayStatusVo> studentPayStatusVoList = roomBedMapper.getStudentPayStatus(distributeRoomBedDto);
|
|
|
Map<Long, Integer> payStatusMap = new HashMap<>();
|
|
|
for (StudentPayStatusVo statusVo : studentPayStatusVoList) {
|
|
|
- payStatusMap.put(statusVo.getId(), statusVo.getPayStatus());
|
|
|
+ Integer payStatus = 0;
|
|
|
+ if(statusVo.getPayStatus() != null){
|
|
|
+ payStatus = statusVo.getPayStatus();
|
|
|
+ }
|
|
|
+ payStatusMap.put(statusVo.getId(), payStatus);
|
|
|
}
|
|
|
for (BaseClass classOne : classList) {
|
|
|
List<AdjustBedClassStudentPageVo> studentList = new ArrayList<>();
|
|
|
@@ -430,7 +435,11 @@ public class RoomBedServiceImpl extends MPJBaseServiceImpl<RoomBedMapper, RoomBe
|
|
|
if(!classOne.getId().toString().equals(adjustBedClassStudentPageVo.getClassId())){
|
|
|
continue;
|
|
|
}
|
|
|
- adjustBedClassStudentPageVo.setPayStatus(payStatusMap.get(Long.valueOf(adjustBedClassStudentPageVo.getUserId())));
|
|
|
+ Integer payStatus = payStatusMap.get(Long.valueOf(adjustBedClassStudentPageVo.getUserId()));
|
|
|
+ if(payStatus == null){
|
|
|
+ payStatus = 0;
|
|
|
+ }
|
|
|
+ adjustBedClassStudentPageVo.setPayStatus(payStatus);
|
|
|
studentList.add(adjustBedClassStudentPageVo);
|
|
|
}
|
|
|
if(studentList.isEmpty()){
|