| | |
| | | @Autowired |
| | | private ServerConfig serverConfig; |
| | | |
| | | @Value("${path.xdtfilePath}") |
| | | private String value; |
| | | // @Value("${path.xdtfilePath}") |
| | | // private String value; |
| | | |
| | | private static final String FILE_DELIMETER = ","; |
| | | |
| | |
| | | @Autowired |
| | | private ISysDictDataService sysDictDataService; |
| | | @Autowired |
| | | private ISysConfigService sysConfigService; |
| | | private ISysConfigService configService; |
| | | @Autowired |
| | | private TestMapper testMapper; |
| | | |
| | | |
| | | /** |
| | | * 通用下载请求 |
| | |
| | | if (StrUtil.isBlank(dictVal)) |
| | | return AjaxResult.error("类型不能为空"); |
| | | try { |
| | | String exeimgsaveurl = sysConfigService.selectConfigByKey("exeimgsaveurl"); |
| | | String exeimgsaveurl = configService.selectConfigByKey("exeimgsaveurl"); |
| | | String filePath; |
| | | if (StrUtil.isNotBlank(exeimgsaveurl)){ |
| | | filePath = exeimgsaveurl; |
| | |
| | | @ApiParam("体检号") String tjh,@ApiParam("项目id") String proId) throws Exception { |
| | | try { |
| | | // 上传文件路径 |
| | | String value = configService.selectConfigByKey("path_xdtfilePath"); |
| | | String filePath = value + File.separator; |
| | | String outputFileName = tjh +"_" +proId; |
| | | // 上传并返回新文件名称 |