时间:2021-07-01 10:21:17 帮助过:14人阅读
mybatis
select * from message where flag=0 or ((dealno=#{dealno} or (removeno in (select removeno from message where removedate >= #{removedate}))) and ((senddate >= #{senddate} or dealdate >= #{dealdate} or removedate >= #{removedate}) and senddate <=#{senddate2})) order by senddate
注意点:
1.时间
2.mybatis映射文件参数和字段要一一对应,可以采取赋值转变
SQLite
标签:文件 div 映射文件 strong lag pos post sage bat