Commit b722fed6 by 朱继来

释放用户时清理新的关联表

parent f625d841
Showing with 4 additions and 0 deletions
......@@ -83,6 +83,10 @@ func CompareTime(user_id, limit_follow_time int) {
// 删除跟进记录
dao.GetDb().Exec("delete from lie_salesman where user_id = ?", user_id)
// 清理新的关联表
var timeNow = time.Now().Unix()
dao.GetDb().Exec("update `lie_invoice_com_user` set sale_id= ?, update_time = ? where user_id = ?", 0, timeNow, user_info.Outter_uid)
// 添加释放日志
dao.GetDb().Exec("insert into lie_action_log (user_id, type, event, remark, create_time) values (?, ?, ?, ?, ?)", user_id, 2, "释放用户", "", curr_time)
......
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