Ver código fonte

fix: 同一时间段同一医生不允许预约多次

matianxiang 3 meses atrás
pai
commit
95266bf1af

+ 1 - 1
eitc-common/src/main/java/com/eitc/common/utils/PatientBaseUtil.java

@@ -153,7 +153,7 @@ public class PatientBaseUtil {
153 153
      * @date: 2023/8/10
154 154
      **/
155 155
     public static boolean isOverlapLocalTime(Date start1, Date end1, Date start2, Date end2) {
156
-        return start1.compareTo(end2) < 0 && end1.compareTo(start2) > 0;
156
+        return start1.compareTo(end2) <= 0 && end1.compareTo(start2) >= 0;
157 157
     }
158 158
 
159 159
 }