Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CnChunfeng / crm_server

  • This project
    • Loading...
  • Sign in
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 3 years ago by 朱继来's avatar 朱继来
Browse files
Options
  • _('Browse Files')
  • Download
  • Email Patches
  • Plain Diff

调整

parent cea35bd3 master
Hide whitespace changes
Inline Side-by-side
Showing 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() {
db.Get(&user_info, "select * from lie_user where user_id = ?", sales.User_Id)
defer db.Close()
curr_time := time.Now().Unix()
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
}
......@@ -64,7 +66,6 @@ func UpdateLimitFollowTime() {
limit_follow_time := CalLimitFollowTime(sales.User_Id, sales.Assign_Time)
// 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)
if err != nil {
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment