zhangchuanxing hai 1 mes
pai
achega
47f8be8c9a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/cygx/user.go

+ 1 - 1
controllers/cygx/user.go

@@ -208,7 +208,7 @@ func (this *UserController) List() {
 
 	if label != "" && utf8.RuneCountInString(label) > 1 {
 		//usercondition += ` AND u.user_label LIKE '%` + label + `%'`
-		usercondition += ` AND u.user_id IN ( SELECT user_id  FROM ` + utils.GetCygxDatabase() + `.wx_user_rai_label WHERE label LIKE '%` + label + `%' ) `
+		usercondition += ` AND u.user_id IN ( SELECT user_id  FROM ` + utils.GetCygxDatabase() + `.wx_user_rai_label WHERE label LIKE '%` + label + `%'  AND create_time >= '` + time.Now().AddDate(0, -4, 0).Format(utils.FormatDate) + `' ) `
 	}
 
 	//