|
@ -169,25 +169,26 @@ public class ManageSystemPushMessageService {
|
|
|
|
|
|
String sql = "SELECT * FROM base_pushrecord_log where 1=1 ";
|
|
|
String countSql = "Select count(id) from base_pushrecord_log where 1=1 ";
|
|
|
String filite = " ";
|
|
|
String filiteSql = " ";
|
|
|
String orderSql = " ";
|
|
|
|
|
|
if(null!=messageType){
|
|
|
filite +=" and message_type ='"+messageType+"' ";
|
|
|
filiteSql +=" and message_type ='"+messageType+"' ";
|
|
|
}
|
|
|
|
|
|
if (null!=status) {
|
|
|
filite +=" and status = '"+status+"'";
|
|
|
filiteSql +=" and status = '"+status+"'";
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNotBlank(name)){
|
|
|
filite +=" and send_object like '%"+name+"%'";
|
|
|
filiteSql +=" and send_object like '%"+name+"%'";
|
|
|
}
|
|
|
|
|
|
sql += " ORDER BY send_time DESC LIMIT " + (page - 1) * pageSize + "," + pageSize + "";
|
|
|
orderSql = " ORDER BY send_time DESC LIMIT " + (page - 1) * pageSize + "," + pageSize + "";
|
|
|
|
|
|
List<BasePushRecordLogEntity> entityList = jdbcTemplate.query(sql + filite, new BeanPropertyRowMapper<>(BasePushRecordLogEntity.class));
|
|
|
List<BasePushRecordLogEntity> entityList = jdbcTemplate.query(sql + filiteSql + orderSql, new BeanPropertyRowMapper<>(BasePushRecordLogEntity.class));
|
|
|
result.put("obj",entityList);
|
|
|
Integer count = jdbcTemplate.queryForObject(countSql + filite, Integer.class);
|
|
|
Integer count = jdbcTemplate.queryForObject(countSql + filiteSql, Integer.class);
|
|
|
result.put("count",count);
|
|
|
|
|
|
|