|
@@ -63,7 +63,7 @@ func GetNotkeyAndKeyAddWord(list []map[string]interface{}, fieldMap map[string]i
|
|
|
tmp_nkw := nkw_addArr[0]
|
|
|
if tmp_nkw != "" {
|
|
|
cr := &CommonReg{}
|
|
|
- cr.CsVal = tmp_nkw //记录原值
|
|
|
+ cr.CsVal = tmp_nkw //记录原值
|
|
|
if LetterCase.MatchString(tmp_nkw) { //判断附加词中是否有英文
|
|
|
tmp_nkw = strings.ToUpper(tmp_nkw) //附加词中有英文全部转为大写
|
|
|
cr.IsLetter = true //含字母
|
|
@@ -115,7 +115,7 @@ func GetNotkeyAndKeyAddWord(list []map[string]interface{}, fieldMap map[string]i
|
|
|
tmp_aw := aw_addArr[0]
|
|
|
if tmp_aw != "" {
|
|
|
cr := &CommonReg{}
|
|
|
- cr.CsVal = tmp_aw //记录原值
|
|
|
+ cr.CsVal = tmp_aw //记录原值
|
|
|
if LetterCase.MatchString(tmp_aw) { //判断附加词中是否有英文
|
|
|
tmp_aw = strings.ToUpper(tmp_aw) //附加词中有英文全部转为大写
|
|
|
cr.IsLetter = true //含字母
|
|
@@ -501,7 +501,7 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
datas := MgoExtract.FindOne(ExtractColl, querys)
|
|
|
if datas != nil && len(datas) > 0 {
|
|
|
indexdata := []map[string]interface{}{}
|
|
|
- index := 0
|
|
|
+ index := 1
|
|
|
if (datas)["package"] != nil {
|
|
|
packages := (datas)["package"].(map[string]interface{})
|
|
|
for _, vv := range packages {
|
|
@@ -581,7 +581,10 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
if !isMatch {
|
|
|
v["winner_type"] = "集成商"
|
|
|
}
|
|
|
+ log.Println("中标模式", v["winner_type"])
|
|
|
MgoSaveCache <- v
|
|
|
+ xlsxArr = append(xlsxArr, v)
|
|
|
+ xlsxCount++
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1152,7 +1155,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile, isHen
|
|
|
row.AddCell().SetValue(v["projectname"]) //项目名称
|
|
|
row.AddCell().SetValue(v["buyer"]) //采购单位
|
|
|
row.AddCell().SetValue(v[""]) //采购单位类别---私有标签tagname
|
|
|
- if v["bidamount"] != nil { //中标金额
|
|
|
+ if v["bidamount"] != nil { //中标金额
|
|
|
row.AddCell().SetFloat(qu.Float64All(v["bidamount"]))
|
|
|
} else {
|
|
|
row.AddCell()
|
|
@@ -1173,7 +1176,7 @@ func GetXlsxs(mMap []map[string]interface{}, fn, email, id string, isfile, isHen
|
|
|
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"]) //省份
|