管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-20 d403c1ff86d0f40c7554f07215a8f3942901018c
src/main/java/com/lf/server/controller/sys/ResController.java
@@ -1,12 +1,12 @@
package com.lf.server.controller.sys;
import com.lf.server.aspect.SysLog;
import com.lf.server.annotation.SysLog;
import com.lf.server.controller.all.BaseController;
import com.lf.server.entity.all.ResponseMsg;
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);
    }
}