xingzai před 1 rokem
rodič
revize
955e5761e3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      controllers/banner.go

+ 1 - 1
controllers/banner.go

@@ -31,7 +31,7 @@ func (this *BannerController) List() {
 	resp := new(models.CygxBannerListResp)
 	resp := new(models.CygxBannerListResp)
 	var condition string
 	var condition string
 	var pars []interface{}
 	var pars []interface{}
-	condition += "	 AND art.status = 1 ORDER BY art. list_type ASC   , art.sort ASC  "
+	condition += " AND art.show_type IN (0,1)	 AND art.status = 1 ORDER BY art. list_type ASC   , art.sort ASC  "
 	list, err := models.GetCygxBannerList(condition, pars, 0, 99999)
 	list, err := models.GetCygxBannerList(condition, pars, 0, 99999)
 	if err != nil {
 	if err != nil {
 		br.Msg = "获取失败"
 		br.Msg = "获取失败"