|
@@ -564,10 +564,12 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
}
|
|
|
log.Println("项目id去重,项目id:", projectId, isOk)
|
|
|
}
|
|
|
+ } else {
|
|
|
+ tmp["projectId"] = ""
|
|
|
}
|
|
|
|
|
|
//河南移动/盈峰科技
|
|
|
- if NeedProjectidAppidMap[appid] {
|
|
|
+ /*if NeedProjectidAppidMap[appid] {
|
|
|
projectId := GetProjectId(id)
|
|
|
if projectId != "" {
|
|
|
//projectIds := strings.Split(projectId, ",")
|
|
@@ -576,7 +578,8 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
} else {
|
|
|
tmp["projectId"] = ""
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
+
|
|
|
// 标识第一条数据是否拆过包
|
|
|
var isDis bool = false
|
|
|
if DisPackageAppidMap[appid] {
|
|
@@ -682,6 +685,28 @@ func AssembelSave(tmp map[string]interface{}, IsSearchHosp, IsSearchEnps bool, h
|
|
|
MgoSave.Save(SaveCollbid, tmp)
|
|
|
}
|
|
|
}
|
|
|
+ //匹配公告附件
|
|
|
+ info := MgoBidding.FindOne(BiddingColl, map[string]interface{}{"_id": mongodb.StringTOBsonId(id)})
|
|
|
+ if info != nil && len(info) > 0 {
|
|
|
+ if info["projectinfo"] != nil {
|
|
|
+ projectInfo := qu.ObjToMap(info["projectinfo"])
|
|
|
+ if (*projectInfo)["attachments"] != nil {
|
|
|
+ filesArr := []map[string]interface{}{}
|
|
|
+ fileUrl := qu.ObjToString(Sysconfig["file_downloadurl"])
|
|
|
+ attachments := (*projectInfo)["attachments"].(map[string]interface{})
|
|
|
+ for _, v := range attachments {
|
|
|
+ atta := v.(map[string]interface{})
|
|
|
+ fileMap := map[string]interface{}{
|
|
|
+ "filename": atta["filename"],
|
|
|
+ "url": fileUrl + qu.ObjToString(atta["fid"]),
|
|
|
+ }
|
|
|
+ filesArr = append(filesArr, fileMap)
|
|
|
+ }
|
|
|
+ log.Println("查询附件结果:", id, "附件数量:", len(filesArr))
|
|
|
+ tmp["filehref"] = filesArr
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if isOk {
|
|
|
if dataTable == 0 { //存到usermail_history
|
|
|
MgoSaveCache <- tmp
|