|
@@ -70,6 +70,9 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
|
|
|
}
|
|
|
names := make([]string, 0, 100)
|
|
|
for _, bucket := range ta.Buckets {
|
|
|
+ if !(len(bucket.Key) > 5 && (strings.HasSuffix(bucket.Key, "公司") || strings.HasSuffix(bucket.Key, "学校") || strings.HasSuffix(bucket.Key, "学院") || strings.HasSuffix(bucket.Key, "医院"))) {
|
|
|
+ continue
|
|
|
+ }
|
|
|
names = append(names, bucket.Key)
|
|
|
}
|
|
|
//根据采购单位名称查询列表展示字段
|
|
@@ -79,10 +82,6 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
|
|
|
}
|
|
|
var saveBuyerList []*bxbuyer.BuyerList
|
|
|
for i := 0; i < len(*rs); i++ {
|
|
|
- name := MC.ObjToString((*rs)[i]["name"])
|
|
|
- if !(len(name) > 5 && (strings.HasSuffix(name, "公司") || strings.HasSuffix(name, "学校") || strings.HasSuffix(name, "医院"))) {
|
|
|
- continue
|
|
|
- }
|
|
|
saveBuyerList = append(saveBuyerList, &bxbuyer.BuyerList{
|
|
|
SeoId: MC.ObjToString((*rs)[i]["seo_id"]),
|
|
|
Buyer: MC.ObjToString((*rs)[i]["name"]),
|