Browse Source

feat: 创建逻辑新增

zhangxinlei1996 1 year ago
parent
commit
5b61b74ffe

+ 5 - 0
README.md

@@ -0,0 +1,5 @@
+CRM应用程序,只提供api服务
+
+goctl api go -api application.api -dir .
+
+go test -v -coverprofile=coverage go tool cover -html=coverage -o coverage.html

BIN
api/api.exe


+ 3 - 0
api/application.api

@@ -14,6 +14,7 @@ type (
 		EntUserId    int64   `header:"entUserId,optional"`
 		EntId        int64   `header:"entId,optional"`
 		AccountId    int64   `header:"accountId,optional"`
+		EntDeptId    int64   `header:"entDeptId,optional"`
 		CluesSource  string  `json:"cluesSource"`           //线索来源
 		ClueName     string  `json:"clueName"`              //线索名称
 		Summary      string  `json:"summary"`               //概要信息
@@ -31,6 +32,7 @@ type (
 		EntUserId         int64   `header:"entUserId,optional"`
 		EntId             int64   `header:"entId,optional"`
 		AccountId         int64   `header:"accountId,optional"`
+		EntDeptId         int64   `header:"entDeptId,optional"`
 		ChanceName        string  `json:"chanceName"`                 //机会名称
 		Summary           string  `json:"summary"`                    //概要信息
 		ChanceClassify    int64   `json:"chanceClassify"`             //机会分类
@@ -99,6 +101,7 @@ type (
 		EntUserId            int64   `header:"entUserId,optional"`
 		EntId                int64   `header:"entId,optional"`
 		AccountId            int64   `header:"accountId,optional"`
+		EntDeptId            int64   `header:"entDeptId,optional"`
 		CustomType           int64   `json:"customType"`                //客户类型
 		Summary              string  `json:"summary"`                   //概要信息
 		CustomAllName        string  `json:"customAllName"`             //客户全称

BIN
api/application_api


+ 1 - 0
api/internal/logic/clueaddlogic.go

@@ -42,6 +42,7 @@ func (l *ClueAddLogic) ClueAdd(req *types.ClueAddReq) (resp *types.Reply, err er
 		FollowUpTime: req.FollowUpTime,
 		CreateName:   req.CreateName,
 		BaseUserId:   req.BaseUserId,
+		EntDeptId:    req.EntDeptId,
 	}
 	status, groupId := clue.Add(l.ctx)
 

+ 1 - 0
api/internal/logic/customaddlogic.go

@@ -34,6 +34,7 @@ func (l *CustomAddLogic) CustomAdd(req *types.CustomAddReq) (resp *types.Reply,
 		EntId:                req.EntId,
 		AppId:                req.AppId,
 		AccountId:            req.AccountId,
+		EntDeptId:            req.EntDeptId,
 		CustomType:           req.CustomType,           //客户类型
 		Summary:              req.Summary,              //概要信息
 		CustomAllName:        req.CustomAllName,        //客户全称

+ 1 - 0
api/internal/logic/salechanceaddlogic.go

@@ -34,6 +34,7 @@ func (l *SaleChanceAddLogic) SaleChanceAdd(req *types.SaleChanceReq) (resp *type
 		EntId:             req.EntId,
 		AppId:             req.AppId,
 		AccountId:         req.AccountId,
+		EntDeptId:         req.EntDeptId,
 		ChanceName:        req.ChanceName,        //机会名称
 		Summary:           req.Summary,           //概要信息
 		ChanceClassify:    req.ChanceClassify,    //机会分类

+ 3 - 0
api/internal/types/types.go

@@ -14,6 +14,7 @@ type ClueAddReq struct {
 	EntUserId    int64   `header:"entUserId,optional"`
 	EntId        int64   `header:"entId,optional"`
 	AccountId    int64   `header:"accountId,optional"`
+	EntDeptId    int64   `header:"entDeptId,optional"`
 	CluesSource  string  `json:"cluesSource"`           //线索来源
 	ClueName     string  `json:"clueName"`              //线索名称
 	Summary      string  `json:"summary"`               //概要信息
@@ -31,6 +32,7 @@ type SaleChanceReq struct {
 	EntUserId         int64   `header:"entUserId,optional"`
 	EntId             int64   `header:"entId,optional"`
 	AccountId         int64   `header:"accountId,optional"`
+	EntDeptId         int64   `header:"entDeptId,optional"`
 	ChanceName        string  `json:"chanceName"`                 //机会名称
 	Summary           string  `json:"summary"`                    //概要信息
 	ChanceClassify    int64   `json:"chanceClassify"`             //机会分类
@@ -99,6 +101,7 @@ type CustomAddReq struct {
 	EntUserId            int64   `header:"entUserId,optional"`
 	EntId                int64   `header:"entId,optional"`
 	AccountId            int64   `header:"accountId,optional"`
+	EntDeptId            int64   `header:"entDeptId,optional"`
 	CustomType           int64   `json:"customType"`                //客户类型
 	Summary              string  `json:"summary"`                   //概要信息
 	CustomAllName        string  `json:"customAllName"`             //客户全称

+ 371 - 0
api/logs/access.log

@@ -0,0 +1,371 @@
+{"@timestamp":"2023-09-16T10:28:15.252+08:00","caller":"common/initconfig.go:58","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T10:28:15.252+08:00","caller":"common/initconfig.go:58","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T10:28:15.294+08:00","caller":"common/initconfig.go:103","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T10:28:15.294+08:00","caller":"common/initconfig.go:107","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T10:28:15.294+08:00","caller":"common/initconfig.go:116","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T10:28:15.295+08:00","caller":"common/initconfig.go:127","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T10:28:56.991+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:59907 - PostmanRuntime/7.26.8","duration":"400.3ms","level":"info","span":"157c158036c09cbe","trace":"9f3e3c9dc7deef819ad42a1ea895fda8"}
+{"@timestamp":"2023-09-16T10:30:39.903+08:00","caller":"common/initconfig.go:58","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T10:30:39.903+08:00","caller":"common/initconfig.go:58","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T10:30:39.938+08:00","caller":"common/initconfig.go:103","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T10:30:39.938+08:00","caller":"common/initconfig.go:107","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T10:30:39.938+08:00","caller":"common/initconfig.go:116","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T10:30:39.938+08:00","caller":"common/initconfig.go:127","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T10:30:43.206+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1078 - PostmanRuntime/7.26.8","duration":"338.1ms","level":"info","span":"d7f4d11c39283542","trace":"7e59f934c49f7fd97c8799c3811d8a40"}
+{"@timestamp":"2023-09-16T10:31:29.517+08:00","caller":"common/initconfig.go:58","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T10:31:29.517+08:00","caller":"common/initconfig.go:58","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T10:31:29.547+08:00","caller":"common/initconfig.go:103","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T10:31:29.547+08:00","caller":"common/initconfig.go:107","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T10:31:29.548+08:00","caller":"common/initconfig.go:116","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T10:31:29.548+08:00","caller":"common/initconfig.go:127","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T10:31:33.514+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1144 - PostmanRuntime/7.26.8","duration":"930.2ms","level":"info","span":"d457f6d8975a94f4","trace":"8c06c685d48cdaf7078ed6a327cd8ca1"}
+{"@timestamp":"2023-09-16T10:38:39.363+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1979 - PostmanRuntime/7.26.8","duration":"845.4ms","level":"info","span":"77f8a9bf4699721a","trace":"3fb34ddb71e46f8d0ff73dce8b140461"}
+{"@timestamp":"2023-09-16T10:38:53.326+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1979 - PostmanRuntime/7.26.8","duration":"570.3ms","level":"info","span":"854d9033f4c251ff","trace":"551e3eb797e29549930804765189ddd6"}
+{"@timestamp":"2023-09-16T11:28:07.321+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:28:07.321+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:28:07.347+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:28:07.347+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:28:07.348+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:28:07.349+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:28:36.494+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:28:36.494+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:28:36.524+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:28:36.524+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:28:36.525+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:28:36.525+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:29:53.485+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:29:53.485+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:29:53.518+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:29:53.518+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:29:53.518+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:29:53.518+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:30:29.291+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:30:29.291+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:30:29.349+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:30:29.349+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:30:29.349+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:30:29.349+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:30:39.281+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:30:39.281+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:30:39.315+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:30:39.315+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:30:39.316+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:30:39.316+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:31:20.565+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:31:20.566+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:31:20.598+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:31:20.598+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:31:20.598+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:31:20.598+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:33:05.198+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:33:05.198+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:33:05.231+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:33:05.231+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:33:05.232+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:33:05.232+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:33:15.549+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:33:15.549+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:33:15.582+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:33:15.582+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:33:15.583+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:33:15.583+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:33:21.079+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:6200 - PostmanRuntime/7.26.8","duration":"266.7ms","level":"info","span":"d237faa73f6efd06","trace":"76fbbeb11402e25347aab772e9b2e58e"}
+{"@timestamp":"2023-09-16T11:34:09.546+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:34:09.546+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:34:09.578+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:34:09.579+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:34:09.579+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:34:09.580+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:34:11.786+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:6286 - PostmanRuntime/7.26.8","duration":"187.3ms","level":"info","span":"5c910b552636d20d","trace":"df46b5034a43198831c4af924bb5bd6e"}
+{"@timestamp":"2023-09-16T11:36:16.363+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:36:16.363+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:36:16.397+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:36:16.397+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:36:16.398+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:36:16.399+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:36:24.720+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:6603 - PostmanRuntime/7.26.8","duration":"222.0ms","level":"info","span":"f80d8374cc3dcad3","trace":"e314132d290398c3a7d9ac696cece7c3"}
+{"@timestamp":"2023-09-16T11:37:02.368+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:37:02.368+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:37:02.401+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:37:02.401+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:37:02.401+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:37:02.401+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:37:32.981+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:6702 - PostmanRuntime/7.26.8","duration":"212.3ms","level":"info","span":"173d5cbce5c78008","trace":"f748ecb77b12aa7a229e90b85b6534c3"}
+{"@timestamp":"2023-09-16T11:37:57.401+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:37:57.401+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T11:37:57.430+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T11:37:57.431+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T11:37:57.431+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T11:37:57.431+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T11:38:16.321+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:6768 - PostmanRuntime/7.26.8","duration":"191.3ms","level":"info","span":"3c54e0432be8ef89","trace":"11c28bcda58141043130d75ff22207ae"}
+{"@timestamp":"2023-09-16T11:47:58.503+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:7482 - PostmanRuntime/7.26.8","duration":"186.7ms","level":"info","span":"22d6539b12f498e5","trace":"d7941133ce7739212a598da6a2da9c47"}
+{"@timestamp":"2023-09-16T11:49:25.251+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:7632 - PostmanRuntime/7.26.8","duration":"221.0ms","level":"info","span":"94a1214c22ec8936","trace":"16dc17957871a5321b372ce3852abfc5"}
+{"@timestamp":"2023-09-16T13:46:19.848+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T13:46:19.848+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T13:46:19.882+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T13:46:19.883+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T13:46:19.883+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T13:46:19.883+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T13:46:24.372+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:15929 - PostmanRuntime/7.26.8","duration":"459.7ms","level":"info","span":"b79fc57bfb949f21","trace":"ad1f7e1d08de1487b7f1998bd512d90a"}
+{"@timestamp":"2023-09-16T13:48:15.012+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T13:48:15.012+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-16T13:48:15.043+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-16T13:48:15.044+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-16T13:48:15.044+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-16T13:48:15.044+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-16T13:48:25.627+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:16130 - PostmanRuntime/7.26.8","duration":"483.1ms","level":"info","span":"c12b61967b4b1056","trace":"43ef1e610b0b6d1c0c4600ef5f14d292"}
+{"@timestamp":"2023-09-18T11:32:10.549+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T11:32:10.549+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T11:32:10.579+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T11:32:10.579+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T11:32:10.579+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T11:32:10.579+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T13:28:16.122+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:28:16.122+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:28:16.159+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T13:28:16.159+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T13:28:16.160+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T13:28:16.160+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T13:29:49.308+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:39214 - PostmanRuntime/7.26.8","duration":"584.8ms","level":"info","span":"269f059853ac514f","trace":"d04b58d6f2b3822e799affece12d8f11"}
+{"@timestamp":"2023-09-18T13:35:05.836+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:35:05.836+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:35:05.860+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T13:35:05.860+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T13:35:05.860+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T13:35:05.860+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T13:35:56.384+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:39834 - PostmanRuntime/7.26.8","duration":"411.7ms","level":"info","span":"c20a196465928ff5","trace":"77306e8631fe4c6250279b72c2e7e908"}
+{"@timestamp":"2023-09-18T13:44:40.029+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:44:40.029+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:44:40.052+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T13:44:40.053+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T13:44:40.053+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T13:44:40.053+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T13:44:44.387+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:40746 - PostmanRuntime/7.26.8","duration":"587.7ms","level":"info","span":"dcd5a54a22c1612c","trace":"70b542e28066437233c62fe0488b7e0b"}
+{"@timestamp":"2023-09-18T13:52:20.504+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:52:20.504+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T13:52:20.528+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T13:52:20.528+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T13:52:20.528+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T13:52:20.528+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T13:52:46.929+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:41509 - PostmanRuntime/7.26.8","duration":"551.2ms","level":"info","span":"76117f287b02d02a","trace":"d14fc8cc635087bb13c7f2b0e2a0c77a"}
+{"@timestamp":"2023-09-18T14:00:16.780+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:00:16.780+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:00:16.842+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T14:00:16.842+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T14:00:16.843+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T14:00:16.843+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T14:00:30.781+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:42276 - PostmanRuntime/7.26.8","duration":"484.2ms","level":"info","span":"3332fbac42403461","trace":"44df7590e48edbab124272be5302fd26"}
+{"@timestamp":"2023-09-18T14:37:44.179+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:37:44.179+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:37:44.247+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T14:37:44.248+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T14:37:44.248+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T14:37:44.248+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T14:38:02.628+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:45201 - PostmanRuntime/7.26.8","duration":"504.5ms","level":"info","span":"665471a46aa18a86","trace":"c7ae5c512604cb8b7a8d2a18943e9e4b"}
+{"@timestamp":"2023-09-18T14:39:41.465+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:39:41.465+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:39:41.487+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T14:39:41.488+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T14:39:41.488+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T14:39:41.488+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T14:40:13.553+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:45449 - PostmanRuntime/7.26.8","duration":"507.5ms","level":"info","span":"d4c0b5d49b290a51","trace":"ed72ccae03dbca3d597b43093ddb1cf3"}
+{"@timestamp":"2023-09-18T14:53:00.415+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:53:00.415+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T14:53:00.436+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T14:53:00.437+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T14:53:00.437+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T14:53:00.437+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T14:53:18.683+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:46786 - PostmanRuntime/7.26.8","duration":"476.5ms","level":"info","span":"b9182a6f068a762d","trace":"1e713327c39c7d10dd95c83d22d7e46d"}
+{"@timestamp":"2023-09-18T14:54:25.257+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:46911 - PostmanRuntime/7.26.8","duration":"451.1ms","level":"info","span":"6fc9f4042cb1c453","trace":"4378cc89f19d553eeb91d7cb5b6dbd17"}
+{"@timestamp":"2023-09-18T15:05:43.597+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:05:43.597+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:05:43.620+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T15:05:43.621+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T15:05:43.621+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T15:05:43.621+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T15:05:57.112+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:48297 - PostmanRuntime/7.26.8","duration":"558.7ms","level":"info","span":"68e81cbf22b7dda1","trace":"d02413d35e612901463ecb893aec31f9"}
+{"@timestamp":"2023-09-18T15:06:21.564+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:48378 - PostmanRuntime/7.26.8","duration":"544.4ms","level":"info","span":"f713db899bf6ac21","trace":"e59ecea5b150b0d5855f3e781857d4e1"}
+{"@timestamp":"2023-09-18T15:07:21.760+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:07:21.760+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:07:21.784+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T15:07:21.784+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T15:07:21.785+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T15:07:21.785+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T15:07:39.173+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:48507 - PostmanRuntime/7.26.8","duration":"470.8ms","level":"info","span":"90a3eae79065cad3","trace":"84df3e64842d8b0d9c2e3999cbc173a9"}
+{"@timestamp":"2023-09-18T15:49:10.869+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:49:10.869+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:49:10.893+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T15:49:10.894+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T15:49:10.894+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T15:49:10.894+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T15:51:12.609+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:51:12.609+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:51:12.632+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T15:51:12.632+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T15:51:12.633+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T15:51:12.633+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T15:52:48.991+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:52:48.991+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-18T15:52:49.015+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-18T15:52:49.016+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-18T15:52:49.016+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-18T15:52:49.017+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-18T15:54:41.863+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/info/push - 127.0.0.1:52173 - PostmanRuntime/7.26.8","duration":"985.9ms","level":"info","span":"597568f6e676b7ba","trace":"c663b0c3b9d846c11a87fc6242ba06c2"}
+{"@timestamp":"2023-09-19T11:20:04.830+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T11:20:04.830+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T11:20:04.927+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-19T11:20:04.927+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T11:20:04.929+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T11:20:04.930+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T11:20:57.293+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T11:20:57.293+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T11:20:57.494+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-19T11:20:57.494+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T11:20:57.495+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T11:20:57.495+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T11:21:04.088+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:43812 - PostmanRuntime/7.26.8","duration":"1102.7ms","level":"info","span":"f7ad33a839db7ffa","trace":"da16253e9b670e04d41ebeaa50bbc170"}
+{"@timestamp":"2023-09-19T13:43:53.591+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:43:53.591+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:43:53.658+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-19T13:43:53.659+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T13:43:53.659+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T13:43:53.659+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T13:44:00.894+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:44:00.894+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:44:01.007+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-19T13:44:01.007+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T13:44:01.008+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T13:44:01.008+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T13:46:57.365+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:46:57.365+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:46:57.530+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-19T13:46:57.530+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T13:46:57.530+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T13:46:57.531+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T13:47:10.062+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:47:10.062+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:47:10.898+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-19T13:47:10.898+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T13:47:10.899+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T13:47:10.899+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T13:49:23.990+08:00","caller":"common/initconfig.go:62","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:49:23.990+08:00","caller":"common/initconfig.go:62","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T13:49:24.043+08:00","caller":"common/initconfig.go:107","content":"--初始化 redis--","level":"info"}
+{"@timestamp":"2023-09-19T13:49:24.043+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T13:49:24.044+08:00","caller":"common/initconfig.go:120","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T13:49:24.044+08:00","caller":"common/initconfig.go:131","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T14:10:32.581+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:10:32.581+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:10:33.087+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T14:10:33.088+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T14:10:33.088+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T14:10:37.498+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:58991 - PostmanRuntime/7.26.8","duration":"1755.0ms","level":"info","span":"39d71e0b1ba48647","trace":"bc805ec21d77d183a08af0cbf1849b91"}
+{"@timestamp":"2023-09-19T14:22:11.445+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:22:11.445+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:22:11.652+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T14:22:11.652+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T14:22:11.652+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T14:22:20.301+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:1096 - PostmanRuntime/7.26.8","duration":"795.3ms","level":"info","span":"261550a24a973436","trace":"46e4827de8ca3b579170aad871e6e7b3"}
+{"@timestamp":"2023-09-19T14:22:25.336+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:22:25.336+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:22:25.469+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T14:22:25.470+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T14:22:25.470+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T14:22:30.669+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:1126 - PostmanRuntime/7.26.8","duration":"797.8ms","level":"info","span":"e76ea3569d507bf6","trace":"cfd500e850ff770bca37430a1ea41303"}
+{"@timestamp":"2023-09-19T14:24:16.644+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:24:16.644+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-19T14:24:17.133+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-19T14:24:17.134+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-19T14:24:17.134+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-19T14:24:22.537+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:1318 - PostmanRuntime/7.26.8","duration":"2266.4ms","level":"info","span":"7a1b461d4be6a67b","trace":"ed2f92cacb67c956f3ceec549e80fae4"}
+{"@timestamp":"2023-09-19T14:24:41.812+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/info/push - 127.0.0.1:1346 - PostmanRuntime/7.26.8","duration":"1087.0ms","level":"info","span":"f58f863258a3c4b8","trace":"e701eba7c367695f5ae73d890689351b"}
+{"@timestamp":"2023-09-19T14:25:01.724+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1366 - PostmanRuntime/7.26.8","duration":"905.9ms","level":"info","span":"054cfeb489c1414d","trace":"69a1b23c1d8dde3c2316478e2ff99bb6"}
+{"@timestamp":"2023-09-19T14:25:11.854+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:1366 - PostmanRuntime/7.26.8","duration":"802.9ms","level":"info","span":"91449b8951376b4a","trace":"c29e21bda604f0886227f3baa5e94db1"}
+{"@timestamp":"2023-09-20T10:30:37.383+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-20T10:30:37.383+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-20T10:30:37.423+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-20T10:30:37.426+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-20T10:30:37.429+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-20T10:32:10.028+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:14901 - PostmanRuntime/7.26.8","duration":"1473.9ms","level":"info","span":"63ee4191c43e3a70","trace":"277b2f83e4df02aefab4023b61c10f1a"}
+{"@timestamp":"2023-09-25T17:24:18.104+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-25T17:24:18.104+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-25T17:24:18.148+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-25T17:24:18.151+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-25T17:24:18.152+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-27T14:35:05.014+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T14:35:05.014+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T14:35:05.052+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-27T14:35:05.053+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-27T14:35:05.054+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-27T14:39:50.297+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T14:39:50.297+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T14:39:50.330+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-27T14:39:50.331+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-27T14:39:50.331+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-27T14:40:29.220+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T14:40:29.220+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T14:40:29.271+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-27T14:40:29.271+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-27T14:40:29.271+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-27T14:40:51.947+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:7664 - PostmanRuntime/7.26.8","duration":"1356.3ms","level":"info","span":"73c283261ec16991","trace":"072a67c970a115222d0c392c0dcad6d9"}
+{"@timestamp":"2023-09-27T15:16:00.275+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T15:16:00.275+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T15:16:00.343+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-27T15:16:00.343+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-27T15:16:00.344+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-27T15:16:13.707+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:13298 - PostmanRuntime/7.26.8","duration":"1184.2ms","level":"info","span":"631709093b2f9e66","trace":"f9aa0fcf39a01a9308fe93f8adfc9d7b"}
+{"@timestamp":"2023-09-27T15:27:10.295+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T15:27:10.295+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T15:27:10.645+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-27T15:27:10.646+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-27T15:27:10.646+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-09-27T15:27:21.117+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:14746 - PostmanRuntime/7.26.8","duration":"1444.5ms","level":"info","span":"d8609eb2c50ec4e5","trace":"e9dc0d5cbcf3a4f4889139eebbbb13ad"}
+{"@timestamp":"2023-09-27T15:27:53.033+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:14811 - PostmanRuntime/7.26.8","duration":"865.6ms","level":"info","span":"2f66fc0a31cb2097","trace":"e59c7237cc03ac17b0dc97b14755afee"}
+{"@timestamp":"2023-09-27T15:28:36.467+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:14882 - PostmanRuntime/7.26.8","duration":"1107.8ms","level":"info","span":"47fa9f420c1217a9","trace":"28d2700963d69b81327ab76f51c035e5"}
+{"@timestamp":"2023-09-27T17:38:03.822+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T17:38:03.822+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-09-27T17:38:03.924+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-09-27T17:38:03.924+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-09-27T17:38:03.924+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-07T10:20:45.451+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-07T10:20:45.451+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-07T10:20:45.522+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-07T10:20:45.523+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-07T10:20:45.524+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-07T10:21:19.856+08:00","caller":"common/initconfig.go:59","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-07T10:21:19.856+08:00","caller":"common/initconfig.go:59","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-07T10:21:20.091+08:00","caller":"common/initconfig.go:102","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-07T10:21:20.092+08:00","caller":"common/initconfig.go:111","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-07T10:21:20.092+08:00","caller":"common/initconfig.go:122","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-09T14:31:47.835+08:00","caller":"common/initconfig.go:61","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:31:47.835+08:00","caller":"common/initconfig.go:61","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:31:47.899+08:00","caller":"common/initconfig.go:104","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-09T14:31:47.899+08:00","caller":"common/initconfig.go:113","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-09T14:31:47.899+08:00","caller":"common/initconfig.go:124","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-09T14:33:30.353+08:00","caller":"common/initconfig.go:61","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:33:30.353+08:00","caller":"common/initconfig.go:61","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:33:30.401+08:00","caller":"common/initconfig.go:104","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-09T14:33:30.402+08:00","caller":"common/initconfig.go:113","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-09T14:33:30.402+08:00","caller":"common/initconfig.go:124","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-09T14:34:30.215+08:00","caller":"common/initconfig.go:61","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:34:30.215+08:00","caller":"common/initconfig.go:61","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:34:30.254+08:00","caller":"common/initconfig.go:104","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-09T14:34:30.255+08:00","caller":"common/initconfig.go:113","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-09T14:34:30.255+08:00","caller":"common/initconfig.go:124","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-09T14:35:05.329+08:00","caller":"common/initconfig.go:61","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:35:05.329+08:00","caller":"common/initconfig.go:61","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T14:35:05.360+08:00","caller":"common/initconfig.go:104","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-09T14:35:05.360+08:00","caller":"common/initconfig.go:113","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-09T14:35:05.361+08:00","caller":"common/initconfig.go:124","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-09T14:35:11.544+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:47123 - PostmanRuntime/7.26.8","duration":"2722.7ms","level":"info","span":"63a47b191d64f2df","trace":"b2223398f668d6ed9626e4543a4ecbee"}
+{"@timestamp":"2023-10-09T15:28:16.980+08:00","caller":"common/initconfig.go:61","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T15:28:16.980+08:00","caller":"common/initconfig.go:61","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T15:28:17.573+08:00","caller":"common/initconfig.go:104","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-09T15:28:17.573+08:00","caller":"common/initconfig.go:113","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-09T15:28:17.573+08:00","caller":"common/initconfig.go:124","content":"--初始化 mongodb ent --","level":"info"}
+{"@timestamp":"2023-10-09T15:28:42.121+08:00","caller":"handler/loghandler.go:155","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:52421 - PostmanRuntime/7.26.8","duration":"1485.5ms","level":"info","span":"940fbfdf313282d6","trace":"6ce5ffa1130e51918c69fb347bd1c013"}
+{"@timestamp":"2023-10-09T15:37:27.357+08:00","caller":"common/initconfig.go:61","content":"info--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T15:37:27.357+08:00","caller":"common/initconfig.go:61","content":"error--日志记录","level":"info"}
+{"@timestamp":"2023-10-09T15:37:27.392+08:00","caller":"common/initconfig.go:104","content":"--初始化 mongodb--","level":"info"}
+{"@timestamp":"2023-10-09T15:37:27.392+08:00","caller":"common/initconfig.go:113","content":"--初始化 mongodb Bidding --","level":"info"}
+{"@timestamp":"2023-10-09T15:37:27.392+08:00","caller":"common/initconfig.go:124","content":"--初始化 mongodb ent --","level":"info"}

+ 2 - 0
api/logs/error.log

@@ -0,0 +1,2 @@
+{"@timestamp":"2023-09-28T01:47:51.759+08:00","caller":"node/NewReigster.go:111","content":"etcdserver: requested lease not found","level":"error"}
+{"@timestamp":"2023-09-28T08:41:23.505+08:00","caller":"node/NewReigster.go:111","content":"etcdserver: requested lease not found","level":"error"}

+ 2 - 0
api/logs/error.log-2023-09-25

@@ -0,0 +1,2 @@
+{"@timestamp":"2023-09-19T13:43:54.347+08:00","caller":"rest/server.go:314","content":"listen tcp 0.0.0.0:8888: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.","level":"error"}
+{"@timestamp":"2023-09-25T22:23:24.535+08:00","caller":"node/NewReigster.go:111","content":"etcdserver: requested lease not found","level":"error"}

File diff suppressed because it is too large
+ 2 - 0
api/logs/error.log-2023-09-27


+ 4 - 0
api/logs/severe.log

@@ -0,0 +1,4 @@
+{"@timestamp":"2023-09-04T15:03:19.082+08:00","content":"rpc dial: etcd://127.0.0.1:2379/filecenter.rpc, error: context deadline exceeded, make sure rpc service \"filecenter.rpc\" is already started\n\ngoroutine 1 [running, locked to thread]:\nruntime/debug.Stack()\n\tD:/go/src/runtime/debug/stack.go:24 +0x65\ngithub.com/zeromicro/go-zero/core/logx.Must({0x227b5a0?, 0xc000596b90?})\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/core/logx/logs.go:225 +0x57\ngithub.com/zeromicro/go-zero/zrpc.MustNewClient({{{0xc000232430, 0x1, 0x1}, {0xc0002c2df0, 0xe}, 0x0, {0x0, 0x0}, {0x0, 0x0}, ...}, ...}, ...)\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/zrpc/client.go:45 +0x73\nbp.jydev.jianyu360.cn/CRM/application/api/common.init.0()\n\tD:/jianyu/CRM/application/api/common/initconfig.go:143 +0xb05\n","level":"fatal"}
+{"@timestamp":"2023-09-05T10:13:39.272+08:00","content":"rpc dial: etcd://192.168.3.149:2379/filecenter.rpc, error: context deadline exceeded, make sure rpc service \"filecenter.rpc\" is already started\n\ngoroutine 1 [running, locked to thread]:\nruntime/debug.Stack()\n\tD:/go/src/runtime/debug/stack.go:24 +0x65\ngithub.com/zeromicro/go-zero/core/logx.Must({0x24be2c0?, 0xc0004d0700?})\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/core/logx/logs.go:225 +0x57\ngithub.com/zeromicro/go-zero/zrpc.MustNewClient({{{0xc000782c90, 0x1, 0x1}, {0xc00043a510, 0xe}, 0x0, {0x0, 0x0}, {0x0, 0x0}, ...}, ...}, ...)\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/zrpc/client.go:45 +0x73\nbp.jydev.jianyu360.cn/CRM/application/api/common.init.0()\n\tD:/jianyu/CRM/application/api/common/initconfig.go:143 +0xb05\n","level":"fatal"}
+{"@timestamp":"2023-09-06T08:51:49.338+08:00","content":"rpc dial: etcd://192.168.3.240:2379/filecenter.rpc, error: context deadline exceeded, make sure rpc service \"filecenter.rpc\" is already started\n\ngoroutine 1 [running, locked to thread]:\nruntime/debug.Stack()\n\tD:/go/src/runtime/debug/stack.go:24 +0x65\ngithub.com/zeromicro/go-zero/core/logx.Must({0x259f3e0?, 0xc000596320?})\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/core/logx/logs.go:225 +0x57\ngithub.com/zeromicro/go-zero/zrpc.MustNewClient({{{0xc0004963f0, 0x1, 0x1}, {0xc0001fb6d0, 0xe}, 0x0, {0x0, 0x0}, {0x0, 0x0}, ...}, ...}, ...)\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/zrpc/client.go:45 +0x73\nbp.jydev.jianyu360.cn/CRM/application/api/common.init.0()\n\tD:/jianyu/CRM/application/api/common/initconfig.go:143 +0xb05\n","level":"fatal"}
+{"@timestamp":"2023-09-06T13:30:02.144+08:00","content":"rpc dial: etcd://192.167.3.206:2379/basecenter.rpc, error: context deadline exceeded, make sure rpc service \"basecenter.rpc\" is already started\n\ngoroutine 1 [running, locked to thread]:\nruntime/debug.Stack()\n\tD:/go/src/runtime/debug/stack.go:24 +0x65\ngithub.com/zeromicro/go-zero/core/logx.Must({0x26b17c0?, 0xc000336180?})\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/core/logx/logs.go:225 +0x57\ngithub.com/zeromicro/go-zero/zrpc.MustNewClient({{{0xc000477ca0, 0x1, 0x1}, {0xc000681db0, 0xe}, 0x0, {0x0, 0x0}, {0x0, 0x0}, ...}, ...}, ...)\n\tD:/jar/pkg/mod/github.com/zeromicro/go-zero@v1.5.5/zrpc/client.go:45 +0x73\nbp.jydev.jianyu360.cn/CRM/application/api/common.init.0()\n\tD:/jianyu/CRM/application/api/common/initconfig.go:144 +0xbbf\n","level":"fatal"}

+ 28 - 0
api/logs/slow.log

@@ -0,0 +1,28 @@
+{"@timestamp":"2023-09-16T10:31:33.514+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1144 - PostmanRuntime/7.26.8 - slowcall(930.2ms)","duration":"930.2ms","level":"slow","span":"d457f6d8975a94f4","trace":"8c06c685d48cdaf7078ed6a327cd8ca1"}
+{"@timestamp":"2023-09-16T10:38:39.363+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1979 - PostmanRuntime/7.26.8 - slowcall(845.4ms)","duration":"845.4ms","level":"slow","span":"77f8a9bf4699721a","trace":"3fb34ddb71e46f8d0ff73dce8b140461"}
+{"@timestamp":"2023-09-16T10:38:53.326+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1979 - PostmanRuntime/7.26.8 - slowcall(570.3ms)","duration":"570.3ms","level":"slow","span":"854d9033f4c251ff","trace":"551e3eb797e29549930804765189ddd6"}
+{"@timestamp":"2023-09-18T13:29:49.308+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:39214 - PostmanRuntime/7.26.8 - slowcall(584.8ms)","duration":"584.8ms","level":"slow","span":"269f059853ac514f","trace":"d04b58d6f2b3822e799affece12d8f11"}
+{"@timestamp":"2023-09-18T13:44:44.387+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:40746 - PostmanRuntime/7.26.8 - slowcall(587.7ms)","duration":"587.7ms","level":"slow","span":"dcd5a54a22c1612c","trace":"70b542e28066437233c62fe0488b7e0b"}
+{"@timestamp":"2023-09-18T13:52:46.929+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:41509 - PostmanRuntime/7.26.8 - slowcall(551.2ms)","duration":"551.2ms","level":"slow","span":"76117f287b02d02a","trace":"d14fc8cc635087bb13c7f2b0e2a0c77a"}
+{"@timestamp":"2023-09-18T14:38:02.628+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:45201 - PostmanRuntime/7.26.8 - slowcall(504.5ms)","duration":"504.5ms","level":"slow","span":"665471a46aa18a86","trace":"c7ae5c512604cb8b7a8d2a18943e9e4b"}
+{"@timestamp":"2023-09-18T14:40:13.553+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:45449 - PostmanRuntime/7.26.8 - slowcall(507.5ms)","duration":"507.5ms","level":"slow","span":"d4c0b5d49b290a51","trace":"ed72ccae03dbca3d597b43093ddb1cf3"}
+{"@timestamp":"2023-09-18T15:05:57.112+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:48297 - PostmanRuntime/7.26.8 - slowcall(558.7ms)","duration":"558.7ms","level":"slow","span":"68e81cbf22b7dda1","trace":"d02413d35e612901463ecb893aec31f9"}
+{"@timestamp":"2023-09-18T15:06:21.564+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:48378 - PostmanRuntime/7.26.8 - slowcall(544.4ms)","duration":"544.4ms","level":"slow","span":"f713db899bf6ac21","trace":"e59ecea5b150b0d5855f3e781857d4e1"}
+{"@timestamp":"2023-09-18T15:54:41.862+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/info/push - 127.0.0.1:52173 - PostmanRuntime/7.26.8 - slowcall(985.9ms)","duration":"985.9ms","level":"slow","span":"597568f6e676b7ba","trace":"c663b0c3b9d846c11a87fc6242ba06c2"}
+{"@timestamp":"2023-09-19T11:21:04.088+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:43812 - PostmanRuntime/7.26.8 - slowcall(1102.7ms)","duration":"1102.7ms","level":"slow","span":"f7ad33a839db7ffa","trace":"da16253e9b670e04d41ebeaa50bbc170"}
+{"@timestamp":"2023-09-19T14:10:37.498+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:58991 - PostmanRuntime/7.26.8 - slowcall(1755.0ms)","duration":"1755.0ms","level":"slow","span":"39d71e0b1ba48647","trace":"bc805ec21d77d183a08af0cbf1849b91"}
+{"@timestamp":"2023-09-19T14:22:20.301+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:1096 - PostmanRuntime/7.26.8 - slowcall(795.3ms)","duration":"795.3ms","level":"slow","span":"261550a24a973436","trace":"46e4827de8ca3b579170aad871e6e7b3"}
+{"@timestamp":"2023-09-19T14:22:30.669+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:1126 - PostmanRuntime/7.26.8 - slowcall(797.8ms)","duration":"797.8ms","level":"slow","span":"e76ea3569d507bf6","trace":"cfd500e850ff770bca37430a1ea41303"}
+{"@timestamp":"2023-09-19T14:24:22.537+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:1318 - PostmanRuntime/7.26.8 - slowcall(2266.4ms)","duration":"2266.4ms","level":"slow","span":"7a1b461d4be6a67b","trace":"ed2f92cacb67c956f3ceec549e80fae4"}
+{"@timestamp":"2023-09-19T14:24:41.812+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/info/push - 127.0.0.1:1346 - PostmanRuntime/7.26.8 - slowcall(1087.0ms)","duration":"1087.0ms","level":"slow","span":"f58f863258a3c4b8","trace":"e701eba7c367695f5ae73d890689351b"}
+{"@timestamp":"2023-09-19T14:25:01.724+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:1366 - PostmanRuntime/7.26.8 - slowcall(905.9ms)","duration":"905.9ms","level":"slow","span":"054cfeb489c1414d","trace":"69a1b23c1d8dde3c2316478e2ff99bb6"}
+{"@timestamp":"2023-09-19T14:25:11.854+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:1366 - PostmanRuntime/7.26.8 - slowcall(802.9ms)","duration":"802.9ms","level":"slow","span":"91449b8951376b4a","trace":"c29e21bda604f0886227f3baa5e94db1"}
+{"@timestamp":"2023-09-20T10:32:10.028+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:14901 - PostmanRuntime/7.26.8 - slowcall(1473.9ms)","duration":"1473.9ms","level":"slow","span":"63ee4191c43e3a70","trace":"277b2f83e4df02aefab4023b61c10f1a"}
+{"@timestamp":"2023-09-27T14:40:51.947+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:7664 - PostmanRuntime/7.26.8 - slowcall(1356.3ms)","duration":"1356.3ms","level":"slow","span":"73c283261ec16991","trace":"072a67c970a115222d0c392c0dcad6d9"}
+{"@timestamp":"2023-09-27T15:16:13.707+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:13298 - PostmanRuntime/7.26.8 - slowcall(1184.2ms)","duration":"1184.2ms","level":"slow","span":"631709093b2f9e66","trace":"f9aa0fcf39a01a9308fe93f8adfc9d7b"}
+{"@timestamp":"2023-09-27T15:27:21.117+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/custom/add - 127.0.0.1:14746 - PostmanRuntime/7.26.8 - slowcall(1444.5ms)","duration":"1444.5ms","level":"slow","span":"d8609eb2c50ec4e5","trace":"e9dc0d5cbcf3a4f4889139eebbbb13ad"}
+{"@timestamp":"2023-09-27T15:27:53.033+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:14811 - PostmanRuntime/7.26.8 - slowcall(865.6ms)","duration":"865.6ms","level":"slow","span":"2f66fc0a31cb2097","trace":"e59c7237cc03ac17b0dc97b14755afee"}
+{"@timestamp":"2023-09-27T15:28:36.467+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/saleChance/add - 127.0.0.1:14882 - PostmanRuntime/7.26.8 - slowcall(1107.8ms)","duration":"1107.8ms","level":"slow","span":"47fa9f420c1217a9","trace":"28d2700963d69b81327ab76f51c035e5"}
+{"@timestamp":"2023-09-27T17:38:17.638+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 504 - POST /crmApplication/file/upload - 127.0.0.1:31897 - PostmanRuntime/7.26.8 - slowcall(2020.5ms)","duration":"2020.5ms","level":"slow","span":"d7fb4de67b57d1eb","trace":"ccfbdfeb410b985f8e23f9b2fcbdd13c"}
+{"@timestamp":"2023-10-09T14:35:11.544+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:47123 - PostmanRuntime/7.26.8 - slowcall(2722.7ms)","duration":"2722.7ms","level":"slow","span":"63a47b191d64f2df","trace":"b2223398f668d6ed9626e4543a4ecbee"}
+{"@timestamp":"2023-10-09T15:28:42.121+08:00","caller":"handler/loghandler.go:132","content":"[HTTP] 200 - POST /crmApplication/clue/add - 127.0.0.1:52421 - PostmanRuntime/7.26.8 - slowcall(1485.5ms)","duration":"1485.5ms","level":"slow","span":"940fbfdf313282d6","trace":"6ce5ffa1130e51918c69fb347bd1c013"}

+ 0 - 0
api/logs/stat.log


+ 51 - 8
service/custom.go

@@ -25,6 +25,7 @@ type CustomService struct {
 	EntId                int64
 	AppId                string
 	AccountId            int64
+	EntDeptId            int64
 	CustomType           int64   //客户类型
 	Summary              string  //概要信息
 	CustomAllName        string  //客户全称
@@ -77,12 +78,12 @@ func (this *CustomService) Add(ctx context.Context) (int64, string) {
 			baseUserIdArr = append(baseUserIdArr, resp.UserId)
 		}
 
-		//客户
+		//客户3
 		args = append(args, this.PositionId, this.EntId, this.EntUserId, this.EmployInfoId, this.EmployCustomId, this.CustomType, this.CustomAllName, this.CustomAbbreviation, this.Summary, qu.If(this.CustomLevel == 0, nil, this.CustomLevel), this.CustomIndustry, this.CustomDetailIndustry, qu.If(this.Province == "", nil, this.Province), qu.If(this.City == "", nil, this.City), qu.If(this.District == "", nil, this.District), qu.If(this.Address == "", nil, this.Address), qu.If(this.CompanyPhone == "", nil, this.CompanyPhone), qu.If(this.Remarks == "", nil, this.Remarks), this.CreateName, nowtime)
 		//任务
 		argsTask = append(argsTask, this.EntId, this.CustomAllName+"的跟进任务", 3, this.PositionId, 1, nowtime, 1, 0, qu.If(this.NextfollowUpTime == 0, nil, nextFollowTime), nil, nil)
 
-		customId, taskId = SaveCustom(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.EmployCustomId, this.PositionId, this.CreateName, transferArr)
+		customId, taskId = SaveCustom(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.EmployCustomId, this.PositionId, this.CreateName, transferArr, this.EntId, this.EntUserId, this.EntDeptId)
 		if customId < 0 {
 			return -1, groupId
 		}
@@ -94,7 +95,7 @@ func (this *CustomService) Add(ctx context.Context) (int64, string) {
 		//任务团队
 		argsTaskTeam = append(argsTaskTeam, this.PositionId, this.EntUserId, this.CreateName, 1, nowtime)
 		//存库
-		customId, taskId = SaveCustom(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.EmployCustomId, this.PositionId, this.CreateName, []int64{})
+		customId, taskId = SaveCustom(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.EmployCustomId, this.PositionId, this.CreateName, []int64{}, this.EntId, this.EntUserId, this.EntDeptId)
 		if customId < 0 {
 			return -1, groupId
 		}
@@ -148,7 +149,8 @@ func SaleCustomAdd(tx *sql.Tx, args []interface{}) int64 {
 }
 
 //EmployUpdate 是否创建线索/机会/客户修改
-func EmployUpdate(tx *sql.Tx, employ_info_id, employ_custom_id, positionId int64, key string) bool {
+func EmployUpdate(tx *sql.Tx, employ_info_id, employ_custom_id, positionId int64, key string, entId, entUserId, entDeptId int64) bool {
+	ok := true
 	tablename := ""
 	id := int64(0)
 	if employ_custom_id > 0 {
@@ -159,12 +161,44 @@ func EmployUpdate(tx *sql.Tx, employ_info_id, employ_custom_id, positionId int64
 		id = employ_info_id
 	}
 	if tablename == "" || id == 0 {
-		return true
+		return ok
+	}
+	//判断该条信息是不是当前资讯分配员的
+	d := cm.CrmMysql.SelectBySqlByTx(tx, fmt.Sprintf(`select * from %v where id = ?`, tablename), id)
+	if d != nil && len(*d) > 0 {
+		data := (*d)[0]
+		position_id := gconv.Int64(data["position_id"])
+		if position_id == positionId {
+			return cm.CrmMysql.UpdateByTx(tx, tablename, map[string]interface{}{"id": id, "position_id": positionId}, map[string]interface{}{key: 1})
+		} else {
+			data["position_id"] = positionId
+			data["ent_id"] = entId
+			data["ent_dept_id"] = entDeptId
+			data["ent_user_id"] = entUserId
+			//当前咨询不是分配员的 创建该条
+			if employ_custom_id > 0 {
+				//
+				data["is_handle"] = 1
+				data["is_ignore"] = 0
+				data["is_create_custom"] = 1
+
+			} else if employ_info_id > 0 {
+				data["is_handle"] = 1
+				data["is_ignore"] = 0
+				data["is_dis"] = 0
+				data[key] = 1
+				for _, v := range GetOtherKey(key) {
+					data[v] = 0
+				}
+			}
+			delete(data, "id")
+			return cm.CrmMysql.InsertByTx(tx, tablename, data) > 0
+		}
 	}
-	return cm.CrmMysql.UpdateByTx(tx, tablename, map[string]interface{}{"id": id, "position_id": positionId}, map[string]interface{}{key: 1})
+	return ok
 }
 
-func SaveCustom(ctx context.Context, argsCustom, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id, positionId int64, createPerson string, transferArr []int64) (int64, int64) {
+func SaveCustom(ctx context.Context, argsCustom, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id, positionId int64, createPerson string, transferArr []int64, entId, entUserId, entDeptId int64) (int64, int64) {
 	customId := int64(-1)
 	taskId := int64(-1)
 	//存库
@@ -175,7 +209,7 @@ func SaveCustom(ctx context.Context, argsCustom, argsTask, argsTaskTeam []interf
 		argsTask = append(argsTask, customId)
 		//任务车存储
 		taskId = TaskAdd(tx, argsTask, argsTaskTeam, transferArr, positionId)
-		ok := EmployUpdate(tx, employ_info_id, employ_custom_id, positionId, "is_create_custom")
+		ok := EmployUpdate(tx, employ_info_id, employ_custom_id, positionId, "is_create_custom", entId, entUserId, entDeptId)
 		//插入台账
 		ok2 := SaveLedger(ctx, positionId, customId, taskId, "创建客户", fmt.Sprintf("%s创建了客户", createPerson), createPerson)
 		if customId > 0 && taskId > 0 && ok && ok2 {
@@ -209,3 +243,12 @@ func SaveLedger(ctx context.Context, positionId, businessId, taskId int64, types
 	}
 	return resp.State
 }
+
+func GetOtherKey(key string) []string {
+	parameters := map[string][]string{
+		"is_create_clue":   []string{"is_create_chance", "is_create_custom"},
+		"is_create_chance": []string{"is_create_clue", "is_create_custom"},
+		"is_create_custom": []string{"is_create_chance", "is_create_clue"},
+	}
+	return parameters[key]
+}

+ 5 - 5
service/sale_chance.go

@@ -25,6 +25,7 @@ type SaleChanceService struct {
 	EntId             int64
 	AppId             string
 	AccountId         int64
+	EntDeptId         int64
 	ChanceName        string  //机会名称
 	Owner             string  //机会所有者
 	Summary           string  //概要信息
@@ -84,7 +85,7 @@ func (this *SaleChanceService) Add(ctx context.Context) (int64, string) {
 		//任务
 		argsTask = append(argsTask, this.EntId, this.ChanceName+"的跟进任务", 2, this.PositionId, 1, nowtime, 1, 0, qu.If(this.NextfollowUpTime == 0, nil, nextFollowTime), this.BusinessType, stageId)
 
-		chanceId, taskId = SaveChange(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.CustomId, this.PositionId, this.BusinessType, this.CreateName, transferArr)
+		chanceId, taskId = SaveChange(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.CustomId, this.PositionId, this.BusinessType, this.CreateName, transferArr, this.EntId, this.EntUserId, this.EntDeptId)
 
 		if chanceId < 0 {
 			return -1, groupId
@@ -97,7 +98,7 @@ func (this *SaleChanceService) Add(ctx context.Context) (int64, string) {
 		//任务团队
 		argsTaskTeam = append(argsTaskTeam, this.PositionId, this.EntUserId, this.CreateName, 1, nowtime)
 		//存库
-		chanceId, taskId = SaveChange(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.CustomId, this.PositionId, this.BusinessType, this.CreateName, []int64{})
+		chanceId, taskId = SaveChange(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, this.CustomId, this.PositionId, this.BusinessType, this.CreateName, []int64{}, this.EntId, this.EntUserId, this.EntDeptId)
 		if chanceId < 0 {
 			return -1, groupId
 		}
@@ -153,7 +154,7 @@ func SaleChangeAdd(tx *sql.Tx, args []interface{}) int64 {
 }
 
 // Save 存库
-func SaveChange(ctx context.Context, argsChange, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id, positionId, tplId int64, createName string, transferArr []int64) (int64, int64) {
+func SaveChange(ctx context.Context, argsChange, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id, positionId, tplId int64, createName string, transferArr []int64, entId, entUserId, entDeptId int64) (int64, int64) {
 	//存库
 	changeId, taskId := int64(-1), int64(-1)
 	cm.CrmMysql.ExecTx("创建机会", func(tx *sql.Tx) bool {
@@ -166,8 +167,7 @@ func SaveChange(ctx context.Context, argsChange, argsTask, argsTaskTeam []interf
 		//操作台帐
 		ok1 := SaveLedger(ctx, positionId, changeId, taskId, "创建销售机会", fmt.Sprintf("%s创建了销售机会", createName), createName)
 		//是否创建销售计划
-		log.Println(employ_info_id, employ_custom_id, "##")
-		ok2 := EmployUpdate(tx, employ_info_id, 0, positionId, "is_create_chance")
+		ok2 := EmployUpdate(tx, employ_info_id, 0, positionId, "is_create_chance", entId, entUserId, entDeptId)
 		//任务执行计划
 		planId := TaskExecutePlanAdd(tx, tplId, taskId)
 		if changeId > 0 && taskId > 0 && ok1 && ok2 && planId > 0 {

+ 5 - 4
service/sale_clue.go

@@ -28,6 +28,7 @@ type SaleClueService struct {
 	EntUserId    int64
 	BaseUserId   int64
 	AccountId    int64
+	EntDeptId    int64
 	ClueName     string
 	CluesSource  string
 	Summary      string
@@ -74,7 +75,7 @@ func (this *SaleClueService) Add(ctx context.Context) (int64, string) {
 		args = append(args, this.PositionId, this.EntId, this.EntUserId, this.ClueName, this.CluesSource, this.Summary, this.EmployInfoId, 0, nowtime, this.CreateName)
 		//任务
 		argsTask = append(argsTask, this.EntId, this.ClueName+"的跟进任务", 1, this.PositionId, 1, nowtime, 1, 0, qu.If(this.FollowUpTime == 0, nil, nextFollowTime), nil, nil)
-		clueId, taskId = Save(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, 0, this.PositionId, this.CreateName, transferArr)
+		clueId, taskId = Save(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, 0, this.PositionId, this.CreateName, transferArr, this.EntId, this.EntUserId, this.EntDeptId)
 		if clueId < 0 {
 			return -1, groupId
 		}
@@ -87,7 +88,7 @@ func (this *SaleClueService) Add(ctx context.Context) (int64, string) {
 		//任务团队
 		argsTaskTeam = append(argsTaskTeam, this.PositionId, this.EntUserId, this.CreateName, 1, nowtime)
 		//存库
-		clueId, taskId = Save(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, 0, this.PositionId, this.CreateName, []int64{})
+		clueId, taskId = Save(ctx, args, argsTask, argsTaskTeam, this.EmployInfoId, 0, this.PositionId, this.CreateName, []int64{}, this.EntId, this.EntUserId, this.EntDeptId)
 		if clueId < 0 {
 			return -1, groupId
 		}
@@ -162,7 +163,7 @@ func TaskAdd(tx *sql.Tx, args, taskTeamArgs []interface{}, transferArr []int64,
 }
 
 //Save 存库
-func Save(ctx context.Context, argsClue, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id, positionId int64, createName string, transferArr []int64) (int64, int64) {
+func Save(ctx context.Context, argsClue, argsTask, argsTaskTeam []interface{}, employ_info_id, employ_custom_id, positionId int64, createName string, transferArr []int64, entId, entUserId, entDeptId int64) (int64, int64) {
 	clueId, taskId := int64(-1), int64(-1)
 	//存库
 	cm.CrmMysql.ExecTx("创建线索", func(tx *sql.Tx) bool {
@@ -173,7 +174,7 @@ func Save(ctx context.Context, argsClue, argsTask, argsTaskTeam []interface{}, e
 		//任务车存储
 		taskId = TaskAdd(tx, argsTask, argsTaskTeam, transferArr, positionId)
 		//是否创建销售线索
-		ok1 := EmployUpdate(tx, employ_info_id, employ_custom_id, positionId, "is_create_clue")
+		ok1 := EmployUpdate(tx, employ_info_id, employ_custom_id, positionId, "is_create_clue", entId, entUserId, entDeptId)
 		//操作台帐
 		ok2 := SaveLedger(ctx, positionId, clueId, taskId, "创建销售线索", fmt.Sprintf("%s创建了销售线索", createName), createName)
 		if clueId > 0 && taskId > 0 && ok1 && ok2 {

Some files were not shown because too many files changed in this diff