Jelajahi Sumber

床位调整增加缴费状态

dzx 1 tahun lalu
induk
melakukan
fc27337289

+ 1 - 1
src/main/java/com/xjrsoft/module/room/service/impl/RoomBedServiceImpl.java

@@ -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) {
             //根据性别查询出所有空床位信息