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
c3f3961c
authored
Mar 23, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加客服池类型
parent
b6d45394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
cmd/task/find_goods/main.go
cmd/task/find_goods/main.go
View file @
c3f3961c
...
...
@@ -119,13 +119,13 @@ func setFindGoods(status, task_id, task_type, task_display_degree int) {
salesman
.
Sale_Id
=
kefu
.
SaleId
// 删除后新增到末尾,并重新设置第一条为‘待分配’
db
.
Exec
(
"delete from lie_kefu where sale_id = ?"
,
kefu
.
SaleId
)
db
.
Exec
(
"delete from lie_kefu where sale_id = ?
and type = 1
"
,
kefu
.
SaleId
)
current_time
:=
time
.
Now
()
.
Unix
()
db
.
Exec
(
"insert into lie_kefu (sale_id, sale_name, email, operator_id, operator_name, create_time, update_time) values (?, ?, ?, ?, ?, ?, ?)"
,
kefu
.
SaleId
,
kefu
.
SaleName
,
kefu
.
Email
,
kefu
.
OperatorId
,
kefu
.
OperatorName
,
current_time
,
current_time
)
var
first_kefu
model
.
Kefu
db
.
Get
(
&
first_kefu
,
"select * from lie_kefu order by id asc limit 1"
)
db
.
Get
(
&
first_kefu
,
"select * from lie_kefu
where type = 1
order by id asc limit 1"
)
db
.
Exec
(
"update lie_kefu set status = ?, update_time = ? where id = ?"
,
1
,
current_time
,
first_kefu
.
Id
)
// 分配客服,添加日志
...
...
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