|
@@ -1158,6 +1158,10 @@ func (this *CalendarController) ResearcherList() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
func (this *CalendarController) CalendarList() {
|
|
func (this *CalendarController) CalendarList() {
|
|
@@ -1180,6 +1184,11 @@ func (this *CalendarController) CalendarList() {
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
|
|
|
|
|
+ status, _ := this.GetInt("Status")
|
|
|
|
+ startDate := this.GetString("StartDate")
|
|
|
|
+ endDate := this.GetString("EndDate")
|
|
|
|
+ keyword := this.GetString("Keyword")
|
|
|
|
+
|
|
var total int
|
|
var total int
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
|
|
|
@@ -1256,6 +1265,29 @@ func (this *CalendarController) CalendarList() {
|
|
br.ErrMsg = "参数错误,calendarType:" + strconv.Itoa(calendarType)
|
|
br.ErrMsg = "参数错误,calendarType:" + strconv.Itoa(calendarType)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if status > 0 {
|
|
|
|
+ condition += ` AND b.status = ?`
|
|
|
|
+ pars = append(pars, status)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if startDate != "" {
|
|
|
|
+ condition += ` AND b.start_date >= ?`
|
|
|
|
+ pars = append(pars, startDate)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if endDate != "" {
|
|
|
|
+ condition += ` AND b.start_date <= ?`
|
|
|
|
+ pars = append(pars, endDate)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ keyword = strings.TrimSpace(keyword)
|
|
|
|
+ if keyword != "" {
|
|
|
|
+ kw := fmt.Sprint("%", keyword, "%")
|
|
|
|
+ condition += ` AND a.company_name LIKE ? `
|
|
|
|
+ pars = append(pars, kw)
|
|
|
|
+ }
|
|
|
|
+
|
|
fmt.Println(condition)
|
|
fmt.Println(condition)
|
|
resp := new(roadshow.CalendarListResp)
|
|
resp := new(roadshow.CalendarListResp)
|
|
total, err := roadshow.GetCalendarListCount(condition, pars, calendarType)
|
|
total, err := roadshow.GetCalendarListCount(condition, pars, calendarType)
|