Browse Source

代码修改

liubing 3 years ago
parent
commit
80223207eb

+ 4 - 4
svr/svr-cloud-care/src/main/java/com/yihu/jw/care/service/device/PatientDeviceService.java

@ -1325,12 +1325,12 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
                }
                }
                int fromIndex = 0;
                int fromIndex = 0;
                int toIndex = 0;
                int toIndex = 0;
                if (page != pageCount) {
                if (page <= pageCount) {
                    fromIndex = (page) * pageSize;
                    fromIndex = (page) * pageSize;
                    toIndex = fromIndex + pageSize;
                    toIndex = fromIndex + pageSize;
                } else {
                    fromIndex = (page) * pageSize;
                    toIndex = count;
                }
                if(fromIndex>count){
                    fromIndex= count;
                }
                }
                if (toIndex > count) {
                if (toIndex > count) {
                    toIndex = count;
                    toIndex = count;