jiaojiao7 4 년 전
부모
커밋
d7b358ef85
4개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 0
      customerdata/src/task.go
  2. 3 0
      src/history/task.go
  3. 1 1
      src/history/util_history.go
  4. 2 2
      src/service/second_push.go

+ 3 - 0
customerdata/src/task.go

@@ -373,6 +373,9 @@ func (c *Customer) GetData(stype string) {
 										tagIdArr := MapDataToArr(tagIdMap)
 										if len(tagNameArr) > 0 {
 											tmp["tagname"] = strings.Join(tagNameArr, ",")
+											if DisPackageAppidMap[c.AppId]{
+												tmp["buyer_type"] = strings.Join(tagNameArr, ",")
+											}
 											if c.PushModel == 2 {
 												tmp["item"] = strings.Join(tagNameArr, ",")
 											}

+ 3 - 0
src/history/task.go

@@ -311,6 +311,9 @@ func (c *Customer) GetData(stype string) {
 										tagIdArr := MapDataToArr(tagIdMap)
 										if len(tagNameArr) > 0 {
 											tmp["tagname"] = strings.Join(tagNameArr, ",")
+											if DisPackageAppidMap[c.AppId]{
+												tmp["buyer_type"] = strings.Join(tagNameArr, ",")
+											}
 											if c.PushModel == 2 {
 												tmp["item"] = strings.Join(tagNameArr, ",")
 											}

+ 1 - 1
src/history/util_history.go

@@ -1137,7 +1137,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile, isHen
 					row.AddCell().SetValue(v["district"])    //县区
 					row.AddCell().SetValue(v["projectname"]) //项目名称
 					row.AddCell().SetValue(v["buyer"])       //采购单位
-					row.AddCell().SetValue(v["tagname"])     //采购单位类别---私有标签tagname
+					row.AddCell().SetValue(v["buyer_type"])     //采购单位类别---私有标签tagname
 					if v["bidamount"] != nil { //中标金额
 						row.AddCell().SetFloat(qu.Float64All(v["bidamount"]))
 					} else {

+ 2 - 2
src/service/second_push.go

@@ -580,7 +580,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
 					row.AddCell().SetValue(v["district"])    //县区
 					row.AddCell().SetValue(v["projectname"]) //项目名称
 					row.AddCell().SetValue(v["buyer"])       //采购单位
-					row.AddCell().SetValue(v["tagname"])     //采购单位类别---私有标签tagname
+					row.AddCell().SetValue(v["buyer_type"])  //采购单位类别---私有标签tagname
 					if v["bidamount"] != nil { //中标金额
 						row.AddCell().SetFloat(qu.Float64All(v["bidamount"]))
 					} else {
@@ -602,7 +602,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string) {
 						row.AddCell()
 					}
 					row.AddCell().SetValue(v["s_winner"])           //中标单位
-					row.AddCell().SetValue(v[""])                   //中标模式--移动、电信、联通
+					row.AddCell().SetValue(v["winner_type"])        //中标模式--移动、电信、联通
 					row.AddCell().SetValue(v["title"])              //公告标题
 					row.AddCell().SetValue(v["subtype"])            //公告类别
 					row.AddCell().SetValue(v["area"])               //省份