Browse Source

抄表率代码优化

pengdi@zoniot.com 5 years ago
parent
commit
2fbc0f1a36

+ 1 - 1
smart-city-platform/src/main/java/com/bz/smart_city/service/impl/MeterReadRecordServiceImpl.java

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