我在最后的where要添加一个参数,但是一直不行。它只会出来一个参数。不知道哪里出错了,就是用户录入时间的年月日后,我自己在开始与结束时间分别让它添加上时分秒。但是一直只有end_date出来。start_date不出来
我是这样写的:
${if(len(start_date) == 0,"","and t.f_jysj between" + '${start_date+" 00:00:00"}'
+" and " + '${end_date+" 23:59:59"}')}
${if(len(start_date) == 0,""," and t.f_jysj between '" + start_date + " 00:00:00'" + " and '"+end_date+" 23:59:59'")}
${if(len(start_date) == 0,""," and t.f_jysj between '" + start_date + " 00:00:00' and '" + end_date + " 23:59:59'")}