var paramObj = parameters; var startTime =parameters.startTime; var endTime =parameters.endTime; var sql="SELECT o.application,o.createTime,o.id,o.startTime,o.creatorUnit,o.title,o.stringValue01,o.stringValue02,o.stringValue03,o.stringValue04 FROM com.x.processplatform.core.entity.content.WorkCompleted o " sql+="where o.createTime >= {ts '"+startTime+"'} and o.createTime <= {ts '"+endTime+"'}"; return sql;
直接编写JPQL创建语句-示例如下图:
{ "startTime": "{ts '2021-03-01 21:04:16'}" }