| | |
| | | import com.ltkj.db.DataSourceContextHolder; |
| | | import com.ltkj.hosp.domain.SysAttachment; |
| | | import com.ltkj.hosp.service.ISysAttachmentService; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import com.ltkj.system.service.ISysDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @Autowired |
| | | private ServerConfig serverConfig; |
| | | |
| | | @Value("${path.xdtfilePath}") |
| | | private String value; |
| | | // @Value("${path.xdtfilePath}") |
| | | // private String value; |
| | | |
| | | private static final String FILE_DELIMETER = ","; |
| | | |
| | |
| | | private ISysAttachmentService sysAttachmentService; |
| | | @Autowired |
| | | private ISysDictDataService sysDictDataService; |
| | | @Autowired |
| | | private ISysConfigService configService; |
| | | |
| | | |
| | | /** |
| | |
| | | @ApiOperation(value = "心电图报告上传图片方法") |
| | | public AjaxResult uploadXdtFile(@ApiParam("文件") @RequestPart("file") MultipartFile file, |
| | | @ApiParam("体检号") String tjh,@ApiParam("项目id") String proId) throws Exception { |
| | | |
| | | try { |
| | | String value = configService.selectConfigByKey("path_xdtfilePath"); |
| | | // 上传文件路径 |
| | | // 第一步:生成文件并保存 |
| | | String key = DataSourceContextHolder.getDataSourceKey(); |