|
@@ -7,6 +7,7 @@ import com.bz.smart_city.dto.*;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.jdbc.datasource.DataSourceUtils;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import javax.annotation.Resource;
|
|
@@ -899,7 +900,6 @@ public class MeterReadRecordServiceImpl implements MeterReadRecordService{
|
|
|
log.info("Water Meters With Code {},Total = {}",waterMeterCode ,total );
|
|
|
// 2,分页获取设备并生成抄表记录
|
|
|
int pageSize = 1000 ;
|
|
|
-
|
|
|
int totalPage = total / pageSize;
|
|
|
if (total % pageSize != 0){
|
|
|
totalPage++;
|