|
@@ -489,12 +489,13 @@ var INFOFIELDS = []string{
|
|
|
"topscopeclass",
|
|
|
"subscopclass",
|
|
|
"infoformat",
|
|
|
+ "buyerperson",
|
|
|
+ "buyertel",
|
|
|
}
|
|
|
|
|
|
//项目中list的信息
|
|
|
func (p *ProjectTask) PushListInfo(tmp map[string]interface{}) bson.M {
|
|
|
res := bson.M{
|
|
|
-
|
|
|
"infoid": qu.BsonIdToSId(tmp["_id"]),
|
|
|
}
|
|
|
for _, k := range INFOFIELDS {
|
|
@@ -614,12 +615,12 @@ func (p *ProjectTask) UpdateProject(tmp map[string]interface{}, thisinfo *Info,
|
|
|
}
|
|
|
//9--采购单位联系人
|
|
|
if thisinfo.Buyerperson != "" && strings.Index(pInfo.Buyerperson, thisinfo.Buyerperson) < 0 {
|
|
|
- pInfo.Buyerperson += thisinfo.Buyerperson
|
|
|
+ pInfo.Buyerperson = thisinfo.Buyerperson
|
|
|
set["buyerperson"] = pInfo.Buyerperson
|
|
|
}
|
|
|
//10--采购单位電話
|
|
|
if thisinfo.Buyertel != "" && strings.Index(pInfo.Buyertel, thisinfo.Buyertel) < 0 {
|
|
|
- pInfo.Buyertel += thisinfo.Buyertel
|
|
|
+ pInfo.Buyertel = thisinfo.Buyertel
|
|
|
set["buyertel"] = pInfo.Buyertel
|
|
|
}
|
|
|
|