如图所示,如果为条件1,则时间是sysdate-1,如果是条件2,则时间是sysdate,在帆软里面如何写呢,按图中红色框写,貌似不对啊 求大神帮忙啊!!! and ( (T.代扣通道 = '111' and T.TRAN_DT between REPLACE('${日期开始}-1', '-', '') and REPLACE('${日期结束}-1', '-', '')) or (T.代扣通道 = '222' and T.TRAN_DT between REPLACE('${日期开始}', '-', '') and REPLACE('${日期结束}', '-', '')) ) |