Commit a083c949 by 朱继来

分配客服,添加日志

parent 304305b5
Showing with 4 additions and 0 deletions
......@@ -127,6 +127,10 @@ func setFindGoods(status, task_id, task_type, task_display_degree int) {
var first_kefu model.Kefu
db.Get(&first_kefu, "select * from lie_kefu order by id asc limit 1")
db.Exec("update lie_kefu set status = ?, update_time = ? where id = ?", 1, current_time, first_kefu.Id)
// 分配客服,添加日志
db.Exec("insert into lie_salesman (user_id, sale_id, assign_time, update_time) values (?, ?, ?, ?)", feedback.Outter_Uid, salesman.Sale_Id, current_time, current_time)
db.Exec("insert into lie_action_log (user_id, type, event, remark, create_time) values (?, ?, ?, ?, ?)", feedback.Outter_Uid, 2, "快速找料监听", "从客服池指派客服,客服ID:"+ strconv.Itoa(salesman.Sale_Id), current_time)
}
db.Exec("insert into lie_task_info (user_id, task_id, task_type, task_display_degree, sale_id, create_time, update_time) value (?, ?, ?, ?, " +
......
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