导入修改

duhanyu
dongdingding 1 year ago
parent afa260e04d
commit f339bb2555

@ -42,7 +42,7 @@ public class TcWljgtjController extends BaseController {
/** /**
* *
*/ */
@ApiOperation("查询网络监测统计列表") @ApiOperation(value = "查询网络监测统计列表",response =TcWljgtj.class )
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcWljgtj tcWljgtj) { public TableDataInfo list(TcWljgtj tcWljgtj) {
startPage(); startPage();

@ -32,7 +32,7 @@ import org.springframework.web.multipart.MultipartFile;
* @author ruoyi * @author ruoyi
* @date 2023-10-13 * @date 2023-10-13
*/ */
@Api("网络民情负责人") @Api(tags = "网络民情负责人")
@RestController @RestController
@RequestMapping("/tcZz/networkEcology/wlmqfzr") @RequestMapping("/tcZz/networkEcology/wlmqfzr")
public class TcWlmqfzrController extends BaseController { public class TcWlmqfzrController extends BaseController {

@ -33,7 +33,7 @@ import org.springframework.web.multipart.MultipartFile;
* @date 2023-10-13 * @date 2023-10-13
*/ */
@RestController @RestController
@Api("网评员任务完成率") @Api(tags = "网评员任务完成率")
@RequestMapping("/tcZz/networkEcology/wpyrwwcl") @RequestMapping("/tcZz/networkEcology/wpyrwwcl")
public class TcWpyrwwclController extends BaseController { public class TcWpyrwwclController extends BaseController {
@Autowired @Autowired

@ -39,22 +39,10 @@ public class TcXtjcController extends BaseController {
@Autowired @Autowired
private ITcXtjcService tcXtjcService; private ITcXtjcService tcXtjcService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:list')")
@GetMapping("/list")
public TableDataInfo list(TcXtjc tcXtjc) {
startPage();
List<TcXtjc> list = tcXtjcService.selectTcXtjcList(tcXtjc);
return getDataTable(list);
}
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:export')") @ApiOperation("导出系统监测列表")
@Log(title = "系统监测", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcXtjc tcXtjc) { public void export(HttpServletResponse response, TcXtjc tcXtjc) {
List<TcXtjc> list = tcXtjcService.selectTcXtjcList(tcXtjc); List<TcXtjc> list = tcXtjcService.selectTcXtjcList(tcXtjc);
@ -65,7 +53,7 @@ public class TcXtjcController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:query')") @ApiOperation("获取系统监测详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcXtjcService.selectTcXtjcById(id)); return success(tcXtjcService.selectTcXtjcById(id));
@ -74,8 +62,7 @@ public class TcXtjcController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:add')") @ApiOperation("新增系统监测")
@Log(title = "系统监测", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcXtjc tcXtjc) { public AjaxResult add(@RequestBody TcXtjc tcXtjc) {
return toAjax(tcXtjcService.insertTcXtjc(tcXtjc)); return toAjax(tcXtjcService.insertTcXtjc(tcXtjc));
@ -84,8 +71,7 @@ public class TcXtjcController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:edit')") @ApiOperation("修改系统监测")
@Log(title = "系统监测", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcXtjc tcXtjc) { public AjaxResult edit(@RequestBody TcXtjc tcXtjc) {
return toAjax(tcXtjcService.updateTcXtjc(tcXtjc)); return toAjax(tcXtjcService.updateTcXtjc(tcXtjc));
@ -94,8 +80,7 @@ public class TcXtjcController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:remove')") @ApiOperation("删除系统监测")
@Log(title = "系统监测", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcXtjcService.deleteTcXtjcByIds(ids)); return toAjax(tcXtjcService.deleteTcXtjcByIds(ids));

@ -3,7 +3,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcWz;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -22,6 +25,7 @@ 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 com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/** /**
* Controller * Controller
@ -30,7 +34,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-12 * @date 2023-10-12
*/ */
@RestController @RestController
@Api("舆情报告") @Api(tags = "舆情报告")
@RequestMapping("/tcZz/netWorkYq/yqbg") @RequestMapping("/tcZz/netWorkYq/yqbg")
public class TcYqbgController extends BaseController public class TcYqbgController extends BaseController
{ {
@ -40,7 +44,7 @@ public class TcYqbgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqbg:list')") @ApiOperation(value = "查询舆情报告列表", response = TcYqbg.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcYqbg tcYqbg) public TableDataInfo list(TcYqbg tcYqbg)
{ {
@ -52,8 +56,7 @@ public class TcYqbgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqbg:export')") @ApiOperation(value = "导出舆情报告列表")
@Log(title = "舆情报告", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYqbg tcYqbg) public void export(HttpServletResponse response, TcYqbg tcYqbg)
{ {
@ -65,7 +68,7 @@ public class TcYqbgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqbg:query')") @ApiOperation(value = "获取舆情报告详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
@ -75,8 +78,7 @@ public class TcYqbgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqbg:add')") @ApiOperation(value = "新增舆情报告")
@Log(title = "舆情报告", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYqbg tcYqbg) public AjaxResult add(@RequestBody TcYqbg tcYqbg)
{ {
@ -86,8 +88,7 @@ public class TcYqbgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqbg:edit')") @ApiOperation(value = "修改舆情报告")
@Log(title = "舆情报告", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYqbg tcYqbg) public AjaxResult edit(@RequestBody TcYqbg tcYqbg)
{ {
@ -97,11 +98,23 @@ public class TcYqbgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqbg:remove')") @ApiOperation(value = "删除舆情报告")
@Log(title = "舆情报告", businessType = BusinessType.DELETE)
@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));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcYqbg> util = new ExcelUtil<TcYqbg>(TcYqbg.class);
List<TcYqbg> tcYqbgList = util.importExcel(file.getInputStream());
tcYqbgService.importUser(tcYqbgList);
return AjaxResult.success();
}
} }

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; 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.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -20,6 +24,7 @@ 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 com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/** /**
* Controller * Controller
@ -27,6 +32,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author ruoyi * @author ruoyi
* @date 2023-10-12 * @date 2023-10-12
*/ */
@Api(tags = "舆情信息量统计")
@RestController @RestController
@RequestMapping("/tcZz/netWorkYq/yqxxlnum") @RequestMapping("/tcZz/netWorkYq/yqxxlnum")
public class TcYqxxlnumController extends BaseController public class TcYqxxlnumController extends BaseController
@ -37,7 +43,7 @@ public class TcYqxxlnumController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxlnum:list')") @ApiOperation(value = "查询舆情信息量统计列表",response =TcYqxxlnum.class )
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcYqxxlnum tcYqxxlnum) public TableDataInfo list(TcYqxxlnum tcYqxxlnum)
{ {
@ -49,8 +55,7 @@ public class TcYqxxlnumController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxlnum:export')") @ApiOperation(value = "导出舆情信息量统计列表")
@Log(title = "舆情信息量统计", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYqxxlnum tcYqxxlnum) public void export(HttpServletResponse response, TcYqxxlnum tcYqxxlnum)
{ {
@ -62,7 +67,7 @@ public class TcYqxxlnumController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxlnum:query')") @ApiOperation(value = "获取舆情信息量统计详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
@ -72,8 +77,7 @@ public class TcYqxxlnumController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxlnum:add')") @ApiOperation(value = "新增舆情信息量统计")
@Log(title = "舆情信息量统计", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYqxxlnum tcYqxxlnum) public AjaxResult add(@RequestBody TcYqxxlnum tcYqxxlnum)
{ {
@ -83,8 +87,7 @@ public class TcYqxxlnumController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxlnum:edit')") @ApiOperation(value = "修改舆情信息量统计")
@Log(title = "舆情信息量统计", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYqxxlnum tcYqxxlnum) public AjaxResult edit(@RequestBody TcYqxxlnum tcYqxxlnum)
{ {
@ -94,11 +97,23 @@ public class TcYqxxlnumController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxlnum:remove')") @ApiOperation(value = "删除舆情信息量统计")
@Log(title = "舆情信息量统计", businessType = BusinessType.DELETE)
@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));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcYqxxlnum> util = new ExcelUtil<TcYqxxlnum>(TcYqxxlnum.class);
List<TcYqxxlnum> tcYqxxlnumList = util.importExcel(file.getInputStream());
tcYqxxlnumService.importUser(tcYqxxlnumList);
return AjaxResult.success();
}
} }

@ -6,6 +6,7 @@ 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.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.TcYqxxltj;
import com.ruoyi.tcZz.service.ITcYqxxltjService; import com.ruoyi.tcZz.service.ITcYqxxltjService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -34,7 +35,7 @@ public class TcYqxxltjController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:list')") @ApiOperation(value = "查询舆情信息量统计明細列表",response = TcYqxxltj.class )
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcYqxxltj tcYqxxltj) { public TableDataInfo list(TcYqxxltj tcYqxxltj) {
startPage(); startPage();
@ -45,8 +46,7 @@ public class TcYqxxltjController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:export')") @ApiOperation(value = "导出舆情信息量统计明細列表")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYqxxltj tcYqxxltj) { public void export(HttpServletResponse response, TcYqxxltj tcYqxxltj) {
List<TcYqxxltj> list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj); List<TcYqxxltj> list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj);
@ -57,7 +57,7 @@ public class TcYqxxltjController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:query')") @ApiOperation(value = "获取舆情信息量统计明細详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcYqxxltjService.selectTcYqxxltjById(id)); return success(tcYqxxltjService.selectTcYqxxltjById(id));
@ -66,8 +66,7 @@ public class TcYqxxltjController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:add')") @ApiOperation(value = "新增舆情信息量统计明細")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYqxxltj tcYqxxltj) { public AjaxResult add(@RequestBody TcYqxxltj tcYqxxltj) {
return toAjax(tcYqxxltjService.insertTcYqxxltj(tcYqxxltj)); return toAjax(tcYqxxltjService.insertTcYqxxltj(tcYqxxltj));
@ -76,8 +75,7 @@ public class TcYqxxltjController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:edit')") @ApiOperation(value = "修改舆情信息量统计明細")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYqxxltj tcYqxxltj) { public AjaxResult edit(@RequestBody TcYqxxltj tcYqxxltj) {
return toAjax(tcYqxxltjService.updateTcYqxxltj(tcYqxxltj)); return toAjax(tcYqxxltjService.updateTcYqxxltj(tcYqxxltj));
@ -86,8 +84,7 @@ public class TcYqxxltjController extends BaseController {
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:remove')") @ApiOperation(value = "删除舆情信息量统计明細")
@Log(title = "舆情信息量统计明細", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcYqxxltjService.deleteTcYqxxltjByIds(ids)); return toAjax(tcYqxxltjService.deleteTcYqxxltjByIds(ids));
@ -96,7 +93,7 @@ public class TcYqxxltjController extends BaseController {
/** /**
* *
*/ */
@ApiOperation(value = "查询舆情信息量统计明細列表", response = TcYqxxltj.class) @ApiOperation(value = "查询舆情信息量统计明細列表")
@GetMapping("/ListNoToken") @GetMapping("/ListNoToken")
public TableDataInfo ListNoToken(TcYqxxltj tcYqxxltj) { public TableDataInfo ListNoToken(TcYqxxltj tcYqxxltj) {
startPage(); startPage();

@ -1,25 +1,23 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; 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.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcWljgtj;
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 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.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -28,19 +26,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-12 * @date 2023-10-12
*/ */
@RestController @RestController
@Api(tags = "舆情预警")
@RequestMapping("/tcZz/netWorkYq/yqyj") @RequestMapping("/tcZz/netWorkYq/yqyj")
public class TcYqyjController extends BaseController public class TcYqyjController extends BaseController {
{
@Autowired @Autowired
private ITcYqyjService tcYqyjService; private ITcYqyjService tcYqyjService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqyj:list')") @ApiOperation(value = "查询舆情预警列表", response = TcYqyj.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcYqyj tcYqyj) public TableDataInfo list(TcYqyj tcYqyj) {
{
startPage(); startPage();
List<TcYqyj> list = tcYqyjService.selectTcYqyjList(tcYqyj); List<TcYqyj> list = tcYqyjService.selectTcYqyjList(tcYqyj);
return getDataTable(list); return getDataTable(list);
@ -49,11 +46,9 @@ public class TcYqyjController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqyj:export')") @ApiOperation(value = "导出舆情预警列表")
@Log(title = "舆情预警", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYqyj tcYqyj) public void export(HttpServletResponse response, TcYqyj tcYqyj) {
{
List<TcYqyj> list = tcYqyjService.selectTcYqyjList(tcYqyj); List<TcYqyj> list = tcYqyjService.selectTcYqyjList(tcYqyj);
ExcelUtil<TcYqyj> util = new ExcelUtil<TcYqyj>(TcYqyj.class); ExcelUtil<TcYqyj> util = new ExcelUtil<TcYqyj>(TcYqyj.class);
util.exportExcel(response, list, "舆情预警数据"); util.exportExcel(response, list, "舆情预警数据");
@ -62,43 +57,48 @@ public class TcYqyjController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqyj:query')") @ApiOperation(value = "获取舆情预警详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcYqyjService.selectTcYqyjById(id)); return success(tcYqyjService.selectTcYqyjById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqyj:add')") @ApiOperation(value = "新增舆情预警")
@Log(title = "舆情预警", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYqyj tcYqyj) public AjaxResult add(@RequestBody TcYqyj tcYqyj) {
{
return toAjax(tcYqyjService.insertTcYqyj(tcYqyj)); return toAjax(tcYqyjService.insertTcYqyj(tcYqyj));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqyj:edit')") @ApiOperation(value = "修改舆情预警")
@Log(title = "舆情预警", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYqyj tcYqyj) public AjaxResult edit(@RequestBody TcYqyj tcYqyj) {
{
return toAjax(tcYqyjService.updateTcYqyj(tcYqyj)); return toAjax(tcYqyjService.updateTcYqyj(tcYqyj));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqyj:remove')") @ApiOperation(value = "删除舆情预警")
@Log(title = "舆情预警", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcYqyjService.deleteTcYqyjByIds(ids)); return toAjax(tcYqyjService.deleteTcYqyjByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcYqyj> util = new ExcelUtil<TcYqyj>(TcYqyj.class);
List<TcYqyj> tcYqyjList = util.importExcel(file.getInputStream());
tcYqyjService.importUser(tcYqyjList);
return AjaxResult.success();
}
} }

@ -3,6 +3,7 @@ package com.ruoyi.tcZz.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcWljgtj;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
@ -23,6 +24,7 @@ import com.ruoyi.tcZz.domain.TcYqzs;
import com.ruoyi.tcZz.service.ITcYqzsService; import com.ruoyi.tcZz.service.ITcYqzsService;
import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/** /**
* Controller * Controller
@ -33,31 +35,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
@Api(tags = "舆情走势图") @Api(tags = "舆情走势图")
@RestController @RestController
@RequestMapping("/tcZz/netWorkYq/yqzs") @RequestMapping("/tcZz/netWorkYq/yqzs")
public class TcYqzsController extends BaseController public class TcYqzsController extends BaseController {
{
@Autowired @Autowired
private ITcYqzsService tcYqzsService; private ITcYqzsService tcYqzsService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:list')")
@GetMapping("/list")
public TableDataInfo list(TcYqzs tcYqzs)
{
startPage();
List<TcYqzs> list = tcYqzsService.selectTcYqzsList(tcYqzs);
return getDataTable(list);
}
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:export')") @ApiOperation("导出舆情走势图列表")
@Log(title = "舆情走势图", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYqzs tcYqzs) public void export(HttpServletResponse response, TcYqzs tcYqzs) {
{
List<TcYqzs> list = tcYqzsService.selectTcYqzsList(tcYqzs); List<TcYqzs> list = tcYqzsService.selectTcYqzsList(tcYqzs);
ExcelUtil<TcYqzs> util = new ExcelUtil<TcYqzs>(TcYqzs.class); ExcelUtil<TcYqzs> util = new ExcelUtil<TcYqzs>(TcYqzs.class);
util.exportExcel(response, list, "舆情走势图数据"); util.exportExcel(response, list, "舆情走势图数据");
@ -66,55 +55,60 @@ public class TcYqzsController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:query')") @ApiOperation("获取舆情走势图详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcYqzsService.selectTcYqzsById(id)); return success(tcYqzsService.selectTcYqzsById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:add')") @ApiOperation("新增舆情走势图")
@Log(title = "舆情走势图", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYqzs tcYqzs) public AjaxResult add(@RequestBody TcYqzs tcYqzs) {
{
return toAjax(tcYqzsService.insertTcYqzs(tcYqzs)); return toAjax(tcYqzsService.insertTcYqzs(tcYqzs));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:edit')") @ApiOperation("修改舆情走势图")
@Log(title = "舆情走势图", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYqzs tcYqzs) public AjaxResult edit(@RequestBody TcYqzs tcYqzs) {
{
return toAjax(tcYqzsService.updateTcYqzs(tcYqzs)); return toAjax(tcYqzsService.updateTcYqzs(tcYqzs));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqzs:remove')") @ApiOperation("删除舆情走势图")
@Log(title = "舆情走势图", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcYqzsService.deleteTcYqzsByIds(ids)); return toAjax(tcYqzsService.deleteTcYqzsByIds(ids));
} }
/** /**
* *
*/ */
@ApiOperation(value = "查询舆情走势图列表",response =TcYqzs.class ) @ApiOperation(value = "查询舆情走势图列表", response = TcYqzs.class)
@GetMapping("/ListNoToken") @GetMapping("/ListNoToken")
public TableDataInfo ListNoToken(TcYqzs tcYqzs) public TableDataInfo ListNoToken(TcYqzs tcYqzs) {
{
startPage(); startPage();
List<TcYqzs> list = tcYqzsService.selectTcYqzsList(tcYqzs); List<TcYqzs> list = tcYqzsService.selectTcYqzsList(tcYqzs);
return getDataTable(list); return getDataTable(list);
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcYqzs> util = new ExcelUtil<TcYqzs>(TcYqzs.class);
List<TcYqzs> tcYqzsList = util.importExcel(file.getInputStream());
tcYqzsService.importUser(tcYqzsList);
return AjaxResult.success();
}
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.TcYtlc; import com.ruoyi.tcZz.domain.TcYtlc;
import com.ruoyi.tcZz.service.ITcYtlcService; import com.ruoyi.tcZz.service.ITcYtlcService;
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 javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -28,19 +23,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13 * @date 2023-10-13
*/ */
@RestController @RestController
@Api(tags = "约谈流程")
@RequestMapping("/tcZz/netManage/ytlc") @RequestMapping("/tcZz/netManage/ytlc")
public class TcYtlcController extends BaseController public class TcYtlcController extends BaseController {
{
@Autowired @Autowired
private ITcYtlcService tcYtlcService; private ITcYtlcService tcYtlcService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:list')") @ApiOperation(value = "查询约谈流程列表", response = TcYtlc.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcYtlc tcYtlc) public TableDataInfo list(TcYtlc tcYtlc) {
{
startPage(); startPage();
List<TcYtlc> list = tcYtlcService.selectTcYtlcList(tcYtlc); List<TcYtlc> list = tcYtlcService.selectTcYtlcList(tcYtlc);
return getDataTable(list); return getDataTable(list);
@ -49,11 +43,9 @@ public class TcYtlcController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:export')") @ApiOperation(value = "导出约谈流程列表")
@Log(title = "约谈流程", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcYtlc tcYtlc) public void export(HttpServletResponse response, TcYtlc tcYtlc) {
{
List<TcYtlc> list = tcYtlcService.selectTcYtlcList(tcYtlc); List<TcYtlc> list = tcYtlcService.selectTcYtlcList(tcYtlc);
ExcelUtil<TcYtlc> util = new ExcelUtil<TcYtlc>(TcYtlc.class); ExcelUtil<TcYtlc> util = new ExcelUtil<TcYtlc>(TcYtlc.class);
util.exportExcel(response, list, "约谈流程数据"); util.exportExcel(response, list, "约谈流程数据");
@ -62,43 +54,49 @@ public class TcYtlcController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:query')") @ApiOperation(value = "获取约谈流程详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcYtlcService.selectTcYtlcById(id)); return success(tcYtlcService.selectTcYtlcById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:add')") @ApiOperation(value = "新增约谈流程")
@Log(title = "约谈流程", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcYtlc tcYtlc) public AjaxResult add(@RequestBody TcYtlc tcYtlc) {
{
return toAjax(tcYtlcService.insertTcYtlc(tcYtlc)); return toAjax(tcYtlcService.insertTcYtlc(tcYtlc));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:edit')") @ApiOperation(value = "修改约谈流程")
@Log(title = "约谈流程", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcYtlc tcYtlc) public AjaxResult edit(@RequestBody TcYtlc tcYtlc) {
{
return toAjax(tcYtlcService.updateTcYtlc(tcYtlc)); return toAjax(tcYtlcService.updateTcYtlc(tcYtlc));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:remove')") @ApiOperation(value = "删除约谈流程")
@Log(title = "约谈流程", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcYtlcService.deleteTcYtlcByIds(ids)); return toAjax(tcYtlcService.deleteTcYtlcByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcYtlc> util = new ExcelUtil<TcYtlc>(TcYtlc.class);
List<TcYtlc> tcYtlcList = util.importExcel(file.getInputStream());
tcYtlcService.importUser(tcYtlcList);
return AjaxResult.success();
}
} }

@ -1,46 +1,43 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; 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.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcYtlc;
import com.ruoyi.tcZz.domain.TcZbxq; import com.ruoyi.tcZz.domain.TcZbxq;
import com.ruoyi.tcZz.service.ITcZbxqService; import com.ruoyi.tcZz.service.ITcZbxqService;
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.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
* @author ruoyi * @author ruoyi
* @date 2023-10-12 * @date 2023-10-12
*/ */
@RestController @RestController
@Api(tags = "转办量、转办详情")
@RequestMapping("/tcZz/netWorkYq/zbxq") @RequestMapping("/tcZz/netWorkYq/zbxq")
public class TcZbxqController extends BaseController public class TcZbxqController extends BaseController {
{
@Autowired @Autowired
private ITcZbxqService tcZbxqService; private ITcZbxqService tcZbxqService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:zbxq:list')") @ApiOperation(value = "查询 转办量、转办详情列表", response = TcZbxq.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcZbxq tcZbxq) public TableDataInfo list(TcZbxq tcZbxq) {
{
startPage(); startPage();
List<TcZbxq> list = tcZbxqService.selectTcZbxqList(tcZbxq); List<TcZbxq> list = tcZbxqService.selectTcZbxqList(tcZbxq);
return getDataTable(list); return getDataTable(list);
@ -49,11 +46,9 @@ public class TcZbxqController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:zbxq:export')") @ApiOperation(value = " 导出 转办量、转办详情列表")
@Log(title = " 转办量、转办详情", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcZbxq tcZbxq) public void export(HttpServletResponse response, TcZbxq tcZbxq) {
{
List<TcZbxq> list = tcZbxqService.selectTcZbxqList(tcZbxq); List<TcZbxq> list = tcZbxqService.selectTcZbxqList(tcZbxq);
ExcelUtil<TcZbxq> util = new ExcelUtil<TcZbxq>(TcZbxq.class); ExcelUtil<TcZbxq> util = new ExcelUtil<TcZbxq>(TcZbxq.class);
util.exportExcel(response, list, " 转办量、转办详情数据"); util.exportExcel(response, list, " 转办量、转办详情数据");
@ -62,43 +57,49 @@ public class TcZbxqController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:zbxq:query')") @ApiOperation(value = " 获取 转办量、转办详情详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcZbxqService.selectTcZbxqById(id)); return success(tcZbxqService.selectTcZbxqById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:zbxq:add')") @ApiOperation(value = "新增 转办量、转办详情")
@Log(title = " 转办量、转办详情", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcZbxq tcZbxq) public AjaxResult add(@RequestBody TcZbxq tcZbxq) {
{
return toAjax(tcZbxqService.insertTcZbxq(tcZbxq)); return toAjax(tcZbxqService.insertTcZbxq(tcZbxq));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:zbxq:edit')") @ApiOperation(value = "修改 转办量、转办详情")
@Log(title = " 转办量、转办详情", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcZbxq tcZbxq) public AjaxResult edit(@RequestBody TcZbxq tcZbxq) {
{
return toAjax(tcZbxqService.updateTcZbxq(tcZbxq)); return toAjax(tcZbxqService.updateTcZbxq(tcZbxq));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:zbxq:remove')") @ApiOperation(value = " 删除 转办量、转办详情")
@Log(title = " 转办量、转办详情", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZbxqService.deleteTcZbxqByIds(ids)); return toAjax(tcZbxqService.deleteTcZbxqByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcZbxq> util = new ExcelUtil<TcZbxq>(TcZbxq.class);
List<TcZbxq> tcZbxqList = util.importExcel(file.getInputStream());
tcZbxqService.importUser(tcZbxqList);
return AjaxResult.success();
}
} }

@ -1,25 +1,23 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; 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.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcWljgtj;
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 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.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -28,19 +26,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13 * @date 2023-10-13
*/ */
@RestController @RestController
@Api(tags = "重点工作项目")
@RequestMapping("/tcZz/netManage/zdgzxm") @RequestMapping("/tcZz/netManage/zdgzxm")
public class TcZdgzxmController extends BaseController public class TcZdgzxmController extends BaseController {
{
@Autowired @Autowired
private ITcZdgzxmService tcZdgzxmService; private ITcZdgzxmService tcZdgzxmService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdgzxm:list')") @ApiOperation(value = "查询重点工作项目列表", response = TcZdgzxm.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcZdgzxm tcZdgzxm) public TableDataInfo list(TcZdgzxm tcZdgzxm) {
{
startPage(); startPage();
List<TcZdgzxm> list = tcZdgzxmService.selectTcZdgzxmList(tcZdgzxm); List<TcZdgzxm> list = tcZdgzxmService.selectTcZdgzxmList(tcZdgzxm);
return getDataTable(list); return getDataTable(list);
@ -49,11 +46,9 @@ public class TcZdgzxmController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdgzxm:export')") @ApiOperation(value = "导出重点工作项目列表")
@Log(title = "重点工作项目", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcZdgzxm tcZdgzxm) public void export(HttpServletResponse response, TcZdgzxm tcZdgzxm) {
{
List<TcZdgzxm> list = tcZdgzxmService.selectTcZdgzxmList(tcZdgzxm); List<TcZdgzxm> list = tcZdgzxmService.selectTcZdgzxmList(tcZdgzxm);
ExcelUtil<TcZdgzxm> util = new ExcelUtil<TcZdgzxm>(TcZdgzxm.class); ExcelUtil<TcZdgzxm> util = new ExcelUtil<TcZdgzxm>(TcZdgzxm.class);
util.exportExcel(response, list, "重点工作项目数据"); util.exportExcel(response, list, "重点工作项目数据");
@ -62,43 +57,50 @@ public class TcZdgzxmController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdgzxm:query')") @ApiOperation(value = "获取重点工作项目详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcZdgzxmService.selectTcZdgzxmById(id)); return success(tcZdgzxmService.selectTcZdgzxmById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdgzxm:add')") @ApiOperation(value = "新增重点工作项目")
@Log(title = "重点工作项目", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcZdgzxm tcZdgzxm) public AjaxResult add(@RequestBody TcZdgzxm tcZdgzxm) {
{
return toAjax(tcZdgzxmService.insertTcZdgzxm(tcZdgzxm)); return toAjax(tcZdgzxmService.insertTcZdgzxm(tcZdgzxm));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdgzxm:edit')") @ApiOperation(value = "修改重点工作项目")
@Log(title = "重点工作项目", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcZdgzxm tcZdgzxm) public AjaxResult edit(@RequestBody TcZdgzxm tcZdgzxm) {
{
return toAjax(tcZdgzxmService.updateTcZdgzxm(tcZdgzxm)); return toAjax(tcZdgzxmService.updateTcZdgzxm(tcZdgzxm));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdgzxm:remove')") @ApiOperation(value = "删除重点工作项目")
@Log(title = "重点工作项目", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZdgzxmService.deleteTcZdgzxmByIds(ids)); return toAjax(tcZdgzxmService.deleteTcZdgzxmByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcZdgzxm> util = new ExcelUtil<TcZdgzxm>(TcZdgzxm.class);
List<TcZdgzxm> tcZdgzxmList = util.importExcel(file.getInputStream());
tcZdgzxmService.importUser(tcZdgzxmList);
return AjaxResult.success();
}
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.TcZdlyjg; import com.ruoyi.tcZz.domain.TcZdlyjg;
import com.ruoyi.tcZz.service.ITcZdlyjgService; import com.ruoyi.tcZz.service.ITcZdlyjgService;
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 javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -28,19 +23,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13 * @date 2023-10-13
*/ */
@RestController @RestController
@Api(tags = "重点领域监管")
@RequestMapping("/tcZz/netManage/zdlyjg") @RequestMapping("/tcZz/netManage/zdlyjg")
public class TcZdlyjgController extends BaseController public class TcZdlyjgController extends BaseController {
{
@Autowired @Autowired
private ITcZdlyjgService tcZdlyjgService; private ITcZdlyjgService tcZdlyjgService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdlyjg:list')") @ApiOperation(value = "查询重点领域监管列表", response = TcZdlyjg.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcZdlyjg tcZdlyjg) public TableDataInfo list(TcZdlyjg tcZdlyjg) {
{
startPage(); startPage();
List<TcZdlyjg> list = tcZdlyjgService.selectTcZdlyjgList(tcZdlyjg); List<TcZdlyjg> list = tcZdlyjgService.selectTcZdlyjgList(tcZdlyjg);
return getDataTable(list); return getDataTable(list);
@ -49,11 +43,9 @@ public class TcZdlyjgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdlyjg:export')") @ApiOperation(value = "导出重点领域监管列表")
@Log(title = "重点领域监管", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcZdlyjg tcZdlyjg) public void export(HttpServletResponse response, TcZdlyjg tcZdlyjg) {
{
List<TcZdlyjg> list = tcZdlyjgService.selectTcZdlyjgList(tcZdlyjg); List<TcZdlyjg> list = tcZdlyjgService.selectTcZdlyjgList(tcZdlyjg);
ExcelUtil<TcZdlyjg> util = new ExcelUtil<TcZdlyjg>(TcZdlyjg.class); ExcelUtil<TcZdlyjg> util = new ExcelUtil<TcZdlyjg>(TcZdlyjg.class);
util.exportExcel(response, list, "重点领域监管数据"); util.exportExcel(response, list, "重点领域监管数据");
@ -62,43 +54,48 @@ public class TcZdlyjgController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdlyjg:query')") @ApiOperation(value = "获取重点领域监管详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcZdlyjgService.selectTcZdlyjgById(id)); return success(tcZdlyjgService.selectTcZdlyjgById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdlyjg:add')") @ApiOperation(value = "新增重点领域监管")
@Log(title = "重点领域监管", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcZdlyjg tcZdlyjg) public AjaxResult add(@RequestBody TcZdlyjg tcZdlyjg) {
{
return toAjax(tcZdlyjgService.insertTcZdlyjg(tcZdlyjg)); return toAjax(tcZdlyjgService.insertTcZdlyjg(tcZdlyjg));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdlyjg:edit')") @ApiOperation(value = "修改重点领域监管")
@Log(title = "重点领域监管", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcZdlyjg tcZdlyjg) public AjaxResult edit(@RequestBody TcZdlyjg tcZdlyjg) {
{
return toAjax(tcZdlyjgService.updateTcZdlyjg(tcZdlyjg)); return toAjax(tcZdlyjgService.updateTcZdlyjg(tcZdlyjg));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdlyjg:remove')") @ApiOperation(value = "删除重点领域监管")
@Log(title = "重点领域监管", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZdlyjgService.deleteTcZdlyjgByIds(ids)); return toAjax(tcZdlyjgService.deleteTcZdlyjgByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcZdlyjg> util = new ExcelUtil<TcZdlyjg>(TcZdlyjg.class);
List<TcZdlyjg> tcZdlyjgList = util.importExcel(file.getInputStream());
tcZdlyjgService.importUser(tcZdlyjgList);
return AjaxResult.success();
}
} }

@ -1,25 +1,20 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.TcZdqyml; import com.ruoyi.tcZz.domain.TcZdqyml;
import com.ruoyi.tcZz.service.ITcZdqymlService; import com.ruoyi.tcZz.service.ITcZdqymlService;
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 javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -28,19 +23,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13 * @date 2023-10-13
*/ */
@RestController @RestController
@Api(tags = "重点企业名录")
@RequestMapping("/tcZz/netManage/zdqyml") @RequestMapping("/tcZz/netManage/zdqyml")
public class TcZdqymlController extends BaseController public class TcZdqymlController extends BaseController {
{
@Autowired @Autowired
private ITcZdqymlService tcZdqymlService; private ITcZdqymlService tcZdqymlService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdqyml:list')") @ApiOperation(value = "查询重点企业名录列表", response = TcZdqyml.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcZdqyml tcZdqyml) public TableDataInfo list(TcZdqyml tcZdqyml) {
{
startPage(); startPage();
List<TcZdqyml> list = tcZdqymlService.selectTcZdqymlList(tcZdqyml); List<TcZdqyml> list = tcZdqymlService.selectTcZdqymlList(tcZdqyml);
return getDataTable(list); return getDataTable(list);
@ -49,11 +43,9 @@ public class TcZdqymlController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdqyml:export')") @ApiOperation(value = "导出重点企业名录列表")
@Log(title = "重点企业名录", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcZdqyml tcZdqyml) public void export(HttpServletResponse response, TcZdqyml tcZdqyml) {
{
List<TcZdqyml> list = tcZdqymlService.selectTcZdqymlList(tcZdqyml); List<TcZdqyml> list = tcZdqymlService.selectTcZdqymlList(tcZdqyml);
ExcelUtil<TcZdqyml> util = new ExcelUtil<TcZdqyml>(TcZdqyml.class); ExcelUtil<TcZdqyml> util = new ExcelUtil<TcZdqyml>(TcZdqyml.class);
util.exportExcel(response, list, "重点企业名录数据"); util.exportExcel(response, list, "重点企业名录数据");
@ -62,43 +54,49 @@ public class TcZdqymlController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdqyml:query')") @ApiOperation(value = "获取重点企业名录详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcZdqymlService.selectTcZdqymlById(id)); return success(tcZdqymlService.selectTcZdqymlById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdqyml:add')") @ApiOperation(value = "新增重点企业名录")
@Log(title = "重点企业名录", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcZdqyml tcZdqyml) public AjaxResult add(@RequestBody TcZdqyml tcZdqyml) {
{
return toAjax(tcZdqymlService.insertTcZdqyml(tcZdqyml)); return toAjax(tcZdqymlService.insertTcZdqyml(tcZdqyml));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdqyml:edit')") @ApiOperation(value = "修改重点企业名录")
@Log(title = "重点企业名录", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcZdqyml tcZdqyml) public AjaxResult edit(@RequestBody TcZdqyml tcZdqyml) {
{
return toAjax(tcZdqymlService.updateTcZdqyml(tcZdqyml)); return toAjax(tcZdqymlService.updateTcZdqyml(tcZdqyml));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/netManage:zdqyml:remove')") @ApiOperation(value = "删除重点企业名录")
@Log(title = "重点企业名录", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZdqymlService.deleteTcZdqymlByIds(ids)); return toAjax(tcZdqymlService.deleteTcZdqymlByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcZdqyml> util = new ExcelUtil<TcZdqyml>(TcZdqyml.class);
List<TcZdqyml> tcZdqymlList = util.importExcel(file.getInputStream());
tcZdqymlService.importUser(tcZdqymlList);
return AjaxResult.success();
}
} }

@ -1,25 +1,23 @@
package com.ruoyi.tcZz.controller; package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; 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.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcWljgtj;
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 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.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -28,19 +26,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13 * @date 2023-10-13
*/ */
@RestController @RestController
@Api(tags = "政府网站")
@RequestMapping("/tcZz/networkSecurity/zfwz") @RequestMapping("/tcZz/networkSecurity/zfwz")
public class TcZfwzController extends BaseController public class TcZfwzController extends BaseController {
{
@Autowired @Autowired
private ITcZfwzService tcZfwzService; private ITcZfwzService tcZfwzService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zfwz:list')") @ApiOperation(value = "查询政府网站列表", response = TcZfwz.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcZfwz tcZfwz) public TableDataInfo list(TcZfwz tcZfwz) {
{
startPage(); startPage();
List<TcZfwz> list = tcZfwzService.selectTcZfwzList(tcZfwz); List<TcZfwz> list = tcZfwzService.selectTcZfwzList(tcZfwz);
return getDataTable(list); return getDataTable(list);
@ -49,11 +46,9 @@ public class TcZfwzController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zfwz:export')") @ApiOperation(value = "导出政府网站列表")
@Log(title = "政府网站", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcZfwz tcZfwz) public void export(HttpServletResponse response, TcZfwz tcZfwz) {
{
List<TcZfwz> list = tcZfwzService.selectTcZfwzList(tcZfwz); List<TcZfwz> list = tcZfwzService.selectTcZfwzList(tcZfwz);
ExcelUtil<TcZfwz> util = new ExcelUtil<TcZfwz>(TcZfwz.class); ExcelUtil<TcZfwz> util = new ExcelUtil<TcZfwz>(TcZfwz.class);
util.exportExcel(response, list, "政府网站数据"); util.exportExcel(response, list, "政府网站数据");
@ -62,43 +57,50 @@ public class TcZfwzController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zfwz:query')") @ApiOperation(value = "获取政府网站详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcZfwzService.selectTcZfwzById(id)); return success(tcZfwzService.selectTcZfwzById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zfwz:add')") @ApiOperation(value = "新增政府网站")
@Log(title = "政府网站", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcZfwz tcZfwz) public AjaxResult add(@RequestBody TcZfwz tcZfwz) {
{
return toAjax(tcZfwzService.insertTcZfwz(tcZfwz)); return toAjax(tcZfwzService.insertTcZfwz(tcZfwz));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zfwz:edit')") @ApiOperation(value = "修改政府网站")
@Log(title = "政府网站", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcZfwz tcZfwz) public AjaxResult edit(@RequestBody TcZfwz tcZfwz) {
{
return toAjax(tcZfwzService.updateTcZfwz(tcZfwz)); return toAjax(tcZfwzService.updateTcZfwz(tcZfwz));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zfwz:remove')") @ApiOperation(value = "删除政府网站")
@Log(title = "政府网站", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZfwzService.deleteTcZfwzByIds(ids)); return toAjax(tcZfwzService.deleteTcZfwzByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcZfwz> util = new ExcelUtil<TcZfwz>(TcZfwz.class);
List<TcZfwz> tcZfwzList = util.importExcel(file.getInputStream());
tcZfwzService.importUser(tcZfwzList);
return AjaxResult.success();
}
} }

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; 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.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -20,6 +24,7 @@ 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 com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/** /**
* Controller * Controller
@ -28,19 +33,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-12 * @date 2023-10-12
*/ */
@RestController @RestController
@Api(tags = "最新隐患")
@RequestMapping("/tcZz/networkSecurity/zxyh") @RequestMapping("/tcZz/networkSecurity/zxyh")
public class TcZxyhController extends BaseController public class TcZxyhController extends BaseController {
{
@Autowired @Autowired
private ITcZxyhService tcZxyhService; private ITcZxyhService tcZxyhService;
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zxyh:list')") @ApiOperation(value = "查询最新隐患列表", response = TcZxyh.class)
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(TcZxyh tcZxyh) public TableDataInfo list(TcZxyh tcZxyh) {
{
startPage(); startPage();
List<TcZxyh> list = tcZxyhService.selectTcZxyhList(tcZxyh); List<TcZxyh> list = tcZxyhService.selectTcZxyhList(tcZxyh);
return getDataTable(list); return getDataTable(list);
@ -49,11 +53,9 @@ public class TcZxyhController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zxyh:export')") @ApiOperation(value = "导出最新隐患列表")
@Log(title = "最新隐患", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, TcZxyh tcZxyh) public void export(HttpServletResponse response, TcZxyh tcZxyh) {
{
List<TcZxyh> list = tcZxyhService.selectTcZxyhList(tcZxyh); List<TcZxyh> list = tcZxyhService.selectTcZxyhList(tcZxyh);
ExcelUtil<TcZxyh> util = new ExcelUtil<TcZxyh>(TcZxyh.class); ExcelUtil<TcZxyh> util = new ExcelUtil<TcZxyh>(TcZxyh.class);
util.exportExcel(response, list, "最新隐患数据"); util.exportExcel(response, list, "最新隐患数据");
@ -62,43 +64,49 @@ public class TcZxyhController extends BaseController
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zxyh:query')") @ApiOperation(value = "获取最新隐患详细信息")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) public AjaxResult getInfo(@PathVariable("id") Long id) {
{
return success(tcZxyhService.selectTcZxyhById(id)); return success(tcZxyhService.selectTcZxyhById(id));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zxyh:add')") @ApiOperation(value = "新增最新隐患")
@Log(title = "最新隐患", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody TcZxyh tcZxyh) public AjaxResult add(@RequestBody TcZxyh tcZxyh) {
{
return toAjax(tcZxyhService.insertTcZxyh(tcZxyh)); return toAjax(tcZxyhService.insertTcZxyh(tcZxyh));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zxyh:edit')") @ApiOperation(value = "修改最新隐患")
@Log(title = "最新隐患", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody TcZxyh tcZxyh) public AjaxResult edit(@RequestBody TcZxyh tcZxyh) {
{
return toAjax(tcZxyhService.updateTcZxyh(tcZxyh)); return toAjax(tcZxyhService.updateTcZxyh(tcZxyh));
} }
/** /**
* *
*/ */
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:zxyh:remove')") @ApiOperation(value = "删除最新隐患")
@Log(title = "最新隐患", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}")
@DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) {
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZxyhService.deleteTcZxyhByIds(ids)); return toAjax(tcZxyhService.deleteTcZxyhByIds(ids));
} }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcZxyh> util = new ExcelUtil<TcZxyh>(TcZxyh.class);
List<TcZxyh> tcZxyhList = util.importExcel(file.getInputStream());
tcZxyhService.importUser(tcZxyhList);
return AjaxResult.success();
}
} }

@ -37,7 +37,7 @@ public class TcBzhan extends BaseEntity
/** 账号ID */ /** 账号ID */
@Excel(name = "账号ID") @Excel(name = "账号ID")
@ApiModelProperty(value = "账号ID") @ApiModelProperty(value = "账号ID")
private Long zhId; private String zhId;
/** 网址 */ /** 网址 */
@Excel(name = "网址") @Excel(name = "网址")

@ -63,7 +63,7 @@ public interface ITcWzService
/** /**
* *
* *
* @return * @return
*/ */

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcYqbg; import com.ruoyi.tcZz.domain.TcYqbg;
/** /**
@ -58,4 +60,12 @@ public interface ITcYqbgService
* @return * @return
*/ */
public int deleteTcYqbgById(Long id); public int deleteTcYqbgById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcYqbg> tcYqbgList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcYqxxlnum; import com.ruoyi.tcZz.domain.TcYqxxlnum;
/** /**
@ -58,4 +60,13 @@ public interface ITcYqxxlnumService
* @return * @return
*/ */
public int deleteTcYqxxlnumById(Long id); public int deleteTcYqxxlnumById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcYqxxlnum> tcYqxxlnumList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcYqyj; import com.ruoyi.tcZz.domain.TcYqyj;
/** /**
@ -58,4 +60,13 @@ public interface ITcYqyjService
* @return * @return
*/ */
public int deleteTcYqyjById(Long id); public int deleteTcYqyjById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcYqyj> tcYqyjList);
} }

@ -1,16 +1,16 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcYqzs; import com.ruoyi.tcZz.domain.TcYqzs;
import java.util.List;
/** /**
* Service * Service
* *
* @author ruoyi * @author ruoyi
* @date 2023-10-13 * @date 2023-10-13
*/ */
public interface ITcYqzsService public interface ITcYqzsService {
{
/** /**
* *
* *
@ -58,4 +58,12 @@ public interface ITcYqzsService
* @return * @return
*/ */
public int deleteTcYqzsById(Long id); public int deleteTcYqzsById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcYqzs> tcYqzsList);
} }

@ -1,16 +1,16 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcYtlc; import com.ruoyi.tcZz.domain.TcYtlc;
import java.util.List;
/** /**
* Service * Service
* *
* @author ruoyi * @author ruoyi
* @date 2023-10-13 * @date 2023-10-13
*/ */
public interface ITcYtlcService public interface ITcYtlcService {
{
/** /**
* *
* *
@ -58,4 +58,12 @@ public interface ITcYtlcService
* @return * @return
*/ */
public int deleteTcYtlcById(Long id); public int deleteTcYtlcById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcYtlc> tcYtlcList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcYtlc;
import com.ruoyi.tcZz.domain.TcZbxq; import com.ruoyi.tcZz.domain.TcZbxq;
/** /**
@ -58,4 +60,12 @@ public interface ITcZbxqService
* @return * @return
*/ */
public int deleteTcZbxqById(Long id); public int deleteTcZbxqById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcZbxq> tcZbxqList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcZdgzxm; import com.ruoyi.tcZz.domain.TcZdgzxm;
/** /**
@ -58,4 +60,13 @@ public interface ITcZdgzxmService
* @return * @return
*/ */
public int deleteTcZdgzxmById(Long id); public int deleteTcZdgzxmById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcZdgzxm> tcZdgzxmList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcZdlyjg; import com.ruoyi.tcZz.domain.TcZdlyjg;
/** /**
@ -58,4 +60,13 @@ public interface ITcZdlyjgService
* @return * @return
*/ */
public int deleteTcZdlyjgById(Long id); public int deleteTcZdlyjgById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcZdlyjg> tcZdlyjgList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcZdqyml; import com.ruoyi.tcZz.domain.TcZdqyml;
/** /**
@ -58,4 +60,14 @@ public interface ITcZdqymlService
* @return * @return
*/ */
public int deleteTcZdqymlById(Long id); public int deleteTcZdqymlById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcZdqyml> tcZdqymlList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcZfwz; import com.ruoyi.tcZz.domain.TcZfwz;
/** /**
@ -58,4 +60,13 @@ public interface ITcZfwzService
* @return * @return
*/ */
public int deleteTcZfwzById(Long id); public int deleteTcZfwzById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcZfwz> tcZfwzList);
} }

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service; package com.ruoyi.tcZz.service;
import java.util.List; import java.util.List;
import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.domain.TcZxyh; import com.ruoyi.tcZz.domain.TcZxyh;
/** /**
@ -58,4 +60,13 @@ public interface ITcZxyhService
* @return * @return
*/ */
public int deleteTcZxyhById(Long id); public int deleteTcZxyhById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcZxyh> tcZxyhList);
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcYqbgMapper; import com.ruoyi.tcZz.mapper.TcYqbgMapper;
@ -93,4 +94,17 @@ public class TcYqbgServiceImpl implements ITcYqbgService
{ {
return tcYqbgMapper.deleteTcYqbgById(id); return tcYqbgMapper.deleteTcYqbgById(id);
} }
@Override
public String importUser(List<TcYqbg> tcYqbgList) {
StringBuilder successMsg = new StringBuilder();
if (!tcYqbgList.isEmpty()) {
for (TcYqbg tcYqbg : tcYqbgList) {
tcYqbgMapper.insertTcYqbg(tcYqbg);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcYqxxlnumMapper; import com.ruoyi.tcZz.mapper.TcYqxxlnumMapper;
@ -93,4 +94,16 @@ public class TcYqxxlnumServiceImpl implements ITcYqxxlnumService
{ {
return tcYqxxlnumMapper.deleteTcYqxxlnumById(id); return tcYqxxlnumMapper.deleteTcYqxxlnumById(id);
} }
@Override
public String importUser(List<TcYqxxlnum> tcYqxxlnumList) {
StringBuilder successMsg = new StringBuilder();
if (!tcYqxxlnumList.isEmpty()) {
for (TcYqxxlnum tcYqxxlnum : tcYqxxlnumList) {
tcYqxxlnumMapper.insertTcYqxxlnum(tcYqxxlnum);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcYqyjMapper; import com.ruoyi.tcZz.mapper.TcYqyjMapper;
@ -93,4 +94,16 @@ public class TcYqyjServiceImpl implements ITcYqyjService
{ {
return tcYqyjMapper.deleteTcYqyjById(id); return tcYqyjMapper.deleteTcYqyjById(id);
} }
@Override
public String importUser(List<TcYqyj> tcYqyjList) {
StringBuilder successMsg = new StringBuilder();
if (!tcYqyjList.isEmpty()) {
for (TcYqyj tcYqyj : tcYqyjList) {
tcYqyjMapper.insertTcYqyj(tcYqyj);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcYqzsMapper; import com.ruoyi.tcZz.mapper.TcYqzsMapper;
@ -93,4 +94,16 @@ public class TcYqzsServiceImpl implements ITcYqzsService
{ {
return tcYqzsMapper.deleteTcYqzsById(id); return tcYqzsMapper.deleteTcYqzsById(id);
} }
@Override
public String importUser(List<TcYqzs> tcYqzsList) {
StringBuilder successMsg = new StringBuilder();
if (!tcYqzsList.isEmpty()) {
for (TcYqzs tcYqzs : tcYqzsList) {
tcYqzsMapper.insertTcYqzs(tcYqzs);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcYtlcMapper; import com.ruoyi.tcZz.mapper.TcYtlcMapper;
@ -93,4 +94,16 @@ public class TcYtlcServiceImpl implements ITcYtlcService
{ {
return tcYtlcMapper.deleteTcYtlcById(id); return tcYtlcMapper.deleteTcYtlcById(id);
} }
@Override
public String importUser(List<TcYtlc> tcYtlcList) {
StringBuilder successMsg = new StringBuilder();
if (!tcYtlcList.isEmpty()) {
for (TcYtlc tcYtlc : tcYtlcList) {
tcYtlcMapper.insertTcYtlc(tcYtlc);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcYtlc;
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.TcZbxqMapper; import com.ruoyi.tcZz.mapper.TcZbxqMapper;
@ -93,4 +94,16 @@ public class TcZbxqServiceImpl implements ITcZbxqService
{ {
return tcZbxqMapper.deleteTcZbxqById(id); return tcZbxqMapper.deleteTcZbxqById(id);
} }
@Override
public String importUser(List<TcZbxq> tcZbxqList) {
StringBuilder successMsg = new StringBuilder();
if (!tcZbxqList.isEmpty()) {
for (TcZbxq tcZbxq : tcZbxqList) {
tcZbxqMapper.insertTcZbxq(tcZbxq);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcZdgzxmMapper; import com.ruoyi.tcZz.mapper.TcZdgzxmMapper;
@ -93,4 +94,16 @@ public class TcZdgzxmServiceImpl implements ITcZdgzxmService
{ {
return tcZdgzxmMapper.deleteTcZdgzxmById(id); return tcZdgzxmMapper.deleteTcZdgzxmById(id);
} }
@Override
public String importUser(List<TcZdgzxm> tcZdgzxmList) {
StringBuilder successMsg = new StringBuilder();
if (!tcZdgzxmList.isEmpty()) {
for (TcZdgzxm tcZdgzxm : tcZdgzxmList) {
tcZdgzxmMapper.insertTcZdgzxm(tcZdgzxm);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcZdlyjgMapper; import com.ruoyi.tcZz.mapper.TcZdlyjgMapper;
@ -93,4 +94,16 @@ public class TcZdlyjgServiceImpl implements ITcZdlyjgService
{ {
return tcZdlyjgMapper.deleteTcZdlyjgById(id); return tcZdlyjgMapper.deleteTcZdlyjgById(id);
} }
@Override
public String importUser(List<TcZdlyjg> tcZdlyjgList) {
StringBuilder successMsg = new StringBuilder();
if (!tcZdlyjgList.isEmpty()) {
for (TcZdlyjg tcZdlyjg : tcZdlyjgList) {
tcZdlyjgMapper.insertTcZdlyjg(tcZdlyjg);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcZdqymlMapper; import com.ruoyi.tcZz.mapper.TcZdqymlMapper;
@ -93,4 +94,16 @@ public class TcZdqymlServiceImpl implements ITcZdqymlService
{ {
return tcZdqymlMapper.deleteTcZdqymlById(id); return tcZdqymlMapper.deleteTcZdqymlById(id);
} }
@Override
public String importUser(List<TcZdqyml> tcZdqymlList) {
StringBuilder successMsg = new StringBuilder();
if (!tcZdqymlList.isEmpty()) {
for (TcZdqyml tcZdqyml : tcZdqymlList) {
tcZdqymlMapper.insertTcZdqyml(tcZdqyml);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -2,6 +2,7 @@ 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.TcWljgtj;
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.TcZfwzMapper; import com.ruoyi.tcZz.mapper.TcZfwzMapper;
@ -93,4 +94,16 @@ public class TcZfwzServiceImpl implements ITcZfwzService
{ {
return tcZfwzMapper.deleteTcZfwzById(id); return tcZfwzMapper.deleteTcZfwzById(id);
} }
@Override
public String importUser(List<TcZfwz> tcZfwzList) {
StringBuilder successMsg = new StringBuilder();
if (!tcZfwzList.isEmpty()) {
for (TcZfwz tcZfwz : tcZfwzList) {
tcZfwzMapper.insertTcZfwz(tcZfwz);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -1,7 +1,9 @@
package com.ruoyi.tcZz.service.impl; 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.TcWljgtj;
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.TcZxyhMapper; import com.ruoyi.tcZz.mapper.TcZxyhMapper;
@ -15,8 +17,7 @@ import com.ruoyi.tcZz.service.ITcZxyhService;
* @date 2023-10-12 * @date 2023-10-12
*/ */
@Service @Service
public class TcZxyhServiceImpl implements ITcZxyhService public class TcZxyhServiceImpl implements ITcZxyhService {
{
@Autowired @Autowired
private TcZxyhMapper tcZxyhMapper; private TcZxyhMapper tcZxyhMapper;
@ -27,8 +28,7 @@ public class TcZxyhServiceImpl implements ITcZxyhService
* @return * @return
*/ */
@Override @Override
public TcZxyh selectTcZxyhById(Long id) public TcZxyh selectTcZxyhById(Long id) {
{
return tcZxyhMapper.selectTcZxyhById(id); return tcZxyhMapper.selectTcZxyhById(id);
} }
@ -39,8 +39,7 @@ public class TcZxyhServiceImpl implements ITcZxyhService
* @return * @return
*/ */
@Override @Override
public List<TcZxyh> selectTcZxyhList(TcZxyh tcZxyh) public List<TcZxyh> selectTcZxyhList(TcZxyh tcZxyh) {
{
return tcZxyhMapper.selectTcZxyhList(tcZxyh); return tcZxyhMapper.selectTcZxyhList(tcZxyh);
} }
@ -51,8 +50,7 @@ public class TcZxyhServiceImpl implements ITcZxyhService
* @return * @return
*/ */
@Override @Override
public int insertTcZxyh(TcZxyh tcZxyh) public int insertTcZxyh(TcZxyh tcZxyh) {
{
tcZxyh.setCreateTime(DateUtils.getNowDate()); tcZxyh.setCreateTime(DateUtils.getNowDate());
return tcZxyhMapper.insertTcZxyh(tcZxyh); return tcZxyhMapper.insertTcZxyh(tcZxyh);
} }
@ -64,8 +62,7 @@ public class TcZxyhServiceImpl implements ITcZxyhService
* @return * @return
*/ */
@Override @Override
public int updateTcZxyh(TcZxyh tcZxyh) public int updateTcZxyh(TcZxyh tcZxyh) {
{
tcZxyh.setUpdateTime(DateUtils.getNowDate()); tcZxyh.setUpdateTime(DateUtils.getNowDate());
return tcZxyhMapper.updateTcZxyh(tcZxyh); return tcZxyhMapper.updateTcZxyh(tcZxyh);
} }
@ -77,8 +74,7 @@ public class TcZxyhServiceImpl implements ITcZxyhService
* @return * @return
*/ */
@Override @Override
public int deleteTcZxyhByIds(Long[] ids) public int deleteTcZxyhByIds(Long[] ids) {
{
return tcZxyhMapper.deleteTcZxyhByIds(ids); return tcZxyhMapper.deleteTcZxyhByIds(ids);
} }
@ -89,8 +85,20 @@ public class TcZxyhServiceImpl implements ITcZxyhService
* @return * @return
*/ */
@Override @Override
public int deleteTcZxyhById(Long id) public int deleteTcZxyhById(Long id) {
{
return tcZxyhMapper.deleteTcZxyhById(id); return tcZxyhMapper.deleteTcZxyhById(id);
} }
@Override
public String importUser(List<TcZxyh> tcZxyhList) {
StringBuilder successMsg = new StringBuilder();
if (!tcZxyhList.isEmpty()) {
for (TcZxyh tcZxyh : tcZxyhList) {
tcZxyhMapper.insertTcZxyh(tcZxyh);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
} }

@ -117,7 +117,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/tcZz/networkSecurity/xtjc/ListNoToken", "/tcZz/netWorkYq/yqxxltj/ListNoToken").permitAll() "/tcZz/networkSecurity/xtjc/ListNoToken", "/tcZz/netWorkYq/yqxxltj/ListNoToken").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**",
"/tcZz/networkSecurity/cybersecurity/common/importExcel","/tcZz/networkEcology/**/**","/tcZz/networkSecurity/**/**" "/tcZz/networkSecurity/cybersecurity/common/importExcel","/tcZz/networkEcology/**/**","/tcZz/networkSecurity/**/**"
,"/tcZz/netManage/**/**" ,"/tcZz/netManage/**/**","/tcZz/netWorkYq/**/**"
).permitAll() ).permitAll()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated() .anyRequest().authenticated()

Loading…
Cancel
Save