要判断日期的区间现在单选按钮默认勾选考核期,按钮的名称为year,现在sql为如下,格式一直弄不出来 SELECT c.sector_name,m.contract_sign_money FROM "BI1"."mkt_contract" M left join "BI1"."cdm_org" C on M.dep_code=C.dep_code where 1=1 ${if (year == 0,"and (exam_date between "+${startTime}+" and "+${endTime}+")","and (confirm_date between +${startTime}+" and "+${endTime}+")")} |