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
a4fd5c5b
authored
Dec 02, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加上一任客服
parent
68ffbd0d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
cmd/follow/handle/set_free.go
cmd/follow/handle/set_free.go
View file @
a4fd5c5b
...
...
@@ -72,7 +72,10 @@ func CompareTime(user_id, limit_follow_time int) {
return
}
_
,
err
:=
dao
.
GetDb
()
.
Exec
(
"update lie_user set is_free = ?, free_time = ?, is_churn = ? where user_id = ?"
,
1
,
curr_time
,
0
,
user_id
)
var
old_sale_id
int
dao
.
GetDb
()
.
Get
(
&
old_sale_id
,
"select sale_id from lie_invoice_com_user where user_id = ?"
,
user_id
)
_
,
err
:=
dao
.
GetDb
()
.
Exec
(
"update lie_user set is_free = ?, free_time = ?, is_churn = ?, last_sale_id where user_id = ?"
,
1
,
curr_time
,
0
,
user_id
,
old_sale_id
)
if
err
!=
nil
{
logger
.
Info
(
"释放用户失败,CRM用户ID:"
+
strconv
.
Itoa
(
user_id
)
+
"原因:"
+
err
.
Error
())
...
...
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