|
@@ -42,20 +42,6 @@ public class VaccineInfoServiceImpl implements IVaccineInfoService {
|
|
@Resource
|
|
@Resource
|
|
private VaccineInfoUserMapper vaccineInfoUserMapper;
|
|
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) {
|
|
private void save(List<VaccineInfoOperation> list) {
|
|
for(VaccineInfoOperation operation : list) {
|
|
for(VaccineInfoOperation operation : list) {
|