|
|
|
@ -5,8 +5,11 @@ 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.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.system.domain.carrier.TdCarrier;
|
|
|
|
|
import com.ruoyi.system.domain.carrier.TdCarrierIssued;
|
|
|
|
|
import com.ruoyi.web.controller.manager.CarrierIssuedManager;
|
|
|
|
|
import com.ruoyi.web.controller.manager.SysAreaManager;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
@ -34,6 +37,10 @@ public class CarrierIssuedController extends BaseController {
|
|
|
|
|
private CarrierIssuedManager carrierIssuedManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private SysAreaManager sysAreaManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("system:carrierIssued:view")
|
|
|
|
|
@GetMapping()
|
|
|
|
|
public String carrierIssued() {
|
|
|
|
@ -55,6 +62,24 @@ public class CarrierIssuedController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导出文件下发列表
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("system:carrierIssued:export")
|
|
|
|
|
@Log(title = "国家秘密载体", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult export(TdCarrierIssued tdCarrierIssued) {
|
|
|
|
|
List<TdCarrierIssued> carriers = carrierIssuedManager.selectTdCarrierList(tdCarrierIssued);
|
|
|
|
|
carriers.forEach(tdCarrier1 -> {
|
|
|
|
|
tdCarrier1.setAreaCity(sysAreaManager.getAreaName(tdCarrier1.getAreaCity()));
|
|
|
|
|
tdCarrier1.setAreaDistrict(sysAreaManager.getAreaName(tdCarrier1.getAreaDistrict()));
|
|
|
|
|
});
|
|
|
|
|
ExcelUtil<TdCarrierIssued> util = new ExcelUtil<>(TdCarrierIssued.class);
|
|
|
|
|
return util.exportExcel(carriers, "国家秘密载体数据");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增载体
|
|
|
|
|
*/
|
|
|
|
|