管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-18 26906f9b876b28be864a6dd16b1bd1ebab176a0f
src/main/java/com/lf/server/controller/sys/ResController.java
@@ -6,7 +6,7 @@
import com.lf.server.entity.sys.ResEntity;
import com.lf.server.entity.sys.UserEntity;
import com.lf.server.service.all.PermsService;
import com.lf.server.service.all.UploadService;
import com.lf.server.service.all.UploadAttachService;
import com.lf.server.service.sys.ResService;
import com.lf.server.service.sys.TokenService;
import io.swagger.annotations.Api;
@@ -37,7 +37,7 @@
    TokenService tokenService;
    @Autowired
    UploadService uploadService;
    UploadAttachService uploadAttachService;
    @Autowired
    PermsService permsService;
@@ -287,7 +287,7 @@
    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
        UserEntity ue = tokenService.getCurrentUser(req);
        return uploadService.upload(ue, TAB_NAME, file, this);
        return uploadAttachService.upload(ue, TAB_NAME, file, this);
    }
    @SysLog()
@@ -297,6 +297,6 @@
    })
    @GetMapping(value = "/download")
    public void download(String guid, HttpServletResponse res) {
        uploadService.download(guid, res);
        uploadAttachService.download(guid, res);
    }
}