|
@@ -18,6 +18,8 @@ import javax.xml.bind.JAXBException;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.Period;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -41,7 +43,7 @@ public class CCEYCustomerInfoService {
|
|
|
|
|
|
private final List<EmployeeDO> employees = new ArrayList<>();
|
|
|
|
|
|
- public List<PatientDO> CCEYCustomerInfo(String dqks) throws JAXBException {
|
|
|
+ public List<PatientDO> CCEYCustomerInfo(String dqks,List<DoctorAdviceDO> patientAdvices) throws JAXBException {
|
|
|
List<PatientDO> patients = new ArrayList<>();
|
|
|
|
|
|
String partKey = dqks.split("_")[0];
|
|
@@ -141,14 +143,15 @@ public class CCEYCustomerInfoService {
|
|
|
|
|
|
if (item.getJcglbz() != null && !"".equals(item.getJcglbz())) {
|
|
|
DoctorAdviceDO doctorAdviceDO = new DoctorAdviceDO();
|
|
|
- doctorAdviceDO.setAdviceContent(item.getJcglbz());
|
|
|
+ doctorAdviceDO.setAdviceContent("接触隔离");
|
|
|
doctorAdviceDO.setHisKey(item.getPatientId() + "_JCGLBZ");
|
|
|
doctorAdviceDO.setPatientKey(item.getPatientId());
|
|
|
- doctorAdviceDO.setState("1");
|
|
|
+ doctorAdviceDO.setState(item.getJcglbz());
|
|
|
doctorAdviceDO.setAdviceTime(item.getInTime());
|
|
|
doctorAdviceDO.setPatientName(item.getPatientName());
|
|
|
doctorAdviceDO.setHisPartKey(item.getDeptId() + "_" + item.getNurseUnitCode());
|
|
|
- this.entraceDoctorAdviceFeignClient.syncSingleDoctorAdvice(doctorAdviceDO);
|
|
|
+ patientAdvices.add(doctorAdviceDO);
|
|
|
+// this.entraceDoctorAdviceFeignClient.syncDoctorAdvice(Collections.singletonList(doctorAdviceDO));
|
|
|
}
|
|
|
// log.info(patientDO.toString());
|
|
|
// syncPs.add(patientDO);
|