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