contact_add.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package ent_contact
  2. func aaabbb() {
  3. //buyer := qu.ObjToString(tmp["buyer"])
  4. //agency := qu.ObjToString(tmp["agency"])
  5. //winner := qu.ObjToString(tmp["winner"])
  6. //owner := qu.ObjToString(tmp["owner"])
  7. //s_winner := qu.ObjToString(tmp["s_winner"])
  8. //b_per := qu.ObjToString(tmp["buyerperson"])
  9. //b_tel := qu.ObjToString(tmp["buyertel"])
  10. //if utf8.RuneCountInString(b_tel) > 60 {
  11. // b_tel = ""
  12. //}
  13. //a_per := qu.ObjToString(tmp["agencyperson"])
  14. //a_tel := qu.ObjToString(tmp["agencytel"])
  15. //if utf8.RuneCountInString(a_tel) > 60 {
  16. // a_tel = ""
  17. //}
  18. //w_per := qu.ObjToString(tmp["winnerperson"])
  19. //w_tel := qu.ObjToString(tmp["winnertel"])
  20. //if utf8.RuneCountInString(w_tel) > 60 {
  21. // w_tel = ""
  22. //}
  23. //o_per := qu.ObjToString(tmp["project_person"])
  24. //o_tel := qu.ObjToString(tmp["project_phone"])
  25. //if utf8.RuneCountInString(o_tel) > 60 {
  26. // o_tel = ""
  27. //}
  28. //
  29. //buyerclass := qu.ObjToString(tmp["buyerclass"])
  30. //publishtime := qu.Int64All(tmp["publishtime"])
  31. //tmpid := ul.BsonTOStringId(tmp["_id"])
  32. //winner_arr, winner_bool := ul.SegmentationEntName(winner, s_winner)
  33. //
  34. //updateLock.Lock()
  35. //if buyer != "" && utf8.RuneCountInString(buyer) < 30 {
  36. // dealWithUpdateContact(buyer, buyerclass, &ul.Contact{b_per, b_tel, true, false, false, false, publishtime}, "0001", tmpid)
  37. //}
  38. ////中标单位
  39. //for k, v := range winner_arr {
  40. // b := winner_bool[k]
  41. // c := ul.Contact{"", "", false, false, true, false, publishtime}
  42. // if b {
  43. // c.Per = w_per
  44. // c.Tel = w_tel
  45. // }
  46. // dealWithUpdateContact(v, "", &c, "0010", tmpid)
  47. //}
  48. //
  49. //if agency != "" && utf8.RuneCountInString(agency) < 30 {
  50. // dealWithUpdateContact(agency, "", &ul.Contact{a_per, a_tel, false, true, false, false, publishtime}, "0100", tmpid)
  51. //}
  52. //
  53. //if owner != "" && utf8.RuneCountInString(owner) < 30 {
  54. // dealWithUpdateContact(owner, "", &ul.Contact{o_per, o_tel, false, false, false, true, publishtime}, "1000", tmpid)
  55. //}
  56. //updateLock.Unlock()
  57. }