Commit 0bc1dc8b830884f7d20311a1578d1db082ae4438
1 parent
00a625dfe1
Exists in
master
and in
6 other branches
操作日志
Showing 1 changed file with 0 additions and 107 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
0bc1dc8
| ... | ... | @@ -389,113 +389,6 @@ |
| 389 | 389 | { |
| 390 | 390 | System.out.println("pid===" + person.getId()); |
| 391 | 391 | antenatalExaminationService.handleCheckPoint(person.getId()); |
| 392 | -// PatientsQuery patientsQuery = new PatientsQuery(); | |
| 393 | -// patientsQuery.setYn(YnEnums.YES.getId()); | |
| 394 | -// patientsQuery.setPid(person.getId()); | |
| 395 | -// List<Patients> pats = patientsService.queryPatient1(patientsQuery,"created"); | |
| 396 | -// | |
| 397 | -// Map<String,List<Patients>> temps = new HashMap<String, List<Patients>>(); | |
| 398 | -// | |
| 399 | -// if (CollectionUtils.isNotEmpty(pats)) | |
| 400 | -// { | |
| 401 | -// for(Patients pat : pats) | |
| 402 | -// { | |
| 403 | -// if (pat.getLastMenses() != null) | |
| 404 | -// { | |
| 405 | -// Object obj = temps.get(DateUtil.getyyyy_MM_dd(pat.getLastMenses())); | |
| 406 | -// if (obj != null) | |
| 407 | -// { | |
| 408 | -// List<Patients> cc = (List<Patients>)obj; | |
| 409 | -// cc.add(pat); | |
| 410 | -// temps.put(DateUtil.getyyyy_MM_dd(pat.getLastMenses()),cc); | |
| 411 | -// } | |
| 412 | -// else | |
| 413 | -// { | |
| 414 | -// List<Patients> cc = new ArrayList<Patients>(); | |
| 415 | -// cc.add(pat); | |
| 416 | -// temps.put(DateUtil.getyyyy_MM_dd(pat.getLastMenses()),cc); | |
| 417 | -// } | |
| 418 | -// } | |
| 419 | -// } | |
| 420 | -// } | |
| 421 | -// | |
| 422 | -// if (!temps.isEmpty()) | |
| 423 | -// { | |
| 424 | -// for(String key : temps.keySet()) | |
| 425 | -// { | |
| 426 | -// List<String> ids = new ArrayList<String>(); | |
| 427 | -// List<Patients> patientses = temps.get(key); | |
| 428 | -// if (CollectionUtils.isNotEmpty(patientses)) | |
| 429 | -// { | |
| 430 | -// for(Patients patients : patientses) | |
| 431 | -// { | |
| 432 | -// ids.add(patients.getId()); | |
| 433 | -// } | |
| 434 | -// } | |
| 435 | -// | |
| 436 | -// if (CollectionUtils.isNotEmpty(ids)) | |
| 437 | -// { | |
| 438 | -// AntExRecordQuery antExRecordQuery = new AntExRecordQuery(); | |
| 439 | -// antExRecordQuery.setParentIds(ids); | |
| 440 | -// for (int i = 0 ; i < 7 ; i++) | |
| 441 | -// { | |
| 442 | -// if (i == 0) | |
| 443 | -// { | |
| 444 | -// antExRecordQuery.setcDueWeekStart(0); | |
| 445 | -// antExRecordQuery.setcDueWeekEnd((12 + 1) * 7 - 1); | |
| 446 | -// } | |
| 447 | -// else if (i == 1) | |
| 448 | -// { | |
| 449 | -// antExRecordQuery.setcDueWeekStart(13*7); | |
| 450 | -// antExRecordQuery.setcDueWeekEnd((15 + 1) * 7 - 1); | |
| 451 | -// } | |
| 452 | -// else if (i == 2) | |
| 453 | -// { | |
| 454 | -// antExRecordQuery.setcDueWeekStart(16*7); | |
| 455 | -// antExRecordQuery.setcDueWeekEnd((20 + 1) * 7 - 1); | |
| 456 | -// } | |
| 457 | -// else if (i == 3) | |
| 458 | -// { | |
| 459 | -// antExRecordQuery.setcDueWeekStart(21*7); | |
| 460 | -// antExRecordQuery.setcDueWeekEnd((24 + 1) * 7 - 1); | |
| 461 | -// } | |
| 462 | -// else if (i == 4) | |
| 463 | -// { | |
| 464 | -// antExRecordQuery.setcDueWeekStart(25*7); | |
| 465 | -// antExRecordQuery.setcDueWeekEnd((27 + 1) * 7 - 1); | |
| 466 | -// } | |
| 467 | -// else if (i == 5) | |
| 468 | -// { | |
| 469 | -// antExRecordQuery.setcDueWeekStart(28*7); | |
| 470 | -// antExRecordQuery.setcDueWeekEnd((36 + 1) * 7 - 1); | |
| 471 | -// } | |
| 472 | -// else if (i == 6) | |
| 473 | -// { | |
| 474 | -// antExRecordQuery.setcDueWeekStart(37*7); | |
| 475 | -// antExRecordQuery.setcDueWeekEnd((40 + 1) * 7 - 1); | |
| 476 | -// } | |
| 477 | -// | |
| 478 | -// List<AntExRecordModel> list = recordService.queryAntExRecords(antExRecordQuery); | |
| 479 | -// if (CollectionUtils.isNotEmpty(list)) | |
| 480 | -// { | |
| 481 | -// for (int j = 0 ; j < list.size() ; j++) | |
| 482 | -// { | |
| 483 | -// AntExRecordModel m = list.get(j); | |
| 484 | -// if (j == (list.size() - 1)) | |
| 485 | -// { | |
| 486 | -// m.setIsFirst(1); | |
| 487 | -// } | |
| 488 | -// else | |
| 489 | -// { | |
| 490 | -// m.setIsFirst(2); | |
| 491 | -// } | |
| 492 | -// recordService.updateOne(m,m.getId()); | |
| 493 | -// } | |
| 494 | -// } | |
| 495 | -// } | |
| 496 | -// } | |
| 497 | -// } | |
| 498 | -// } | |
| 499 | 392 | } |
| 500 | 393 | } |
| 501 | 394 | }); |