|
|
|
@ -3,6 +3,7 @@ package com.ruoyi.web.controller.system.filemanager;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.convert.Convert;
|
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysDept;
|
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
|
|
import com.ruoyi.common.utils.sql.SqlUtil;
|
|
|
|
@ -13,6 +14,7 @@ import com.ruoyi.system.domain.TdFileReceive;
|
|
|
|
|
import com.ruoyi.system.service.ISysDeptService;
|
|
|
|
|
import com.ruoyi.system.service.ISysPostService;
|
|
|
|
|
import com.ruoyi.system.service.ITdFileReceiveService;
|
|
|
|
|
import com.ruoyi.web.controller.manager.SysAreaManager;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
@ -31,6 +33,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 文件下发Controller
|
|
|
|
|
*
|
|
|
|
@ -70,6 +74,9 @@ public class TdFileProvideController extends BaseController
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private SysAreaManager sysAreaManager;
|
|
|
|
|
/**
|
|
|
|
|
* 导出文件下发列表
|
|
|
|
|
*/
|
|
|
|
@ -80,6 +87,10 @@ public class TdFileProvideController extends BaseController
|
|
|
|
|
public AjaxResult export(TdFileProvide tdFileProvide)
|
|
|
|
|
{
|
|
|
|
|
List<TdFileProvide> list = tdFileProvideService.selectTdFileProvideList(tdFileProvide);
|
|
|
|
|
list.forEach(tdFileProvide1 -> {
|
|
|
|
|
tdFileProvide1.setFrameworkId(sysAreaManager.getAreaName(tdFileProvide1.getFrameworkId()));
|
|
|
|
|
tdFileProvide1.setAreaid(sysAreaManager.getAreaName(tdFileProvide1.getAreaid()));
|
|
|
|
|
});
|
|
|
|
|
ExcelUtil<TdFileProvide> util = new ExcelUtil<TdFileProvide>(TdFileProvide.class);
|
|
|
|
|
return util.exportExcel(list, "文件下发数据");
|
|
|
|
|
}
|
|
|
|
|