diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqyhController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqyhController.java index 545f07f3..85d3a0f7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqyhController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqyhController.java @@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ruoyi.tcZz.domain.TcAqg; import com.ruoyi.tcZz.domain.TcXtjc; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -122,4 +123,11 @@ public class TcAqyhController extends BaseController tcAqyhService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcAqyh.class); + util.importTemplateExcel(response, " 安全隐患"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBjsjwpController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBjsjwpController.java index 9a44df4c..51fd3215 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBjsjwpController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBjsjwpController.java @@ -123,4 +123,11 @@ public class TcBjsjwpController extends BaseController tcBjsjwpService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcBjsjwp.class); + util.importTemplateExcel(response, " 本级上级网评指令比例(月)"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBmtbController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBmtbController.java index fc1539f6..f9535bb7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBmtbController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBmtbController.java @@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ruoyi.tcZz.domain.TcBjsjwp; import com.ruoyi.tcZz.domain.TcWljg; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -121,4 +122,12 @@ public class TcBmtbController extends BaseController tcBmtbService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcBmtb.class); + util.importTemplateExcel(response, " 部门通报"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBzhanController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBzhanController.java index 65dc77b0..522c93a0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBzhanController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcBzhanController.java @@ -4,6 +4,7 @@ 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.utils.poi.ExcelUtil; +import com.ruoyi.tcZz.domain.TcBmtb; import com.ruoyi.tcZz.domain.TcBzhan; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcBzhanService; @@ -111,4 +112,12 @@ public class TcBzhanController extends BaseController { tcBzhanService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcBzhan.class); + util.importTemplateExcel(response, " B站、小红书"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcCyController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcCyController.java index 1ac88b72..3a8917b7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcCyController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcCyController.java @@ -6,6 +6,7 @@ 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.tcZz.domain.TcBzhan; import com.ruoyi.tcZz.domain.TcCy; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcCyService; @@ -116,4 +117,12 @@ public class TcCyController extends BaseController { tcCyService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcCy.class); + util.importTemplateExcel(response, " 词云列表"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbdwController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbdwController.java index 03539b34..a363057d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbdwController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbdwController.java @@ -6,6 +6,7 @@ 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.tcZz.domain.TcCy; import com.ruoyi.tcZz.domain.TcDbdw; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcDbdwService; @@ -115,4 +116,12 @@ public class TcDbdwController extends BaseController { tcDbdwService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcDbdw.class); + util.importTemplateExcel(response, " 等保单位"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbxtController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbxtController.java index f83d8092..3ff02a66 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbxtController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDbxtController.java @@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ruoyi.tcZz.domain.TcDbdw; import com.ruoyi.tcZz.domain.TcWljg; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -116,4 +117,12 @@ public class TcDbxtController extends BaseController { tcDbxtService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcDbxt.class); + util.importTemplateExcel(response, " 等保系统"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDtsxController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDtsxController.java index 3af9e621..9c284a30 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDtsxController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDtsxController.java @@ -6,6 +6,7 @@ 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.tcZz.domain.TcDbxt; import com.ruoyi.tcZz.domain.TcDtsx; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcDtsxService; @@ -114,4 +115,12 @@ public class TcDtsxController extends BaseController { tcDtsxService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcDtsx.class); + util.importTemplateExcel(response, " 动态筛选"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDyController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDyController.java index 58ebc8d1..651bc40f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDyController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcDyController.java @@ -6,6 +6,7 @@ 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.tcZz.domain.TcDtsx; import com.ruoyi.tcZz.domain.TcDy; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcDyService; @@ -116,4 +117,12 @@ public class TcDyController extends BaseController { tcDyService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcDy.class); + util.importTemplateExcel(response, " 抖音"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbController.java index 4be6dbd3..a3451893 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbController.java @@ -6,6 +6,7 @@ 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.tcZz.domain.TcDy; import com.ruoyi.tcZz.domain.TcFb; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcFbService; @@ -116,4 +117,12 @@ public class TcFbController extends BaseController { tcFbService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcFb.class); + util.importTemplateExcel(response, " 上级媒体、本地发布"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbqkController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbqkController.java index 63f171ae..cd9f410b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbqkController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcFbqkController.java @@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ruoyi.tcZz.domain.TcFb; import com.ruoyi.tcZz.domain.TcWljg; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -123,4 +124,12 @@ public class TcFbqkController extends BaseController tcFbqkService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcFbqk.class); + util.importTemplateExcel(response, " 分布情况"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcGzdtController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcGzdtController.java index 69b3cccd..37dc752e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcGzdtController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcGzdtController.java @@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ruoyi.tcZz.domain.TcFbqk; import com.ruoyi.tcZz.domain.TcWljg; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -121,4 +122,12 @@ public class TcGzdtController extends BaseController tcGzdtService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcGzdt.class); + util.importTemplateExcel(response, " 工作动态"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcIdcdwController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcIdcdwController.java index 1bd4e6c8..7c21c775 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcIdcdwController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcIdcdwController.java @@ -4,6 +4,7 @@ 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.utils.poi.ExcelUtil; +import com.ruoyi.tcZz.domain.TcGzdt; import com.ruoyi.tcZz.domain.TcIdcdw; import com.ruoyi.tcZz.service.ITcIdcdwService; import io.swagger.annotations.Api; @@ -111,4 +112,12 @@ public class TcIdcdwController extends BaseController { tcIdcdwService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcIdcdw.class); + util.importTemplateExcel(response, " IDC单位"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbmapController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbmapController.java index b7d4dd7f..c725f8c9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbmapController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbmapController.java @@ -6,6 +6,7 @@ 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.tcZz.domain.TcIdcdw; import com.ruoyi.tcZz.domain.TcJbmap; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcJbmapService; @@ -115,4 +116,12 @@ public class TcJbmapController extends BaseController { tcJbmapService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcJbmap.class); + util.importTemplateExcel(response, " 举报地图"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbsjndfltjController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbsjndfltjController.java index 6a7af1b4..a19f7a5c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbsjndfltjController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJbsjndfltjController.java @@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ruoyi.tcZz.domain.TcJbmap; import com.ruoyi.tcZz.domain.TcWljg; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -115,4 +116,12 @@ public class TcJbsjndfltjController extends BaseController { tcJbsjndfltjService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcJbsjndfltj.class); + util.importTemplateExcel(response, " 举报事件年度分类统计"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java index 9b97fed6..5adb7ca0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java @@ -6,6 +6,7 @@ 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.tcZz.domain.TcJbsjndfltj; import com.ruoyi.tcZz.domain.TcJgdw; import com.ruoyi.tcZz.service.ITcJgdwService; import io.swagger.annotations.Api; @@ -131,4 +132,12 @@ public class TcJgdwController extends BaseController { tcJgdwService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcJgdw.class); + util.importTemplateExcel(response, " 监管单位列表"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMapController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMapController.java index 065d5ebd..ef9f0d1c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMapController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMapController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcJgdw; import com.ruoyi.tcZz.domain.TcMap; import com.ruoyi.tcZz.service.ITcMapService; import io.swagger.annotations.Api; @@ -116,4 +117,12 @@ public class TcMapController extends BaseController { tcMapService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcMap.class); + util.importTemplateExcel(response, " 地图统计"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMtlxController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMtlxController.java index 570aec18..430658aa 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMtlxController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcMtlxController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcMap; import com.ruoyi.tcZz.domain.TcMtlx; import com.ruoyi.tcZz.service.ITcMtlxService; import io.swagger.annotations.Api; @@ -116,4 +117,12 @@ public class TcMtlxController extends BaseController { tcMtlxService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcMtlx.class); + util.importTemplateExcel(response, " 媒体类型"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxddtController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxddtController.java index 5ec1f9c1..3b650d6c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxddtController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxddtController.java @@ -5,6 +5,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcMtlx; import com.ruoyi.tcZz.domain.TcQlzxxddt; import com.ruoyi.tcZz.service.ITcQlzxxddtService; import io.swagger.annotations.Api; @@ -113,4 +114,12 @@ public class TcQlzxxddtController extends BaseController { tcQlzxxddtService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcQlzxxddt.class); + util.importTemplateExcel(response, " 清朗专项行动动态"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxdsjtjController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxdsjtjController.java index 50727656..9c602c49 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxdsjtjController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcQlzxxdsjtjController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcQlzxxddt; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -115,4 +116,12 @@ public class TcQlzxxdsjtjController extends BaseController { tcQlzxxdsjtjService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcQlzxxdsjtj.class); + util.importTemplateExcel(response, " 清郎专项行动数据统计"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSdtbController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSdtbController.java index 35a81577..59563e98 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSdtbController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSdtbController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcQlzxxdsjtj; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -115,4 +116,12 @@ public class TcSdtbController extends BaseController { tcSdtbService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcSdtb.class); + util.importTemplateExcel(response, " 属地通报"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSgjipTop5Controller.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSgjipTop5Controller.java index b587ef72..6df8fbdc 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSgjipTop5Controller.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSgjipTop5Controller.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcSdtb; import com.ruoyi.tcZz.domain.TcSgjipTop5; import com.ruoyi.tcZz.service.ITcSgjipTop5Service; import io.swagger.annotations.Api; @@ -114,4 +115,12 @@ public class TcSgjipTop5Controller extends BaseController { tcSgjipTop5Service.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcSgjipTop5.class); + util.importTemplateExcel(response, " 受攻击IPTOP5"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java index ba153ff5..d27cbac3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlyController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcSgjipTop5; import com.ruoyi.tcZz.domain.TcSjly; import com.ruoyi.tcZz.service.ITcSjlyService; import io.swagger.annotations.Api; @@ -116,4 +117,12 @@ public class TcSjlyController extends BaseController { tcSjlyService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcSjly.class); + util.importTemplateExcel(response, " 硬探针、软探针"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlytjController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlytjController.java index 389d12ba..f0af0770 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlytjController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSjlytjController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcSjly; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -116,4 +117,12 @@ public class TcSjlytjController extends BaseController { tcSjlytjService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcSjlytj.class); + util.importTemplateExcel(response, " 数据来源统计"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSslxController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSslxController.java index 5cce9bcd..e44fff09 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSslxController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcSslxController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcSjlytj; import com.ruoyi.tcZz.domain.TcSslx; import com.ruoyi.tcZz.service.ITcSslxService; import io.swagger.annotations.Api; @@ -117,4 +118,12 @@ public class TcSslxController extends BaseController { tcSslxService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcSslx.class); + util.importTemplateExcel(response, " 涉事类型"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbczController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbczController.java index f790f956..b350eea7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbczController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbczController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcSslx; import com.ruoyi.tcZz.domain.TcTbcz; import com.ruoyi.tcZz.service.ITcTbczService; import io.swagger.annotations.Api; @@ -117,4 +118,12 @@ public class TcTbczController extends BaseController { tcTbczService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcTbcz.class); + util.importTemplateExcel(response, " 通报处置"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbwcController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbwcController.java index 322fae64..aa03c0ca 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbwcController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTbwcController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcTbcz; import com.ruoyi.tcZz.domain.TcTbwc; import com.ruoyi.tcZz.service.ITcTbwcService; import io.swagger.annotations.Api; @@ -118,4 +119,12 @@ public class TcTbwcController extends BaseController { tcTbwcService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcTbwc.class); + util.importTemplateExcel(response, " 通报完成情况"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTtsumController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTtsumController.java index 8fce94f2..fa6037b2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTtsumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcTtsumController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcTbwc; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; @@ -115,4 +116,12 @@ public class TcTtsumController extends BaseController { tcTtsumService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcTtsum.class); + util.importTemplateExcel(response, " 今日头条、快手"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcVxController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcVxController.java index 8c2cec65..feda1f23 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcVxController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcVxController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcTtsum; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -123,4 +124,12 @@ public class TcVxController extends BaseController tcVxService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcVx.class); + util.importTemplateExcel(response, " 微信"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWbController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWbController.java index b5f59c96..e25b04ec 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWbController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWbController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcVx; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -123,4 +124,12 @@ public class TcWbController extends BaseController tcWbService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWb.class); + util.importTemplateExcel(response, " 微博"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlaqzcqyController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlaqzcqyController.java index b0a2cf2f..0fd4ed76 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlaqzcqyController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlaqzcqyController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcWb; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -124,4 +125,12 @@ public class TcWlaqzcqyController extends BaseController tcWlaqzcqyService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWlaqzcqy.class); + util.importTemplateExcel(response, " 网络安全支持单位"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWldvController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWldvController.java index 1af2c5a0..7fadab33 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWldvController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWldvController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcWlaqzcqy; import com.ruoyi.tcZz.domain.TcWldv; import com.ruoyi.tcZz.service.ITcWldvService; import io.swagger.annotations.Api; @@ -116,4 +117,12 @@ public class TcWldvController extends BaseController { tcWldvService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWldv.class); + util.importTemplateExcel(response, " 网络大V"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java index 94ea8058..d8bf2aa8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgController.java @@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.ruoyi.tcZz.domain.TcWldv; import com.ruoyi.tcZz.domain.TcYqzs; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -124,4 +125,12 @@ public class TcWljgController extends BaseController tcWljgService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWljg.class); + util.importTemplateExcel(response, " 网络监测列表"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgtjController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgtjController.java index 8e0330c2..a9d38a27 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgtjController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWljgtjController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcAqg; +import com.ruoyi.tcZz.domain.TcWljg; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -116,4 +117,12 @@ public class TcWljgtjController extends BaseController { tcWljgtjService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWljgtj.class); + util.importTemplateExcel(response, " 网络监测统计"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlmqfzrController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlmqfzrController.java index dadf941c..ca213c48 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlmqfzrController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlmqfzrController.java @@ -116,4 +116,12 @@ public class TcWlmqfzrController extends BaseController { tcWlmqfzrService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWlmqfzr.class); + util.importTemplateExcel(response, " 网络民情负责人"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlwmzyzController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlwmzyzController.java index bf2a7618..0d0f756b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlwmzyzController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWlwmzyzController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcWlmqfzr; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -115,4 +116,12 @@ public class TcWlwmzyzController extends BaseController { tcWlwmzyzService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWlwmzyz.class); + util.importTemplateExcel(response, " 网络文明志愿者"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpwzlyqkController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpwzlyqkController.java index 8dd07981..4e1c32e8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpwzlyqkController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpwzlyqkController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcWlwmzyz; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -115,4 +116,12 @@ public class TcWpwzlyqkController extends BaseController { tcWpwzlyqkService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWpwzlyqk.class); + util.importTemplateExcel(response, " 网评文章录用情况"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyController.java index 7778d2b9..ed4647e6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcWpwzlyqk; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -116,4 +117,12 @@ public class TcWpyController extends BaseController { tcWpyService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWpy.class); + util.importTemplateExcel(response, " 网评员"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyrwwclController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyrwwclController.java index 750737a5..85f1b85a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyrwwclController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWpyrwwclController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcWpy; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -115,4 +116,12 @@ public class TcWpyrwwclController extends BaseController { tcWpyrwwclService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWpyrwwcl.class); + util.importTemplateExcel(response, " 网评员任务完成率(网评系统)"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWzController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWzController.java index 89d7854b..a854e3e9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWzController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcWzController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcWpyrwwcl; import com.ruoyi.tcZz.domain.TcWz; import com.ruoyi.tcZz.service.ITcWzService; import io.swagger.annotations.Api; @@ -115,4 +116,12 @@ public class TcWzController extends BaseController { tcWzService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcWz.class); + util.importTemplateExcel(response, " 网站"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java index e6c04938..dfc01cf9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcCy; +import com.ruoyi.tcZz.domain.TcWz; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -116,4 +117,12 @@ public class TcXtjcController extends BaseController { tcXtjcService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcXtjc.class); + util.importTemplateExcel(response, " 系统监测列表"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqbgController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqbgController.java index 24f71669..f998b883 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqbgController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqbgController.java @@ -5,6 +5,7 @@ import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcWljgtj; import com.ruoyi.tcZz.domain.TcWz; +import com.ruoyi.tcZz.domain.TcXtjc; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -123,4 +124,12 @@ public class TcYqbgController extends BaseController tcYqbgService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcYqbg.class); + util.importTemplateExcel(response, " 舆情报告"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxlnumController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxlnumController.java index c247ae21..04d4ef43 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxlnumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxlnumController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcYqbg; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -122,4 +123,12 @@ public class TcYqxxlnumController extends BaseController tcYqxxlnumService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcYqxxlnum.class); + util.importTemplateExcel(response, " 舆情信息量统计"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java index 5b36d1bc..3feb0b04 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcYqxxlnum; import com.ruoyi.tcZz.domain.TcYqxxltj; import com.ruoyi.tcZz.service.ITcYqxxltjService; import io.swagger.annotations.Api; @@ -125,4 +126,12 @@ public class TcYqxxltjController extends BaseController { tcYqxxltjService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcYqxxltj.class); + util.importTemplateExcel(response, " 舆情信息量统计明細列表"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqyjController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqyjController.java index ebbcb1c4..c80bd975 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqyjController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqyjController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcYqxxltj; import com.ruoyi.tcZz.domain.TcYqyj; import com.ruoyi.tcZz.service.ITcYqyjService; import io.swagger.annotations.Api; @@ -114,4 +115,12 @@ public class TcYqyjController extends BaseController { tcYqyjService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcYqyj.class); + util.importTemplateExcel(response, " 舆情预警"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqzsController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqzsController.java index d1ed307d..118e1417 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqzsController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqzsController.java @@ -4,6 +4,7 @@ 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.utils.poi.ExcelUtil; +import com.ruoyi.tcZz.domain.TcYqyj; import com.ruoyi.tcZz.domain.TcYqzs; import com.ruoyi.tcZz.service.ITcYqzsService; import io.swagger.annotations.Api; @@ -112,4 +113,12 @@ public class TcYqzsController extends BaseController { tcYqzsService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcYqzs.class); + util.importTemplateExcel(response, " 舆情走势图列表"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYtlcController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYtlcController.java index c56985b5..76ddb6de 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYtlcController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYtlcController.java @@ -5,6 +5,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcYqzs; import com.ruoyi.tcZz.domain.TcYtlc; import com.ruoyi.tcZz.service.ITcYtlcService; import io.swagger.annotations.Api; @@ -112,4 +113,12 @@ public class TcYtlcController extends BaseController { tcYtlcService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcYtlc.class); + util.importTemplateExcel(response, " 约谈流程"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZbxqController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZbxqController.java index 2593f24b..39b675a8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZbxqController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZbxqController.java @@ -115,4 +115,12 @@ public class TcZbxqController extends BaseController { tcZbxqService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcZbxq.class); + util.importTemplateExcel(response, " 转办量、转办详情"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdgzxmController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdgzxmController.java index b68c497a..04a65189 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdgzxmController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdgzxmController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcZbxq; import com.ruoyi.tcZz.domain.TcZdgzxm; import com.ruoyi.tcZz.service.ITcZdgzxmService; import io.swagger.annotations.Api; @@ -116,4 +117,12 @@ public class TcZdgzxmController extends BaseController { tcZdgzxmService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcZdgzxm.class); + util.importTemplateExcel(response, " 重点工作项目"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdlyjgController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdlyjgController.java index 2e50d843..41847425 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdlyjgController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdlyjgController.java @@ -5,6 +5,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcZdgzxm; import com.ruoyi.tcZz.domain.TcZdlyjg; import com.ruoyi.tcZz.service.ITcZdlyjgService; import io.swagger.annotations.Api; @@ -111,4 +112,12 @@ public class TcZdlyjgController extends BaseController { tcZdlyjgService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcZdlyjg.class); + util.importTemplateExcel(response, " 重点领域监管"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdqymlController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdqymlController.java index cac04a58..ef2c100b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdqymlController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZdqymlController.java @@ -5,6 +5,7 @@ import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcZdlyjg; import com.ruoyi.tcZz.domain.TcZdqyml; import com.ruoyi.tcZz.service.ITcZdqymlService; import io.swagger.annotations.Api; @@ -113,4 +114,12 @@ public class TcZdqymlController extends BaseController { tcZdqymlService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcZdqyml.class); + util.importTemplateExcel(response, " 重点企业名录"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZfwzController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZfwzController.java index 3474f81f..444a2318 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZfwzController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZfwzController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcZdqyml; import com.ruoyi.tcZz.domain.TcZfwz; import com.ruoyi.tcZz.service.ITcZfwzService; import io.swagger.annotations.Api; @@ -117,4 +118,12 @@ public class TcZfwzController extends BaseController { tcZfwzService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcZfwz.class); + util.importTemplateExcel(response, " 政府网站"); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZxyhController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZxyhController.java index 0c2d1b6d..8976dac5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZxyhController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcZxyhController.java @@ -4,6 +4,7 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; import com.ruoyi.tcZz.domain.TcWljgtj; +import com.ruoyi.tcZz.domain.TcZfwz; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.security.access.prepost.PreAuthorize; @@ -116,4 +117,12 @@ public class TcZxyhController extends BaseController { tcZxyhService.updateByisStatus(isStatus,ids); return AjaxResult.success(); } + + @ApiOperation("通用下载excel模板") + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) + { + ExcelUtil util = new ExcelUtil(TcZxyh.class); + util.importTemplateExcel(response, " 最新隐患"); + } }