main
dongdingding 1 year ago
parent bd73155b9e
commit e4c106e6af

@ -11,7 +11,6 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List; 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) @ApiOperation(value = "清郎专项行动数据统计", response = ScreenQinglangResponse.class)
@GetMapping("/screenqinglang") @GetMapping("/screenqinglang")
public AjaxResult screenQinglang() { public AjaxResult screenQinglang() {
ScreenQinglangResponse screenQinglangResponse=new ScreenQinglangResponse(); ScreenQinglangResponse screenQinglangResponse = new ScreenQinglangResponse();
List<ScreenQinglangWeifanResponse> list= screenService.getScreenQinglang(); List<ScreenQinglangWeifanResponse> list = screenService.getScreenQinglang();
List<ScreenQinglangWeiguiResponse> list1= screenService.getScreenQinglangWeigui(); List<ScreenQinglangWeiguiResponse> list1 = screenService.getScreenQinglangWeigui();
screenQinglangResponse.setScreenQinglangWeifanResponse(list); screenQinglangResponse.setScreenQinglangWeifanResponse(list);
screenQinglangResponse.setScreenQinglangWeiguiResponse(list1); screenQinglangResponse.setScreenQinglangWeiguiResponse(list1);
return AjaxResult.success(screenQinglangResponse); return AjaxResult.success(screenQinglangResponse);
} }
/** /**
* *
*/ */
@ -100,8 +96,6 @@ public class ScreenController extends BaseController {
} }
/** /**
* *
*/ */
@ -124,8 +118,6 @@ public class ScreenController extends BaseController {
} }
/** /**
* *
*/ */

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

@ -1,26 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcAqyh;
import com.ruoyi.tcZz.service.ITcAqyhService; import com.ruoyi.tcZz.service.ITcAqyhService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* tc_aqyhController * tc_aqyhController
* *
@ -30,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "安全隐患") @Api(tags = "安全隐患")
@RequestMapping("/tcZz/networkSecurity/aqyh") @RequestMapping("/tcZz/networkSecurity/aqyh")
public class TcAqyhController extends BaseController public class TcAqyhController extends BaseController {
{
@Autowired @Autowired
private ITcAqyhService tcAqyhService; private ITcAqyhService tcAqyhService;
/** /**
* tc_aqyh * tc_aqyh
*/ */
@ApiOperation(value = "查询安全隐患列表",response =TcAqyh.class ) @ApiOperation(value = "查询安全隐患列表", response = TcAqyh.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcAqyh tcAqyh) public TableDataInfo list(TcAqyh tcAqyh) {
{
startPage(); startPage();
List<TcAqyh> list = tcAqyhService.selectTcAqyhList(tcAqyh); List<TcAqyh> list = tcAqyhService.selectTcAqyhList(tcAqyh);
return getDataTable(list); return getDataTable(list);
@ -52,8 +44,7 @@ public class TcAqyhController extends BaseController
*/ */
@ApiOperation(value = "导出安全隐患列表") @ApiOperation(value = "导出安全隐患列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcAqyh tcAqyh) public void export(HttpServletResponse response, TcAqyh tcAqyh) {
{
List<TcAqyh> list = tcAqyhService.selectTcAqyhList(tcAqyh); List<TcAqyh> list = tcAqyhService.selectTcAqyhList(tcAqyh);
ExcelUtil<TcAqyh> util = new ExcelUtil<TcAqyh>(TcAqyh.class); ExcelUtil<TcAqyh> util = new ExcelUtil<TcAqyh>(TcAqyh.class);
util.exportExcel(response, list, "安全隐患 tc_aqyh数据"); util.exportExcel(response, list, "安全隐患 tc_aqyh数据");
@ -64,8 +55,7 @@ public class TcAqyhController extends BaseController
*/ */
@ApiOperation(value = "获取安全隐患详细信息") @ApiOperation(value = "获取安全隐患详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcAqyhService.selectTcAqyhById(id)); return success(tcAqyhService.selectTcAqyhById(id));
} }
@ -74,18 +64,17 @@ public class TcAqyhController extends BaseController
*/ */
@ApiOperation(value = "新增安全隐患") @ApiOperation(value = "新增安全隐患")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcAqyh tcAqyh) public AjaxResult add(@RequestBody TcAqyh tcAqyh) {
{
//根据Yh_name判断如果已存在则调修改 //根据Yh_name判断如果已存在则调修改
TcAqyh newtcAqyh=new TcAqyh(); TcAqyh newtcAqyh = new TcAqyh();
newtcAqyh.setYhName(tcAqyh.getYhName()); newtcAqyh.setYhName(tcAqyh.getYhName());
List<TcAqyh> list = tcAqyhService.selectTcAqyhList(newtcAqyh); List<TcAqyh> list = tcAqyhService.selectTcAqyhList(newtcAqyh);
if (!list.isEmpty()){ if (!list.isEmpty()) {
for (TcAqyh a :list) { for (TcAqyh a : list) {
tcAqyh.setId(a.getId()); tcAqyh.setId(a.getId());
tcAqyhService.updateTcAqyh(tcAqyh); tcAqyhService.updateTcAqyh(tcAqyh);
} }
}else { } else {
tcAqyhService.insertTcAqyh(tcAqyh); tcAqyhService.insertTcAqyh(tcAqyh);
} }
return AjaxResult.success(); return AjaxResult.success();
@ -96,8 +85,7 @@ public class TcAqyhController extends BaseController
*/ */
@ApiOperation(value = "修改安全隐患") @ApiOperation(value = "修改安全隐患")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcAqyh tcAqyh) public AjaxResult edit(@RequestBody TcAqyh tcAqyh) {
{
return toAjax(tcAqyhService.updateTcAqyh(tcAqyh)); return toAjax(tcAqyhService.updateTcAqyh(tcAqyh));
} }
@ -105,9 +93,8 @@ public class TcAqyhController extends BaseController
* tc_aqyh * tc_aqyh
*/ */
@ApiOperation(value = "删除安全隐患") @ApiOperation(value = "删除安全隐患")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcAqyhService.deleteTcAqyhByIds(ids)); return toAjax(tcAqyhService.deleteTcAqyhByIds(ids));
} }
@ -133,13 +120,13 @@ public class TcAqyhController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcAqyhService.updateByisStatus(isStatus,ids); tcAqyhService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcAqyh> util = new ExcelUtil<TcAqyh>(TcAqyh.class); ExcelUtil<TcAqyh> util = new ExcelUtil<TcAqyh>(TcAqyh.class);
util.importTemplateExcel(response, " 安全隐患"); util.importTemplateExcel(response, " 安全隐患");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcBjsjwp;
import com.ruoyi.tcZz.service.ITcBjsjwpService; import com.ruoyi.tcZz.service.ITcBjsjwpService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@Api(tags = "本级上级网评指令比例(月)") @Api(tags = "本级上级网评指令比例(月)")
@RestController @RestController
@RequestMapping("/tcZz/networkEcology/bjsjwp") @RequestMapping("/tcZz/networkEcology/bjsjwp")
public class TcBjsjwpController extends BaseController public class TcBjsjwpController extends BaseController {
{
@Autowired @Autowired
private ITcBjsjwpService tcBjsjwpService; private ITcBjsjwpService tcBjsjwpService;
/** /**
* *
*/ */
@ApiOperation(value = "查询本级上级网评指令比例(月)列表",response = TcBjsjwp.class ) @ApiOperation(value = "查询本级上级网评指令比例(月)列表", response = TcBjsjwp.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcBjsjwp tcBjsjwp) public TableDataInfo list(TcBjsjwp tcBjsjwp) {
{
startPage(); startPage();
List<TcBjsjwp> list = tcBjsjwpService.selectTcBjsjwpList(tcBjsjwp); List<TcBjsjwp> list = tcBjsjwpService.selectTcBjsjwpList(tcBjsjwp);
return getDataTable(list); return getDataTable(list);
@ -51,8 +44,7 @@ public class TcBjsjwpController extends BaseController
*/ */
@ApiOperation(value = "导出本级上级网评指令比例(月)列表") @ApiOperation(value = "导出本级上级网评指令比例(月)列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcBjsjwp tcBjsjwp) public void export(HttpServletResponse response, TcBjsjwp tcBjsjwp) {
{
List<TcBjsjwp> list = tcBjsjwpService.selectTcBjsjwpList(tcBjsjwp); List<TcBjsjwp> list = tcBjsjwpService.selectTcBjsjwpList(tcBjsjwp);
ExcelUtil<TcBjsjwp> util = new ExcelUtil<TcBjsjwp>(TcBjsjwp.class); ExcelUtil<TcBjsjwp> util = new ExcelUtil<TcBjsjwp>(TcBjsjwp.class);
util.exportExcel(response, list, "本级上级网评指令比例(月)数据"); util.exportExcel(response, list, "本级上级网评指令比例(月)数据");
@ -63,8 +55,7 @@ public class TcBjsjwpController extends BaseController
*/ */
@ApiOperation(value = "获取本级上级网评指令比例(月)详细信息") @ApiOperation(value = "获取本级上级网评指令比例(月)详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcBjsjwpService.selectTcBjsjwpById(id)); return success(tcBjsjwpService.selectTcBjsjwpById(id));
} }
@ -73,8 +64,7 @@ public class TcBjsjwpController extends BaseController
*/ */
@ApiOperation(value = "新增本级上级网评指令比例(月)") @ApiOperation(value = "新增本级上级网评指令比例(月)")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcBjsjwp tcBjsjwp) public AjaxResult add(@RequestBody TcBjsjwp tcBjsjwp) {
{
return toAjax(tcBjsjwpService.insertTcBjsjwp(tcBjsjwp)); return toAjax(tcBjsjwpService.insertTcBjsjwp(tcBjsjwp));
} }
@ -83,8 +73,7 @@ public class TcBjsjwpController extends BaseController
*/ */
@ApiOperation(value = "修改本级上级网评指令比例(月)") @ApiOperation(value = "修改本级上级网评指令比例(月)")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcBjsjwp tcBjsjwp) public AjaxResult edit(@RequestBody TcBjsjwp tcBjsjwp) {
{
return toAjax(tcBjsjwpService.updateTcBjsjwp(tcBjsjwp)); return toAjax(tcBjsjwpService.updateTcBjsjwp(tcBjsjwp));
} }
@ -92,9 +81,8 @@ public class TcBjsjwpController extends BaseController
* *
*/ */
@ApiOperation(value = "删除本级上级网评指令比例(月)") @ApiOperation(value = "删除本级上级网评指令比例(月)")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcBjsjwpService.deleteTcBjsjwpByIds(ids)); return toAjax(tcBjsjwpService.deleteTcBjsjwpByIds(ids));
} }
@ -110,6 +98,7 @@ public class TcBjsjwpController extends BaseController
tcBjsjwpService.importUser(tcBjsjwpList); tcBjsjwpService.importUser(tcBjsjwpList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -120,13 +109,13 @@ public class TcBjsjwpController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcBjsjwpService.updateByisStatus(isStatus,ids); tcBjsjwpService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcBjsjwp> util = new ExcelUtil<TcBjsjwp>(TcBjsjwp.class); ExcelUtil<TcBjsjwp> util = new ExcelUtil<TcBjsjwp>(TcBjsjwp.class);
util.importTemplateExcel(response, " 本级上级网评指令比例(月)"); util.importTemplateExcel(response, " 本级上级网评指令比例(月)");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcBmtb;
import com.ruoyi.tcZz.service.ITcBmtbService; import com.ruoyi.tcZz.service.ITcBmtbService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "部门通报") @Api(tags = "部门通报")
@RequestMapping("/tcZz/networkSecurity/bmtb") @RequestMapping("/tcZz/networkSecurity/bmtb")
public class TcBmtbController extends BaseController public class TcBmtbController extends BaseController {
{
@Autowired @Autowired
private ITcBmtbService tcBmtbService; private ITcBmtbService tcBmtbService;
/** /**
* *
*/ */
@ApiOperation(value = "查询部门通报列表",response = TcBmtb.class) @ApiOperation(value = "查询部门通报列表", response = TcBmtb.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcBmtb tcBmtb) public TableDataInfo list(TcBmtb tcBmtb) {
{
startPage(); startPage();
List<TcBmtb> list = tcBmtbService.selectTcBmtbList(tcBmtb); List<TcBmtb> list = tcBmtbService.selectTcBmtbList(tcBmtb);
return getDataTable(list); return getDataTable(list);
@ -51,8 +44,7 @@ public class TcBmtbController extends BaseController
*/ */
@ApiOperation(value = "导出部门通报列表") @ApiOperation(value = "导出部门通报列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcBmtb tcBmtb) public void export(HttpServletResponse response, TcBmtb tcBmtb) {
{
List<TcBmtb> list = tcBmtbService.selectTcBmtbList(tcBmtb); List<TcBmtb> list = tcBmtbService.selectTcBmtbList(tcBmtb);
ExcelUtil<TcBmtb> util = new ExcelUtil<TcBmtb>(TcBmtb.class); ExcelUtil<TcBmtb> util = new ExcelUtil<TcBmtb>(TcBmtb.class);
util.exportExcel(response, list, "部门通报数据"); util.exportExcel(response, list, "部门通报数据");
@ -63,8 +55,7 @@ public class TcBmtbController extends BaseController
*/ */
@ApiOperation(value = "获取部门通报详细信息") @ApiOperation(value = "获取部门通报详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcBmtbService.selectTcBmtbById(id)); return success(tcBmtbService.selectTcBmtbById(id));
} }
@ -73,8 +64,7 @@ public class TcBmtbController extends BaseController
*/ */
@ApiOperation(value = "新增部门通报") @ApiOperation(value = "新增部门通报")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcBmtb tcBmtb) public AjaxResult add(@RequestBody TcBmtb tcBmtb) {
{
return toAjax(tcBmtbService.insertTcBmtb(tcBmtb)); return toAjax(tcBmtbService.insertTcBmtb(tcBmtb));
} }
@ -83,8 +73,7 @@ public class TcBmtbController extends BaseController
*/ */
@ApiOperation(value = "修改部门通报") @ApiOperation(value = "修改部门通报")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcBmtb tcBmtb) public AjaxResult edit(@RequestBody TcBmtb tcBmtb) {
{
return toAjax(tcBmtbService.updateTcBmtb(tcBmtb)); return toAjax(tcBmtbService.updateTcBmtb(tcBmtb));
} }
@ -92,9 +81,8 @@ public class TcBmtbController extends BaseController
* *
*/ */
@ApiOperation(value = "删除部门通报") @ApiOperation(value = "删除部门通报")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcBmtbService.deleteTcBmtbByIds(ids)); return toAjax(tcBmtbService.deleteTcBmtbByIds(ids));
} }
@ -109,6 +97,7 @@ public class TcBmtbController extends BaseController
tcBmtbService.importUser(tcWljgList); tcBmtbService.importUser(tcWljgList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -119,14 +108,13 @@ public class TcBmtbController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcBmtbService.updateByisStatus(isStatus,ids); tcBmtbService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcBmtb> util = new ExcelUtil<TcBmtb>(TcBmtb.class); ExcelUtil<TcBmtb> util = new ExcelUtil<TcBmtb>(TcBmtb.class);
util.importTemplateExcel(response, " 部门通报"); util.importTemplateExcel(response, " 部门通报");
} }

@ -4,9 +4,7 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcBmtb;
import com.ruoyi.tcZz.domain.TcBzhan; import com.ruoyi.tcZz.domain.TcBzhan;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcBzhanService; import com.ruoyi.tcZz.service.ITcBzhanService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@ -99,6 +97,7 @@ public class TcBzhanController extends BaseController {
tcBzhanService.importUser(tcBzhanList); tcBzhanService.importUser(tcBzhanList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -109,14 +108,13 @@ public class TcBzhanController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcBzhanService.updateByisStatus(isStatus,ids); tcBzhanService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcBzhan> util = new ExcelUtil<TcBzhan>(TcBzhan.class); ExcelUtil<TcBzhan> util = new ExcelUtil<TcBzhan>(TcBzhan.class);
util.importTemplateExcel(response, " B站、小红书"); util.importTemplateExcel(response, " B站、小红书");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcBzhan;
import com.ruoyi.tcZz.domain.TcCy; import com.ruoyi.tcZz.domain.TcCy;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcCyService; import com.ruoyi.tcZz.service.ITcCyService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -104,6 +99,7 @@ public class TcCyController extends BaseController {
tcCyService.importUser(tcCyList); tcCyService.importUser(tcCyList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -114,14 +110,13 @@ public class TcCyController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcCyService.updateByisStatus(isStatus,ids); tcCyService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcCy> util = new ExcelUtil<TcCy>(TcCy.class); ExcelUtil<TcCy> util = new ExcelUtil<TcCy>(TcCy.class);
util.importTemplateExcel(response, " 词云列表"); util.importTemplateExcel(response, " 词云列表");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcCy;
import com.ruoyi.tcZz.domain.TcDbdw; import com.ruoyi.tcZz.domain.TcDbdw;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcDbdwService; import com.ruoyi.tcZz.service.ITcDbdwService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -103,6 +98,7 @@ public class TcDbdwController extends BaseController {
tcDbdwService.importUser(tcDbdwList); tcDbdwService.importUser(tcDbdwList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -113,14 +109,13 @@ public class TcDbdwController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcDbdwService.updateByisStatus(isStatus,ids); tcDbdwService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcDbdw> util = new ExcelUtil<TcDbdw>(TcDbdw.class); ExcelUtil<TcDbdw> util = new ExcelUtil<TcDbdw>(TcDbdw.class);
util.importTemplateExcel(response, " 等保单位"); util.importTemplateExcel(response, " 等保单位");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcDbxt;
import com.ruoyi.tcZz.service.ITcDbxtService; import com.ruoyi.tcZz.service.ITcDbxtService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -114,14 +109,13 @@ public class TcDbxtController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcDbxtService.updateByisStatus(isStatus,ids); tcDbxtService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcDbxt> util = new ExcelUtil<TcDbxt>(TcDbxt.class); ExcelUtil<TcDbxt> util = new ExcelUtil<TcDbxt>(TcDbxt.class);
util.importTemplateExcel(response, " 等保系统"); util.importTemplateExcel(response, " 等保系统");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcDbxt;
import com.ruoyi.tcZz.domain.TcDtsx; import com.ruoyi.tcZz.domain.TcDtsx;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcDtsxService; import com.ruoyi.tcZz.service.ITcDtsxService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; 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") @GetMapping("/list")
public TableDataInfo list(TcDtsx tcDtsx) { public TableDataInfo list(TcDtsx tcDtsx) {
startPage(); startPage();
@ -90,6 +85,7 @@ public class TcDtsxController extends BaseController {
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcDtsxService.deleteTcDtsxByIds(ids)); return toAjax(tcDtsxService.deleteTcDtsxByIds(ids));
} }
/** /**
* *
*/ */
@ -112,14 +108,13 @@ public class TcDtsxController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcDtsxService.updateByisStatus(isStatus,ids); tcDtsxService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcDtsx> util = new ExcelUtil<TcDtsx>(TcDtsx.class); ExcelUtil<TcDtsx> util = new ExcelUtil<TcDtsx>(TcDtsx.class);
util.importTemplateExcel(response, " 动态筛选"); util.importTemplateExcel(response, " 动态筛选");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcDtsx;
import com.ruoyi.tcZz.domain.TcDy; import com.ruoyi.tcZz.domain.TcDy;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcDyService; import com.ruoyi.tcZz.service.ITcDyService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -114,14 +109,13 @@ public class TcDyController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcDyService.updateByisStatus(isStatus,ids); tcDyService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcDy> util = new ExcelUtil<TcDy>(TcDy.class); ExcelUtil<TcDy> util = new ExcelUtil<TcDy>(TcDy.class);
util.importTemplateExcel(response, " 抖音"); util.importTemplateExcel(response, " 抖音");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcDy;
import com.ruoyi.tcZz.domain.TcFb; import com.ruoyi.tcZz.domain.TcFb;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcFbService; import com.ruoyi.tcZz.service.ITcFbService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -114,14 +109,13 @@ public class TcFbController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcFbService.updateByisStatus(isStatus,ids); tcFbService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcFb> util = new ExcelUtil<TcFb>(TcFb.class); ExcelUtil<TcFb> util = new ExcelUtil<TcFb>(TcFb.class);
util.importTemplateExcel(response, " 上级媒体、本地发布"); util.importTemplateExcel(response, " 上级媒体、本地发布");
} }

@ -1,26 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcFbqk;
import com.ruoyi.tcZz.service.ITcFbqkService; import com.ruoyi.tcZz.service.ITcFbqkService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* tc_fbqkController * tc_fbqkController
* *
@ -30,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "分布情况") @Api(tags = "分布情况")
@RequestMapping("/tcZz/networkSecurity/fbqk") @RequestMapping("/tcZz/networkSecurity/fbqk")
public class TcFbqkController extends BaseController public class TcFbqkController extends BaseController {
{
@Autowired @Autowired
private ITcFbqkService tcFbqkService; private ITcFbqkService tcFbqkService;
/** /**
* tc_fbqk * tc_fbqk
*/ */
@ApiOperation(value = "查询分布情况列表",response = TcFbqk.class) @ApiOperation(value = "查询分布情况列表", response = TcFbqk.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcFbqk tcFbqk) public TableDataInfo list(TcFbqk tcFbqk) {
{
startPage(); startPage();
List<TcFbqk> list = tcFbqkService.selectTcFbqkList(tcFbqk); List<TcFbqk> list = tcFbqkService.selectTcFbqkList(tcFbqk);
return getDataTable(list); return getDataTable(list);
@ -52,8 +44,7 @@ public class TcFbqkController extends BaseController
*/ */
@ApiOperation(value = "导出分布情况列表") @ApiOperation(value = "导出分布情况列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcFbqk tcFbqk) public void export(HttpServletResponse response, TcFbqk tcFbqk) {
{
List<TcFbqk> list = tcFbqkService.selectTcFbqkList(tcFbqk); List<TcFbqk> list = tcFbqkService.selectTcFbqkList(tcFbqk);
ExcelUtil<TcFbqk> util = new ExcelUtil<TcFbqk>(TcFbqk.class); ExcelUtil<TcFbqk> util = new ExcelUtil<TcFbqk>(TcFbqk.class);
util.exportExcel(response, list, "分布情况 tc_fbqk数据"); util.exportExcel(response, list, "分布情况 tc_fbqk数据");
@ -64,8 +55,7 @@ public class TcFbqkController extends BaseController
*/ */
@ApiOperation(value = "获取分布情况详细信息") @ApiOperation(value = "获取分布情况详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcFbqkService.selectTcFbqkById(id)); return success(tcFbqkService.selectTcFbqkById(id));
} }
@ -74,18 +64,17 @@ public class TcFbqkController extends BaseController
*/ */
@ApiOperation(value = "新增分布情况") @ApiOperation(value = "新增分布情况")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcFbqk tcFbqk) public AjaxResult add(@RequestBody TcFbqk tcFbqk) {
{
//根据City_name判断如果已存在则调修改 //根据City_name判断如果已存在则调修改
TcFbqk newtcFbqk=new TcFbqk(); TcFbqk newtcFbqk = new TcFbqk();
newtcFbqk.setCityName(tcFbqk.getCityName()); newtcFbqk.setCityName(tcFbqk.getCityName());
List<TcFbqk> list = tcFbqkService.selectTcFbqkList(newtcFbqk); List<TcFbqk> list = tcFbqkService.selectTcFbqkList(newtcFbqk);
if (!list.isEmpty()){ if (!list.isEmpty()) {
for (TcFbqk a :list) { for (TcFbqk a : list) {
tcFbqk.setId(a.getId()); tcFbqk.setId(a.getId());
tcFbqkService.updateTcFbqk(tcFbqk); tcFbqkService.updateTcFbqk(tcFbqk);
} }
}else { } else {
tcFbqkService.insertTcFbqk(tcFbqk); tcFbqkService.insertTcFbqk(tcFbqk);
} }
return AjaxResult.success(); return AjaxResult.success();
@ -96,8 +85,7 @@ public class TcFbqkController extends BaseController
*/ */
@ApiOperation(value = "修改分布情况") @ApiOperation(value = "修改分布情况")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcFbqk tcFbqk) public AjaxResult edit(@RequestBody TcFbqk tcFbqk) {
{
return toAjax(tcFbqkService.updateTcFbqk(tcFbqk)); return toAjax(tcFbqkService.updateTcFbqk(tcFbqk));
} }
@ -105,9 +93,8 @@ public class TcFbqkController extends BaseController
* tc_fbqk * tc_fbqk
*/ */
@ApiOperation(value = "删除分布情况") @ApiOperation(value = "删除分布情况")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcFbqkService.deleteTcFbqkByIds(ids)); return toAjax(tcFbqkService.deleteTcFbqkByIds(ids));
} }
@ -134,14 +121,13 @@ public class TcFbqkController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcFbqkService.updateByisStatus(isStatus,ids); tcFbqkService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcFbqk> util = new ExcelUtil<TcFbqk>(TcFbqk.class); ExcelUtil<TcFbqk> util = new ExcelUtil<TcFbqk>(TcFbqk.class);
util.importTemplateExcel(response, " 分布情况"); util.importTemplateExcel(response, " 分布情况");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcGzdt;
import com.ruoyi.tcZz.service.ITcGzdtService; import com.ruoyi.tcZz.service.ITcGzdtService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "工作动态") @Api(tags = "工作动态")
@RequestMapping("/tcZz/netManage/gzdt") @RequestMapping("/tcZz/netManage/gzdt")
public class TcGzdtController extends BaseController public class TcGzdtController extends BaseController {
{
@Autowired @Autowired
private ITcGzdtService tcGzdtService; private ITcGzdtService tcGzdtService;
/** /**
* *
*/ */
@ApiOperation(value = "查询工作动态列表",response = TcGzdt.class) @ApiOperation(value = "查询工作动态列表", response = TcGzdt.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcGzdt tcGzdt) public TableDataInfo list(TcGzdt tcGzdt) {
{
startPage(); startPage();
List<TcGzdt> list = tcGzdtService.selectTcGzdtList(tcGzdt); List<TcGzdt> list = tcGzdtService.selectTcGzdtList(tcGzdt);
return getDataTable(list); return getDataTable(list);
@ -51,8 +44,7 @@ public class TcGzdtController extends BaseController
*/ */
@ApiOperation(value = "导出工作动态列表") @ApiOperation(value = "导出工作动态列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcGzdt tcGzdt) public void export(HttpServletResponse response, TcGzdt tcGzdt) {
{
List<TcGzdt> list = tcGzdtService.selectTcGzdtList(tcGzdt); List<TcGzdt> list = tcGzdtService.selectTcGzdtList(tcGzdt);
ExcelUtil<TcGzdt> util = new ExcelUtil<TcGzdt>(TcGzdt.class); ExcelUtil<TcGzdt> util = new ExcelUtil<TcGzdt>(TcGzdt.class);
util.exportExcel(response, list, "工作动态数据"); util.exportExcel(response, list, "工作动态数据");
@ -63,8 +55,7 @@ public class TcGzdtController extends BaseController
*/ */
@ApiOperation(value = "获取工作动态详细信息") @ApiOperation(value = "获取工作动态详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcGzdtService.selectTcGzdtById(id)); return success(tcGzdtService.selectTcGzdtById(id));
} }
@ -73,8 +64,7 @@ public class TcGzdtController extends BaseController
*/ */
@ApiOperation(value = "新增工作动态") @ApiOperation(value = "新增工作动态")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcGzdt tcGzdt) public AjaxResult add(@RequestBody TcGzdt tcGzdt) {
{
return toAjax(tcGzdtService.insertTcGzdt(tcGzdt)); return toAjax(tcGzdtService.insertTcGzdt(tcGzdt));
} }
@ -83,8 +73,7 @@ public class TcGzdtController extends BaseController
*/ */
@ApiOperation(value = "修改工作动态") @ApiOperation(value = "修改工作动态")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcGzdt tcGzdt) public AjaxResult edit(@RequestBody TcGzdt tcGzdt) {
{
return toAjax(tcGzdtService.updateTcGzdt(tcGzdt)); return toAjax(tcGzdtService.updateTcGzdt(tcGzdt));
} }
@ -92,11 +81,11 @@ public class TcGzdtController extends BaseController
* *
*/ */
@ApiOperation(value = "删除工作动态") @ApiOperation(value = "删除工作动态")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcGzdtService.deleteTcGzdtByIds(ids)); return toAjax(tcGzdtService.deleteTcGzdtByIds(ids));
} }
/** /**
* *
*/ */
@ -119,14 +108,13 @@ public class TcGzdtController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcGzdtService.updateByisStatus(isStatus,ids); tcGzdtService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcGzdt> util = new ExcelUtil<TcGzdt>(TcGzdt.class); ExcelUtil<TcGzdt> util = new ExcelUtil<TcGzdt>(TcGzdt.class);
util.importTemplateExcel(response, " 工作动态"); util.importTemplateExcel(response, " 工作动态");
} }

@ -4,7 +4,6 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcGzdt;
import com.ruoyi.tcZz.domain.TcIdcdw; import com.ruoyi.tcZz.domain.TcIdcdw;
import com.ruoyi.tcZz.service.ITcIdcdwService; import com.ruoyi.tcZz.service.ITcIdcdwService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -115,8 +114,7 @@ public class TcIdcdwController extends BaseController {
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcIdcdw> util = new ExcelUtil<TcIdcdw>(TcIdcdw.class); ExcelUtil<TcIdcdw> util = new ExcelUtil<TcIdcdw>(TcIdcdw.class);
util.importTemplateExcel(response, " IDC单位"); util.importTemplateExcel(response, " IDC单位");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcIdcdw;
import com.ruoyi.tcZz.domain.TcJbmap; import com.ruoyi.tcZz.domain.TcJbmap;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcJbmapService; import com.ruoyi.tcZz.service.ITcJbmapService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -113,14 +108,13 @@ public class TcJbmapController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcJbmapService.updateByisStatus(isStatus,ids); tcJbmapService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcJbmap> util = new ExcelUtil<TcJbmap>(TcJbmap.class); ExcelUtil<TcJbmap> util = new ExcelUtil<TcJbmap>(TcJbmap.class);
util.importTemplateExcel(response, " 举报地图"); util.importTemplateExcel(response, " 举报地图");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcJbsjndfltj;
import com.ruoyi.tcZz.service.ITcJbsjndfltjService; import com.ruoyi.tcZz.service.ITcJbsjndfltjService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -113,14 +108,13 @@ public class TcJbsjndfltjController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcJbsjndfltjService.updateByisStatus(isStatus,ids); tcJbsjndfltjService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcJbsjndfltj> util = new ExcelUtil<TcJbsjndfltj>(TcJbsjndfltj.class); ExcelUtil<TcJbsjndfltj> util = new ExcelUtil<TcJbsjndfltj>(TcJbsjndfltj.class);
util.importTemplateExcel(response, " 举报事件年度分类统计"); util.importTemplateExcel(response, " 举报事件年度分类统计");
} }

@ -1,18 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcJbsjndfltj;
import com.ruoyi.tcZz.domain.TcJgdw; import com.ruoyi.tcZz.domain.TcJgdw;
import com.ruoyi.tcZz.service.ITcJgdwService; import com.ruoyi.tcZz.service.ITcJgdwService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -33,7 +29,6 @@ public class TcJgdwController extends BaseController {
private ITcJgdwService tcJgdwService; private ITcJgdwService tcJgdwService;
/** /**
* *
*/ */
@ -117,14 +112,13 @@ public class TcJgdwController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcJgdwService.updateByisStatus(isStatus,ids); tcJgdwService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcJgdw> util = new ExcelUtil<TcJgdw>(TcJgdw.class); ExcelUtil<TcJgdw> util = new ExcelUtil<TcJgdw>(TcJgdw.class);
util.importTemplateExcel(response, " 监管单位列表"); util.importTemplateExcel(response, " 监管单位列表");
} }

@ -1,20 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.TcMap;
import com.ruoyi.tcZz.domain.TcTbwc;
import com.ruoyi.tcZz.service.ITcMapService; import com.ruoyi.tcZz.service.ITcMapService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -72,15 +66,15 @@ public class TcMapController extends BaseController {
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcMap tcMap) { public AjaxResult add(@RequestBody TcMap tcMap) {
//根据Name判断如果已存在则调修改 //根据Name判断如果已存在则调修改
TcMap newtcMap=new TcMap(); TcMap newtcMap = new TcMap();
newtcMap.setName(tcMap.getName()); newtcMap.setName(tcMap.getName());
List<TcMap> list = tcMapService.selectTcMapList(newtcMap); List<TcMap> list = tcMapService.selectTcMapList(newtcMap);
if (!list.isEmpty()){ if (!list.isEmpty()) {
for (TcMap a :list) { for (TcMap a : list) {
tcMap.setId(a.getId()); tcMap.setId(a.getId());
tcMapService.updateTcMap(tcMap); tcMapService.updateTcMap(tcMap);
} }
}else { } else {
tcMapService.insertTcMap(tcMap); tcMapService.insertTcMap(tcMap);
} }
return AjaxResult.success(); return AjaxResult.success();
@ -98,13 +92,20 @@ public class TcMapController extends BaseController {
/** /**
* *
*/ */
@ApiOperation(value = "删除地图统计") @ApiOperation(value = "根据id删除地图统计")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcMapService.deleteTcMapByIds(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("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcMapService.updateByisStatus(isStatus,ids); tcMapService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcMap> util = new ExcelUtil<TcMap>(TcMap.class); ExcelUtil<TcMap> util = new ExcelUtil<TcMap>(TcMap.class);
util.importTemplateExcel(response, " 地图统计"); util.importTemplateExcel(response, " 地图统计");
} }

@ -4,7 +4,6 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcMap;
import com.ruoyi.tcZz.domain.TcMtlx; import com.ruoyi.tcZz.domain.TcMtlx;
import com.ruoyi.tcZz.service.ITcMtlxService; import com.ruoyi.tcZz.service.ITcMtlxService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -68,15 +67,15 @@ public class TcMtlxController extends BaseController {
public AjaxResult add(@RequestBody TcMtlx tcMtlx) { public AjaxResult add(@RequestBody TcMtlx tcMtlx) {
//根据Name判断如果已存在则调修改 //根据Name判断如果已存在则调修改
TcMtlx newtcMtlx=new TcMtlx(); TcMtlx newtcMtlx = new TcMtlx();
newtcMtlx.setName(tcMtlx.getName()); newtcMtlx.setName(tcMtlx.getName());
List<TcMtlx> list = tcMtlxService.selectTcMtlxList(newtcMtlx); List<TcMtlx> list = tcMtlxService.selectTcMtlxList(newtcMtlx);
if (!list.isEmpty()){ if (!list.isEmpty()) {
for (TcMtlx a :list) { for (TcMtlx a : list) {
tcMtlx.setId(a.getId()); tcMtlx.setId(a.getId());
tcMtlxService.updateTcMtlx(tcMtlx); tcMtlxService.updateTcMtlx(tcMtlx);
} }
}else { } else {
tcMtlxService.insertTcMtlx(tcMtlx); tcMtlxService.insertTcMtlx(tcMtlx);
} }
return AjaxResult.success(); return AjaxResult.success();

@ -4,8 +4,6 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcQlzxxddt;
import com.ruoyi.tcZz.service.ITcQlzxxddtService; import com.ruoyi.tcZz.service.ITcQlzxxddtService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -111,14 +109,13 @@ public class TcQlzxxddtController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcQlzxxddtService.updateByisStatus(isStatus,ids); tcQlzxxddtService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcQlzxxddt> util = new ExcelUtil<TcQlzxxddt>(TcQlzxxddt.class); ExcelUtil<TcQlzxxddt> util = new ExcelUtil<TcQlzxxddt>(TcQlzxxddt.class);
util.importTemplateExcel(response, " 清朗专项行动动态"); util.importTemplateExcel(response, " 清朗专项行动动态");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcQlzxxdsjtj;
import com.ruoyi.tcZz.service.ITcQlzxxdsjtjService; import com.ruoyi.tcZz.service.ITcQlzxxdsjtjService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -113,14 +108,13 @@ public class TcQlzxxdsjtjController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcQlzxxdsjtjService.updateByisStatus(isStatus,ids); tcQlzxxdsjtjService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcQlzxxdsjtj> util = new ExcelUtil<TcQlzxxdsjtj>(TcQlzxxdsjtj.class); ExcelUtil<TcQlzxxdsjtj> util = new ExcelUtil<TcQlzxxdsjtj>(TcQlzxxdsjtj.class);
util.importTemplateExcel(response, " 清郎专项行动数据统计"); util.importTemplateExcel(response, " 清郎专项行动数据统计");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcSdtb;
import com.ruoyi.tcZz.service.ITcSdtbService; import com.ruoyi.tcZz.service.ITcSdtbService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -113,14 +108,13 @@ public class TcSdtbController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcSdtbService.updateByisStatus(isStatus,ids); tcSdtbService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcSdtb> util = new ExcelUtil<TcSdtb>(TcSdtb.class); ExcelUtil<TcSdtb> util = new ExcelUtil<TcSdtb>(TcSdtb.class);
util.importTemplateExcel(response, " 属地通报"); util.importTemplateExcel(response, " 属地通报");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcSgjipTop5;
import com.ruoyi.tcZz.service.ITcSgjipTop5Service; import com.ruoyi.tcZz.service.ITcSgjipTop5Service;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -70,16 +65,16 @@ public class TcSgjipTop5Controller extends BaseController {
@ApiOperation(value = "新增受攻击IPTOP5") @ApiOperation(value = "新增受攻击IPTOP5")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcSgjipTop5 tcSgjipTop5) { public AjaxResult add(@RequestBody TcSgjipTop5 tcSgjipTop5) {
//根据S_attack_ip判断如果已存在则调修改 //根据S_attack_ip判断如果已存在则调修改
TcSgjipTop5 newtcSgjipTop5=new TcSgjipTop5(); TcSgjipTop5 newtcSgjipTop5 = new TcSgjipTop5();
newtcSgjipTop5.setSAttackIp(tcSgjipTop5.getSAttackIp()); newtcSgjipTop5.setSAttackIp(tcSgjipTop5.getSAttackIp());
List<TcSgjipTop5> list = tcSgjipTop5Service.selectTcSgjipTop5List(newtcSgjipTop5); List<TcSgjipTop5> list = tcSgjipTop5Service.selectTcSgjipTop5List(newtcSgjipTop5);
if (!list.isEmpty()){ if (!list.isEmpty()) {
for (TcSgjipTop5 a :list) { for (TcSgjipTop5 a : list) {
tcSgjipTop5.setId(a.getId()); tcSgjipTop5.setId(a.getId());
tcSgjipTop5Service.updateTcSgjipTop5(tcSgjipTop5); tcSgjipTop5Service.updateTcSgjipTop5(tcSgjipTop5);
} }
}else { } else {
tcSgjipTop5Service.insertTcSgjipTop5(tcSgjipTop5); tcSgjipTop5Service.insertTcSgjipTop5(tcSgjipTop5);
} }
return AjaxResult.success(); return AjaxResult.success();
@ -102,6 +97,7 @@ public class TcSgjipTop5Controller extends BaseController {
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcSgjipTop5Service.deleteTcSgjipTop5ByIds(ids)); return toAjax(tcSgjipTop5Service.deleteTcSgjipTop5ByIds(ids));
} }
/** /**
* *
*/ */
@ -124,14 +120,13 @@ public class TcSgjipTop5Controller extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcSgjipTop5Service.updateByisStatus(isStatus,ids); tcSgjipTop5Service.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcSgjipTop5> util = new ExcelUtil<TcSgjipTop5>(TcSgjipTop5.class); ExcelUtil<TcSgjipTop5> util = new ExcelUtil<TcSgjipTop5>(TcSgjipTop5.class);
util.importTemplateExcel(response, " 受攻击IPTOP5"); util.importTemplateExcel(response, " 受攻击IPTOP5");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcSjly;
import com.ruoyi.tcZz.service.ITcSjlyService; import com.ruoyi.tcZz.service.ITcSjlyService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -114,14 +109,13 @@ public class TcSjlyController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcSjlyService.updateByisStatus(isStatus,ids); tcSjlyService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcSjly> util = new ExcelUtil<TcSjly>(TcSjly.class); ExcelUtil<TcSjly> util = new ExcelUtil<TcSjly>(TcSjly.class);
util.importTemplateExcel(response, " 硬探针、软探针"); util.importTemplateExcel(response, " 硬探针、软探针");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcSjlytj;
import com.ruoyi.tcZz.service.ITcSjlytjService; import com.ruoyi.tcZz.service.ITcSjlytjService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -114,14 +109,13 @@ public class TcSjlytjController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcSjlytjService.updateByisStatus(isStatus,ids); tcSjlytjService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcSjlytj> util = new ExcelUtil<TcSjlytj>(TcSjlytj.class); ExcelUtil<TcSjlytj> util = new ExcelUtil<TcSjlytj>(TcSjlytj.class);
util.importTemplateExcel(response, " 数据来源统计"); util.importTemplateExcel(response, " 数据来源统计");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcSslx;
import com.ruoyi.tcZz.service.ITcSslxService; import com.ruoyi.tcZz.service.ITcSslxService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; 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("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcSslxService.updateByisStatus(isStatus,ids); tcSslxService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcSslx> util = new ExcelUtil<TcSslx>(TcSslx.class); ExcelUtil<TcSslx> util = new ExcelUtil<TcSslx>(TcSslx.class);
util.importTemplateExcel(response, " 涉事类型"); util.importTemplateExcel(response, " 涉事类型");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcTbcz;
import com.ruoyi.tcZz.service.ITcTbczService; import com.ruoyi.tcZz.service.ITcTbczService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; 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("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcTbczService.updateByisStatus(isStatus,ids); tcTbczService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcTbcz> util = new ExcelUtil<TcTbcz>(TcTbcz.class); ExcelUtil<TcTbcz> util = new ExcelUtil<TcTbcz>(TcTbcz.class);
util.importTemplateExcel(response, " 通报处置"); util.importTemplateExcel(response, " 通报处置");
} }

@ -1,20 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcTbwc;
import com.ruoyi.tcZz.service.ITcTbwcService; import com.ruoyi.tcZz.service.ITcTbwcService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -72,16 +66,16 @@ public class TcTbwcController extends BaseController {
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcTbwc tcTbwc) { public AjaxResult add(@RequestBody TcTbwc tcTbwc) {
//根据year + Time_name判断如果已存在则调修改 //根据year + Time_name判断如果已存在则调修改
TcTbwc newtcTbwc=new TcTbwc(); TcTbwc newtcTbwc = new TcTbwc();
newtcTbwc.setYear(tcTbwc.getYear()); newtcTbwc.setYear(tcTbwc.getYear());
newtcTbwc.setTimeName(tcTbwc.getTimeName()); newtcTbwc.setTimeName(tcTbwc.getTimeName());
List<TcTbwc> list = tcTbwcService.selectTcTbwcList(newtcTbwc); List<TcTbwc> list = tcTbwcService.selectTcTbwcList(newtcTbwc);
if (!list.isEmpty()){ if (!list.isEmpty()) {
for (TcTbwc a :list) { for (TcTbwc a : list) {
tcTbwc.setId(a.getId()); tcTbwc.setId(a.getId());
tcTbwcService.updateTcTbwc(tcTbwc); tcTbwcService.updateTcTbwc(tcTbwc);
} }
}else { } else {
tcTbwcService.insertTcTbwc(tcTbwc); tcTbwcService.insertTcTbwc(tcTbwc);
} }
@ -107,8 +101,6 @@ public class TcTbwcController extends BaseController {
} }
/** /**
* *
*/ */
@ -131,14 +123,13 @@ public class TcTbwcController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcTbwcService.updateByisStatus(isStatus,ids); tcTbwcService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcTbwc> util = new ExcelUtil<TcTbwc>(TcTbwc.class); ExcelUtil<TcTbwc> util = new ExcelUtil<TcTbwc>(TcTbwc.class);
util.importTemplateExcel(response, " 通报完成情况"); util.importTemplateExcel(response, " 通报完成情况");
} }

@ -1,24 +1,19 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcTtsum;
import com.ruoyi.tcZz.service.ITcTtsumService; import com.ruoyi.tcZz.service.ITcTtsumService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.ApiOperation;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -113,14 +108,13 @@ public class TcTtsumController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcTtsumService.updateByisStatus(isStatus,ids); tcTtsumService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcTtsum> util = new ExcelUtil<TcTtsum>(TcTtsum.class); ExcelUtil<TcTtsum> util = new ExcelUtil<TcTtsum>(TcTtsum.class);
util.importTemplateExcel(response, " 今日头条、快手"); util.importTemplateExcel(response, " 今日头条、快手");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcVx;
import com.ruoyi.tcZz.service.ITcVxService; import com.ruoyi.tcZz.service.ITcVxService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "微信") @Api(tags = "微信")
@RequestMapping("/tcZz/netManage/vx") @RequestMapping("/tcZz/netManage/vx")
public class TcVxController extends BaseController public class TcVxController extends BaseController {
{
@Autowired @Autowired
private ITcVxService tcVxService; private ITcVxService tcVxService;
/** /**
* *
*/ */
@ApiOperation(value = "查询微信列表",response = TcVx.class) @ApiOperation(value = "查询微信列表", response = TcVx.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcVx tcVx) public TableDataInfo list(TcVx tcVx) {
{
startPage(); startPage();
List<TcVx> list = tcVxService.selectTcVxList(tcVx); List<TcVx> list = tcVxService.selectTcVxList(tcVx);
return getDataTable(list); return getDataTable(list);
@ -51,8 +44,7 @@ public class TcVxController extends BaseController
*/ */
@ApiOperation(value = "导出微信列表") @ApiOperation(value = "导出微信列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcVx tcVx) public void export(HttpServletResponse response, TcVx tcVx) {
{
List<TcVx> list = tcVxService.selectTcVxList(tcVx); List<TcVx> list = tcVxService.selectTcVxList(tcVx);
ExcelUtil<TcVx> util = new ExcelUtil<TcVx>(TcVx.class); ExcelUtil<TcVx> util = new ExcelUtil<TcVx>(TcVx.class);
util.exportExcel(response, list, "微信数据"); util.exportExcel(response, list, "微信数据");
@ -63,8 +55,7 @@ public class TcVxController extends BaseController
*/ */
@ApiOperation(value = "获取微信详细信息") @ApiOperation(value = "获取微信详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcVxService.selectTcVxById(id)); return success(tcVxService.selectTcVxById(id));
} }
@ -73,8 +64,7 @@ public class TcVxController extends BaseController
*/ */
@ApiOperation(value = "新增微信") @ApiOperation(value = "新增微信")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcVx tcVx) public AjaxResult add(@RequestBody TcVx tcVx) {
{
return toAjax(tcVxService.insertTcVx(tcVx)); return toAjax(tcVxService.insertTcVx(tcVx));
} }
@ -83,8 +73,7 @@ public class TcVxController extends BaseController
*/ */
@ApiOperation(value = "修改微信") @ApiOperation(value = "修改微信")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcVx tcVx) public AjaxResult edit(@RequestBody TcVx tcVx) {
{
return toAjax(tcVxService.updateTcVx(tcVx)); return toAjax(tcVxService.updateTcVx(tcVx));
} }
@ -92,9 +81,8 @@ public class TcVxController extends BaseController
* *
*/ */
@ApiOperation(value = "删除微信") @ApiOperation(value = "删除微信")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcVxService.deleteTcVxByIds(ids)); return toAjax(tcVxService.deleteTcVxByIds(ids));
} }
@ -121,14 +109,13 @@ public class TcVxController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcVxService.updateByisStatus(isStatus,ids); tcVxService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcVx> util = new ExcelUtil<TcVx>(TcVx.class); ExcelUtil<TcVx> util = new ExcelUtil<TcVx>(TcVx.class);
util.importTemplateExcel(response, " 微信"); util.importTemplateExcel(response, " 微信");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWb;
import com.ruoyi.tcZz.service.ITcWbService; import com.ruoyi.tcZz.service.ITcWbService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "微博") @Api(tags = "微博")
@RequestMapping("/tcZz/netManage/wb") @RequestMapping("/tcZz/netManage/wb")
public class TcWbController extends BaseController public class TcWbController extends BaseController {
{
@Autowired @Autowired
private ITcWbService tcWbService; private ITcWbService tcWbService;
/** /**
* *
*/ */
@ApiOperation(value = "查询微博列表",response =TcWb.class ) @ApiOperation(value = "查询微博列表", response = TcWb.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcWb tcWb) public TableDataInfo list(TcWb tcWb) {
{
startPage(); startPage();
List<TcWb> list = tcWbService.selectTcWbList(tcWb); List<TcWb> list = tcWbService.selectTcWbList(tcWb);
return getDataTable(list); return getDataTable(list);
@ -51,8 +44,7 @@ public class TcWbController extends BaseController
*/ */
@ApiOperation(value = "导出微博列表") @ApiOperation(value = "导出微博列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcWb tcWb) public void export(HttpServletResponse response, TcWb tcWb) {
{
List<TcWb> list = tcWbService.selectTcWbList(tcWb); List<TcWb> list = tcWbService.selectTcWbList(tcWb);
ExcelUtil<TcWb> util = new ExcelUtil<TcWb>(TcWb.class); ExcelUtil<TcWb> util = new ExcelUtil<TcWb>(TcWb.class);
util.exportExcel(response, list, "微博数据"); util.exportExcel(response, list, "微博数据");
@ -63,8 +55,7 @@ public class TcWbController extends BaseController
*/ */
@ApiOperation(value = "获取微博详细信息") @ApiOperation(value = "获取微博详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcWbService.selectTcWbById(id)); return success(tcWbService.selectTcWbById(id));
} }
@ -73,8 +64,7 @@ public class TcWbController extends BaseController
*/ */
@ApiOperation(value = "新增微博") @ApiOperation(value = "新增微博")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcWb tcWb) public AjaxResult add(@RequestBody TcWb tcWb) {
{
return toAjax(tcWbService.insertTcWb(tcWb)); return toAjax(tcWbService.insertTcWb(tcWb));
} }
@ -83,8 +73,7 @@ public class TcWbController extends BaseController
*/ */
@ApiOperation(value = "修改微博") @ApiOperation(value = "修改微博")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcWb tcWb) public AjaxResult edit(@RequestBody TcWb tcWb) {
{
return toAjax(tcWbService.updateTcWb(tcWb)); return toAjax(tcWbService.updateTcWb(tcWb));
} }
@ -92,9 +81,8 @@ public class TcWbController extends BaseController
* *
*/ */
@ApiOperation(value = "删除微博") @ApiOperation(value = "删除微博")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcWbService.deleteTcWbByIds(ids)); return toAjax(tcWbService.deleteTcWbByIds(ids));
} }
@ -121,14 +109,13 @@ public class TcWbController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWbService.updateByisStatus(isStatus,ids); tcWbService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWb> util = new ExcelUtil<TcWb>(TcWb.class); ExcelUtil<TcWb> util = new ExcelUtil<TcWb>(TcWb.class);
util.importTemplateExcel(response, " 微博"); util.importTemplateExcel(response, " 微博");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWlaqzcqy;
import com.ruoyi.tcZz.service.ITcWlaqzcqyService; import com.ruoyi.tcZz.service.ITcWlaqzcqyService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "网络安全支持单位") @Api(tags = "网络安全支持单位")
@RequestMapping("/tcZz/networkEcology/wlaqzcqy") @RequestMapping("/tcZz/networkEcology/wlaqzcqy")
public class TcWlaqzcqyController extends BaseController public class TcWlaqzcqyController extends BaseController {
{
@Autowired @Autowired
private ITcWlaqzcqyService tcWlaqzcqyService; private ITcWlaqzcqyService tcWlaqzcqyService;
/** /**
* *
*/ */
@ApiOperation(value = "查询网络安全支持单位列表",response = TcWlaqzcqy.class) @ApiOperation(value = "查询网络安全支持单位列表", response = TcWlaqzcqy.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcWlaqzcqy tcWlaqzcqy) public TableDataInfo list(TcWlaqzcqy tcWlaqzcqy) {
{
startPage(); startPage();
List<TcWlaqzcqy> list = tcWlaqzcqyService.selectTcWlaqzcqyList(tcWlaqzcqy); List<TcWlaqzcqy> list = tcWlaqzcqyService.selectTcWlaqzcqyList(tcWlaqzcqy);
return getDataTable(list); return getDataTable(list);
@ -51,8 +44,7 @@ public class TcWlaqzcqyController extends BaseController
*/ */
@ApiOperation(value = "导出网络安全支持单位列表") @ApiOperation(value = "导出网络安全支持单位列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcWlaqzcqy tcWlaqzcqy) public void export(HttpServletResponse response, TcWlaqzcqy tcWlaqzcqy) {
{
List<TcWlaqzcqy> list = tcWlaqzcqyService.selectTcWlaqzcqyList(tcWlaqzcqy); List<TcWlaqzcqy> list = tcWlaqzcqyService.selectTcWlaqzcqyList(tcWlaqzcqy);
ExcelUtil<TcWlaqzcqy> util = new ExcelUtil<TcWlaqzcqy>(TcWlaqzcqy.class); ExcelUtil<TcWlaqzcqy> util = new ExcelUtil<TcWlaqzcqy>(TcWlaqzcqy.class);
util.exportExcel(response, list, "网络安全支持单位数据"); util.exportExcel(response, list, "网络安全支持单位数据");
@ -63,8 +55,7 @@ public class TcWlaqzcqyController extends BaseController
*/ */
@ApiOperation(value = "获取网络安全支持单位详细信息") @ApiOperation(value = "获取网络安全支持单位详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcWlaqzcqyService.selectTcWlaqzcqyById(id)); return success(tcWlaqzcqyService.selectTcWlaqzcqyById(id));
} }
@ -73,8 +64,7 @@ public class TcWlaqzcqyController extends BaseController
*/ */
@ApiOperation(value = "新增网络安全支持单位") @ApiOperation(value = "新增网络安全支持单位")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcWlaqzcqy tcWlaqzcqy) public AjaxResult add(@RequestBody TcWlaqzcqy tcWlaqzcqy) {
{
return toAjax(tcWlaqzcqyService.insertTcWlaqzcqy(tcWlaqzcqy)); return toAjax(tcWlaqzcqyService.insertTcWlaqzcqy(tcWlaqzcqy));
} }
@ -83,8 +73,7 @@ public class TcWlaqzcqyController extends BaseController
*/ */
@ApiOperation(value = "修改网络安全支持单位") @ApiOperation(value = "修改网络安全支持单位")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcWlaqzcqy tcWlaqzcqy) public AjaxResult edit(@RequestBody TcWlaqzcqy tcWlaqzcqy) {
{
return toAjax(tcWlaqzcqyService.updateTcWlaqzcqy(tcWlaqzcqy)); return toAjax(tcWlaqzcqyService.updateTcWlaqzcqy(tcWlaqzcqy));
} }
@ -92,14 +81,12 @@ public class TcWlaqzcqyController extends BaseController
* *
*/ */
@ApiOperation(value = "删除网络安全支持单位") @ApiOperation(value = "删除网络安全支持单位")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcWlaqzcqyService.deleteTcWlaqzcqyByIds(ids)); return toAjax(tcWlaqzcqyService.deleteTcWlaqzcqyByIds(ids));
} }
/** /**
* *
*/ */
@ -122,14 +109,13 @@ public class TcWlaqzcqyController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWlaqzcqyService.updateByisStatus(isStatus,ids); tcWlaqzcqyService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWlaqzcqy> util = new ExcelUtil<TcWlaqzcqy>(TcWlaqzcqy.class); ExcelUtil<TcWlaqzcqy> util = new ExcelUtil<TcWlaqzcqy>(TcWlaqzcqy.class);
util.importTemplateExcel(response, " 网络安全支持单位"); util.importTemplateExcel(response, " 网络安全支持单位");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcWldv;
import com.ruoyi.tcZz.service.ITcWldvService; import com.ruoyi.tcZz.service.ITcWldvService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -114,14 +109,13 @@ public class TcWldvController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWldvService.updateByisStatus(isStatus,ids); tcWldvService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWldv> util = new ExcelUtil<TcWldv>(TcWldv.class); ExcelUtil<TcWldv> util = new ExcelUtil<TcWldv>(TcWldv.class);
util.importTemplateExcel(response, " 网络大V"); util.importTemplateExcel(response, " 网络大V");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcWljgService; import com.ruoyi.tcZz.service.ITcWljgService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,8 +24,7 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "网络监测") @Api(tags = "网络监测")
@RequestMapping("/tcZz/networkSecurity/cybersecurity") @RequestMapping("/tcZz/networkSecurity/cybersecurity")
public class TcWljgController extends BaseController public class TcWljgController extends BaseController {
{
@Autowired @Autowired
private ITcWljgService tcWljgService; private ITcWljgService tcWljgService;
@ -40,8 +34,7 @@ public class TcWljgController extends BaseController
*/ */
@ApiOperation("导出网络监测列表") @ApiOperation("导出网络监测列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcWljg tcWljg) public void export(HttpServletResponse response, TcWljg tcWljg) {
{
List<TcWljg> list = tcWljgService.selectTcWljgList(tcWljg); List<TcWljg> list = tcWljgService.selectTcWljgList(tcWljg);
ExcelUtil<TcWljg> util = new ExcelUtil<TcWljg>(TcWljg.class); ExcelUtil<TcWljg> util = new ExcelUtil<TcWljg>(TcWljg.class);
util.exportExcel(response, list, "网络监测数据"); util.exportExcel(response, list, "网络监测数据");
@ -52,8 +45,7 @@ public class TcWljgController extends BaseController
*/ */
@ApiOperation("获取网络监测详细信息") @ApiOperation("获取网络监测详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcWljgService.selectTcWljgById(id)); return success(tcWljgService.selectTcWljgById(id));
} }
@ -62,8 +54,7 @@ public class TcWljgController extends BaseController
*/ */
@ApiOperation("新增网络监测") @ApiOperation("新增网络监测")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcWljg tcWljg) public AjaxResult add(@RequestBody TcWljg tcWljg) {
{
return toAjax(tcWljgService.insertTcWljg(tcWljg)); return toAjax(tcWljgService.insertTcWljg(tcWljg));
} }
@ -72,8 +63,7 @@ public class TcWljgController extends BaseController
*/ */
@ApiOperation("修改网络监测") @ApiOperation("修改网络监测")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcWljg tcWljg) public AjaxResult edit(@RequestBody TcWljg tcWljg) {
{
return toAjax(tcWljgService.updateTcWljg(tcWljg)); return toAjax(tcWljgService.updateTcWljg(tcWljg));
} }
@ -81,9 +71,8 @@ public class TcWljgController extends BaseController
* *
*/ */
@ApiOperation("删除网络监测") @ApiOperation("删除网络监测")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcWljgService.deleteTcWljgByIds(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") @GetMapping("/ListNoToken")
public TableDataInfo ListNoToken(TcWljg tcWljg) public TableDataInfo ListNoToken(TcWljg tcWljg) {
{
startPage(); startPage();
List<TcWljg> list = tcWljgService.selectTcWljgList(tcWljg); List<TcWljg> list = tcWljgService.selectTcWljgList(tcWljg);
return getDataTable(list); return getDataTable(list);
@ -122,14 +110,13 @@ public class TcWljgController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWljgService.updateByisStatus(isStatus,ids); tcWljgService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWljg> util = new ExcelUtil<TcWljg>(TcWljg.class); ExcelUtil<TcWljg> util = new ExcelUtil<TcWljg>(TcWljg.class);
util.importTemplateExcel(response, " 网络监测列表"); util.importTemplateExcel(response, " 网络监测列表");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWljgtj;
import com.ruoyi.tcZz.service.ITcWljgtjService; import com.ruoyi.tcZz.service.ITcWljgtjService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -36,7 +31,7 @@ public class TcWljgtjController extends BaseController {
/** /**
* *
*/ */
@ApiOperation(value = "查询网络监测统计列表",response =TcWljgtj.class ) @ApiOperation(value = "查询网络监测统计列表", response = TcWljgtj.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcWljgtj tcWljgtj) { public TableDataInfo list(TcWljgtj tcWljgtj) {
startPage(); startPage();
@ -114,14 +109,13 @@ public class TcWljgtjController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWljgtjService.updateByisStatus(isStatus,ids); tcWljgtjService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWljgtj> util = new ExcelUtil<TcWljgtj>(TcWljgtj.class); ExcelUtil<TcWljgtj> util = new ExcelUtil<TcWljgtj>(TcWljgtj.class);
util.importTemplateExcel(response, " 网络监测统计"); util.importTemplateExcel(response, " 网络监测统计");
} }

@ -1,24 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWlmqfzr;
import com.ruoyi.tcZz.service.ITcWlmqfzrService; import com.ruoyi.tcZz.service.ITcWlmqfzrService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -113,14 +109,13 @@ public class TcWlmqfzrController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWlmqfzrService.updateByisStatus(isStatus,ids); tcWlmqfzrService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWlmqfzr> util = new ExcelUtil<TcWlmqfzr>(TcWlmqfzr.class); ExcelUtil<TcWlmqfzr> util = new ExcelUtil<TcWlmqfzr>(TcWlmqfzr.class);
util.importTemplateExcel(response, " 网络民情负责人"); util.importTemplateExcel(response, " 网络民情负责人");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWlwmzyz;
import com.ruoyi.tcZz.service.ITcWlwmzyzService; import com.ruoyi.tcZz.service.ITcWlwmzyzService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -103,6 +98,7 @@ public class TcWlwmzyzController extends BaseController {
tcWlwmzyzService.importUser(tcWlwmzyzList); tcWlwmzyzService.importUser(tcWlwmzyzList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -113,14 +109,13 @@ public class TcWlwmzyzController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWlwmzyzService.updateByisStatus(isStatus,ids); tcWlwmzyzService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWlwmzyz> util = new ExcelUtil<TcWlwmzyz>(TcWlwmzyz.class); ExcelUtil<TcWlwmzyz> util = new ExcelUtil<TcWlwmzyz>(TcWlwmzyz.class);
util.importTemplateExcel(response, " 网络文明志愿者"); util.importTemplateExcel(response, " 网络文明志愿者");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWpwzlyqk;
import com.ruoyi.tcZz.service.ITcWpwzlyqkService; import com.ruoyi.tcZz.service.ITcWpwzlyqkService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -103,6 +98,7 @@ public class TcWpwzlyqkController extends BaseController {
tcWpwzlyqkService.importUser(tcWpwzlyqkList); tcWpwzlyqkService.importUser(tcWpwzlyqkList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -113,14 +109,13 @@ public class TcWpwzlyqkController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWpwzlyqkService.updateByisStatus(isStatus,ids); tcWpwzlyqkService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWpwzlyqk> util = new ExcelUtil<TcWpwzlyqk>(TcWpwzlyqk.class); ExcelUtil<TcWpwzlyqk> util = new ExcelUtil<TcWpwzlyqk>(TcWpwzlyqk.class);
util.importTemplateExcel(response, " 网评文章录用情况"); util.importTemplateExcel(response, " 网评文章录用情况");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWpy;
import com.ruoyi.tcZz.service.ITcWpyService; import com.ruoyi.tcZz.service.ITcWpyService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -92,7 +87,6 @@ public class TcWpyController extends BaseController {
} }
/** /**
* *
*/ */
@ -104,6 +98,7 @@ public class TcWpyController extends BaseController {
tcWpyService.importUser(tcWpyList); tcWpyService.importUser(tcWpyList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -114,14 +109,13 @@ public class TcWpyController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWpyService.updateByisStatus(isStatus,ids); tcWpyService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWpy> util = new ExcelUtil<TcWpy>(TcWpy.class); ExcelUtil<TcWpy> util = new ExcelUtil<TcWpy>(TcWpy.class);
util.importTemplateExcel(response, " 网评员"); util.importTemplateExcel(response, " 网评员");
} }

@ -1,26 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcWpyrwwcl;
import com.ruoyi.tcZz.service.ITcWpyrwwclService; import com.ruoyi.tcZz.service.ITcWpyrwwclService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -73,15 +67,15 @@ public class TcWpyrwwclController extends BaseController {
public AjaxResult add(@RequestBody TcWpyrwwcl tcWpyrwwcl) { public AjaxResult add(@RequestBody TcWpyrwwcl tcWpyrwwcl) {
//根据unit判断如果已存在则调修改 //根据unit判断如果已存在则调修改
TcWpyrwwcl newtcWpyrwwcl=new TcWpyrwwcl(); TcWpyrwwcl newtcWpyrwwcl = new TcWpyrwwcl();
newtcWpyrwwcl.setUnit(tcWpyrwwcl.getUnit()); newtcWpyrwwcl.setUnit(tcWpyrwwcl.getUnit());
List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(newtcWpyrwwcl); List<TcWpyrwwcl> list = tcWpyrwwclService.selectTcWpyrwwclList(newtcWpyrwwcl);
if (!list.isEmpty()){ if (!list.isEmpty()) {
for (TcWpyrwwcl a :list) { for (TcWpyrwwcl a : list) {
tcWpyrwwcl.setId(a.getId()); tcWpyrwwcl.setId(a.getId());
tcWpyrwwclService.updateTcWpyrwwcl(tcWpyrwwcl); tcWpyrwwclService.updateTcWpyrwwcl(tcWpyrwwcl);
} }
}else { } else {
tcWpyrwwclService.insertTcWpyrwwcl(tcWpyrwwcl); tcWpyrwwclService.insertTcWpyrwwcl(tcWpyrwwcl);
} }
return AjaxResult.success(); return AjaxResult.success();
@ -117,6 +111,7 @@ public class TcWpyrwwclController extends BaseController {
tcWpyrwwclService.importUser(tTcWpyrwwclList); tcWpyrwwclService.importUser(tTcWpyrwwclList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -127,14 +122,13 @@ public class TcWpyrwwclController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWpyrwwclService.updateByisStatus(isStatus,ids); tcWpyrwwclService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWpyrwwcl> util = new ExcelUtil<TcWpyrwwcl>(TcWpyrwwcl.class); ExcelUtil<TcWpyrwwcl> util = new ExcelUtil<TcWpyrwwcl>(TcWpyrwwcl.class);
util.importTemplateExcel(response, " 网评员任务完成率(网评系统)"); util.importTemplateExcel(response, " 网评员任务完成率(网评系统)");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcWz;
import com.ruoyi.tcZz.service.ITcWzService; import com.ruoyi.tcZz.service.ITcWzService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -103,6 +98,7 @@ public class TcWzController extends BaseController {
tcWzService.importUser(tcWzList); tcWzService.importUser(tcWzList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -113,14 +109,13 @@ public class TcWzController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcWzService.updateByisStatus(isStatus,ids); tcWzService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcWz> util = new ExcelUtil<TcWz>(TcWz.class); ExcelUtil<TcWz> util = new ExcelUtil<TcWz>(TcWz.class);
util.importTemplateExcel(response, " 网站"); util.importTemplateExcel(response, " 网站");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcXtjc;
import com.ruoyi.tcZz.service.ITcXtjcService; import com.ruoyi.tcZz.service.ITcXtjcService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -104,6 +99,7 @@ public class TcXtjcController extends BaseController {
tcXtjcService.importUser(tcXtjcList); tcXtjcService.importUser(tcXtjcList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -114,14 +110,13 @@ public class TcXtjcController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcXtjcService.updateByisStatus(isStatus,ids); tcXtjcService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcXtjc> util = new ExcelUtil<TcXtjc>(TcXtjc.class); ExcelUtil<TcXtjc> util = new ExcelUtil<TcXtjc>(TcXtjc.class);
util.importTemplateExcel(response, " 系统监测列表"); util.importTemplateExcel(response, " 系统监测列表");
} }

@ -1,26 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcYqbg;
import com.ruoyi.tcZz.service.ITcYqbgService; import com.ruoyi.tcZz.service.ITcYqbgService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -30,8 +24,7 @@ import org.springframework.web.multipart.MultipartFile;
@RestController @RestController
@Api(tags = "舆情报告") @Api(tags = "舆情报告")
@RequestMapping("/tcZz/netWorkYq/yqbg") @RequestMapping("/tcZz/netWorkYq/yqbg")
public class TcYqbgController extends BaseController public class TcYqbgController extends BaseController {
{
@Autowired @Autowired
private ITcYqbgService tcYqbgService; private ITcYqbgService tcYqbgService;
@ -40,8 +33,7 @@ public class TcYqbgController extends BaseController
*/ */
@ApiOperation(value = "查询舆情报告列表", response = TcYqbg.class) @ApiOperation(value = "查询舆情报告列表", response = TcYqbg.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcYqbg tcYqbg) public TableDataInfo list(TcYqbg tcYqbg) {
{
startPage(); startPage();
List<TcYqbg> list = tcYqbgService.selectTcYqbgList(tcYqbg); List<TcYqbg> list = tcYqbgService.selectTcYqbgList(tcYqbg);
return getDataTable(list); return getDataTable(list);
@ -52,8 +44,7 @@ public class TcYqbgController extends BaseController
*/ */
@ApiOperation(value = "导出舆情报告列表") @ApiOperation(value = "导出舆情报告列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYqbg tcYqbg) public void export(HttpServletResponse response, TcYqbg tcYqbg) {
{
List<TcYqbg> list = tcYqbgService.selectTcYqbgList(tcYqbg); List<TcYqbg> list = tcYqbgService.selectTcYqbgList(tcYqbg);
ExcelUtil<TcYqbg> util = new ExcelUtil<TcYqbg>(TcYqbg.class); ExcelUtil<TcYqbg> util = new ExcelUtil<TcYqbg>(TcYqbg.class);
util.exportExcel(response, list, "舆情报告数据"); util.exportExcel(response, list, "舆情报告数据");
@ -64,8 +55,7 @@ public class TcYqbgController extends BaseController
*/ */
@ApiOperation(value = "获取舆情报告详细信息") @ApiOperation(value = "获取舆情报告详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcYqbgService.selectTcYqbgById(id)); return success(tcYqbgService.selectTcYqbgById(id));
} }
@ -74,8 +64,7 @@ public class TcYqbgController extends BaseController
*/ */
@ApiOperation(value = "新增舆情报告") @ApiOperation(value = "新增舆情报告")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYqbg tcYqbg) public AjaxResult add(@RequestBody TcYqbg tcYqbg) {
{
return toAjax(tcYqbgService.insertTcYqbg(tcYqbg)); return toAjax(tcYqbgService.insertTcYqbg(tcYqbg));
} }
@ -84,8 +73,7 @@ public class TcYqbgController extends BaseController
*/ */
@ApiOperation(value = "修改舆情报告") @ApiOperation(value = "修改舆情报告")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYqbg tcYqbg) public AjaxResult edit(@RequestBody TcYqbg tcYqbg) {
{
return toAjax(tcYqbgService.updateTcYqbg(tcYqbg)); return toAjax(tcYqbgService.updateTcYqbg(tcYqbg));
} }
@ -93,9 +81,8 @@ public class TcYqbgController extends BaseController
* *
*/ */
@ApiOperation(value = "删除舆情报告") @ApiOperation(value = "删除舆情报告")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcYqbgService.deleteTcYqbgByIds(ids)); return toAjax(tcYqbgService.deleteTcYqbgByIds(ids));
} }
@ -111,6 +98,7 @@ public class TcYqbgController extends BaseController
tcYqbgService.importUser(tcYqbgList); tcYqbgService.importUser(tcYqbgList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -121,14 +109,13 @@ public class TcYqbgController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcYqbgService.updateByisStatus(isStatus,ids); tcYqbgService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcYqbg> util = new ExcelUtil<TcYqbg>(TcYqbg.class); ExcelUtil<TcYqbg> util = new ExcelUtil<TcYqbg>(TcYqbg.class);
util.importTemplateExcel(response, " 舆情报告"); util.importTemplateExcel(response, " 舆情报告");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcYqxxlnum;
import com.ruoyi.tcZz.service.ITcYqxxlnumService; import com.ruoyi.tcZz.service.ITcYqxxlnumService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -29,18 +24,16 @@ import org.springframework.web.multipart.MultipartFile;
@Api(tags = "舆情信息量统计") @Api(tags = "舆情信息量统计")
@RestController @RestController
@RequestMapping("/tcZz/netWorkYq/yqxxlnum") @RequestMapping("/tcZz/netWorkYq/yqxxlnum")
public class TcYqxxlnumController extends BaseController public class TcYqxxlnumController extends BaseController {
{
@Autowired @Autowired
private ITcYqxxlnumService tcYqxxlnumService; private ITcYqxxlnumService tcYqxxlnumService;
/** /**
* *
*/ */
@ApiOperation(value = "查询舆情信息量统计列表",response =TcYqxxlnum.class ) @ApiOperation(value = "查询舆情信息量统计列表", response = TcYqxxlnum.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcYqxxlnum tcYqxxlnum) public TableDataInfo list(TcYqxxlnum tcYqxxlnum) {
{
startPage(); startPage();
List<TcYqxxlnum> list = tcYqxxlnumService.selectTcYqxxlnumList(tcYqxxlnum); List<TcYqxxlnum> list = tcYqxxlnumService.selectTcYqxxlnumList(tcYqxxlnum);
return getDataTable(list); return getDataTable(list);
@ -51,8 +44,7 @@ public class TcYqxxlnumController extends BaseController
*/ */
@ApiOperation(value = "导出舆情信息量统计列表") @ApiOperation(value = "导出舆情信息量统计列表")
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYqxxlnum tcYqxxlnum) public void export(HttpServletResponse response, TcYqxxlnum tcYqxxlnum) {
{
List<TcYqxxlnum> list = tcYqxxlnumService.selectTcYqxxlnumList(tcYqxxlnum); List<TcYqxxlnum> list = tcYqxxlnumService.selectTcYqxxlnumList(tcYqxxlnum);
ExcelUtil<TcYqxxlnum> util = new ExcelUtil<TcYqxxlnum>(TcYqxxlnum.class); ExcelUtil<TcYqxxlnum> util = new ExcelUtil<TcYqxxlnum>(TcYqxxlnum.class);
util.exportExcel(response, list, "舆情信息量统计数据"); util.exportExcel(response, list, "舆情信息量统计数据");
@ -63,8 +55,7 @@ public class TcYqxxlnumController extends BaseController
*/ */
@ApiOperation(value = "获取舆情信息量统计详细信息") @ApiOperation(value = "获取舆情信息量统计详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcYqxxlnumService.selectTcYqxxlnumById(id)); return success(tcYqxxlnumService.selectTcYqxxlnumById(id));
} }
@ -73,8 +64,7 @@ public class TcYqxxlnumController extends BaseController
*/ */
@ApiOperation(value = "新增舆情信息量统计") @ApiOperation(value = "新增舆情信息量统计")
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYqxxlnum tcYqxxlnum) public AjaxResult add(@RequestBody TcYqxxlnum tcYqxxlnum) {
{
return toAjax(tcYqxxlnumService.insertTcYqxxlnum(tcYqxxlnum)); return toAjax(tcYqxxlnumService.insertTcYqxxlnum(tcYqxxlnum));
} }
@ -83,8 +73,7 @@ public class TcYqxxlnumController extends BaseController
*/ */
@ApiOperation(value = "修改舆情信息量统计") @ApiOperation(value = "修改舆情信息量统计")
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYqxxlnum tcYqxxlnum) public AjaxResult edit(@RequestBody TcYqxxlnum tcYqxxlnum) {
{
return toAjax(tcYqxxlnumService.updateTcYqxxlnum(tcYqxxlnum)); return toAjax(tcYqxxlnumService.updateTcYqxxlnum(tcYqxxlnum));
} }
@ -92,9 +81,8 @@ public class TcYqxxlnumController extends BaseController
* *
*/ */
@ApiOperation(value = "删除舆情信息量统计") @ApiOperation(value = "删除舆情信息量统计")
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) public AjaxResult remove(@PathVariable Long[] ids) {
{
return toAjax(tcYqxxlnumService.deleteTcYqxxlnumByIds(ids)); return toAjax(tcYqxxlnumService.deleteTcYqxxlnumByIds(ids));
} }
@ -110,6 +98,7 @@ public class TcYqxxlnumController extends BaseController
tcYqxxlnumService.importUser(tcYqxxlnumList); tcYqxxlnumService.importUser(tcYqxxlnumList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -120,14 +109,13 @@ public class TcYqxxlnumController extends BaseController
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcYqxxlnumService.updateByisStatus(isStatus,ids); tcYqxxlnumService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcYqxxlnum> util = new ExcelUtil<TcYqxxlnum>(TcYqxxlnum.class); ExcelUtil<TcYqxxlnum> util = new ExcelUtil<TcYqxxlnum>(TcYqxxlnum.class);
util.importTemplateExcel(response, " 舆情信息量统计"); util.importTemplateExcel(response, " 舆情信息量统计");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcYqxxltj;
import com.ruoyi.tcZz.service.ITcYqxxltjService; import com.ruoyi.tcZz.service.ITcYqxxltjService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; 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") @GetMapping("/list")
public TableDataInfo list(TcYqxxltj tcYqxxltj) { public TableDataInfo list(TcYqxxltj tcYqxxltj) {
startPage(); startPage();
@ -113,6 +108,7 @@ public class TcYqxxltjController extends BaseController {
tcYqxxltjService.importUser(YqxxltjList); tcYqxxltjService.importUser(YqxxltjList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -122,15 +118,14 @@ public class TcYqxxltjController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcYqxxltjService.updateByisStatus(isStatus,ids); tcYqxxltjService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcYqxxltj> util = new ExcelUtil<TcYqxxltj>(TcYqxxltj.class); ExcelUtil<TcYqxxltj> util = new ExcelUtil<TcYqxxltj>(TcYqxxltj.class);
util.importTemplateExcel(response, " 舆情信息量统计明細列表"); util.importTemplateExcel(response, " 舆情信息量统计明細列表");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcYqyj;
import com.ruoyi.tcZz.service.ITcYqyjService; import com.ruoyi.tcZz.service.ITcYqyjService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -102,6 +97,7 @@ public class TcYqyjController extends BaseController {
tcYqyjService.importUser(tcYqyjList); tcYqyjService.importUser(tcYqyjList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -111,15 +107,14 @@ public class TcYqyjController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcYqyjService.updateByisStatus(isStatus,ids); tcYqyjService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcYqyj> util = new ExcelUtil<TcYqyj>(TcYqyj.class); ExcelUtil<TcYqyj> util = new ExcelUtil<TcYqyj>(TcYqyj.class);
util.importTemplateExcel(response, " 舆情预警"); util.importTemplateExcel(response, " 舆情预警");
} }

@ -4,8 +4,6 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcYtlc;
import com.ruoyi.tcZz.service.ITcYtlcService; import com.ruoyi.tcZz.service.ITcYtlcService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -100,6 +98,7 @@ public class TcYtlcController extends BaseController {
tcYtlcService.importUser(tcYtlcList); tcYtlcService.importUser(tcYtlcList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -109,15 +108,14 @@ public class TcYtlcController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcYtlcService.updateByisStatus(isStatus,ids); tcYtlcService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcYtlc> util = new ExcelUtil<TcYtlc>(TcYtlc.class); ExcelUtil<TcYtlc> util = new ExcelUtil<TcYtlc>(TcYtlc.class);
util.importTemplateExcel(response, " 约谈流程"); util.importTemplateExcel(response, " 约谈流程");
} }

@ -1,18 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcYtlc;
import com.ruoyi.tcZz.domain.TcZbxq; import com.ruoyi.tcZz.domain.TcZbxq;
import com.ruoyi.tcZz.service.ITcZbxqService; import com.ruoyi.tcZz.service.ITcZbxqService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@ -102,6 +98,7 @@ public class TcZbxqController extends BaseController {
tcZbxqService.importUser(tcZbxqList); tcZbxqService.importUser(tcZbxqList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -111,15 +108,14 @@ public class TcZbxqController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcZbxqService.updateByisStatus(isStatus,ids); tcZbxqService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcZbxq> util = new ExcelUtil<TcZbxq>(TcZbxq.class); ExcelUtil<TcZbxq> util = new ExcelUtil<TcZbxq>(TcZbxq.class);
util.importTemplateExcel(response, " 转办量、转办详情"); util.importTemplateExcel(response, " 转办量、转办详情");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcZdgzxm;
import com.ruoyi.tcZz.service.ITcZdgzxmService; import com.ruoyi.tcZz.service.ITcZdgzxmService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; 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); tcZdgzxmService.importUser(tcZdgzxmList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -113,15 +108,14 @@ public class TcZdgzxmController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcZdgzxmService.updateByisStatus(isStatus,ids); tcZdgzxmService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcZdgzxm> util = new ExcelUtil<TcZdgzxm>(TcZdgzxm.class); ExcelUtil<TcZdgzxm> util = new ExcelUtil<TcZdgzxm>(TcZdgzxm.class);
util.importTemplateExcel(response, " 重点工作项目"); util.importTemplateExcel(response, " 重点工作项目");
} }

@ -4,8 +4,6 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcZdlyjg;
import com.ruoyi.tcZz.service.ITcZdlyjgService; import com.ruoyi.tcZz.service.ITcZdlyjgService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -99,6 +97,7 @@ public class TcZdlyjgController extends BaseController {
tcZdlyjgService.importUser(tcZdlyjgList); tcZdlyjgService.importUser(tcZdlyjgList);
return AjaxResult.success(); return AjaxResult.success();
} }
/** /**
* *
* *
@ -108,15 +107,14 @@ public class TcZdlyjgController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcZdlyjgService.updateByisStatus(isStatus,ids); tcZdlyjgService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcZdlyjg> util = new ExcelUtil<TcZdlyjg>(TcZdlyjg.class); ExcelUtil<TcZdlyjg> util = new ExcelUtil<TcZdlyjg>(TcZdlyjg.class);
util.importTemplateExcel(response, " 重点领域监管"); util.importTemplateExcel(response, " 重点领域监管");
} }

@ -4,8 +4,6 @@ import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcZdqyml;
import com.ruoyi.tcZz.service.ITcZdqymlService; import com.ruoyi.tcZz.service.ITcZdqymlService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -110,15 +108,14 @@ public class TcZdqymlController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcZdqymlService.updateByisStatus(isStatus,ids); tcZdqymlService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcZdqyml> util = new ExcelUtil<TcZdqyml>(TcZdqyml.class); ExcelUtil<TcZdqyml> util = new ExcelUtil<TcZdqyml>(TcZdqyml.class);
util.importTemplateExcel(response, " 重点企业名录"); util.importTemplateExcel(response, " 重点企业名录");
} }

@ -1,19 +1,14 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil; 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.domain.TcZfwz;
import com.ruoyi.tcZz.service.ITcZfwzService; import com.ruoyi.tcZz.service.ITcZfwzService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; 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("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus,@RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcZfwzService.updateByisStatus(isStatus,ids); tcZfwzService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcZfwz> util = new ExcelUtil<TcZfwz>(TcZfwz.class); ExcelUtil<TcZfwz> util = new ExcelUtil<TcZfwz>(TcZfwz.class);
util.importTemplateExcel(response, " 政府网站"); util.importTemplateExcel(response, " 政府网站");
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; 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.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; 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.domain.TcZxyh;
import com.ruoyi.tcZz.service.ITcZxyhService; import com.ruoyi.tcZz.service.ITcZxyhService;
import com.ruoyi.common.utils.poi.ExcelUtil; import io.swagger.annotations.Api;
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 org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
@ -114,14 +109,13 @@ public class TcZxyhController extends BaseController {
@ApiOperation("批量启用禁用") @ApiOperation("批量启用禁用")
@GetMapping("/isStatus") @GetMapping("/isStatus")
public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) { public AjaxResult isStatus(@RequestParam("isStatus") Integer isStatus, @RequestParam("ids") List<String> ids) {
tcZxyhService.updateByisStatus(isStatus,ids); tcZxyhService.updateByisStatus(isStatus, ids);
return AjaxResult.success(); return AjaxResult.success();
} }
@ApiOperation("通用下载excel模板") @ApiOperation("通用下载excel模板")
@PostMapping("/importTemplate") @PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response) public void importTemplate(HttpServletResponse response) {
{
ExcelUtil<TcZxyh> util = new ExcelUtil<TcZxyh>(TcZxyh.class); ExcelUtil<TcZxyh> util = new ExcelUtil<TcZxyh>(TcZxyh.class);
util.importTemplateExcel(response, " 最新隐患"); util.importTemplateExcel(response, " 最新隐患");
} }

@ -32,7 +32,7 @@ public class TcMap extends BaseEntity
/** 数量 */ /** 数量 */
@ApiModelProperty(value = "数量") @ApiModelProperty(value = "数量")
@Excel(name = "数量") @Excel(name = "数量")
private String count; private Integer count;
/** 1. /** 1.
2. 2.

@ -66,4 +66,11 @@ public interface TcMapMapper
* *
*/ */
public void updateByisStatus(@Param("isStatus") Integer isStatus, @Param("ids") List<String> ids); public void updateByisStatus(@Param("isStatus") Integer isStatus, @Param("ids") List<String> ids);
/**
*
*/
int deleteTcMap();
} }

@ -2,7 +2,6 @@ package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcMap; import com.ruoyi.tcZz.domain.TcMap;
/** /**
@ -11,8 +10,7 @@ import com.ruoyi.tcZz.domain.TcMap;
* @author ruoyi * @author ruoyi
* @date 2023-10-12 * @date 2023-10-12
*/ */
public interface ITcMapService public interface ITcMapService {
{
/** /**
* *
* *
@ -71,8 +69,13 @@ public interface ITcMapService
/** /**
* *
*/
public void updateByisStatus(Integer isStatus, List<String> ids);
/**
*
* *
* * @return
*/ */
public void updateByisStatus(Integer isStatus,List<String> ids); int deleteTcMap();
} }

@ -3,7 +3,6 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List; import java.util.List;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcMapMapper; import com.ruoyi.tcZz.mapper.TcMapMapper;
@ -106,4 +105,9 @@ public class TcMapServiceImpl implements ITcMapService {
public void updateByisStatus(Integer isStatus,List<String> ids) { public void updateByisStatus(Integer isStatus,List<String> ids) {
tcMapMapper.updateByisStatus(isStatus,ids); tcMapMapper.updateByisStatus(isStatus,ids);
} }
@Override
public int deleteTcMap() {
return tcMapMapper.deleteTcMap();
}
} }

@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if> <if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>
<if test="remark != null and remark != ''"> and remark = #{remark}</if> <if test="remark != null and remark != ''"> and remark = #{remark}</if>
</where> </where>
order by create_time desc order by count desc
</select> </select>
<select id="selectTcMapById" parameterType="Long" resultMap="TcMapResult"> <select id="selectTcMapById" parameterType="Long" resultMap="TcMapResult">
@ -98,4 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteTcMap">
delete from tc_map
</delete>
</mapper> </mapper>
Loading…
Cancel
Save