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
13d61037
authored
Apr 24, 2022
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
cea35bd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
cmd/follow/handle/salesman.go
cmd/follow/handle/salesman.go
View file @
13d61037
...
@@ -48,7 +48,9 @@ func UpdateLimitFollowTime() {
...
@@ -48,7 +48,9 @@ func UpdateLimitFollowTime() {
db
.
Get
(
&
user_info
,
"select * from lie_user where user_id = ?"
,
sales
.
User_Id
)
db
.
Get
(
&
user_info
,
"select * from lie_user where user_id = ?"
,
sales
.
User_Id
)
defer
db
.
Close
()
defer
db
.
Close
()
curr_time
:=
time
.
Now
()
.
Unix
()
if
user_info
.
Channel_type
!=
1
{
if
user_info
.
Channel_type
!=
1
{
dao
.
GetDb
()
.
Exec
(
"update lie_salesman set sys_limit = ?, limit_follow_time = ?, update_time = ? where user_id = ?"
,
-
1
,
0
,
curr_time
,
sales
.
User_Id
)
continue
continue
}
}
...
@@ -64,7 +66,6 @@ func UpdateLimitFollowTime() {
...
@@ -64,7 +66,6 @@ func UpdateLimitFollowTime() {
limit_follow_time
:=
CalLimitFollowTime
(
sales
.
User_Id
,
sales
.
Assign_Time
)
limit_follow_time
:=
CalLimitFollowTime
(
sales
.
User_Id
,
sales
.
Assign_Time
)
// 2-3、更新限制时间、同步字段-1
// 2-3、更新限制时间、同步字段-1
curr_time
:=
time
.
Now
()
.
Unix
()
_
,
err
:=
dao
.
GetDb
()
.
Exec
(
"update lie_salesman set sys_limit = ?, limit_follow_time = ?, update_time = ? where user_id = ?"
,
-
1
,
limit_follow_time
,
curr_time
,
sales
.
User_Id
)
_
,
err
:=
dao
.
GetDb
()
.
Exec
(
"update lie_salesman set sys_limit = ?, limit_follow_time = ?, update_time = ? where user_id = ?"
,
-
1
,
limit_follow_time
,
curr_time
,
sales
.
User_Id
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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