liubing преди 3 години
родител
ревизия
80223207eb
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      svr/svr-cloud-care/src/main/java/com/yihu/jw/care/service/device/PatientDeviceService.java

+ 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 toIndex = 0;
                if (page != pageCount) {
                if (page <= pageCount) {
                    fromIndex = (page) * pageSize;
                    toIndex = fromIndex + pageSize;
                } else {
                    fromIndex = (page) * pageSize;
                    toIndex = count;
                }
                if(fromIndex>count){
                    fromIndex= count;
                }
                if (toIndex > count) {
                    toIndex = count;