select * from t_strategy_plan_info where `cross_id`=#{crossId} and ( `status`=1 or `status` is null) and ((CURRENT_DATE < `end_time` and CURRENT_DATE > `start_time`) or `end_time` is null )
select * from t_strategy_plan_info where ( `status`=1 or `status` is null) and ((CURRENT_DATE < `end_time` and CURRENT_DATE > `start_time`) or `end_time` is null )
.inSql(CrossSchemeStageOptLogPO::getBatchTime,"select max(batch_time) from t_cross_scheme_opt_log where cross_id = '"+crossSchemeRingsDTO.getCrossId()+"' and scheme_id = "+crossSchemeRingsDTO.getPattern());