Quellcode durchsuchen

更新采购单位 字段

wcc vor 2 Jahren
Ursprung
Commit
36ea57883a
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      createEsIndex/buyertask.go

+ 4 - 2
createEsIndex/buyertask.go

@@ -47,8 +47,9 @@ func buyerOnce() {
 			for _, re := range *result {
 				tmp := make(map[string]interface{}, 0)
 				tmp["name"] = re["name"]
+				tmp["buyer_name"] = re["name"]
 				tmp["id"] = re["name_id"]
-				tmp["area"] = re["area"]
+				tmp["province"] = re["area"]
 				tmp["city"] = re["city"]
 				tmp["buyerclass"] = re["buyerclass"]
 				sql := fmt.Sprintf(`select * from dws_f_ent_contact where name_id = '%v'`, re["name_id"])
@@ -112,9 +113,10 @@ func buyerall() {
 			for _, re := range *result {
 				tmp := make(map[string]interface{}, 0)
 				tmp["name"] = re["name"]
+				tmp["buyer_name"] = re["name"]
 				tmp["id"] = re["name_id"]
 				tmp["_id"] = re["name_id"]
-				tmp["area"] = re["area"]
+				tmp["province"] = re["area"]
 				tmp["city"] = re["city"]
 				tmp["buyerclass"] = re["buyerclass"]