|
|
@ -27,14 +27,13 @@ import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.io.BufferedOutputStream;
|
|
|
|
import java.io.BufferedOutputStream;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
@ -45,6 +44,9 @@ public class AskQuestionLibraryManageServiceImpl implements AskQuestionLibraryMa
|
|
|
|
@Value("${ask.offline.template.error}")
|
|
|
|
@Value("${ask.offline.template.error}")
|
|
|
|
private String errorTemplateResourceId;
|
|
|
|
private String errorTemplateResourceId;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${ask.offline.template.empty}")
|
|
|
|
|
|
|
|
private String emptyTemplateResourceId;
|
|
|
|
|
|
|
|
|
|
|
|
private final AskTemplateQuestionLibraryService askTemplateQuestionLibraryService;
|
|
|
|
private final AskTemplateQuestionLibraryService askTemplateQuestionLibraryService;
|
|
|
|
|
|
|
|
|
|
|
|
private final CommonDicService commonDicService;
|
|
|
|
private final CommonDicService commonDicService;
|
|
|
@ -168,6 +170,10 @@ public class AskQuestionLibraryManageServiceImpl implements AskQuestionLibraryMa
|
|
|
|
return wrapperUploadQuestionLibraryResVo(uploadQuestionLibraryDTOS,fileResource.getId());
|
|
|
|
return wrapperUploadQuestionLibraryResVo(uploadQuestionLibraryDTOS,fileResource.getId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void downloadMedicalAnswerTemplate(HttpServletResponse response) throws Exception {
|
|
|
|
|
|
|
|
fileManageService.downloadFile(emptyTemplateResourceId,response);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void assertSave(AskTemplateQuestionLibrary askTemplateQuestionLibrary){
|
|
|
|
private void assertSave(AskTemplateQuestionLibrary askTemplateQuestionLibrary){
|
|
|
|