Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
crm_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8561ccae
authored
Jul 08, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整释放时间
parent
eb44cb88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
cmd/follow/handle/salesman.go
cmd/follow/handle/set_free.go
cmd/follow/handle/salesman.go
View file @
8561ccae
...
...
@@ -121,7 +121,7 @@ func CalLimitFollowTime(user_id int, assign_time int) int {
// 未下单用户限制跟进时间为30天
var
limit_follow_time
int
limit_follow_time
=
assign_time
+
30
*
86400
limit_follow_time
=
assign_time
+
15
*
86400
return
limit_follow_time
}
...
...
cmd/follow/handle/set_free.go
View file @
8561ccae
...
...
@@ -91,7 +91,7 @@ func CompareTime(user_id, limit_follow_time int) {
dao
.
GetDb
()
.
Exec
(
"insert into lie_action_log (user_id, type, event, remark, create_time) values (?, ?, ?, ?, ?)"
,
user_id
,
2
,
"释放用户"
,
""
,
curr_time
)
service
.
DingAlert
(
configs
.
Ding_crm_task_token
,
"任务告警:释放用户成功,CRM用户ID:"
+
strconv
.
Itoa
(
user_id
),
""
)
}
else
if
diff
<=
7
*
86400
{
// 设置为即将流失用户
}
else
if
diff
<=
3
*
86400
{
// 设置为即将流失用户
if
user_info
.
Is_churn
==
1
{
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment