LAPTOP-KB9HII50\70708 2 months ago
parent
commit
41c1bb2a26

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/jw/base/service/a3service/MedicinedeviceService.java

@ -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);