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
ca985ce3
authored
Sep 08, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
bdea6c5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
cmd/task/no_order/main.go
cmd/task/no_order/main.go
View file @
ca985ce3
...
...
@@ -62,7 +62,7 @@ func setNoOrderTask(status, task_id, task_type, task_display_degree int, task_en
// 获取未释放且未下单用户
row
,
err
:=
dao
.
GetDb
()
.
Queryx
(
"select u.user_id, u.copy_ctime from lie_user as u left join lie_user_extend as ue on u.user_id = ue.user_id where "
+
"u.is_free = ? u.is_add_task = ? and ue.no_create_order = ? order by user_id desc limit 1000"
,
0
,
0
,
1
)
"u.is_free = ?
and
u.is_add_task = ? and ue.no_create_order = ? order by user_id desc limit 1000"
,
0
,
0
,
1
)
if
err
!=
nil
{
logger
.
Info
(
"获取未下单用户失败: "
,
err
.
Error
())
...
...
@@ -80,7 +80,7 @@ func setNoOrderTask(status, task_id, task_type, task_display_degree int, task_en
var
check_time
int64
// 校验时间
if
salesman
.
Sale_Id
!=
0
{
// 转化为int64
s_assign_time
:=
strconv
.
Itoa
(
salesman
.
Assign
_Time
)
s_assign_time
:=
strconv
.
Itoa
(
salesman
.
Update
_Time
)
check_time
,
_
=
strconv
.
ParseInt
(
s_assign_time
,
10
,
64
)
}
else
{
check_time
=
user
.
Copy_ctime
...
...
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