|
@@ -81,10 +81,21 @@ public class DonateServiceImpl extends IBaseServiceImpl<DonateEntity, Long> impl
|
|
|
throw new BaseRuntimeException("日期不能为空");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
StringBuffer sql = new StringBuffer();
|
|
|
sql.append("select * from tb_donate where is_delete=0 ");
|
|
|
sql.append(" and create_time >= ").append("'").append(startTime).append("'");
|
|
|
sql.append(" and create_time <= ").append("'").append(endTime).append("'");
|
|
|
+
|
|
|
+ String searchKey = param.getSearchKey();
|
|
|
+ if (StringUtils.isNotBlank(searchKey)) {
|
|
|
+ searchKey = StringUtils.trim(searchKey);
|
|
|
+ sql.append(" and name like '%").append(searchKey).append("%'");
|
|
|
+ }
|
|
|
+
|
|
|
sql.append(" order by create_time desc");
|
|
|
String sqlStr = sql.toString();
|
|
|
log.info("sql: {}", sqlStr);
|