Commit ccae335b by 朱继来

用户下单分配客服脚本调整用户释放标记

parent ca985ce3
Showing with 2 additions and 0 deletions
...@@ -107,6 +107,8 @@ func handle(userId,saleId int)(result bool) { ...@@ -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) _,err := dao.GetDb().Exec("update lie_salesman set assign_time = ?,update_time = ?,sale_id= ? where user_id = ?",timeNow,timeNow,saleId,crmUserId)
fmt.Println(err) 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) _,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) fmt.Println(err)
return true return true
......
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