|
@@ -1540,7 +1540,7 @@ func ABHEmail(source string, data []map[string]interface{}) {
|
|
|
}
|
|
|
filterArr := []string{"-pc", "-app", "-wx", "-h5"}
|
|
|
sourceMap := map[string]string{} //根据留资维表:tidb/Jianyu_subjectdb/d_saleleads_code
|
|
|
- saleSource := TiDb.SelectBySql(`SELECT source,name FROM d_saleleads_code WHERE department LIKE '%大客户%' AND is_delete = 1`)
|
|
|
+ saleSource := TiDb.SelectBySql(`SELECT source,name FROM d_saleleads_code WHERE is_delete = 1`)
|
|
|
if saleSource != nil && len(*saleSource) > 0 {
|
|
|
for _, v := range *saleSource {
|
|
|
source := common.ObjToString(v["source"])
|
|
@@ -1556,9 +1556,9 @@ func ABHEmail(source string, data []map[string]interface{}) {
|
|
|
interest := common.ObjToString(v["interest"])
|
|
|
row := sh.AddRow()
|
|
|
row.AddCell().SetString(common.ObjToString(v["usernickname"]))
|
|
|
- row.AddCell().SetString(common.ObjToString(v["username"]))
|
|
|
+ row.AddCell().SetString(common.ObjToString(v["name"]))
|
|
|
row.AddCell().SetString(common.ObjToString(v["company"]))
|
|
|
- row.AddCell().SetString(common.ObjToString(v["job"]))
|
|
|
+ row.AddCell().SetString(common.ObjToString(v["position"]))
|
|
|
row.AddCell().SetString(common.ObjToString(v["phone"]))
|
|
|
row.AddCell().SetValue(0)
|
|
|
row.AddCell().SetString(common.ObjToString(v["email"]))
|
|
@@ -1716,7 +1716,7 @@ func AFEmail(data []map[string]interface{}) {
|
|
|
row.AddCell().SetString("")
|
|
|
row.AddCell().SetString("")
|
|
|
row.AddCell().SetString("首次使用安防新注册")
|
|
|
- row.AddCell().SetString(gconv.Time(gconv.Int64(v["createtime"])).Format(date.Date_Full_Layout))
|
|
|
+ row.AddCell().SetString(gconv.String(v["time"]))
|
|
|
//增加客户需求
|
|
|
}
|
|
|
email := db.AfEmail
|