自己看一下你的这个字段在数据库里面是什么类型的?文本的还是日期类型的?你的是oracel数据库对吧
如果date不是你数据库的列字段,你直接这样写肯定错误:
trunc(date) oracle里面取系统日期是sysdate
你先检查一下这个字段的格式。。
select
t.*,
rownum as seqId
FROM(
SELECT * FROM CT_EJLP_LVPI_TEST
where 1=1
${if(len(内批号) == 0,""," and LOT in ('" + REPLACE(内批号,",","','") + "')")}
${if(len(驴皮编码) == 0,""," and LVLOT in ('" + REPLACE(驴皮编码,",","','") + "')")}
${if(len(p1)=0,"","and trunc(DATE)=to_date('"+p1+"','yyyy-mm-dd')")}