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
b722fed6
authored
Apr 20, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
释放用户时清理新的关联表
parent
f625d841
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
cmd/follow/handle/set_free.go
cmd/follow/handle/set_free.go
View file @
b722fed6
...
...
@@ -83,6 +83,10 @@ func CompareTime(user_id, limit_follow_time int) {
// 删除跟进记录
dao
.
GetDb
()
.
Exec
(
"delete from lie_salesman where user_id = ?"
,
user_id
)
// 清理新的关联表
var
timeNow
=
time
.
Now
()
.
Unix
()
dao
.
GetDb
()
.
Exec
(
"update `lie_invoice_com_user` set sale_id= ?, update_time = ? where user_id = ?"
,
0
,
timeNow
,
user_info
.
Outter_uid
)
// 添加释放日志
dao
.
GetDb
()
.
Exec
(
"insert into lie_action_log (user_id, type, event, remark, create_time) values (?, ?, ?, ?, ?)"
,
user_id
,
2
,
"释放用户"
,
""
,
curr_time
)
...
...
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