Commit a4fd5c5b by 朱继来

添加上一任客服

parent 68ffbd0d
Showing with 4 additions and 1 deletions
...@@ -72,7 +72,10 @@ func CompareTime(user_id, limit_follow_time int) { ...@@ -72,7 +72,10 @@ func CompareTime(user_id, limit_follow_time int) {
return return
} }
_, err := dao.GetDb().Exec("update lie_user set is_free = ?, free_time = ?, is_churn = ? where user_id = ?", 1, curr_time, 0, user_id) var old_sale_id int
dao.GetDb().Get(&old_sale_id, "select sale_id from lie_invoice_com_user where user_id = ?", user_id)
_, err := dao.GetDb().Exec("update lie_user set is_free = ?, free_time = ?, is_churn = ?, last_sale_id where user_id = ?", 1, curr_time, 0, user_id, old_sale_id)
if err != nil { if err != nil {
logger.Info("释放用户失败,CRM用户ID:"+ strconv.Itoa(user_id) +"原因:" + err.Error()) logger.Info("释放用户失败,CRM用户ID:"+ strconv.Itoa(user_id) +"原因:" + err.Error())
......
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