diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java index 9bb6dbe5..fbfb5de1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/ScreenController.java @@ -11,7 +11,6 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import java.util.ArrayList; import java.util.List; /** @@ -60,8 +59,6 @@ public class ScreenController extends BaseController { } - - /** * 网评文章 */ @@ -79,16 +76,15 @@ public class ScreenController extends BaseController { @ApiOperation(value = "清郎专项行动数据统计", response = ScreenQinglangResponse.class) @GetMapping("/screenqinglang") public AjaxResult screenQinglang() { - ScreenQinglangResponse screenQinglangResponse=new ScreenQinglangResponse(); - List list= screenService.getScreenQinglang(); - List list1= screenService.getScreenQinglangWeigui(); + ScreenQinglangResponse screenQinglangResponse = new ScreenQinglangResponse(); + List list = screenService.getScreenQinglang(); + List list1 = screenService.getScreenQinglangWeigui(); screenQinglangResponse.setScreenQinglangWeifanResponse(list); screenQinglangResponse.setScreenQinglangWeiguiResponse(list1); return AjaxResult.success(screenQinglangResponse); } - /** * 属地通报 */ @@ -100,8 +96,6 @@ public class ScreenController extends BaseController { } - - /** * 部门通报 */ @@ -124,8 +118,6 @@ public class ScreenController extends BaseController { } - - /** * 部门转办 */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqgController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqgController.java index 81a3ae8c..9ecbf7c8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqgController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcAqgController.java @@ -2,7 +2,6 @@ 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; @@ -14,8 +13,6 @@ 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; /** @@ -115,10 +112,10 @@ public class TcAqgController extends BaseController { tcAqgService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } + @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + public void importTemplate(HttpServletResponse response) { ExcelUtil util = new ExcelUtil(TcAqg.class); util.importTemplateExcel(response, " 网络安全官"); } 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 19fd891b..0c6da524 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 @@ -1,47 +1,39 @@ 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.TcFbqk; -import com.ruoyi.tcZz.domain.TcXtjc; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcAqyh; import com.ruoyi.tcZz.service.ITcAqyhService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 安全隐患 tc_aqyhController - * + * * @author ruoyi * @date 2023-10-12 */ @RestController @Api(tags = "安全隐患") @RequestMapping("/tcZz/networkSecurity/aqyh") -public class TcAqyhController extends BaseController -{ +public class TcAqyhController extends BaseController { @Autowired private ITcAqyhService tcAqyhService; /** * 查询安全隐患 tc_aqyh列表 */ - @ApiOperation(value = "查询安全隐患列表",response =TcAqyh.class ) + @ApiOperation(value = "查询安全隐患列表", response = TcAqyh.class) @GetMapping("/list") - public TableDataInfo list(TcAqyh tcAqyh) - { + public TableDataInfo list(TcAqyh tcAqyh) { startPage(); List list = tcAqyhService.selectTcAqyhList(tcAqyh); return getDataTable(list); @@ -52,8 +44,7 @@ public class TcAqyhController extends BaseController */ @ApiOperation(value = "导出安全隐患列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcAqyh tcAqyh) - { + public void export(HttpServletResponse response, TcAqyh tcAqyh) { List list = tcAqyhService.selectTcAqyhList(tcAqyh); ExcelUtil util = new ExcelUtil(TcAqyh.class); util.exportExcel(response, list, "安全隐患 tc_aqyh数据"); @@ -64,8 +55,7 @@ public class TcAqyhController extends BaseController */ @ApiOperation(value = "获取安全隐患详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcAqyhService.selectTcAqyhById(id)); } @@ -74,18 +64,17 @@ public class TcAqyhController extends BaseController */ @ApiOperation(value = "新增安全隐患") @PostMapping - public AjaxResult add(@RequestBody TcAqyh tcAqyh) - { + public AjaxResult add(@RequestBody TcAqyh tcAqyh) { //根据Yh_name判断如果已存在,则调修改 - TcAqyh newtcAqyh=new TcAqyh(); + TcAqyh newtcAqyh = new TcAqyh(); newtcAqyh.setYhName(tcAqyh.getYhName()); List list = tcAqyhService.selectTcAqyhList(newtcAqyh); - if (!list.isEmpty()){ - for (TcAqyh a :list) { + if (!list.isEmpty()) { + for (TcAqyh a : list) { tcAqyh.setId(a.getId()); tcAqyhService.updateTcAqyh(tcAqyh); } - }else { + } else { tcAqyhService.insertTcAqyh(tcAqyh); } return AjaxResult.success(); @@ -96,8 +85,7 @@ public class TcAqyhController extends BaseController */ @ApiOperation(value = "修改安全隐患") @PutMapping - public AjaxResult edit(@RequestBody TcAqyh tcAqyh) - { + public AjaxResult edit(@RequestBody TcAqyh tcAqyh) { return toAjax(tcAqyhService.updateTcAqyh(tcAqyh)); } @@ -105,9 +93,8 @@ public class TcAqyhController extends BaseController * 删除安全隐患 tc_aqyh */ @ApiOperation(value = "删除安全隐患") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcAqyhService.deleteTcAqyhByIds(ids)); } @@ -133,13 +120,13 @@ public class TcAqyhController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcAqyhService.updateByisStatus(isStatus,ids); + tcAqyhService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } + @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 51fd3215..dc34c24e 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 @@ -1,46 +1,39 @@ package com.ruoyi.tcZz.controller; -import java.util.List; -import javax.servlet.http.HttpServletResponse; - -import com.ruoyi.tcZz.domain.TcAqyh; -import com.ruoyi.tcZz.domain.TcWljg; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcBjsjwp; import com.ruoyi.tcZz.service.ITcBjsjwpService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 本级上级网评指令比例(月)Controller - * + * * @author ruoyi * @date 2023-10-13 */ @Api(tags = "本级上级网评指令比例(月)") @RestController @RequestMapping("/tcZz/networkEcology/bjsjwp") -public class TcBjsjwpController extends BaseController -{ +public class TcBjsjwpController extends BaseController { @Autowired private ITcBjsjwpService tcBjsjwpService; /** * 查询本级上级网评指令比例(月)列表 */ - @ApiOperation(value = "查询本级上级网评指令比例(月)列表",response = TcBjsjwp.class ) + @ApiOperation(value = "查询本级上级网评指令比例(月)列表", response = TcBjsjwp.class) @GetMapping("/list") - public TableDataInfo list(TcBjsjwp tcBjsjwp) - { + public TableDataInfo list(TcBjsjwp tcBjsjwp) { startPage(); List list = tcBjsjwpService.selectTcBjsjwpList(tcBjsjwp); return getDataTable(list); @@ -51,8 +44,7 @@ public class TcBjsjwpController extends BaseController */ @ApiOperation(value = "导出本级上级网评指令比例(月)列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcBjsjwp tcBjsjwp) - { + public void export(HttpServletResponse response, TcBjsjwp tcBjsjwp) { List list = tcBjsjwpService.selectTcBjsjwpList(tcBjsjwp); ExcelUtil util = new ExcelUtil(TcBjsjwp.class); util.exportExcel(response, list, "本级上级网评指令比例(月)数据"); @@ -63,8 +55,7 @@ public class TcBjsjwpController extends BaseController */ @ApiOperation(value = "获取本级上级网评指令比例(月)详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcBjsjwpService.selectTcBjsjwpById(id)); } @@ -73,8 +64,7 @@ public class TcBjsjwpController extends BaseController */ @ApiOperation(value = "新增本级上级网评指令比例(月)") @PostMapping - public AjaxResult add(@RequestBody TcBjsjwp tcBjsjwp) - { + public AjaxResult add(@RequestBody TcBjsjwp tcBjsjwp) { return toAjax(tcBjsjwpService.insertTcBjsjwp(tcBjsjwp)); } @@ -83,8 +73,7 @@ public class TcBjsjwpController extends BaseController */ @ApiOperation(value = "修改本级上级网评指令比例(月)") @PutMapping - public AjaxResult edit(@RequestBody TcBjsjwp tcBjsjwp) - { + public AjaxResult edit(@RequestBody TcBjsjwp tcBjsjwp) { return toAjax(tcBjsjwpService.updateTcBjsjwp(tcBjsjwp)); } @@ -92,9 +81,8 @@ public class TcBjsjwpController extends BaseController * 删除本级上级网评指令比例(月) */ @ApiOperation(value = "删除本级上级网评指令比例(月)") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcBjsjwpService.deleteTcBjsjwpByIds(ids)); } @@ -110,6 +98,7 @@ public class TcBjsjwpController extends BaseController tcBjsjwpService.importUser(tcBjsjwpList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -120,13 +109,13 @@ public class TcBjsjwpController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcBjsjwpService.updateByisStatus(isStatus,ids); + tcBjsjwpService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } + @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 f9535bb7..14ce8690 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 @@ -1,46 +1,39 @@ 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; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcBmtb; import com.ruoyi.tcZz.service.ITcBmtbService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 部门通报Controller - * + * * @author ruoyi * @date 2023-10-12 */ @RestController @Api(tags = "部门通报") @RequestMapping("/tcZz/networkSecurity/bmtb") -public class TcBmtbController extends BaseController -{ +public class TcBmtbController extends BaseController { @Autowired private ITcBmtbService tcBmtbService; /** * 查询部门通报列表 */ - @ApiOperation(value = "查询部门通报列表",response = TcBmtb.class) + @ApiOperation(value = "查询部门通报列表", response = TcBmtb.class) @GetMapping("/list") - public TableDataInfo list(TcBmtb tcBmtb) - { + public TableDataInfo list(TcBmtb tcBmtb) { startPage(); List list = tcBmtbService.selectTcBmtbList(tcBmtb); return getDataTable(list); @@ -51,8 +44,7 @@ public class TcBmtbController extends BaseController */ @ApiOperation(value = "导出部门通报列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcBmtb tcBmtb) - { + public void export(HttpServletResponse response, TcBmtb tcBmtb) { List list = tcBmtbService.selectTcBmtbList(tcBmtb); ExcelUtil util = new ExcelUtil(TcBmtb.class); util.exportExcel(response, list, "部门通报数据"); @@ -63,8 +55,7 @@ public class TcBmtbController extends BaseController */ @ApiOperation(value = "获取部门通报详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcBmtbService.selectTcBmtbById(id)); } @@ -73,8 +64,7 @@ public class TcBmtbController extends BaseController */ @ApiOperation(value = "新增部门通报") @PostMapping - public AjaxResult add(@RequestBody TcBmtb tcBmtb) - { + public AjaxResult add(@RequestBody TcBmtb tcBmtb) { return toAjax(tcBmtbService.insertTcBmtb(tcBmtb)); } @@ -83,8 +73,7 @@ public class TcBmtbController extends BaseController */ @ApiOperation(value = "修改部门通报") @PutMapping - public AjaxResult edit(@RequestBody TcBmtb tcBmtb) - { + public AjaxResult edit(@RequestBody TcBmtb tcBmtb) { return toAjax(tcBmtbService.updateTcBmtb(tcBmtb)); } @@ -92,9 +81,8 @@ public class TcBmtbController extends BaseController * 删除部门通报 */ @ApiOperation(value = "删除部门通报") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcBmtbService.deleteTcBmtbByIds(ids)); } @@ -109,6 +97,7 @@ public class TcBmtbController extends BaseController tcBmtbService.importUser(tcWljgList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -119,14 +108,13 @@ public class TcBmtbController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcBmtbService.updateByisStatus(isStatus,ids); + tcBmtbService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 522c93a0..6952b96b 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,9 +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; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -99,6 +97,7 @@ public class TcBzhanController extends BaseController { tcBzhanService.importUser(tcBzhanList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -109,14 +108,13 @@ public class TcBzhanController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcBzhanService.updateByisStatus(isStatus,ids); + tcBzhanService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 3a8917b7..1abb99eb 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcBzhan; import com.ruoyi.tcZz.domain.TcCy; -import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcCyService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -104,6 +99,7 @@ public class TcCyController extends BaseController { tcCyService.importUser(tcCyList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -114,14 +110,13 @@ public class TcCyController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcCyService.updateByisStatus(isStatus,ids); + tcCyService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 a363057d..79477b39 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcCy; import com.ruoyi.tcZz.domain.TcDbdw; -import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcDbdwService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -103,6 +98,7 @@ public class TcDbdwController extends BaseController { tcDbdwService.importUser(tcDbdwList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -113,14 +109,13 @@ public class TcDbdwController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcDbdwService.updateByisStatus(isStatus,ids); + tcDbdwService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 3ff02a66..b2cf1f4d 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 @@ -1,25 +1,20 @@ 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; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcDbxt; import com.ruoyi.tcZz.service.ITcDbxtService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 等保系统Controller * @@ -114,14 +109,13 @@ public class TcDbxtController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcDbxtService.updateByisStatus(isStatus,ids); + tcDbxtService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 9c284a30..b215603b 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcDbxt; import com.ruoyi.tcZz.domain.TcDtsx; -import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcDtsxService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -36,7 +31,7 @@ public class TcDtsxController extends BaseController { /** * 查询动态筛选列表 */ - @ApiOperation(value = "查询动态筛选列表",response = TcDtsx.class) + @ApiOperation(value = "查询动态筛选列表", response = TcDtsx.class) @GetMapping("/list") public TableDataInfo list(TcDtsx tcDtsx) { startPage(); @@ -90,6 +85,7 @@ public class TcDtsxController extends BaseController { public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcDtsxService.deleteTcDtsxByIds(ids)); } + /** * 导入 */ @@ -112,14 +108,13 @@ public class TcDtsxController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcDtsxService.updateByisStatus(isStatus,ids); + tcDtsxService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 651bc40f..f80b8418 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcDtsx; import com.ruoyi.tcZz.domain.TcDy; -import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcDyService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -114,14 +109,13 @@ public class TcDyController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcDyService.updateByisStatus(isStatus,ids); + tcDyService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 a3451893..514273be 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcDy; import com.ruoyi.tcZz.domain.TcFb; -import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcFbService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -114,14 +109,13 @@ public class TcFbController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcFbService.updateByisStatus(isStatus,ids); + tcFbService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 f05b4685..5838b3d4 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 @@ -1,47 +1,39 @@ 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.TcSgjipTop5; -import com.ruoyi.tcZz.domain.TcWljg; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcFbqk; import com.ruoyi.tcZz.service.ITcFbqkService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 分布情况 tc_fbqkController - * + * * @author ruoyi * @date 2023-10-12 */ @RestController @Api(tags = "分布情况") @RequestMapping("/tcZz/networkSecurity/fbqk") -public class TcFbqkController extends BaseController -{ +public class TcFbqkController extends BaseController { @Autowired private ITcFbqkService tcFbqkService; /** * 查询分布情况 tc_fbqk列表 */ - @ApiOperation(value = "查询分布情况列表",response = TcFbqk.class) + @ApiOperation(value = "查询分布情况列表", response = TcFbqk.class) @GetMapping("/list") - public TableDataInfo list(TcFbqk tcFbqk) - { + public TableDataInfo list(TcFbqk tcFbqk) { startPage(); List list = tcFbqkService.selectTcFbqkList(tcFbqk); return getDataTable(list); @@ -52,8 +44,7 @@ public class TcFbqkController extends BaseController */ @ApiOperation(value = "导出分布情况列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcFbqk tcFbqk) - { + public void export(HttpServletResponse response, TcFbqk tcFbqk) { List list = tcFbqkService.selectTcFbqkList(tcFbqk); ExcelUtil util = new ExcelUtil(TcFbqk.class); util.exportExcel(response, list, "分布情况 tc_fbqk数据"); @@ -64,8 +55,7 @@ public class TcFbqkController extends BaseController */ @ApiOperation(value = "获取分布情况详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcFbqkService.selectTcFbqkById(id)); } @@ -74,18 +64,17 @@ public class TcFbqkController extends BaseController */ @ApiOperation(value = "新增分布情况") @PostMapping - public AjaxResult add(@RequestBody TcFbqk tcFbqk) - { + public AjaxResult add(@RequestBody TcFbqk tcFbqk) { //根据City_name判断如果已存在,则调修改 - TcFbqk newtcFbqk=new TcFbqk(); + TcFbqk newtcFbqk = new TcFbqk(); newtcFbqk.setCityName(tcFbqk.getCityName()); List list = tcFbqkService.selectTcFbqkList(newtcFbqk); - if (!list.isEmpty()){ - for (TcFbqk a :list) { + if (!list.isEmpty()) { + for (TcFbqk a : list) { tcFbqk.setId(a.getId()); tcFbqkService.updateTcFbqk(tcFbqk); } - }else { + } else { tcFbqkService.insertTcFbqk(tcFbqk); } return AjaxResult.success(); @@ -96,8 +85,7 @@ public class TcFbqkController extends BaseController */ @ApiOperation(value = "修改分布情况") @PutMapping - public AjaxResult edit(@RequestBody TcFbqk tcFbqk) - { + public AjaxResult edit(@RequestBody TcFbqk tcFbqk) { return toAjax(tcFbqkService.updateTcFbqk(tcFbqk)); } @@ -105,9 +93,8 @@ public class TcFbqkController extends BaseController * 删除分布情况 tc_fbqk */ @ApiOperation(value = "删除分布情况") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcFbqkService.deleteTcFbqkByIds(ids)); } @@ -134,14 +121,13 @@ public class TcFbqkController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcFbqkService.updateByisStatus(isStatus,ids); + tcFbqkService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 37dc752e..9f8fe4fc 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 @@ -1,46 +1,39 @@ 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; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcGzdt; import com.ruoyi.tcZz.service.ITcGzdtService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 工作动态Controller - * + * * @author ruoyi * @date 2023-10-13 */ @RestController @Api(tags = "工作动态") @RequestMapping("/tcZz/netManage/gzdt") -public class TcGzdtController extends BaseController -{ +public class TcGzdtController extends BaseController { @Autowired private ITcGzdtService tcGzdtService; /** * 查询工作动态列表 */ - @ApiOperation(value = "查询工作动态列表",response = TcGzdt.class) + @ApiOperation(value = "查询工作动态列表", response = TcGzdt.class) @GetMapping("/list") - public TableDataInfo list(TcGzdt tcGzdt) - { + public TableDataInfo list(TcGzdt tcGzdt) { startPage(); List list = tcGzdtService.selectTcGzdtList(tcGzdt); return getDataTable(list); @@ -51,8 +44,7 @@ public class TcGzdtController extends BaseController */ @ApiOperation(value = "导出工作动态列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcGzdt tcGzdt) - { + public void export(HttpServletResponse response, TcGzdt tcGzdt) { List list = tcGzdtService.selectTcGzdtList(tcGzdt); ExcelUtil util = new ExcelUtil(TcGzdt.class); util.exportExcel(response, list, "工作动态数据"); @@ -63,8 +55,7 @@ public class TcGzdtController extends BaseController */ @ApiOperation(value = "获取工作动态详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcGzdtService.selectTcGzdtById(id)); } @@ -73,8 +64,7 @@ public class TcGzdtController extends BaseController */ @ApiOperation(value = "新增工作动态") @PostMapping - public AjaxResult add(@RequestBody TcGzdt tcGzdt) - { + public AjaxResult add(@RequestBody TcGzdt tcGzdt) { return toAjax(tcGzdtService.insertTcGzdt(tcGzdt)); } @@ -83,8 +73,7 @@ public class TcGzdtController extends BaseController */ @ApiOperation(value = "修改工作动态") @PutMapping - public AjaxResult edit(@RequestBody TcGzdt tcGzdt) - { + public AjaxResult edit(@RequestBody TcGzdt tcGzdt) { return toAjax(tcGzdtService.updateTcGzdt(tcGzdt)); } @@ -92,11 +81,11 @@ public class TcGzdtController extends BaseController * 删除工作动态 */ @ApiOperation(value = "删除工作动态") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcGzdtService.deleteTcGzdtByIds(ids)); } + /** * 导入 */ @@ -119,14 +108,13 @@ public class TcGzdtController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcGzdtService.updateByisStatus(isStatus,ids); + tcGzdtService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 7c21c775..0c9cc506 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,7 +4,6 @@ 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; @@ -115,8 +114,7 @@ public class TcIdcdwController extends BaseController { @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 c725f8c9..5672f9ee 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcIdcdw; import com.ruoyi.tcZz.domain.TcJbmap; -import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcJbmapService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -113,14 +108,13 @@ public class TcJbmapController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcJbmapService.updateByisStatus(isStatus,ids); + tcJbmapService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 a19f7a5c..8362519c 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 @@ -1,25 +1,20 @@ 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; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcJbsjndfltj; import com.ruoyi.tcZz.service.ITcJbsjndfltjService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 举报事件年度分类统计Controller * @@ -113,14 +108,13 @@ public class TcJbsjndfltjController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcJbsjndfltjService.updateByisStatus(isStatus,ids); + tcJbsjndfltjService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 84c67d9f..d470d4b1 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 @@ -1,18 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcJbsjndfltj; import com.ruoyi.tcZz.domain.TcJgdw; import com.ruoyi.tcZz.service.ITcJgdwService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -33,7 +29,6 @@ public class TcJgdwController extends BaseController { private ITcJgdwService tcJgdwService; - /** * 导出监管单位列表 */ @@ -117,14 +112,13 @@ public class TcJgdwController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcJgdwService.updateByisStatus(isStatus,ids); + tcJgdwService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 2f5345fa..0a7b09bb 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 @@ -1,20 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcAqg; -import com.ruoyi.tcZz.domain.TcJgdw; import com.ruoyi.tcZz.domain.TcMap; -import com.ruoyi.tcZz.domain.TcTbwc; import com.ruoyi.tcZz.service.ITcMapService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -72,15 +66,15 @@ public class TcMapController extends BaseController { @PostMapping public AjaxResult add(@RequestBody TcMap tcMap) { //根据Name判断如果已存在,则调修改 - TcMap newtcMap=new TcMap(); + TcMap newtcMap = new TcMap(); newtcMap.setName(tcMap.getName()); List list = tcMapService.selectTcMapList(newtcMap); - if (!list.isEmpty()){ - for (TcMap a :list) { + if (!list.isEmpty()) { + for (TcMap a : list) { tcMap.setId(a.getId()); tcMapService.updateTcMap(tcMap); } - }else { + } else { tcMapService.insertTcMap(tcMap); } return AjaxResult.success(); @@ -98,13 +92,20 @@ public class TcMapController extends BaseController { /** * 删除地图统计 */ - @ApiOperation(value = "删除地图统计") + @ApiOperation(value = "根据id删除地图统计") @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcMapService.deleteTcMapByIds(ids)); } - + /** + * 删除地图统计 + */ + @ApiOperation(value = "删除地图统计") + @PostMapping("/deleteAll") + public AjaxResult deleteAll() { + return AjaxResult.success(tcMapService.deleteTcMap()); + } /** * 导入 */ @@ -127,14 +128,13 @@ public class TcMapController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcMapService.updateByisStatus(isStatus,ids); + tcMapService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 4cf1bea0..945eb0c1 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 @@ -4,7 +4,6 @@ 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.TcMap; import com.ruoyi.tcZz.domain.TcMtlx; import com.ruoyi.tcZz.service.ITcMtlxService; import io.swagger.annotations.Api; @@ -68,15 +67,15 @@ public class TcMtlxController extends BaseController { public AjaxResult add(@RequestBody TcMtlx tcMtlx) { //根据Name判断如果已存在,则调修改 - TcMtlx newtcMtlx=new TcMtlx(); + TcMtlx newtcMtlx = new TcMtlx(); newtcMtlx.setName(tcMtlx.getName()); List list = tcMtlxService.selectTcMtlxList(newtcMtlx); - if (!list.isEmpty()){ - for (TcMtlx a :list) { + if (!list.isEmpty()) { + for (TcMtlx a : list) { tcMtlx.setId(a.getId()); tcMtlxService.updateTcMtlx(tcMtlx); } - }else { + } else { tcMtlxService.insertTcMtlx(tcMtlx); } return AjaxResult.success(); 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 3b650d6c..ede9a465 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 @@ -4,8 +4,6 @@ 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.TcAqg; -import com.ruoyi.tcZz.domain.TcMtlx; import com.ruoyi.tcZz.domain.TcQlzxxddt; import com.ruoyi.tcZz.service.ITcQlzxxddtService; import io.swagger.annotations.Api; @@ -111,14 +109,13 @@ public class TcQlzxxddtController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcQlzxxddtService.updateByisStatus(isStatus,ids); + tcQlzxxddtService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 9c602c49..6310df78 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 @@ -1,25 +1,20 @@ 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.TcQlzxxddt; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcQlzxxdsjtj; import com.ruoyi.tcZz.service.ITcQlzxxdsjtjService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 清郎专项行动数据统计Controller * @@ -113,14 +108,13 @@ public class TcQlzxxdsjtjController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcQlzxxdsjtjService.updateByisStatus(isStatus,ids); + tcQlzxxdsjtjService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 59563e98..2656d03e 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 @@ -1,25 +1,20 @@ 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.TcQlzxxdsjtj; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcSdtb; import com.ruoyi.tcZz.service.ITcSdtbService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 属地通报Controller * @@ -113,14 +108,13 @@ public class TcSdtbController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcSdtbService.updateByisStatus(isStatus,ids); + tcSdtbService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 4ee72648..ac6fcfdf 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -70,16 +65,16 @@ public class TcSgjipTop5Controller extends BaseController { @ApiOperation(value = "新增受攻击IPTOP5") @PostMapping public AjaxResult add(@RequestBody TcSgjipTop5 tcSgjipTop5) { - //根据S_attack_ip判断如果已存在,则调修改 - TcSgjipTop5 newtcSgjipTop5=new TcSgjipTop5(); + //根据S_attack_ip判断如果已存在,则调修改 + TcSgjipTop5 newtcSgjipTop5 = new TcSgjipTop5(); newtcSgjipTop5.setSAttackIp(tcSgjipTop5.getSAttackIp()); List list = tcSgjipTop5Service.selectTcSgjipTop5List(newtcSgjipTop5); - if (!list.isEmpty()){ - for (TcSgjipTop5 a :list) { - tcSgjipTop5.setId(a.getId()); + if (!list.isEmpty()) { + for (TcSgjipTop5 a : list) { + tcSgjipTop5.setId(a.getId()); tcSgjipTop5Service.updateTcSgjipTop5(tcSgjipTop5); } - }else { + } else { tcSgjipTop5Service.insertTcSgjipTop5(tcSgjipTop5); } return AjaxResult.success(); @@ -102,6 +97,7 @@ public class TcSgjipTop5Controller extends BaseController { public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcSgjipTop5Service.deleteTcSgjipTop5ByIds(ids)); } + /** * 导入 */ @@ -124,14 +120,13 @@ public class TcSgjipTop5Controller extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcSgjipTop5Service.updateByisStatus(isStatus,ids); + tcSgjipTop5Service.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 d27cbac3..f2a4cad9 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -114,14 +109,13 @@ public class TcSjlyController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcSjlyService.updateByisStatus(isStatus,ids); + tcSjlyService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 f0af0770..c976cb1f 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 @@ -1,25 +1,20 @@ 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.TcSjly; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcSjlytj; import com.ruoyi.tcZz.service.ITcSjlytjService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 数据来源统计Controller * @@ -114,14 +109,13 @@ public class TcSjlytjController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcSjlytjService.updateByisStatus(isStatus,ids); + tcSjlytjService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 e44fff09..9e219187 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -92,7 +87,6 @@ public class TcSslxController extends BaseController { } - /** * 导入 */ @@ -115,14 +109,13 @@ public class TcSslxController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcSslxService.updateByisStatus(isStatus,ids); + tcSslxService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 b350eea7..4bde54ec 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -92,7 +87,6 @@ public class TcTbczController extends BaseController { } - /** * 导入 */ @@ -115,14 +109,13 @@ public class TcTbczController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcTbczService.updateByisStatus(isStatus,ids); + tcTbczService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 109390df..8dd446c4 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 @@ -1,20 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcAqg; -import com.ruoyi.tcZz.domain.TcAqyh; -import com.ruoyi.tcZz.domain.TcTbcz; import com.ruoyi.tcZz.domain.TcTbwc; import com.ruoyi.tcZz.service.ITcTbwcService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -72,16 +66,16 @@ public class TcTbwcController extends BaseController { @PostMapping public AjaxResult add(@RequestBody TcTbwc tcTbwc) { //根据year + Time_name判断如果已存在,则调修改 - TcTbwc newtcTbwc=new TcTbwc(); + TcTbwc newtcTbwc = new TcTbwc(); newtcTbwc.setYear(tcTbwc.getYear()); newtcTbwc.setTimeName(tcTbwc.getTimeName()); List list = tcTbwcService.selectTcTbwcList(newtcTbwc); - if (!list.isEmpty()){ - for (TcTbwc a :list) { + if (!list.isEmpty()) { + for (TcTbwc a : list) { tcTbwc.setId(a.getId()); tcTbwcService.updateTcTbwc(tcTbwc); } - }else { + } else { tcTbwcService.insertTcTbwc(tcTbwc); } @@ -107,8 +101,6 @@ public class TcTbwcController extends BaseController { } - - /** * 导入 */ @@ -131,14 +123,13 @@ public class TcTbwcController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcTbwcService.updateByisStatus(isStatus,ids); + tcTbwcService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 fa6037b2..30d448d1 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 @@ -1,24 +1,19 @@ 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.TcTbwc; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcTtsum; import com.ruoyi.tcZz.service.ITcTtsumService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 今日头条、快手Controller * @@ -113,14 +108,13 @@ public class TcTtsumController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcTtsumService.updateByisStatus(isStatus,ids); + tcTtsumService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 feda1f23..a74f9a19 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 @@ -1,46 +1,39 @@ 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.TcTtsum; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcVx; import com.ruoyi.tcZz.service.ITcVxService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 微信Controller - * + * * @author ruoyi * @date 2023-10-13 */ @RestController @Api(tags = "微信") @RequestMapping("/tcZz/netManage/vx") -public class TcVxController extends BaseController -{ +public class TcVxController extends BaseController { @Autowired private ITcVxService tcVxService; /** * 查询微信列表 */ - @ApiOperation(value = "查询微信列表",response = TcVx.class) + @ApiOperation(value = "查询微信列表", response = TcVx.class) @GetMapping("/list") - public TableDataInfo list(TcVx tcVx) - { + public TableDataInfo list(TcVx tcVx) { startPage(); List list = tcVxService.selectTcVxList(tcVx); return getDataTable(list); @@ -51,8 +44,7 @@ public class TcVxController extends BaseController */ @ApiOperation(value = "导出微信列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcVx tcVx) - { + public void export(HttpServletResponse response, TcVx tcVx) { List list = tcVxService.selectTcVxList(tcVx); ExcelUtil util = new ExcelUtil(TcVx.class); util.exportExcel(response, list, "微信数据"); @@ -63,8 +55,7 @@ public class TcVxController extends BaseController */ @ApiOperation(value = "获取微信详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcVxService.selectTcVxById(id)); } @@ -73,8 +64,7 @@ public class TcVxController extends BaseController */ @ApiOperation(value = "新增微信") @PostMapping - public AjaxResult add(@RequestBody TcVx tcVx) - { + public AjaxResult add(@RequestBody TcVx tcVx) { return toAjax(tcVxService.insertTcVx(tcVx)); } @@ -83,8 +73,7 @@ public class TcVxController extends BaseController */ @ApiOperation(value = "修改微信") @PutMapping - public AjaxResult edit(@RequestBody TcVx tcVx) - { + public AjaxResult edit(@RequestBody TcVx tcVx) { return toAjax(tcVxService.updateTcVx(tcVx)); } @@ -92,9 +81,8 @@ public class TcVxController extends BaseController * 删除微信 */ @ApiOperation(value = "删除微信") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcVxService.deleteTcVxByIds(ids)); } @@ -121,14 +109,13 @@ public class TcVxController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcVxService.updateByisStatus(isStatus,ids); + tcVxService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 e25b04ec..73a887e0 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 @@ -1,46 +1,39 @@ 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.TcVx; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWb; import com.ruoyi.tcZz.service.ITcWbService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 微博Controller - * + * * @author ruoyi * @date 2023-10-13 */ @RestController @Api(tags = "微博") @RequestMapping("/tcZz/netManage/wb") -public class TcWbController extends BaseController -{ +public class TcWbController extends BaseController { @Autowired private ITcWbService tcWbService; /** * 查询微博列表 */ - @ApiOperation(value = "查询微博列表",response =TcWb.class ) + @ApiOperation(value = "查询微博列表", response = TcWb.class) @GetMapping("/list") - public TableDataInfo list(TcWb tcWb) - { + public TableDataInfo list(TcWb tcWb) { startPage(); List list = tcWbService.selectTcWbList(tcWb); return getDataTable(list); @@ -51,8 +44,7 @@ public class TcWbController extends BaseController */ @ApiOperation(value = "导出微博列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcWb tcWb) - { + public void export(HttpServletResponse response, TcWb tcWb) { List list = tcWbService.selectTcWbList(tcWb); ExcelUtil util = new ExcelUtil(TcWb.class); util.exportExcel(response, list, "微博数据"); @@ -63,8 +55,7 @@ public class TcWbController extends BaseController */ @ApiOperation(value = "获取微博详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcWbService.selectTcWbById(id)); } @@ -73,8 +64,7 @@ public class TcWbController extends BaseController */ @ApiOperation(value = "新增微博") @PostMapping - public AjaxResult add(@RequestBody TcWb tcWb) - { + public AjaxResult add(@RequestBody TcWb tcWb) { return toAjax(tcWbService.insertTcWb(tcWb)); } @@ -83,8 +73,7 @@ public class TcWbController extends BaseController */ @ApiOperation(value = "修改微博") @PutMapping - public AjaxResult edit(@RequestBody TcWb tcWb) - { + public AjaxResult edit(@RequestBody TcWb tcWb) { return toAjax(tcWbService.updateTcWb(tcWb)); } @@ -92,9 +81,8 @@ public class TcWbController extends BaseController * 删除微博 */ @ApiOperation(value = "删除微博") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcWbService.deleteTcWbByIds(ids)); } @@ -121,14 +109,13 @@ public class TcWbController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWbService.updateByisStatus(isStatus,ids); + tcWbService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 0fd4ed76..432ac08b 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 @@ -1,46 +1,39 @@ 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.TcWb; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWlaqzcqy; import com.ruoyi.tcZz.service.ITcWlaqzcqyService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网络安全支持单位Controller - * + * * @author ruoyi * @date 2023-10-13 */ @RestController @Api(tags = "网络安全支持单位") @RequestMapping("/tcZz/networkEcology/wlaqzcqy") -public class TcWlaqzcqyController extends BaseController -{ +public class TcWlaqzcqyController extends BaseController { @Autowired private ITcWlaqzcqyService tcWlaqzcqyService; /** * 查询网络安全支持单位列表 */ - @ApiOperation(value = "查询网络安全支持单位列表",response = TcWlaqzcqy.class) + @ApiOperation(value = "查询网络安全支持单位列表", response = TcWlaqzcqy.class) @GetMapping("/list") - public TableDataInfo list(TcWlaqzcqy tcWlaqzcqy) - { + public TableDataInfo list(TcWlaqzcqy tcWlaqzcqy) { startPage(); List list = tcWlaqzcqyService.selectTcWlaqzcqyList(tcWlaqzcqy); return getDataTable(list); @@ -51,8 +44,7 @@ public class TcWlaqzcqyController extends BaseController */ @ApiOperation(value = "导出网络安全支持单位列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcWlaqzcqy tcWlaqzcqy) - { + public void export(HttpServletResponse response, TcWlaqzcqy tcWlaqzcqy) { List list = tcWlaqzcqyService.selectTcWlaqzcqyList(tcWlaqzcqy); ExcelUtil util = new ExcelUtil(TcWlaqzcqy.class); util.exportExcel(response, list, "网络安全支持单位数据"); @@ -63,8 +55,7 @@ public class TcWlaqzcqyController extends BaseController */ @ApiOperation(value = "获取网络安全支持单位详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcWlaqzcqyService.selectTcWlaqzcqyById(id)); } @@ -73,8 +64,7 @@ public class TcWlaqzcqyController extends BaseController */ @ApiOperation(value = "新增网络安全支持单位") @PostMapping - public AjaxResult add(@RequestBody TcWlaqzcqy tcWlaqzcqy) - { + public AjaxResult add(@RequestBody TcWlaqzcqy tcWlaqzcqy) { return toAjax(tcWlaqzcqyService.insertTcWlaqzcqy(tcWlaqzcqy)); } @@ -83,8 +73,7 @@ public class TcWlaqzcqyController extends BaseController */ @ApiOperation(value = "修改网络安全支持单位") @PutMapping - public AjaxResult edit(@RequestBody TcWlaqzcqy tcWlaqzcqy) - { + public AjaxResult edit(@RequestBody TcWlaqzcqy tcWlaqzcqy) { return toAjax(tcWlaqzcqyService.updateTcWlaqzcqy(tcWlaqzcqy)); } @@ -92,14 +81,12 @@ public class TcWlaqzcqyController extends BaseController * 删除网络安全支持单位 */ @ApiOperation(value = "删除网络安全支持单位") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcWlaqzcqyService.deleteTcWlaqzcqyByIds(ids)); } - /** * 导入 */ @@ -122,14 +109,13 @@ public class TcWlaqzcqyController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWlaqzcqyService.updateByisStatus(isStatus,ids); + tcWlaqzcqyService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 7fadab33..32ecbda1 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -114,14 +109,13 @@ public class TcWldvController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWldvService.updateByisStatus(isStatus,ids); + tcWldvService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 d8bf2aa8..a5141261 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 @@ -1,36 +1,30 @@ 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; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljg; import com.ruoyi.tcZz.service.ITcWljgService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网络监测Controller - * + * * @author ruoyi * @date 2023-10-12 */ @RestController @Api(tags = "网络监测") @RequestMapping("/tcZz/networkSecurity/cybersecurity") -public class TcWljgController extends BaseController -{ +public class TcWljgController extends BaseController { @Autowired private ITcWljgService tcWljgService; @@ -40,8 +34,7 @@ public class TcWljgController extends BaseController */ @ApiOperation("导出网络监测列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcWljg tcWljg) - { + public void export(HttpServletResponse response, TcWljg tcWljg) { List list = tcWljgService.selectTcWljgList(tcWljg); ExcelUtil util = new ExcelUtil(TcWljg.class); util.exportExcel(response, list, "网络监测数据"); @@ -52,8 +45,7 @@ public class TcWljgController extends BaseController */ @ApiOperation("获取网络监测详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcWljgService.selectTcWljgById(id)); } @@ -62,8 +54,7 @@ public class TcWljgController extends BaseController */ @ApiOperation("新增网络监测") @PostMapping - public AjaxResult add(@RequestBody TcWljg tcWljg) - { + public AjaxResult add(@RequestBody TcWljg tcWljg) { return toAjax(tcWljgService.insertTcWljg(tcWljg)); } @@ -72,8 +63,7 @@ public class TcWljgController extends BaseController */ @ApiOperation("修改网络监测") @PutMapping - public AjaxResult edit(@RequestBody TcWljg tcWljg) - { + public AjaxResult edit(@RequestBody TcWljg tcWljg) { return toAjax(tcWljgService.updateTcWljg(tcWljg)); } @@ -81,9 +71,8 @@ public class TcWljgController extends BaseController * 删除网络监测 */ @ApiOperation("删除网络监测") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcWljgService.deleteTcWljgByIds(ids)); } @@ -91,10 +80,9 @@ public class TcWljgController extends BaseController /** * 查询网络监测列表 */ - @ApiOperation(value = "查询网络监测列表",response = TcWljg.class) + @ApiOperation(value = "查询网络监测列表", response = TcWljg.class) @GetMapping("/ListNoToken") - public TableDataInfo ListNoToken(TcWljg tcWljg) - { + public TableDataInfo ListNoToken(TcWljg tcWljg) { startPage(); List list = tcWljgService.selectTcWljgList(tcWljg); return getDataTable(list); @@ -122,14 +110,13 @@ public class TcWljgController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWljgService.updateByisStatus(isStatus,ids); + tcWljgService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 a9d38a27..0d6a36ed 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 @@ -1,25 +1,20 @@ 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.TcWljg; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWljgtj; import com.ruoyi.tcZz.service.ITcWljgtjService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网络监测统计Controller * @@ -36,7 +31,7 @@ public class TcWljgtjController extends BaseController { /** * 查询网络监测统计列表 */ - @ApiOperation(value = "查询网络监测统计列表",response =TcWljgtj.class ) + @ApiOperation(value = "查询网络监测统计列表", response = TcWljgtj.class) @GetMapping("/list") public TableDataInfo list(TcWljgtj tcWljgtj) { startPage(); @@ -114,14 +109,13 @@ public class TcWljgtjController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWljgtjService.updateByisStatus(isStatus,ids); + tcWljgtjService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 ca213c48..eca1257d 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 @@ -1,24 +1,20 @@ package com.ruoyi.tcZz.controller; -import java.util.List; -import javax.servlet.http.HttpServletResponse; - -import com.ruoyi.tcZz.domain.TcWljgtj; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWlmqfzr; import com.ruoyi.tcZz.service.ITcWlmqfzrService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网络民情负责人Controller * @@ -113,14 +109,13 @@ public class TcWlmqfzrController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWlmqfzrService.updateByisStatus(isStatus,ids); + tcWlmqfzrService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 0d0f756b..ce93a651 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 @@ -1,25 +1,20 @@ package com.ruoyi.tcZz.controller; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWlwmzyz; import com.ruoyi.tcZz.service.ITcWlwmzyzService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网络文明志愿者Controller * @@ -103,6 +98,7 @@ public class TcWlwmzyzController extends BaseController { tcWlwmzyzService.importUser(tcWlwmzyzList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -113,14 +109,13 @@ public class TcWlwmzyzController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWlwmzyzService.updateByisStatus(isStatus,ids); + tcWlwmzyzService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 4e1c32e8..d353d1ff 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 @@ -1,25 +1,20 @@ package com.ruoyi.tcZz.controller; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWpwzlyqk; import com.ruoyi.tcZz.service.ITcWpwzlyqkService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网评文章录用情况Controller * @@ -103,6 +98,7 @@ public class TcWpwzlyqkController extends BaseController { tcWpwzlyqkService.importUser(tcWpwzlyqkList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -113,14 +109,13 @@ public class TcWpwzlyqkController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWpwzlyqkService.updateByisStatus(isStatus,ids); + tcWpwzlyqkService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 ed4647e6..cbb9b674 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 @@ -1,25 +1,20 @@ package com.ruoyi.tcZz.controller; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWpy; import com.ruoyi.tcZz.service.ITcWpyService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网评员Controller * @@ -92,7 +87,6 @@ public class TcWpyController extends BaseController { } - /** * 导入 */ @@ -104,6 +98,7 @@ public class TcWpyController extends BaseController { tcWpyService.importUser(tcWpyList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -114,14 +109,13 @@ public class TcWpyController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWpyService.updateByisStatus(isStatus,ids); + tcWpyService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 f84bdb74..78af3ab4 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 @@ -1,26 +1,20 @@ package com.ruoyi.tcZz.controller; -import java.util.List; -import javax.servlet.http.HttpServletResponse; - -import com.ruoyi.tcZz.domain.TcMtlx; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcWpyrwwcl; import com.ruoyi.tcZz.service.ITcWpyrwwclService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 网评员任务完成率(网评系统)Controller * @@ -73,15 +67,15 @@ public class TcWpyrwwclController extends BaseController { public AjaxResult add(@RequestBody TcWpyrwwcl tcWpyrwwcl) { //根据unit判断如果已存在,则调修改 - TcWpyrwwcl newtcWpyrwwcl=new TcWpyrwwcl(); + TcWpyrwwcl newtcWpyrwwcl = new TcWpyrwwcl(); newtcWpyrwwcl.setUnit(tcWpyrwwcl.getUnit()); List list = tcWpyrwwclService.selectTcWpyrwwclList(newtcWpyrwwcl); - if (!list.isEmpty()){ - for (TcWpyrwwcl a :list) { + if (!list.isEmpty()) { + for (TcWpyrwwcl a : list) { tcWpyrwwcl.setId(a.getId()); tcWpyrwwclService.updateTcWpyrwwcl(tcWpyrwwcl); } - }else { + } else { tcWpyrwwclService.insertTcWpyrwwcl(tcWpyrwwcl); } return AjaxResult.success(); @@ -117,6 +111,7 @@ public class TcWpyrwwclController extends BaseController { tcWpyrwwclService.importUser(tTcWpyrwwclList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -127,14 +122,13 @@ public class TcWpyrwwclController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWpyrwwclService.updateByisStatus(isStatus,ids); + tcWpyrwwclService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 a854e3e9..d2c446d2 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -103,6 +98,7 @@ public class TcWzController extends BaseController { tcWzService.importUser(tcWzList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -113,14 +109,13 @@ public class TcWzController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcWzService.updateByisStatus(isStatus,ids); + tcWzService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 dfc01cf9..91c39364 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 @@ -1,25 +1,20 @@ package com.ruoyi.tcZz.controller; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcXtjc; import com.ruoyi.tcZz.service.ITcXtjcService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 系统监测Controller * @@ -104,6 +99,7 @@ public class TcXtjcController extends BaseController { tcXtjcService.importUser(tcXtjcList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -114,14 +110,13 @@ public class TcXtjcController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcXtjcService.updateByisStatus(isStatus,ids); + tcXtjcService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 f998b883..2dcbe703 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 @@ -1,37 +1,30 @@ package com.ruoyi.tcZz.controller; -import java.util.List; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcYqbg; import com.ruoyi.tcZz.service.ITcYqbgService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 舆情报告Controller - * + * * @author ruoyi * @date 2023-10-12 */ @RestController @Api(tags = "舆情报告") @RequestMapping("/tcZz/netWorkYq/yqbg") -public class TcYqbgController extends BaseController -{ +public class TcYqbgController extends BaseController { @Autowired private ITcYqbgService tcYqbgService; @@ -40,8 +33,7 @@ public class TcYqbgController extends BaseController */ @ApiOperation(value = "查询舆情报告列表", response = TcYqbg.class) @GetMapping("/list") - public TableDataInfo list(TcYqbg tcYqbg) - { + public TableDataInfo list(TcYqbg tcYqbg) { startPage(); List list = tcYqbgService.selectTcYqbgList(tcYqbg); return getDataTable(list); @@ -52,8 +44,7 @@ public class TcYqbgController extends BaseController */ @ApiOperation(value = "导出舆情报告列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcYqbg tcYqbg) - { + public void export(HttpServletResponse response, TcYqbg tcYqbg) { List list = tcYqbgService.selectTcYqbgList(tcYqbg); ExcelUtil util = new ExcelUtil(TcYqbg.class); util.exportExcel(response, list, "舆情报告数据"); @@ -64,8 +55,7 @@ public class TcYqbgController extends BaseController */ @ApiOperation(value = "获取舆情报告详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcYqbgService.selectTcYqbgById(id)); } @@ -74,8 +64,7 @@ public class TcYqbgController extends BaseController */ @ApiOperation(value = "新增舆情报告") @PostMapping - public AjaxResult add(@RequestBody TcYqbg tcYqbg) - { + public AjaxResult add(@RequestBody TcYqbg tcYqbg) { return toAjax(tcYqbgService.insertTcYqbg(tcYqbg)); } @@ -84,8 +73,7 @@ public class TcYqbgController extends BaseController */ @ApiOperation(value = "修改舆情报告") @PutMapping - public AjaxResult edit(@RequestBody TcYqbg tcYqbg) - { + public AjaxResult edit(@RequestBody TcYqbg tcYqbg) { return toAjax(tcYqbgService.updateTcYqbg(tcYqbg)); } @@ -93,9 +81,8 @@ public class TcYqbgController extends BaseController * 删除舆情报告 */ @ApiOperation(value = "删除舆情报告") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcYqbgService.deleteTcYqbgByIds(ids)); } @@ -111,6 +98,7 @@ public class TcYqbgController extends BaseController tcYqbgService.importUser(tcYqbgList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -121,14 +109,13 @@ public class TcYqbgController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcYqbgService.updateByisStatus(isStatus,ids); + tcYqbgService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 04d4ef43..22988ed0 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 @@ -1,46 +1,39 @@ package com.ruoyi.tcZz.controller; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcYqxxlnum; import com.ruoyi.tcZz.service.ITcYqxxlnumService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 舆情信息量统计Controller - * + * * @author ruoyi * @date 2023-10-12 */ @Api(tags = "舆情信息量统计") @RestController @RequestMapping("/tcZz/netWorkYq/yqxxlnum") -public class TcYqxxlnumController extends BaseController -{ +public class TcYqxxlnumController extends BaseController { @Autowired private ITcYqxxlnumService tcYqxxlnumService; /** * 查询舆情信息量统计列表 */ - @ApiOperation(value = "查询舆情信息量统计列表",response =TcYqxxlnum.class ) + @ApiOperation(value = "查询舆情信息量统计列表", response = TcYqxxlnum.class) @GetMapping("/list") - public TableDataInfo list(TcYqxxlnum tcYqxxlnum) - { + public TableDataInfo list(TcYqxxlnum tcYqxxlnum) { startPage(); List list = tcYqxxlnumService.selectTcYqxxlnumList(tcYqxxlnum); return getDataTable(list); @@ -51,8 +44,7 @@ public class TcYqxxlnumController extends BaseController */ @ApiOperation(value = "导出舆情信息量统计列表") @PostMapping("/export") - public void export(HttpServletResponse response, TcYqxxlnum tcYqxxlnum) - { + public void export(HttpServletResponse response, TcYqxxlnum tcYqxxlnum) { List list = tcYqxxlnumService.selectTcYqxxlnumList(tcYqxxlnum); ExcelUtil util = new ExcelUtil(TcYqxxlnum.class); util.exportExcel(response, list, "舆情信息量统计数据"); @@ -63,8 +55,7 @@ public class TcYqxxlnumController extends BaseController */ @ApiOperation(value = "获取舆情信息量统计详细信息") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcYqxxlnumService.selectTcYqxxlnumById(id)); } @@ -73,8 +64,7 @@ public class TcYqxxlnumController extends BaseController */ @ApiOperation(value = "新增舆情信息量统计") @PostMapping - public AjaxResult add(@RequestBody TcYqxxlnum tcYqxxlnum) - { + public AjaxResult add(@RequestBody TcYqxxlnum tcYqxxlnum) { return toAjax(tcYqxxlnumService.insertTcYqxxlnum(tcYqxxlnum)); } @@ -83,8 +73,7 @@ public class TcYqxxlnumController extends BaseController */ @ApiOperation(value = "修改舆情信息量统计") @PutMapping - public AjaxResult edit(@RequestBody TcYqxxlnum tcYqxxlnum) - { + public AjaxResult edit(@RequestBody TcYqxxlnum tcYqxxlnum) { return toAjax(tcYqxxlnumService.updateTcYqxxlnum(tcYqxxlnum)); } @@ -92,9 +81,8 @@ public class TcYqxxlnumController extends BaseController * 删除舆情信息量统计 */ @ApiOperation(value = "删除舆情信息量统计") - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcYqxxlnumService.deleteTcYqxxlnumByIds(ids)); } @@ -110,6 +98,7 @@ public class TcYqxxlnumController extends BaseController tcYqxxlnumService.importUser(tcYqxxlnumList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -120,14 +109,13 @@ public class TcYqxxlnumController extends BaseController @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcYqxxlnumService.updateByisStatus(isStatus,ids); + tcYqxxlnumService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 3feb0b04..77011a52 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -36,7 +31,7 @@ public class TcYqxxltjController extends BaseController { /** * 查询舆情信息量统计明細列表 */ - @ApiOperation(value = "查询舆情信息量统计明細列表",response = TcYqxxltj.class ) + @ApiOperation(value = "查询舆情信息量统计明細列表", response = TcYqxxltj.class) @GetMapping("/list") public TableDataInfo list(TcYqxxltj tcYqxxltj) { startPage(); @@ -113,6 +108,7 @@ public class TcYqxxltjController extends BaseController { tcYqxxltjService.importUser(YqxxltjList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -122,15 +118,14 @@ public class TcYqxxltjController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcYqxxltjService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcYqxxltjService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 c80bd975..4e8a7ce6 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -102,6 +97,7 @@ public class TcYqyjController extends BaseController { tcYqyjService.importUser(tcYqyjList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -111,15 +107,14 @@ public class TcYqyjController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcYqyjService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcYqyjService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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/TcYtlcController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYtlcController.java index 76ddb6de..4d02df00 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 @@ -4,8 +4,6 @@ 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.TcWljgtj; -import com.ruoyi.tcZz.domain.TcYqzs; import com.ruoyi.tcZz.domain.TcYtlc; import com.ruoyi.tcZz.service.ITcYtlcService; import io.swagger.annotations.Api; @@ -100,6 +98,7 @@ public class TcYtlcController extends BaseController { tcYtlcService.importUser(tcYtlcList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -109,15 +108,14 @@ public class TcYtlcController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcYtlcService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcYtlcService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 39b675a8..68015fe2 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 @@ -1,18 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.tcZz.domain.TcYtlc; import com.ruoyi.tcZz.domain.TcZbxq; import com.ruoyi.tcZz.service.ITcZbxqService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -102,6 +98,7 @@ public class TcZbxqController extends BaseController { tcZbxqService.importUser(tcZbxqList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -111,15 +108,14 @@ public class TcZbxqController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcZbxqService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcZbxqService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 04a65189..c6033c63 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -92,7 +87,6 @@ public class TcZdgzxmController extends BaseController { } - /** * 导入 */ @@ -104,6 +98,7 @@ public class TcZdgzxmController extends BaseController { tcZdgzxmService.importUser(tcZdgzxmList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -113,15 +108,14 @@ public class TcZdgzxmController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcZdgzxmService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcZdgzxmService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 41847425..5a01bdcb 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 @@ -4,8 +4,6 @@ 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.TcWljgtj; -import com.ruoyi.tcZz.domain.TcZdgzxm; import com.ruoyi.tcZz.domain.TcZdlyjg; import com.ruoyi.tcZz.service.ITcZdlyjgService; import io.swagger.annotations.Api; @@ -99,6 +97,7 @@ public class TcZdlyjgController extends BaseController { tcZdlyjgService.importUser(tcZdlyjgList); return AjaxResult.success(); } + /** * 批量启用禁用 * @@ -108,15 +107,14 @@ public class TcZdlyjgController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcZdlyjgService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcZdlyjgService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 ef2c100b..1650d3b1 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 @@ -4,8 +4,6 @@ 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.TcWljgtj; -import com.ruoyi.tcZz.domain.TcZdlyjg; import com.ruoyi.tcZz.domain.TcZdqyml; import com.ruoyi.tcZz.service.ITcZdqymlService; import io.swagger.annotations.Api; @@ -110,15 +108,14 @@ public class TcZdqymlController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcZdqymlService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcZdqymlService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 444a2318..95f1f89b 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 @@ -1,19 +1,14 @@ package com.ruoyi.tcZz.controller; -import com.ruoyi.common.annotation.Log; 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.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; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; @@ -92,7 +87,6 @@ public class TcZfwzController extends BaseController { } - /** * 导入 */ @@ -114,15 +108,14 @@ public class TcZfwzController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") - public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List ids) { - tcZfwzService.updateByisStatus(isStatus,ids); + public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { + tcZfwzService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + 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 8976dac5..bcbfb6ed 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 @@ -1,25 +1,20 @@ package com.ruoyi.tcZz.controller; -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; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -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.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.tcZz.domain.TcZxyh; import com.ruoyi.tcZz.service.ITcZxyhService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + /** * 最新隐患Controller * @@ -114,14 +109,13 @@ public class TcZxyhController extends BaseController { @ApiOperation("批量启用禁用") @GetMapping("/isStatus") public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List ids) { - tcZxyhService.updateByisStatus(isStatus,ids); + tcZxyhService.updateByisStatus(isStatus, ids); return AjaxResult.success(); } @ApiOperation("通用下载excel模板") @PostMapping("/importTemplate") - public void importTemplate(HttpServletResponse response) - { + public void importTemplate(HttpServletResponse response) { ExcelUtil util = new ExcelUtil(TcZxyh.class); util.importTemplateExcel(response, " 最新隐患"); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcMap.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcMap.java index 9683ac4e..5b5a5209 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcMap.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcMap.java @@ -32,7 +32,7 @@ public class TcMap extends BaseEntity /** 数量 */ @ApiModelProperty(value = "数量") @Excel(name = "数量") - private String count; + private Integer count; /** 1.国际 2.国内 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcMapMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcMapMapper.java index c41a258c..e8c5bfc5 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcMapMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/mapper/TcMapMapper.java @@ -66,4 +66,11 @@ public interface TcMapMapper * */ public void updateByisStatus(@Param("isStatus") Integer isStatus, @Param("ids") List ids); + + + + /** + * 删除地图统计 + */ + int deleteTcMap(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcMapService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcMapService.java index dcba6209..4f7ae979 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcMapService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcMapService.java @@ -2,20 +2,18 @@ package com.ruoyi.tcZz.service; import java.util.List; -import com.ruoyi.tcZz.domain.TcAqg; import com.ruoyi.tcZz.domain.TcMap; /** * 地图统计Service接口 - * + * * @author ruoyi * @date 2023-10-12 */ -public interface ITcMapService -{ +public interface ITcMapService { /** * 查询地图统计 - * + * * @param id 地图统计主键 * @return 地图统计 */ @@ -23,7 +21,7 @@ public interface ITcMapService /** * 查询地图统计列表 - * + * * @param tcMap 地图统计 * @return 地图统计集合 */ @@ -31,7 +29,7 @@ public interface ITcMapService /** * 新增地图统计 - * + * * @param tcMap 地图统计 * @return 结果 */ @@ -39,7 +37,7 @@ public interface ITcMapService /** * 修改地图统计 - * + * * @param tcMap 地图统计 * @return 结果 */ @@ -47,7 +45,7 @@ public interface ITcMapService /** * 批量删除地图统计 - * + * * @param ids 需要删除的地图统计主键集合 * @return 结果 */ @@ -55,7 +53,7 @@ public interface ITcMapService /** * 删除地图统计信息 - * + * * @param id 地图统计主键 * @return 结果 */ @@ -71,8 +69,13 @@ public interface ITcMapService /** * 批量启用禁用 + */ + public void updateByisStatus(Integer isStatus, List ids); + + /** + * 删除地图统计 * - * + * @return */ - public void updateByisStatus(Integer isStatus,List ids); + int deleteTcMap(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcMapServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcMapServiceImpl.java index efe55bba..0d6203ed 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcMapServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcMapServiceImpl.java @@ -3,7 +3,6 @@ package com.ruoyi.tcZz.service.impl; import java.util.List; import com.ruoyi.common.utils.DateUtils; -import com.ruoyi.tcZz.domain.TcAqg; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.tcZz.mapper.TcMapMapper; @@ -106,4 +105,9 @@ public class TcMapServiceImpl implements ITcMapService { public void updateByisStatus(Integer isStatus,List ids) { tcMapMapper.updateByisStatus(isStatus,ids); } + + @Override + public int deleteTcMap() { + return tcMapMapper.deleteTcMap(); + } } diff --git a/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcMapMapper.xml b/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcMapMapper.xml index 602ca678..9e017abd 100644 --- a/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcMapMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/tcZz/networkSecurity/TcMapMapper.xml @@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime} and remark = #{remark} - order by create_time desc + order by count desc