Browse Source

feat(口腔医院): 排班缺少一天bug

matianxiang 1 month ago
parent
commit
f4fe5d6674

+ 1 - 1
eitc-patient-pc/src/main/java/com/eitc/patient/controller/SchedulingDetailsController.java

@@ -112,7 +112,7 @@ public class SchedulingDetailsController extends BaseController {
112 112
             List<Map<String, String>> dataList = new ArrayList<>();
113 113
             int actualMaximum = instance.getActualMaximum(Calendar.DAY_OF_MONTH);
114 114
             List<SchedulingDetails> detailsList = listMap.get(String.valueOf(user.getUserId()));
115
-            for (int i = 1; i < actualMaximum; i++) {
115
+            for (int i = 1; i < actualMaximum + 1; i++) {
116 116
                 instance.set(Calendar.DAY_OF_MONTH, i);
117 117
                 int d = instance.get(Calendar.DAY_OF_MONTH);
118 118
                 int w = instance.get(Calendar.DAY_OF_WEEK);

+ 1 - 1
eitc-quartz/src/main/java/com/eitc/quartz/task/SchedulingConfigurationTask.java

@@ -44,7 +44,7 @@ public class SchedulingConfigurationTask {
44 44
             Map<Integer, String> collect = listMap.get(doctorId).stream()
45 45
                     .collect(Collectors.toMap(SchedulingConfiguration::getWeekNum, SchedulingConfiguration::getWorkStatus));
46 46
 
47
-            for (int day = 1; day <= actualMaximum; day++) {
47
+            for (int day = 1; day <= actualMaximum + 1; day++) {
48 48
                 instance.set(Calendar.DAY_OF_MONTH, day);
49 49
                 int week = instance.get(Calendar.DAY_OF_WEEK);
50 50