|
|
|
@ -2,6 +2,7 @@ package com.ruoyi.tcZz.controller;
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.tcZz.domain.TcAqg;
|
|
|
|
@ -13,6 +14,8 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -99,7 +102,6 @@ public class TcAqgController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量启用禁用
|
|
|
|
|
*
|
|
|
|
@ -113,4 +115,12 @@ public class TcAqgController extends BaseController {
|
|
|
|
|
tcAqgService.updateByisStatus(isStatus, ids);
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
|
}
|
|
|
|
|
@ApiOperation("通用下载excel模板")
|
|
|
|
|
@PostMapping("/importTemplate")
|
|
|
|
|
public void importTemplate(HttpServletResponse response)
|
|
|
|
|
{
|
|
|
|
|
ExcelUtil<TcAqg> util = new ExcelUtil<TcAqg>(TcAqg.class);
|
|
|
|
|
util.importTemplateExcel(response, " 网络安全官");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|