管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-11-21 dfa4fd206b390a3afee9769fe1953b692a1eac9a
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,12 +37,12 @@
    TokenService tokenService;
    @Autowired
    UploadService uploadService;
    UploadAttachService uploadAttachService;
    @Autowired
    PermsService permsService;
    private final static String TAB_NAME = "sys_res";
    private final static String TAB_NAME = "lf.sys_res";
    @SysLog()
    @ApiOperation(value = "查询记录数")
@@ -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);
    }
}