Pārlūkot izejas kodu

Merge branch 'crm_fix_bug_2024-09-20' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

xingzai 6 mēneši atpakaļ
vecāks
revīzija
07ae8e9907
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      controllers/roadshow/calendar.go

+ 2 - 2
controllers/roadshow/calendar.go

@@ -2281,7 +2281,7 @@ func (this *CalendarController) ResearcherCalendarDetail() {
 	//condition += ` AND b.end_date<=?`
 	//pars = append(pars, endDate)
 	//解决研究员休假,产生跨周的数据查询不到的bug,
-	condition += `AND ( b.start_date >= ? AND b.end_date <= ? 
+	condition += ` AND ( b.start_date >= ? AND b.end_date <= ? 
 						OR ( b.start_date >= ?  AND  b.start_date <= ? )
 						OR ( b.start_date <= ?  AND  b.end_date  >=  ? ) 
 						OR ( b.end_date >= ?    AND  b.end_date  <=  ? ) )  `
@@ -2439,7 +2439,7 @@ func (this *CalendarController) MyCalendarDetail() {
 	//condition += ` AND b.end_date<=?`
 	//pars = append(pars, endDate)
 	//解决研究员休假,产生跨周的数据查询不到的bug,
-	condition += `AND ( b.start_date >= ? AND b.end_date <= ? 
+	condition += ` AND ( b.start_date >= ? AND b.end_date <= ? 
 						OR ( b.start_date >= ?  AND  b.start_date <= ? )
 						OR ( b.start_date <= ?  AND  b.end_date  >=  ? ) 
 						OR ( b.end_date >= ?    AND  b.end_date  <=  ? ) )  `