select * from t_agent_withdraw_apply_order // where 标签会去掉 SQL 前面多余的 and // 如果 withdrawType == 1 则查询条件为 and F_withdraw_type = 0 // 如果 withdrawType == 2 则查询条件为 and F_withdraw_type = 5015 // 如果 withdrawType != 1 || withdrawType != 2 则查询条件为 and F_withdraw_type in(5005,5067,5089) and F_withdraw_type = 0 and F_withdraw_type = 5015 and F_withdraw_type in(5005,5067,5089)