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
ccae335b
authored
Sep 09, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
用户下单分配客服脚本调整用户释放标记
parent
ca985ce3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
cmd/queue/update_user_sale/main.go
cmd/queue/update_user_sale/main.go
View file @
ccae335b
...
...
@@ -107,6 +107,8 @@ func handle(userId,saleId int)(result bool) {
_
,
err
:=
dao
.
GetDb
()
.
Exec
(
"update lie_salesman set assign_time = ?,update_time = ?,sale_id= ? where user_id = ?"
,
timeNow
,
timeNow
,
saleId
,
crmUserId
)
fmt
.
Println
(
err
)
}
dao
.
GetDb
()
.
Exec
(
"update lie_user set is_free = ?, free_time = ? where user_id = ?"
,
0
,
0
,
crmUserId
)
_
,
err
:=
dao
.
GetDb
()
.
Exec
(
"insert into lie_action_log (user_id, type, event, remark, create_time) values (?, ?, ?, ?, ?)"
,
crmUserId
,
2
,
"用户下单"
,
"自动分配客服,客服ID:"
+
strconv
.
Itoa
(
saleId
),
timeNow
)
fmt
.
Println
(
err
)
return
true
...
...
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