Commit 7f7b1779cbd1ce42dbf477b1fa7a2148273f1574

Authored by litao@lymsh.com
1 parent d46056a965

123

Showing 1 changed file with 1 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java View file @ 7f7b177
... ... @@ -542,10 +542,10 @@
542 542 Patients patients = mongoTemplate.findById(parentId, Patients.class);
543 543 if(patients != null && !hospitalId.equals(patients.getHospitalId())) {
544 544 if(!mongoTemplate.exists(Query.query(Criteria.where("source").is(parentId).and("hospitalId").is(hospitalId)), Patients.class)) {
545   - patients.setId(null);
546 545 patients.setHospitalId(hospitalId);
547 546 patients.setEnable("2");
548 547 patients.setSource(patients.getId());
  548 + patients.setId(null);
549 549 patients.setCreated(new Date());
550 550 patientsService.addPatient(patients);
551 551 }