浏览代码

no message

xingzai 7 月之前
父节点
当前提交
37c2b0eb7a
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      controllers/cygx/user.go

+ 12 - 2
controllers/cygx/user.go

@@ -1061,11 +1061,9 @@ func (this *UserController) TableDetail() {
 		}
 	} else if source == 15 { //1V1路演
 		if startDate != "" {
-			//startDate += " 00:00:00"
 			condition += ` AND b.start_date >= '` + startDate + `' `
 		}
 		if endDate != "" {
-			//endDate += " 23:59:59"
 			condition += ` AND b.start_date <= '` + endDate + `' `
 		}
 		if wxUser.Mobile == "" {
@@ -3111,6 +3109,12 @@ func (this *UserController) CompanyTableDetail() {
 			}
 		}
 	} else if source == 15 { //1V1路演
+		if startDate != "" {
+			condition += ` AND b.start_date >= '` + startDate + `' `
+		}
+		if endDate != "" {
+			condition += ` AND b.start_date <= '` + endDate + `' `
+		}
 		var totalRsCalendar int
 		var listRsCalendar []*roadshow.RsCalendarMeetingUserByRai
 		if isAdminRole {
@@ -4445,6 +4449,12 @@ func (this *UserController) CompanyList() {
 			}
 		}
 	} else if source == 15 {
+		if startDate != "" {
+			condition += ` AND b.start_date >= '` + startDate + `' `
+		}
+		if endDate != "" {
+			condition += ` AND b.start_date <= '` + endDate + `' `
+		}
 		var totalRsCalendar int
 		var listRsCalendar []*roadshow.RsCalendarMeetingUserByRai
 		if isAdminRole {