|
@@ -92,15 +92,15 @@ public class TestController {
|
|
|
@PostMapping("/setCzrk")
|
|
|
public AjaxResult setCzrk() {
|
|
|
//587731
|
|
|
- for (int i = 0; i < 59; i++) {
|
|
|
- int startPage = i * 10000;
|
|
|
- int endPage = 10000;
|
|
|
- List<VaccineInfoOperation> vaccineInfoOperations = mapper.selectVaccineInfoListByPage(startPage, endPage);
|
|
|
- if (vaccineInfoOperations.size() > 0) {
|
|
|
- for (VaccineInfoOperation vaccineInfoOperation : vaccineInfoOperations) {
|
|
|
- if (vaccineInfoOperation != null) {
|
|
|
- Czrk czrk = new Czrk();
|
|
|
- czrk.setUserName(vaccineInfoOperation.getUserName());
|
|
|
+ int id = 593843;
|
|
|
+ List<VaccineInfoOperation> vaccineInfoOperations = mapper.selectVaccineInfoListById(id);
|
|
|
+ if (vaccineInfoOperations.size() > 0) {
|
|
|
+ for (VaccineInfoOperation vaccineInfoOperation : vaccineInfoOperations) {
|
|
|
+ if (vaccineInfoOperation != null) {
|
|
|
+ Czrk czrk = new Czrk();
|
|
|
+ String userName = vaccineInfoOperation.getUserName();
|
|
|
+ if (!userName.contains("测试") && userName.length() < 5) {
|
|
|
+ czrk.setUserName(userName);
|
|
|
czrk.setGender(vaccineInfoOperation.getGender());
|
|
|
czrk.setAge(vaccineInfoOperation.getAge());
|
|
|
czrk.setBirthday(vaccineInfoOperation.getBirthday());
|
|
@@ -268,7 +268,7 @@ public class TestController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- System.out.println("处理完成" + startPage + "数据");
|
|
|
+ //System.out.println("处理完成" + startPage + "数据");
|
|
|
}
|
|
|
return AjaxResult.success("全部完成");
|
|
|
}
|