zjh
2025-05-20 c8a1edd4aa2a64f228aa6ad7779cc5de33018026
ltkj-admin/src/main/java/com/ltkj/web/config/captcha/CommonController.java
@@ -52,8 +52,8 @@
    @Autowired
    private ServerConfig serverConfig;
    @Value("${path.xdtfilePath}")
    private String value;
//    @Value("${path.xdtfilePath}")
//    private String value;
    private static final String FILE_DELIMETER = ",";
@@ -70,10 +70,9 @@
    @Autowired
    private ISysDictDataService sysDictDataService;
    @Autowired
    private ISysConfigService sysConfigService;
    private ISysConfigService configService;
    @Autowired
    private TestMapper testMapper;
    /**
     * 通用下载请求
@@ -167,7 +166,7 @@
        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;
@@ -326,6 +325,7 @@
                                    @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;
            // 上传并返回新文件名称