Administrator 3 жил өмнө
parent
commit
e4d64102e8

+ 0 - 2
boman-web-core/src/main/java/com/boman/web/core/service/vaccineInfo/IVaccineInfoService.java

@@ -66,6 +66,4 @@ public interface IVaccineInfoService
      * @return
      */
     public VaccineInfoOperation  findHjInfo(VaccineInfoOperation vaccineInfo);
-
-    public void syncData();
 }

+ 0 - 14
boman-web-core/src/main/java/com/boman/web/core/service/vaccineInfo/impl/VaccineInfoServiceImpl.java

@@ -42,20 +42,6 @@ public class VaccineInfoServiceImpl implements IVaccineInfoService {
     @Resource
     private VaccineInfoUserMapper vaccineInfoUserMapper;
 
-    public void syncData() {
-        int count = 1;
-        int testcount = vaccineInfoMapper.selectCount();
-        System.out.println("testCount: " + testcount);
-        int times = count / 1000;
-        int startPage = 0;
-        int endPage = 1000;
-        for (int i = 0;i < times + 1;i++) {
-            List<VaccineInfoOperation> list = vaccineInfoMapper.selectVaccineInfoListByPage(startPage, endPage);
-            this.save(list);
-            startPage += 1000;
-        }
-
-    }
 
     private void save(List<VaccineInfoOperation> list) {
         for(VaccineInfoOperation operation : list) {