hongze 1 year ago
parent
commit
706130c600
1 changed files with 10 additions and 0 deletions
  1. 10 0
      controllers/overseas_custom/custom.go

+ 10 - 0
controllers/overseas_custom/custom.go

@@ -500,6 +500,7 @@ func (this *OverseasCustomController) CustomLabelStatistics() {
 
 	keywords := this.GetString("Keywords", "")
 	sellerId, _ := this.GetInt("SellerId", 0)
+	customType, _ := this.GetInt("CustomType", 0)
 
 	obj := new(overseas_custom.Custom)
 
@@ -534,6 +535,15 @@ func (this *OverseasCustomController) CustomLabelStatistics() {
 		condition += ` AND m.seller_id=? `
 		pars = append(pars, sellerId)
 	}
+
+	if customType == 2 {
+		condition += ` AND m.is_hide=? `
+		pars = append(pars, 1)
+	} else {
+		condition += ` AND m.is_hide=? `
+		pars = append(pars, 0)
+	}
+
 	overseasLabelDataList, err := obj.GetCustomOverseasLabelTotal(condition, pars)
 	if err != nil {
 		br.Msg = "获取失败"