|
@ -254,7 +254,7 @@ public class MedicinedeviceService extends BaseJpaService<Mediicinedevice, Medi
|
|
|
filter += " and i.update_time<='"+endTime+"'";
|
|
|
}
|
|
|
|
|
|
String orderBy = " order by fault_state desc,update_time desc limit "+(page-1)*size+","+size;
|
|
|
String orderBy = " order by i.fault_state desc,i.update_time desc limit "+(page-1)*size+","+size;
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql+filter+orderBy);
|
|
|
long count = jdbcTemplate.queryForObject(countSql+filter,Long.class);
|
|
|
return PageEnvelop.getSuccessListWithPage("查询成功",list,page,size,count);
|