Parcourir la source

Merge branch 'dev_v1.5.19_wh' of jianyu/datatools into feature/v1.5.19

王浩 il y a 9 mois
Parent
commit
201e36ca06
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      clueSync/jobutil.go

+ 5 - 5
clueSync/jobutil.go

@@ -1517,7 +1517,7 @@ func ABHEmail(source string, data []map[string]interface{}) {
 			row.AddCell().SetString(gconv.Time(gconv.Int64(v["createtime"])).Format(date.Date_Full_Layout))
 			//增加客户需求
 		}
-		dir := "./xlsx/abh/" + fileName + ".xlsx"
+		dir = "./xlsx/abh/" + fileName + ".xlsx"
 		err = xf.Save(dir)
 	case "saleLeads":
 		xlsxArr := []string{"用户昵称", "姓名", "公司名称", "职位", "联系人电话", "购买条数", "用户邮箱", "已支付订单信息", "未支付订单类型", "销售线索来源", "具体来源", "数据需求"}
@@ -1568,7 +1568,7 @@ func ABHEmail(source string, data []map[string]interface{}) {
 			row.AddCell().SetString(common.ObjToString(v["data_requirement"]))
 			//增加客户需求
 		}
-		dir := "./xlsx/abh/" + fileName + ".xlsx"
+		dir = "./xlsx/abh/" + fileName + ".xlsx"
 		err = xf.Save(dir)
 	case "big":
 		xlsxArr := []string{"用户昵称", "姓名", "公司名称", "职位", "联系人电话", "购买条数", "用户邮箱", "已支付订单信息", "未支付订单类型", "销售线索来源", "具体来源", "数据需求"}
@@ -1604,7 +1604,7 @@ func ABHEmail(source string, data []map[string]interface{}) {
 			row.AddCell().SetString(common.ObjToString(v["data_requirement"]))
 			//增加客户需求
 		}
-		dir := "./xlsx/abh/" + fileName + ".xlsx"
+		dir = "./xlsx/abh/" + fileName + ".xlsx"
 		err = xf.Save(dir)
 	case "advisory":
 		xlsxArr := []string{"姓名", "联系方式", "邮箱", "公司名称", "咨询需求", "销售线索来源", "具体来源", "留资时间"}
@@ -1636,7 +1636,7 @@ func ABHEmail(source string, data []map[string]interface{}) {
 			row.AddCell().SetString(common.ObjToString(v["interest"]))
 			row.AddCell().SetString(gconv.Time(gconv.Int64(v["createtime"])).Format(date.Date_Full_Layout))
 		}
-		dir := "./xlsx/abh/" + fileName + ".xlsx"
+		dir = "./xlsx/abh/" + fileName + ".xlsx"
 		err = xf.Save(dir)
 	case "market":
 		xlsxArr := []string{"姓名", "联系人电话", "公司名称", "职位", "部门", "销售线索来源", "留资时间"}
@@ -1667,7 +1667,7 @@ func ABHEmail(source string, data []map[string]interface{}) {
 			row.AddCell().SetString(gconv.Time(gconv.Int64(v["createtime"])).Format(date.Date_Full_Layout))
 			//增加客户需求
 		}
-		dir := "./xlsx/abh/" + fileName + ".xlsx"
+		dir = "./xlsx/abh/" + fileName + ".xlsx"
 		err = xf.Save(dir)
 	}
 	email = db.AbhEmail