|
@@ -1,8 +1,12 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
import com.diagbot.dto.RecordContentDTO;
|
|
|
+import com.diagbot.entity.MedicalRecord;
|
|
|
import com.diagbot.service.impl.MedicalRecordServiceImpl;
|
|
|
+import com.diagbot.util.DBConn;
|
|
|
import com.diagbot.vo.RecordContentVO;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -15,7 +19,17 @@ import java.util.List;
|
|
|
@Component
|
|
|
public class MedicalRecordFacade extends MedicalRecordServiceImpl {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MedicalRecordServiceImpl medicalRecordServiceImpl;
|
|
|
+
|
|
|
+ public void executeTZ() {
|
|
|
+ List<MedicalRecord> medicalRecordList=DBConn.getMedicalRecord();
|
|
|
+ medicalRecordServiceImpl.saveBatch(medicalRecordList);
|
|
|
+ }
|
|
|
+
|
|
|
public List<RecordContentDTO> getRecordContentFac(RecordContentVO recordContentVO) {
|
|
|
return getRecordContent(recordContentVO);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|