|
@@ -485,6 +485,14 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //河南移动
|
|
|
+ if CheckBidHrefAppidMap[appid] {
|
|
|
+ projectId := GetProjectId(id)
|
|
|
+ if projectId != "" {
|
|
|
+ //projectIds := strings.Split(projectId, ",")
|
|
|
+ tmp["projectId"] = projectId
|
|
|
+ }
|
|
|
+ }
|
|
|
if isDup == 1 {
|
|
|
ok := checkBidId(appid, id)
|
|
|
if !ok {
|
|
@@ -821,7 +829,7 @@ func SkipData(tmp map[string]interface{}) bool {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
-func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile bool) {
|
|
|
+func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile, isHenanMobile bool) {
|
|
|
if id != "" {
|
|
|
query := bson.M{
|
|
|
"_id": bson.ObjectIdHex(id),
|
|
@@ -1036,6 +1044,66 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile bool)
|
|
|
row.AddCell().SetValue(ids)
|
|
|
}
|
|
|
xf.Sheets = xf.Sheets[3:4]
|
|
|
+ } else if dataType == 5 {
|
|
|
+ sh := xf.Sheets[4]
|
|
|
+ //if isfile {
|
|
|
+ // cell := sh.Rows[0].AddCell()
|
|
|
+ // cell.SetValue("附件")
|
|
|
+ // cell.SetStyle(style)
|
|
|
+ //}
|
|
|
+ for _, v := range mMap {
|
|
|
+ row := sh.AddRow()
|
|
|
+ // row.AddCell().SetInt(i + 1)
|
|
|
+ row.AddCell().SetValue(v["matchkey"]) //信息匹配词
|
|
|
+ row.AddCell().SetValue(v["city"]) //城市
|
|
|
+ row.AddCell().SetValue(v["district"]) //县区
|
|
|
+ row.AddCell().SetValue(v["projectname"]) //项目名称
|
|
|
+ row.AddCell().SetValue(v["buyer"]) //采购单位
|
|
|
+ row.AddCell().SetValue(v[""]) //采购单位类别---私有标签tagname
|
|
|
+ if v["bidamount"] != nil { //中标金额
|
|
|
+ row.AddCell().SetFloat(qu.Float64All(v["bidamount"]))
|
|
|
+ } else {
|
|
|
+ row.AddCell()
|
|
|
+ }
|
|
|
+ if v["budget"] != nil { //预算
|
|
|
+ row.AddCell().SetFloat(qu.Float64All(v["budget"]))
|
|
|
+ } else {
|
|
|
+ row.AddCell()
|
|
|
+ }
|
|
|
+ if v["publishtime"] != nil { //公告发布时间
|
|
|
+ row.AddCell().SetValue(time.Unix(qu.Int64All(v["publishtime"]), 0).Format("2006-01-02"))
|
|
|
+ } else {
|
|
|
+ row.AddCell()
|
|
|
+ }
|
|
|
+ if v["bidopentime"] != nil { //开标日期
|
|
|
+ row.AddCell().SetValue(time.Unix(qu.Int64All(v["bidopentime"]), 0).Format("2006-01-02"))
|
|
|
+ } else {
|
|
|
+ row.AddCell()
|
|
|
+ }
|
|
|
+ row.AddCell().SetValue(v["s_winner"]) //中标单位
|
|
|
+ row.AddCell().SetValue(v[""]) //中标模式--移动、电信、联通
|
|
|
+ row.AddCell().SetValue(v["title"]) //公告标题
|
|
|
+ row.AddCell().SetValue(v["subtype"]) //公告类别
|
|
|
+ row.AddCell().SetValue(v["area"]) //省份
|
|
|
+ row.AddCell().SetValue(v["projectscope"]) //项目范围
|
|
|
+ row.AddCell().SetValue(v["agency"]) //招标代理机构
|
|
|
+ row.AddCell().SetValue(v["detail"]) //公告内容
|
|
|
+ row.AddCell().SetValue(v["href"]) //公告地址
|
|
|
+ row.AddCell().SetValue(v["buyerperson"]) //采购单位联系人
|
|
|
+ row.AddCell().SetValue(v["buyertel"]) //采购单位联系电话
|
|
|
+ row.AddCell().SetValue(v["winnerperson"]) //中标单位联系人
|
|
|
+ row.AddCell().SetValue(v["winnertel"]) //中标单位联系电话
|
|
|
+ row.AddCell().SetValue(v["legal_person"]) //中标企业联系人
|
|
|
+ row.AddCell().SetValue(v["company_phone"]) //中标企业联系电话
|
|
|
+ row.AddCell().SetValue(v["company_email"]) //中标企业邮箱
|
|
|
+ ids := SE.EncodeString(qu.ObjToString(v["id"])) //唯一标识
|
|
|
+ row.AddCell().SetValue(ids)
|
|
|
+ row.AddCell().SetValue(SE.EncodeString(qu.ObjToString(v["projectId"]))) //项目标识
|
|
|
+
|
|
|
+ //row.AddCell().SetValue(v["jybxhref"])
|
|
|
+ //row.AddCell().SetValue(v["projectcode"])
|
|
|
+ }
|
|
|
+ xf.Sheets = xf.Sheets[4:5]
|
|
|
}
|
|
|
xf.Sheets[0].Name = "详细数据"
|
|
|
//生文件
|