|
|
|
@ -20,11 +20,12 @@ import com.supervision.vo.manage.DiseaseTreatmentPlanResVo;
|
|
|
|
|
import com.supervision.vo.manage.MedicalRecPageResVO;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.function.Function;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
@ -34,6 +35,9 @@ import java.util.stream.Collectors;
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
|
|
|
|
|
|
|
|
|
@Value("${answer.offline.template.empty}")
|
|
|
|
|
private String emptyTemplateResourceId;
|
|
|
|
|
|
|
|
|
|
private final DiseaseService diseaseService;
|
|
|
|
|
|
|
|
|
|
private final MedicalRecService medicalRecService;
|
|
|
|
@ -54,6 +58,8 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
|
|
|
|
|
|
|
|
|
private final AnswerVideoResourceService answerVideoResourceService;
|
|
|
|
|
|
|
|
|
|
private final FileManageService fileManageService;
|
|
|
|
|
|
|
|
|
|
public List<Disease> queryDiseaseListByDropList() {
|
|
|
|
|
return diseaseService.lambdaQuery().list();
|
|
|
|
|
}
|
|
|
|
@ -301,4 +307,9 @@ public class MedicalRecManageServiceImpl implements MedicalRecManageService {
|
|
|
|
|
return medicalRecQaVO;
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void downloadMedicalAnswerTemplate(HttpServletResponse response) throws Exception {
|
|
|
|
|
fileManageService.downloadFile(emptyTemplateResourceId,response);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|