12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package ent_contact
- func aaabbb() {
- //buyer := qu.ObjToString(tmp["buyer"])
- //agency := qu.ObjToString(tmp["agency"])
- //winner := qu.ObjToString(tmp["winner"])
- //owner := qu.ObjToString(tmp["owner"])
- //s_winner := qu.ObjToString(tmp["s_winner"])
- //b_per := qu.ObjToString(tmp["buyerperson"])
- //b_tel := qu.ObjToString(tmp["buyertel"])
- //if utf8.RuneCountInString(b_tel) > 60 {
- // b_tel = ""
- //}
- //a_per := qu.ObjToString(tmp["agencyperson"])
- //a_tel := qu.ObjToString(tmp["agencytel"])
- //if utf8.RuneCountInString(a_tel) > 60 {
- // a_tel = ""
- //}
- //w_per := qu.ObjToString(tmp["winnerperson"])
- //w_tel := qu.ObjToString(tmp["winnertel"])
- //if utf8.RuneCountInString(w_tel) > 60 {
- // w_tel = ""
- //}
- //o_per := qu.ObjToString(tmp["project_person"])
- //o_tel := qu.ObjToString(tmp["project_phone"])
- //if utf8.RuneCountInString(o_tel) > 60 {
- // o_tel = ""
- //}
- //
- //buyerclass := qu.ObjToString(tmp["buyerclass"])
- //publishtime := qu.Int64All(tmp["publishtime"])
- //tmpid := ul.BsonTOStringId(tmp["_id"])
- //winner_arr, winner_bool := ul.SegmentationEntName(winner, s_winner)
- //
- //updateLock.Lock()
- //if buyer != "" && utf8.RuneCountInString(buyer) < 30 {
- // dealWithUpdateContact(buyer, buyerclass, &ul.Contact{b_per, b_tel, true, false, false, false, publishtime}, "0001", tmpid)
- //}
- ////中标单位
- //for k, v := range winner_arr {
- // b := winner_bool[k]
- // c := ul.Contact{"", "", false, false, true, false, publishtime}
- // if b {
- // c.Per = w_per
- // c.Tel = w_tel
- // }
- // dealWithUpdateContact(v, "", &c, "0010", tmpid)
- //}
- //
- //if agency != "" && utf8.RuneCountInString(agency) < 30 {
- // dealWithUpdateContact(agency, "", &ul.Contact{a_per, a_tel, false, true, false, false, publishtime}, "0100", tmpid)
- //}
- //
- //if owner != "" && utf8.RuneCountInString(owner) < 30 {
- // dealWithUpdateContact(owner, "", &ul.Contact{o_per, o_tel, false, false, false, true, publishtime}, "1000", tmpid)
- //}
- //updateLock.Unlock()
- }
|