Commit bc4be0db by 朱继来

调整

parent a4fd5c5b
Showing with 1 additions and 1 deletions
...@@ -75,7 +75,7 @@ func CompareTime(user_id, limit_follow_time int) { ...@@ -75,7 +75,7 @@ func CompareTime(user_id, limit_follow_time int) {
var old_sale_id int var old_sale_id int
dao.GetDb().Get(&old_sale_id, "select sale_id from lie_invoice_com_user where user_id = ?", user_id) 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) _, err := dao.GetDb().Exec("update lie_user set is_free = ?, free_time = ?, is_churn = ?, last_sale_id = ? where user_id = ?", 1, curr_time, 0, old_sale_id, user_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