rows,err:=db.Queryx("select aa.user_id,turn_in_id,no_create_order from lie_assign_active as aa left join lie_user_extend ue on aa.user_id = ue.user_id where is_success = ? and ue.no_create_order = 2 and change_time < ? and latest_order_time < ?",1,month_time,month_time)
dao.GetDb().Exec("delete from lie_salesman where user_id = ?",assign_active.User_Id)
dao.GetDb().Exec("update lie_user set is_free = 1 where user_id = ?",assign_active.User_Id)
}
//查找第二次出不再跟随的用户ID,释放并且屏蔽
rows,err=db.Queryx("select aa.user_id,turn_in_id,no_create_order from lie_assign_active as aa left join lie_user_extend ue on aa.user_id = ue.user_id where is_success = 2 and ue.no_create_order = 2 and change_time < ? and latest_order_time < ?",month_time,month_time)
rows,err:=db.Queryx("select aa.user_id,turn_in_id,no_create_order from lie_assign_active as aa left join lie_user_extend ue on aa.user_id = ue.user_id where is_success = ? and ue.no_create_order = 1 and change_time < ? and latest_order_time < ?",1,month_time,month_time)
dao.GetDb().Exec("delete from lie_salesman where user_id = ?",assign_active.User_Id)
dao.GetDb().Exec("update lie_user set is_free = 1 where user_id = ?",assign_active.User_Id)
}
//查找第二次出不再跟随的用户ID,释放并且屏蔽
rows,err=db.Queryx("select aa.user_id,turn_in_id,no_create_order from lie_assign_active as aa left join lie_user_extend ue on aa.user_id = ue.user_id where is_success = ? and ue.no_create_order = 1 and change_time < ? and latest_order_time < ?",2,month_time,month_time)