tomatozq 3 лет назад
Родитель
Сommit
a5cd7fa091
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      common/src/main/resources/mapper/business/RequestForLeaveInfo.xml

+ 6 - 1
common/src/main/resources/mapper/business/RequestForLeaveInfo.xml

@@ -391,7 +391,12 @@
 			and status_ = 1
 			and person_id =#{personId}
 			and start_time < #{attendanceDate}
-			and end_time >= #{attendanceDate}
+			and
+			(
+				(cancel_status='5' and end_time >= #{attendanceDate})
+			or
+				(cancel_status in('1','4') and cancel_time>#{attendanceDate})
+			)
 			order by start_time asc
 		]]>
 	</select>