|
|
@ -1,31 +1,30 @@ |
|
|
|
package com.zc.business.controller; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.Log; |
|
|
|
import com.ruoyi.common.config.RuoYiConfig; |
|
|
|
import com.ruoyi.common.core.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.domain.AjaxResult; |
|
|
|
import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
|
import com.ruoyi.common.utils.file.FileUploadUtils; |
|
|
|
import com.ruoyi.common.utils.file.FileUtils; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
|
|
|
import com.ruoyi.framework.config.ServerConfig; |
|
|
|
import com.zc.business.domain.DcFileDownload; |
|
|
|
import com.zc.business.service.IDcFileDownloadService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.PutMapping; |
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import com.ruoyi.common.annotation.Log; |
|
|
|
import com.ruoyi.common.core.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.domain.AjaxResult; |
|
|
|
import com.ruoyi.common.enums.BusinessType; |
|
|
|
import com.zc.business.domain.DcFileDownload; |
|
|
|
import com.zc.business.service.IDcFileDownloadService; |
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
|
|
|
import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
import com.ruoyi.framework.config.ServerConfig; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* 文件管理Controller |
|
|
@ -33,9 +32,11 @@ import org.springframework.web.multipart.MultipartFile; |
|
|
|
* @author ruoyi |
|
|
|
* @date 2024-06-12 |
|
|
|
*/ |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/business/download") |
|
|
|
public class DcFileDownloadController extends BaseController { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private IDcFileDownloadService dcFileDownloadService; |
|
|
|
@Autowired |
|
|
@ -126,4 +127,5 @@ public class DcFileDownloadController extends BaseController { |
|
|
|
return AjaxResult.error(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|