导入修改

duhanyu
dongdingding 1 year ago
parent 71f1f68bf1
commit c15359f70f

@ -1,46 +1,39 @@
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.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.TcAqg;
import com.ruoyi.tcZz.service.ITcAqgService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-13
*/
@Api(tags = "网络安全官")
@RestController
@RequestMapping("/tcZz/networkEcology/aqg")
public class TcAqgController extends BaseController
{
public class TcAqgController extends BaseController {
@Autowired
private ITcAqgService tcAqgService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:aqg:list')")
@ApiOperation(value = "查询网络安全官列表", response = TcAqg.class)
@GetMapping("/list")
public TableDataInfo list(TcAqg tcAqg)
{
public TableDataInfo list(TcAqg tcAqg) {
startPage();
List<TcAqg> list = tcAqgService.selectTcAqgList(tcAqg);
return getDataTable(list);
@ -49,11 +42,9 @@ public class TcAqgController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:aqg:export')")
@Log(title = "网络安全官", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出网络安全官列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcAqg tcAqg)
{
public void export(HttpServletResponse response, TcAqg tcAqg) {
List<TcAqg> list = tcAqgService.selectTcAqgList(tcAqg);
ExcelUtil<TcAqg> util = new ExcelUtil<TcAqg>(TcAqg.class);
util.exportExcel(response, list, "网络安全官数据");
@ -62,43 +53,48 @@ public class TcAqgController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:aqg:query')")
@ApiOperation(value = "获取网络安全官详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcAqgService.selectTcAqgById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:aqg:add')")
@Log(title = "网络安全官", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增网络安全官")
@PostMapping
public AjaxResult add(@RequestBody TcAqg tcAqg)
{
public AjaxResult add(@RequestBody TcAqg tcAqg) {
return toAjax(tcAqgService.insertTcAqg(tcAqg));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:aqg:edit')")
@Log(title = "网络安全官", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改网络安全官")
@PutMapping
public AjaxResult edit(@RequestBody TcAqg tcAqg)
{
public AjaxResult edit(@RequestBody TcAqg tcAqg) {
return toAjax(tcAqgService.updateTcAqg(tcAqg));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:aqg:remove')")
@Log(title = "网络安全官", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除网络安全官")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcAqgService.deleteTcAqgByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcAqg> util = new ExcelUtil<TcAqg>(TcAqg.class);
List<TcAqg> tcAqgList = util.importExcel(file.getInputStream());
tcAqgService.importUser(tcAqgList);
return AjaxResult.success();
}
}

@ -33,7 +33,7 @@ import org.springframework.web.multipart.MultipartFile;
* @date 2023-10-12
*/
@RestController
@Api("安全隐患")
@Api(tags = "安全隐患")
@RequestMapping("/tcZz/networkSecurity/aqyh")
public class TcAqyhController extends BaseController
{
@ -104,15 +104,15 @@ public class TcAqyhController extends BaseController
return toAjax(tcAqyhService.deleteTcAqyhByIds(ids));
}
// /**
// * 导入
// */
// @ApiOperation("通用导入excel信息")
// @PostMapping("/common/importExcel")
// public AjaxResult importExcel(MultipartFile file) throws Exception {
// ExcelUtil<TcAqyh> util = new ExcelUtil<TcAqyh>(TcAqyh.class);
// List<TcAqyh> tcXtjcList = util.importExcel(file.getInputStream());
// tcAqyhService.importUser(tcXtjcList);
// return AjaxResult.success();
// }
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcAqyh> util = new ExcelUtil<TcAqyh>(TcAqyh.class);
List<TcAqyh> tcXtjcList = util.importExcel(file.getInputStream());
tcAqyhService.importUser(tcXtjcList);
return AjaxResult.success();
}
}

@ -2,6 +2,11 @@ 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.GetMapping;
@ -20,6 +25,7 @@ import com.ruoyi.tcZz.domain.TcBjsjwp;
import com.ruoyi.tcZz.service.ITcBjsjwpService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
@ -27,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @author ruoyi
* @date 2023-10-13
*/
@Api(tags = "本级上级网评指令比例(月)")
@RestController
@RequestMapping("/tcZz/networkEcology/bjsjwp")
public class TcBjsjwpController extends BaseController
@ -37,7 +44,7 @@ public class TcBjsjwpController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:bjsjwp:list')")
@ApiOperation(value = "查询本级上级网评指令比例(月)列表",response = TcBjsjwp.class )
@GetMapping("/list")
public TableDataInfo list(TcBjsjwp tcBjsjwp)
{
@ -49,8 +56,7 @@ public class TcBjsjwpController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:bjsjwp:export')")
@Log(title = "本级上级网评指令比例(月)", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出本级上级网评指令比例(月)列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcBjsjwp tcBjsjwp)
{
@ -62,7 +68,7 @@ public class TcBjsjwpController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:bjsjwp:query')")
@ApiOperation(value = "获取本级上级网评指令比例(月)详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,8 +78,7 @@ public class TcBjsjwpController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:bjsjwp:add')")
@Log(title = "本级上级网评指令比例(月)", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增本级上级网评指令比例(月)")
@PostMapping
public AjaxResult add(@RequestBody TcBjsjwp tcBjsjwp)
{
@ -83,8 +88,7 @@ public class TcBjsjwpController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:bjsjwp:edit')")
@Log(title = "本级上级网评指令比例(月)", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改本级上级网评指令比例(月)")
@PutMapping
public AjaxResult edit(@RequestBody TcBjsjwp tcBjsjwp)
{
@ -94,11 +98,23 @@ public class TcBjsjwpController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:bjsjwp:remove')")
@Log(title = "本级上级网评指令比例(月)", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除本级上级网评指令比例(月)")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcBjsjwpService.deleteTcBjsjwpByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcBjsjwp> util = new ExcelUtil<TcBjsjwp>(TcBjsjwp.class);
List<TcBjsjwp> tcBjsjwpList = util.importExcel(file.getInputStream());
tcBjsjwpService.importUser(tcBjsjwpList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.GetMapping;
@ -20,6 +24,7 @@ import com.ruoyi.tcZz.domain.TcBmtb;
import com.ruoyi.tcZz.service.ITcBmtbService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
@ -28,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-12
*/
@RestController
@Api(tags = "部门通报")
@RequestMapping("/tcZz/networkSecurity/bmtb")
public class TcBmtbController extends BaseController
{
@ -37,7 +43,7 @@ public class TcBmtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:bmtb:list')")
@ApiOperation(value = "查询部门通报列表",response = TcBmtb.class)
@GetMapping("/list")
public TableDataInfo list(TcBmtb tcBmtb)
{
@ -49,8 +55,7 @@ public class TcBmtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:bmtb:export')")
@Log(title = "部门通报", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出部门通报列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcBmtb tcBmtb)
{
@ -62,7 +67,7 @@ public class TcBmtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:bmtb:query')")
@ApiOperation(value = "获取部门通报详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,8 +77,7 @@ public class TcBmtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:bmtb:add')")
@Log(title = "部门通报", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增部门通报")
@PostMapping
public AjaxResult add(@RequestBody TcBmtb tcBmtb)
{
@ -83,8 +87,7 @@ public class TcBmtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:bmtb:edit')")
@Log(title = "部门通报", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改部门通报")
@PutMapping
public AjaxResult edit(@RequestBody TcBmtb tcBmtb)
{
@ -94,11 +97,22 @@ public class TcBmtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:bmtb:remove')")
@Log(title = "部门通报", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除部门通报")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcBmtbService.deleteTcBmtbByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcBmtb> util = new ExcelUtil<TcBmtb>(TcBmtb.class);
List<TcBmtb> tcWljgList = util.importExcel(file.getInputStream());
tcBmtbService.importUser(tcWljgList);
return AjaxResult.success();
}
}

@ -1,46 +1,40 @@
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.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.TcBzhan;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcBzhanService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* BController
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "B站、小红书")
@RequestMapping("/tcZz/netManage/bzhan")
public class TcBzhanController extends BaseController
{
public class TcBzhanController extends BaseController {
@Autowired
private ITcBzhanService tcBzhanService;
/**
* B
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:bzhan:list')")
@ApiOperation(value = "查询B站、小红书列表", response = TcBzhan.class)
@GetMapping("/list")
public TableDataInfo list(TcBzhan tcBzhan)
{
public TableDataInfo list(TcBzhan tcBzhan) {
startPage();
List<TcBzhan> list = tcBzhanService.selectTcBzhanList(tcBzhan);
return getDataTable(list);
@ -49,11 +43,9 @@ public class TcBzhanController extends BaseController
/**
* B
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:bzhan:export')")
@Log(title = "B站、小红书", businessType = BusinessType.EXPORT)
@ApiOperation(value = "出B站、小红书列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcBzhan tcBzhan)
{
public void export(HttpServletResponse response, TcBzhan tcBzhan) {
List<TcBzhan> list = tcBzhanService.selectTcBzhanList(tcBzhan);
ExcelUtil<TcBzhan> util = new ExcelUtil<TcBzhan>(TcBzhan.class);
util.exportExcel(response, list, "B站、小红书数据");
@ -62,43 +54,48 @@ public class TcBzhanController extends BaseController
/**
* B
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:bzhan:query')")
@ApiOperation(value = "获取B站、小红书详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcBzhanService.selectTcBzhanById(id));
}
/**
* B
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:bzhan:add')")
@Log(title = "B站、小红书", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增B站、小红书")
@PostMapping
public AjaxResult add(@RequestBody TcBzhan tcBzhan)
{
public AjaxResult add(@RequestBody TcBzhan tcBzhan) {
return toAjax(tcBzhanService.insertTcBzhan(tcBzhan));
}
/**
* B
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:bzhan:edit')")
@Log(title = "B站、小红书", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改B站、小红书")
@PutMapping
public AjaxResult edit(@RequestBody TcBzhan tcBzhan)
{
public AjaxResult edit(@RequestBody TcBzhan tcBzhan) {
return toAjax(tcBzhanService.updateTcBzhan(tcBzhan));
}
/**
* B
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:bzhan:remove')")
@Log(title = "B站、小红书", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除B站、小红书")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcBzhanService.deleteTcBzhanByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcBzhan> util = new ExcelUtil<TcBzhan>(TcBzhan.class);
List<TcBzhan> tcBzhanList = util.importExcel(file.getInputStream());
tcBzhanService.importUser(tcBzhanList);
return AjaxResult.success();
}
}

@ -7,12 +7,14 @@ import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcCy;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcCyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@ -30,22 +32,10 @@ public class TcCyController extends BaseController {
@Autowired
private ITcCyService tcCyService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:cy:list')")
@GetMapping("/list")
public TableDataInfo list(TcCy tcCy) {
startPage();
List<TcCy> list = tcCyService.selectTcCyList(tcCy);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:cy:export')")
@Log(title = "词云", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出词云列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcCy tcCy) {
List<TcCy> list = tcCyService.selectTcCyList(tcCy);
@ -56,7 +46,7 @@ public class TcCyController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:cy:query')")
@ApiOperation(value = "获取词云详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcCyService.selectTcCyById(id));
@ -65,8 +55,7 @@ public class TcCyController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:cy:add')")
@Log(title = "词云", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增词云")
@PostMapping
public AjaxResult add(@RequestBody TcCy tcCy) {
return toAjax(tcCyService.insertTcCy(tcCy));
@ -75,8 +64,7 @@ public class TcCyController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:cy:edit')")
@Log(title = "词云", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改词云")
@PutMapping
public AjaxResult edit(@RequestBody TcCy tcCy) {
return toAjax(tcCyService.updateTcCy(tcCy));
@ -85,8 +73,7 @@ public class TcCyController extends BaseController {
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:cy:remove')")
@Log(title = "词云", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除词云")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcCyService.deleteTcCyByIds(ids));
@ -103,4 +90,17 @@ public class TcCyController extends BaseController {
List<TcCy> list = tcCyService.selectTcCyList(tcCy);
return getDataTable(list);
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcCy> util = new ExcelUtil<TcCy>(TcCy.class);
List<TcCy> tcCyList = util.importExcel(file.getInputStream());
tcCyService.importUser(tcCyList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcDbdw;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcDbdwService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "等保单位")
@RequestMapping("/tcZz/networkSecurity/dbdw")
public class TcDbdwController extends BaseController
{
public class TcDbdwController extends BaseController {
@Autowired
private ITcDbdwService tcDbdwService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbdw:list')")
@ApiOperation(value = "等保单位", response = TcDbdw.class)
@GetMapping("/list")
public TableDataInfo list(TcDbdw tcDbdw)
{
public TableDataInfo list(TcDbdw tcDbdw) {
startPage();
List<TcDbdw> list = tcDbdwService.selectTcDbdwList(tcDbdw);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcDbdwController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbdw:export')")
@Log(title = "等保单位", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出等保单位列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcDbdw tcDbdw)
{
public void export(HttpServletResponse response, TcDbdw tcDbdw) {
List<TcDbdw> list = tcDbdwService.selectTcDbdwList(tcDbdw);
ExcelUtil<TcDbdw> util = new ExcelUtil<TcDbdw>(TcDbdw.class);
util.exportExcel(response, list, "等保单位数据");
@ -62,43 +57,49 @@ public class TcDbdwController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbdw:query')")
@ApiOperation(value = "获取等保单位详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcDbdwService.selectTcDbdwById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbdw:add')")
@Log(title = "等保单位", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增等保单位")
@PostMapping
public AjaxResult add(@RequestBody TcDbdw tcDbdw)
{
public AjaxResult add(@RequestBody TcDbdw tcDbdw) {
return toAjax(tcDbdwService.insertTcDbdw(tcDbdw));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbdw:edit')")
@Log(title = "等保单位", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改等保单位")
@PutMapping
public AjaxResult edit(@RequestBody TcDbdw tcDbdw)
{
public AjaxResult edit(@RequestBody TcDbdw tcDbdw) {
return toAjax(tcDbdwService.updateTcDbdw(tcDbdw));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbdw:remove')")
@Log(title = "等保单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除等保单位")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcDbdwService.deleteTcDbdwByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcDbdw> util = new ExcelUtil<TcDbdw>(TcDbdw.class);
List<TcDbdw> tcDbdwList = util.importExcel(file.getInputStream());
tcDbdwService.importUser(tcDbdwList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.GetMapping;
@ -20,27 +24,27 @@ import com.ruoyi.tcZz.domain.TcDbxt;
import com.ruoyi.tcZz.service.ITcDbxtService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "等保系统")
@RequestMapping("/tcZz/networkSecurity/dbxt")
public class TcDbxtController extends BaseController
{
public class TcDbxtController extends BaseController {
@Autowired
private ITcDbxtService tcDbxtService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbxt:list')")
@ApiOperation(value = "查询等保系统列表", response = TcDbxt.class)
@GetMapping("/list")
public TableDataInfo list(TcDbxt tcDbxt)
{
public TableDataInfo list(TcDbxt tcDbxt) {
startPage();
List<TcDbxt> list = tcDbxtService.selectTcDbxtList(tcDbxt);
return getDataTable(list);
@ -49,11 +53,9 @@ public class TcDbxtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbxt:export')")
@Log(title = "等保系统", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出等保系统列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcDbxt tcDbxt)
{
public void export(HttpServletResponse response, TcDbxt tcDbxt) {
List<TcDbxt> list = tcDbxtService.selectTcDbxtList(tcDbxt);
ExcelUtil<TcDbxt> util = new ExcelUtil<TcDbxt>(TcDbxt.class);
util.exportExcel(response, list, "等保系统数据");
@ -62,43 +64,49 @@ public class TcDbxtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbxt:query')")
@ApiOperation(value = "获取等保系统详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcDbxtService.selectTcDbxtById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbxt:add')")
@Log(title = "等保系统", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增等保系统")
@PostMapping
public AjaxResult add(@RequestBody TcDbxt tcDbxt)
{
public AjaxResult add(@RequestBody TcDbxt tcDbxt) {
return toAjax(tcDbxtService.insertTcDbxt(tcDbxt));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbxt:edit')")
@Log(title = "等保系统", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改等保系统")
@PutMapping
public AjaxResult edit(@RequestBody TcDbxt tcDbxt)
{
public AjaxResult edit(@RequestBody TcDbxt tcDbxt) {
return toAjax(tcDbxtService.updateTcDbxt(tcDbxt));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:dbxt:remove')")
@Log(title = "等保系统", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除等保系统")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcDbxtService.deleteTcDbxtByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcDbxt> util = new ExcelUtil<TcDbxt>(TcDbxt.class);
List<TcDbxt> tcDbxtList = util.importExcel(file.getInputStream());
tcDbxtService.importUser(tcDbxtList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcDtsx;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcDtsxService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "动态筛选")
@RequestMapping("/tcZz/netWorkYq/dtsx")
public class TcDtsxController extends BaseController
{
public class TcDtsxController extends BaseController {
@Autowired
private ITcDtsxService tcDtsxService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:dtsx:list')")
@ApiOperation(value = "查询动态筛选列表",response = TcDtsx.class)
@GetMapping("/list")
public TableDataInfo list(TcDtsx tcDtsx)
{
public TableDataInfo list(TcDtsx tcDtsx) {
startPage();
List<TcDtsx> list = tcDtsxService.selectTcDtsxList(tcDtsx);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcDtsxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:dtsx:export')")
@Log(title = "动态筛选", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出动态筛选列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcDtsx tcDtsx)
{
public void export(HttpServletResponse response, TcDtsx tcDtsx) {
List<TcDtsx> list = tcDtsxService.selectTcDtsxList(tcDtsx);
ExcelUtil<TcDtsx> util = new ExcelUtil<TcDtsx>(TcDtsx.class);
util.exportExcel(response, list, "动态筛选数据");
@ -62,43 +57,47 @@ public class TcDtsxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:dtsx:query')")
@ApiOperation(value = "获取动态筛选详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcDtsxService.selectTcDtsxById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:dtsx:add')")
@Log(title = "动态筛选", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增动态筛选")
@PostMapping
public AjaxResult add(@RequestBody TcDtsx tcDtsx)
{
public AjaxResult add(@RequestBody TcDtsx tcDtsx) {
return toAjax(tcDtsxService.insertTcDtsx(tcDtsx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:dtsx:edit')")
@Log(title = "动态筛选", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改动态筛选")
@PutMapping
public AjaxResult edit(@RequestBody TcDtsx tcDtsx)
{
public AjaxResult edit(@RequestBody TcDtsx tcDtsx) {
return toAjax(tcDtsxService.updateTcDtsx(tcDtsx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:dtsx:remove')")
@Log(title = "动态筛选", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除动态筛选")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcDtsxService.deleteTcDtsxByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcDtsx> util = new ExcelUtil<TcDtsx>(TcDtsx.class);
List<TcDtsx> tcDtsxList = util.importExcel(file.getInputStream());
tcDtsxService.importUser(tcDtsxList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcDy;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcDyService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "抖音")
@RequestMapping("/tcZz/netManage/dy")
public class TcDyController extends BaseController
{
public class TcDyController extends BaseController {
@Autowired
private ITcDyService tcDyService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:dy:list')")
@ApiOperation(value = "查询抖音列表", response = TcDy.class)
@GetMapping("/list")
public TableDataInfo list(TcDy tcDy)
{
public TableDataInfo list(TcDy tcDy) {
startPage();
List<TcDy> list = tcDyService.selectTcDyList(tcDy);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcDyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:dy:export')")
@Log(title = "抖音", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出抖音列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcDy tcDy)
{
public void export(HttpServletResponse response, TcDy tcDy) {
List<TcDy> list = tcDyService.selectTcDyList(tcDy);
ExcelUtil<TcDy> util = new ExcelUtil<TcDy>(TcDy.class);
util.exportExcel(response, list, "抖音数据");
@ -62,43 +57,49 @@ public class TcDyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:dy:query')")
@ApiOperation(value = "获取抖音详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcDyService.selectTcDyById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:dy:add')")
@Log(title = "抖音", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增抖音")
@PostMapping
public AjaxResult add(@RequestBody TcDy tcDy)
{
public AjaxResult add(@RequestBody TcDy tcDy) {
return toAjax(tcDyService.insertTcDy(tcDy));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:dy:edit')")
@Log(title = "抖音", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改抖音")
@PutMapping
public AjaxResult edit(@RequestBody TcDy tcDy)
{
public AjaxResult edit(@RequestBody TcDy tcDy) {
return toAjax(tcDyService.updateTcDy(tcDy));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:dy:remove')")
@Log(title = "抖音", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除抖音")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcDyService.deleteTcDyByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcDy> util = new ExcelUtil<TcDy>(TcDy.class);
List<TcDy> tcDyList = util.importExcel(file.getInputStream());
tcDyService.importUser(tcDyList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcFb;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcFbService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "上级媒体、本地发布")
@RequestMapping("/tcZz/networkEcology/fb")
public class TcFbController extends BaseController
{
public class TcFbController extends BaseController {
@Autowired
private ITcFbService tcFbService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:fb:list')")
@ApiOperation(value = "查询上级媒体、本地发布列表", response = TcFb.class)
@GetMapping("/list")
public TableDataInfo list(TcFb tcFb)
{
public TableDataInfo list(TcFb tcFb) {
startPage();
List<TcFb> list = tcFbService.selectTcFbList(tcFb);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcFbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:fb:export')")
@Log(title = "上级媒体、本地发布", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出上级媒体、本地发布列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcFb tcFb)
{
public void export(HttpServletResponse response, TcFb tcFb) {
List<TcFb> list = tcFbService.selectTcFbList(tcFb);
ExcelUtil<TcFb> util = new ExcelUtil<TcFb>(TcFb.class);
util.exportExcel(response, list, "上级媒体、本地发布数据");
@ -62,43 +57,49 @@ public class TcFbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:fb:query')")
@ApiOperation(value = "获取上级媒体、本地发布详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcFbService.selectTcFbById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:fb:add')")
@Log(title = "上级媒体、本地发布", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增上级媒体、本地发布")
@PostMapping
public AjaxResult add(@RequestBody TcFb tcFb)
{
public AjaxResult add(@RequestBody TcFb tcFb) {
return toAjax(tcFbService.insertTcFb(tcFb));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:fb:edit')")
@Log(title = "上级媒体、本地发布", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改上级媒体、本地发布")
@PutMapping
public AjaxResult edit(@RequestBody TcFb tcFb)
{
public AjaxResult edit(@RequestBody TcFb tcFb) {
return toAjax(tcFbService.updateTcFb(tcFb));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:fb:remove')")
@Log(title = "上级媒体、本地发布", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = " 删除上级媒体、本地发布")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcFbService.deleteTcFbByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcFb> util = new ExcelUtil<TcFb>(TcFb.class);
List<TcFb> tccFbList = util.importExcel(file.getInputStream());
tcFbService.importUser(tccFbList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.GetMapping;
@ -20,6 +24,7 @@ import com.ruoyi.tcZz.domain.TcFbqk;
import com.ruoyi.tcZz.service.ITcFbqkService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* tc_fbqkController
@ -28,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-12
*/
@RestController
@Api(tags = "分布情况")
@RequestMapping("/tcZz/networkSecurity/fbqk")
public class TcFbqkController extends BaseController
{
@ -37,7 +43,7 @@ public class TcFbqkController extends BaseController
/**
* tc_fbqk
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:fbqk:list')")
@ApiOperation(value = "查询分布情况列表",response = TcFbqk.class)
@GetMapping("/list")
public TableDataInfo list(TcFbqk tcFbqk)
{
@ -49,8 +55,7 @@ public class TcFbqkController extends BaseController
/**
* tc_fbqk
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:fbqk:export')")
@Log(title = "分布情况 tc_fbqk", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出分布情况列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcFbqk tcFbqk)
{
@ -62,7 +67,7 @@ public class TcFbqkController extends BaseController
/**
* tc_fbqk
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:fbqk:query')")
@ApiOperation(value = "获取分布情况详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,8 +77,7 @@ public class TcFbqkController extends BaseController
/**
* tc_fbqk
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:fbqk:add')")
@Log(title = "分布情况 tc_fbqk", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增分布情况")
@PostMapping
public AjaxResult add(@RequestBody TcFbqk tcFbqk)
{
@ -83,8 +87,7 @@ public class TcFbqkController extends BaseController
/**
* tc_fbqk
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:fbqk:edit')")
@Log(title = "分布情况 tc_fbqk", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改分布情况")
@PutMapping
public AjaxResult edit(@RequestBody TcFbqk tcFbqk)
{
@ -94,11 +97,23 @@ public class TcFbqkController extends BaseController
/**
* tc_fbqk
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:fbqk:remove')")
@Log(title = "分布情况 tc_fbqk", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除分布情况")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcFbqkService.deleteTcFbqkByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcFbqk> util = new ExcelUtil<TcFbqk>(TcFbqk.class);
List<TcFbqk> tcFbqkList = util.importExcel(file.getInputStream());
tcFbqkService.importUser(tcFbqkList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.GetMapping;
@ -20,6 +24,7 @@ import com.ruoyi.tcZz.domain.TcGzdt;
import com.ruoyi.tcZz.service.ITcGzdtService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
@ -28,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13
*/
@RestController
@Api(tags = "工作动态")
@RequestMapping("/tcZz/netManage/gzdt")
public class TcGzdtController extends BaseController
{
@ -37,7 +43,7 @@ public class TcGzdtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:list')")
@ApiOperation(value = "查询工作动态列表",response = TcGzdt.class)
@GetMapping("/list")
public TableDataInfo list(TcGzdt tcGzdt)
{
@ -49,8 +55,7 @@ public class TcGzdtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:export')")
@Log(title = "工作动态", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出工作动态列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcGzdt tcGzdt)
{
@ -62,7 +67,7 @@ public class TcGzdtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:query')")
@ApiOperation(value = "获取工作动态详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,8 +77,7 @@ public class TcGzdtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:add')")
@Log(title = "工作动态", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增工作动态")
@PostMapping
public AjaxResult add(@RequestBody TcGzdt tcGzdt)
{
@ -83,8 +87,7 @@ public class TcGzdtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:edit')")
@Log(title = "工作动态", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改工作动态")
@PutMapping
public AjaxResult edit(@RequestBody TcGzdt tcGzdt)
{
@ -94,11 +97,21 @@ public class TcGzdtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:remove')")
@Log(title = "工作动态", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除工作动态")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcGzdtService.deleteTcGzdtByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcGzdt> util = new ExcelUtil<TcGzdt>(TcGzdt.class);
List<TcGzdt> tcGzdtList = util.importExcel(file.getInputStream());
tcGzdtService.importUser(tcGzdtList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.GetMapping;
@ -20,27 +24,27 @@ import com.ruoyi.tcZz.domain.TcIdcdw;
import com.ruoyi.tcZz.service.ITcIdcdwService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* IDCController
*
* IDCController
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api("IDC单位")
@RequestMapping("/tcZz/networkSecurity/idcdw")
public class TcIdcdwController extends BaseController
{
public class TcIdcdwController extends BaseController {
@Autowired
private ITcIdcdwService tcIdcdwService;
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:idcdw:list')")
@ApiOperation(value = "查询IDC单位列表",response =TcIdcdw.class )
@GetMapping("/list")
public TableDataInfo list(TcIdcdw tcIdcdw)
{
public TableDataInfo list(TcIdcdw tcIdcdw) {
startPage();
List<TcIdcdw> list = tcIdcdwService.selectTcIdcdwList(tcIdcdw);
return getDataTable(list);
@ -49,56 +53,59 @@ public class TcIdcdwController extends BaseController
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:idcdw:export')")
@Log(title = " IDC单位", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出IDC单位列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcIdcdw tcIdcdw)
{
public void export(HttpServletResponse response, TcIdcdw tcIdcdw) {
List<TcIdcdw> list = tcIdcdwService.selectTcIdcdwList(tcIdcdw);
ExcelUtil<TcIdcdw> util = new ExcelUtil<TcIdcdw>(TcIdcdw.class);
util.exportExcel(response, list, " IDC单位数据");
}
/**
* IDC
* IDC
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:idcdw:query')")
@ApiOperation(value = "获取IDC单位详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcIdcdwService.selectTcIdcdwById(id));
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:idcdw:add')")
@Log(title = " IDC单位", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增IDC单位")
@PostMapping
public AjaxResult add(@RequestBody TcIdcdw tcIdcdw)
{
public AjaxResult add(@RequestBody TcIdcdw tcIdcdw) {
return toAjax(tcIdcdwService.insertTcIdcdw(tcIdcdw));
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:idcdw:edit')")
@Log(title = " IDC单位", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改IDC单位")
@PutMapping
public AjaxResult edit(@RequestBody TcIdcdw tcIdcdw)
{
public AjaxResult edit(@RequestBody TcIdcdw tcIdcdw) {
return toAjax(tcIdcdwService.updateTcIdcdw(tcIdcdw));
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:idcdw:remove')")
@Log(title = " IDC单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除IDC单位")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcIdcdwService.deleteTcIdcdwByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcIdcdw> util = new ExcelUtil<TcIdcdw>(TcIdcdw.class);
List<TcIdcdw> tcIdcdwList = util.importExcel(file.getInputStream());
tcIdcdwService.importUser(tcIdcdwList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcJbmap;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.service.ITcJbmapService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "举报地图")
@RequestMapping("/tcZz/netManage/jbmap")
public class TcJbmapController extends BaseController
{
public class TcJbmapController extends BaseController {
@Autowired
private ITcJbmapService tcJbmapService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbmap:list')")
@ApiOperation(value = "查询举报地图列表", response = TcJbmap.class)
@GetMapping("/list")
public TableDataInfo list(TcJbmap tcJbmap)
{
public TableDataInfo list(TcJbmap tcJbmap) {
startPage();
List<TcJbmap> list = tcJbmapService.selectTcJbmapList(tcJbmap);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcJbmapController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbmap:export')")
@Log(title = "举报地图", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出举报地图列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcJbmap tcJbmap)
{
public void export(HttpServletResponse response, TcJbmap tcJbmap) {
List<TcJbmap> list = tcJbmapService.selectTcJbmapList(tcJbmap);
ExcelUtil<TcJbmap> util = new ExcelUtil<TcJbmap>(TcJbmap.class);
util.exportExcel(response, list, "举报地图数据");
@ -62,43 +57,48 @@ public class TcJbmapController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbmap:query')")
@ApiOperation(value = "获取举报地图详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcJbmapService.selectTcJbmapById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbmap:add')")
@Log(title = "举报地图", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增举报地图")
@PostMapping
public AjaxResult add(@RequestBody TcJbmap tcJbmap)
{
public AjaxResult add(@RequestBody TcJbmap tcJbmap) {
return toAjax(tcJbmapService.insertTcJbmap(tcJbmap));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbmap:edit')")
@Log(title = "举报地图", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改举报地图")
@PutMapping
public AjaxResult edit(@RequestBody TcJbmap tcJbmap)
{
public AjaxResult edit(@RequestBody TcJbmap tcJbmap) {
return toAjax(tcJbmapService.updateTcJbmap(tcJbmap));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbmap:remove')")
@Log(title = "举报地图", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除举报地图")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcJbmapService.deleteTcJbmapByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcJbmap> util = new ExcelUtil<TcJbmap>(TcJbmap.class);
List<TcJbmap> tcJbmapList = util.importExcel(file.getInputStream());
tcJbmapService.importUser(tcJbmapList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.GetMapping;
@ -20,27 +24,27 @@ import com.ruoyi.tcZz.domain.TcJbsjndfltj;
import com.ruoyi.tcZz.service.ITcJbsjndfltjService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api("举报事件年度分类统计")
@RequestMapping("/tcZz/netManage/jbsjndfltj")
public class TcJbsjndfltjController extends BaseController
{
public class TcJbsjndfltjController extends BaseController {
@Autowired
private ITcJbsjndfltjService tcJbsjndfltjService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbsjndfltj:list')")
@ApiOperation("查询举报事件年度分类统计列表")
@GetMapping("/list")
public TableDataInfo list(TcJbsjndfltj tcJbsjndfltj)
{
public TableDataInfo list(TcJbsjndfltj tcJbsjndfltj) {
startPage();
List<TcJbsjndfltj> list = tcJbsjndfltjService.selectTcJbsjndfltjList(tcJbsjndfltj);
return getDataTable(list);
@ -49,11 +53,9 @@ public class TcJbsjndfltjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbsjndfltj:export')")
@Log(title = "举报事件年度分类统计", businessType = BusinessType.EXPORT)
@ApiOperation("导出举报事件年度分类统计列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcJbsjndfltj tcJbsjndfltj)
{
public void export(HttpServletResponse response, TcJbsjndfltj tcJbsjndfltj) {
List<TcJbsjndfltj> list = tcJbsjndfltjService.selectTcJbsjndfltjList(tcJbsjndfltj);
ExcelUtil<TcJbsjndfltj> util = new ExcelUtil<TcJbsjndfltj>(TcJbsjndfltj.class);
util.exportExcel(response, list, "举报事件年度分类统计数据");
@ -62,43 +64,48 @@ public class TcJbsjndfltjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbsjndfltj:query')")
@ApiOperation("获取举报事件年度分类统计详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcJbsjndfltjService.selectTcJbsjndfltjById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbsjndfltj:add')")
@Log(title = "举报事件年度分类统计", businessType = BusinessType.INSERT)
@ApiOperation("新增举报事件年度分类统计")
@PostMapping
public AjaxResult add(@RequestBody TcJbsjndfltj tcJbsjndfltj)
{
public AjaxResult add(@RequestBody TcJbsjndfltj tcJbsjndfltj) {
return toAjax(tcJbsjndfltjService.insertTcJbsjndfltj(tcJbsjndfltj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbsjndfltj:edit')")
@Log(title = "举报事件年度分类统计", businessType = BusinessType.UPDATE)
@ApiOperation("修改举报事件年度分类统计")
@PutMapping
public AjaxResult edit(@RequestBody TcJbsjndfltj tcJbsjndfltj)
{
public AjaxResult edit(@RequestBody TcJbsjndfltj tcJbsjndfltj) {
return toAjax(tcJbsjndfltjService.updateTcJbsjndfltj(tcJbsjndfltj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:jbsjndfltj:remove')")
@Log(title = "举报事件年度分类统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation("删除举报事件年度分类统计")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcJbsjndfltjService.deleteTcJbsjndfltjByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcJbsjndfltj> util = new ExcelUtil<TcJbsjndfltj>(TcJbsjndfltj.class);
List<TcJbsjndfltj> tcJbsjndfltjList = util.importExcel(file.getInputStream());
tcJbsjndfltjService.importUser(tcJbsjndfltjList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcMap;
import com.ruoyi.tcZz.service.ITcMapService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "地图统计")
@RequestMapping("/tcZz/networkSecurity/map")
public class TcMapController extends BaseController
{
public class TcMapController extends BaseController {
@Autowired
private ITcMapService tcMapService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:map:list')")
@ApiOperation(value = "查询地图统计列表", response = TcMap.class)
@GetMapping("/list")
public TableDataInfo list(TcMap tcMap)
{
public TableDataInfo list(TcMap tcMap) {
startPage();
List<TcMap> list = tcMapService.selectTcMapList(tcMap);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcMapController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:map:export')")
@Log(title = "地图统计", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出地图统计列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcMap tcMap)
{
public void export(HttpServletResponse response, TcMap tcMap) {
List<TcMap> list = tcMapService.selectTcMapList(tcMap);
ExcelUtil<TcMap> util = new ExcelUtil<TcMap>(TcMap.class);
util.exportExcel(response, list, "地图统计数据");
@ -62,43 +57,49 @@ public class TcMapController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:map:query')")
@ApiOperation(value = "获取地图统计详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcMapService.selectTcMapById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:map:add')")
@Log(title = "地图统计", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增地图统计")
@PostMapping
public AjaxResult add(@RequestBody TcMap tcMap)
{
public AjaxResult add(@RequestBody TcMap tcMap) {
return toAjax(tcMapService.insertTcMap(tcMap));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:map:edit')")
@Log(title = "地图统计", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改地图统计")
@PutMapping
public AjaxResult edit(@RequestBody TcMap tcMap)
{
public AjaxResult edit(@RequestBody TcMap tcMap) {
return toAjax(tcMapService.updateTcMap(tcMap));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:map:remove')")
@Log(title = "地图统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除地图统计")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcMapService.deleteTcMapByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcMap> util = new ExcelUtil<TcMap>(TcMap.class);
List<TcMap> tcMapList = util.importExcel(file.getInputStream());
tcMapService.importUser(tcMapList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcMtlx;
import com.ruoyi.tcZz.service.ITcMtlxService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "媒体类型")
@RequestMapping("/tcZz/netWorkYq/mtlx")
public class TcMtlxController extends BaseController
{
public class TcMtlxController extends BaseController {
@Autowired
private ITcMtlxService tcMtlxService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:mtlx:list')")
@ApiOperation(value = "查询媒体类型列表", response = TcMtlx.class)
@GetMapping("/list")
public TableDataInfo list(TcMtlx tcMtlx)
{
public TableDataInfo list(TcMtlx tcMtlx) {
startPage();
List<TcMtlx> list = tcMtlxService.selectTcMtlxList(tcMtlx);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcMtlxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:mtlx:export')")
@Log(title = "媒体类型", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出媒体类型列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcMtlx tcMtlx)
{
public void export(HttpServletResponse response, TcMtlx tcMtlx) {
List<TcMtlx> list = tcMtlxService.selectTcMtlxList(tcMtlx);
ExcelUtil<TcMtlx> util = new ExcelUtil<TcMtlx>(TcMtlx.class);
util.exportExcel(response, list, "媒体类型数据");
@ -62,43 +57,49 @@ public class TcMtlxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:mtlx:query')")
@ApiOperation(value = "获取媒体类型详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcMtlxService.selectTcMtlxById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:mtlx:add')")
@Log(title = "媒体类型", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增媒体类型")
@PostMapping
public AjaxResult add(@RequestBody TcMtlx tcMtlx)
{
public AjaxResult add(@RequestBody TcMtlx tcMtlx) {
return toAjax(tcMtlxService.insertTcMtlx(tcMtlx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:mtlx:edit')")
@Log(title = "媒体类型", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改媒体类型")
@PutMapping
public AjaxResult edit(@RequestBody TcMtlx tcMtlx)
{
public AjaxResult edit(@RequestBody TcMtlx tcMtlx) {
return toAjax(tcMtlxService.updateTcMtlx(tcMtlx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:mtlx:remove')")
@Log(title = "媒体类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除媒体类型")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcMtlxService.deleteTcMtlxByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcMtlx> util = new ExcelUtil<TcMtlx>(TcMtlx.class);
List<TcMtlx> tcMtlxList = util.importExcel(file.getInputStream());
tcMtlxService.importUser(tcMtlxList);
return AjaxResult.success();
}
}

@ -1,46 +1,40 @@
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.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.TcAqg;
import com.ruoyi.tcZz.domain.TcQlzxxddt;
import com.ruoyi.tcZz.service.ITcQlzxxddtService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "清朗专项行动动态")
@RequestMapping("/tcZz/netManage/qlzxxddt")
public class TcQlzxxddtController extends BaseController
{
public class TcQlzxxddtController extends BaseController {
@Autowired
private ITcQlzxxddtService tcQlzxxddtService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxddt:list')")
@ApiOperation(value = "查询清朗专项行动动态列表", response = TcQlzxxddt.class)
@GetMapping("/list")
public TableDataInfo list(TcQlzxxddt tcQlzxxddt)
{
public TableDataInfo list(TcQlzxxddt tcQlzxxddt) {
startPage();
List<TcQlzxxddt> list = tcQlzxxddtService.selectTcQlzxxddtList(tcQlzxxddt);
return getDataTable(list);
@ -49,11 +43,9 @@ public class TcQlzxxddtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxddt:export')")
@Log(title = "清朗专项行动动态", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出清朗专项行动动态列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcQlzxxddt tcQlzxxddt)
{
public void export(HttpServletResponse response, TcQlzxxddt tcQlzxxddt) {
List<TcQlzxxddt> list = tcQlzxxddtService.selectTcQlzxxddtList(tcQlzxxddt);
ExcelUtil<TcQlzxxddt> util = new ExcelUtil<TcQlzxxddt>(TcQlzxxddt.class);
util.exportExcel(response, list, "清朗专项行动动态数据");
@ -62,43 +54,49 @@ public class TcQlzxxddtController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxddt:query')")
@ApiOperation(value = "获取清朗专项行动动态详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcQlzxxddtService.selectTcQlzxxddtById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxddt:add')")
@Log(title = "清朗专项行动动态", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增清朗专项行动动态")
@PostMapping
public AjaxResult add(@RequestBody TcQlzxxddt tcQlzxxddt)
{
public AjaxResult add(@RequestBody TcQlzxxddt tcQlzxxddt) {
return toAjax(tcQlzxxddtService.insertTcQlzxxddt(tcQlzxxddt));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxddt:edit')")
@Log(title = "清朗专项行动动态", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改清朗专项行动动态")
@PutMapping
public AjaxResult edit(@RequestBody TcQlzxxddt tcQlzxxddt)
{
public AjaxResult edit(@RequestBody TcQlzxxddt tcQlzxxddt) {
return toAjax(tcQlzxxddtService.updateTcQlzxxddt(tcQlzxxddt));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxddt:remove')")
@Log(title = "清朗专项行动动态", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除清朗专项行动动态")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcQlzxxddtService.deleteTcQlzxxddtByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcQlzxxddt> util = new ExcelUtil<TcQlzxxddt>(TcQlzxxddt.class);
List<TcQlzxxddt> tcQlzxxddtList = util.importExcel(file.getInputStream());
tcQlzxxddtService.importUser(tcQlzxxddtList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,27 +24,27 @@ import com.ruoyi.tcZz.domain.TcQlzxxdsjtj;
import com.ruoyi.tcZz.service.ITcQlzxxdsjtjService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "清郎专项行动数据统计")
@RequestMapping("/tcZz/netManage/qlzxxdsjtj")
public class TcQlzxxdsjtjController extends BaseController
{
public class TcQlzxxdsjtjController extends BaseController {
@Autowired
private ITcQlzxxdsjtjService tcQlzxxdsjtjService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:list')")
@ApiOperation(value = "查询清郎专项行动数据统计列表", response = TcQlzxxdsjtj.class)
@GetMapping("/list")
public TableDataInfo list(TcQlzxxdsjtj tcQlzxxdsjtj)
{
public TableDataInfo list(TcQlzxxdsjtj tcQlzxxdsjtj) {
startPage();
List<TcQlzxxdsjtj> list = tcQlzxxdsjtjService.selectTcQlzxxdsjtjList(tcQlzxxdsjtj);
return getDataTable(list);
@ -49,11 +53,9 @@ public class TcQlzxxdsjtjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:export')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出清郎专项行动数据统计列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcQlzxxdsjtj tcQlzxxdsjtj)
{
public void export(HttpServletResponse response, TcQlzxxdsjtj tcQlzxxdsjtj) {
List<TcQlzxxdsjtj> list = tcQlzxxdsjtjService.selectTcQlzxxdsjtjList(tcQlzxxdsjtj);
ExcelUtil<TcQlzxxdsjtj> util = new ExcelUtil<TcQlzxxdsjtj>(TcQlzxxdsjtj.class);
util.exportExcel(response, list, "清郎专项行动数据统计数据");
@ -62,43 +64,48 @@ public class TcQlzxxdsjtjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:query')")
@ApiOperation(value = "获取清郎专项行动数据统计详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcQlzxxdsjtjService.selectTcQlzxxdsjtjById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:add')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增清郎专项行动数据统计")
@PostMapping
public AjaxResult add(@RequestBody TcQlzxxdsjtj tcQlzxxdsjtj)
{
public AjaxResult add(@RequestBody TcQlzxxdsjtj tcQlzxxdsjtj) {
return toAjax(tcQlzxxdsjtjService.insertTcQlzxxdsjtj(tcQlzxxdsjtj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:edit')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改清郎专项行动数据统计")
@PutMapping
public AjaxResult edit(@RequestBody TcQlzxxdsjtj tcQlzxxdsjtj)
{
public AjaxResult edit(@RequestBody TcQlzxxdsjtj tcQlzxxdsjtj) {
return toAjax(tcQlzxxdsjtjService.updateTcQlzxxdsjtj(tcQlzxxdsjtj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:qlzxxdsjtj:remove')")
@Log(title = "清郎专项行动数据统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除清郎专项行动数据统计")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcQlzxxdsjtjService.deleteTcQlzxxdsjtjByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcQlzxxdsjtj> util = new ExcelUtil<TcQlzxxdsjtj>(TcQlzxxdsjtj.class);
List<TcQlzxxdsjtj> tcQlzxxdsjtjList = util.importExcel(file.getInputStream());
tcQlzxxdsjtjService.importUser(tcQlzxxdsjtjList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,27 +24,27 @@ import com.ruoyi.tcZz.domain.TcSdtb;
import com.ruoyi.tcZz.service.ITcSdtbService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "属地通报")
@RequestMapping("/tcZz/networkSecurity/sdtb")
public class TcSdtbController extends BaseController
{
public class TcSdtbController extends BaseController {
@Autowired
private ITcSdtbService tcSdtbService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:sdtb:list')")
@ApiOperation(value = "查询属地通报列表", response = TcSdtb.class)
@GetMapping("/list")
public TableDataInfo list(TcSdtb tcSdtb)
{
public TableDataInfo list(TcSdtb tcSdtb) {
startPage();
List<TcSdtb> list = tcSdtbService.selectTcSdtbList(tcSdtb);
return getDataTable(list);
@ -49,11 +53,9 @@ public class TcSdtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:sdtb:export')")
@Log(title = "属地通报", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出属地通报列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcSdtb tcSdtb)
{
public void export(HttpServletResponse response, TcSdtb tcSdtb) {
List<TcSdtb> list = tcSdtbService.selectTcSdtbList(tcSdtb);
ExcelUtil<TcSdtb> util = new ExcelUtil<TcSdtb>(TcSdtb.class);
util.exportExcel(response, list, "属地通报数据");
@ -62,43 +64,48 @@ public class TcSdtbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:sdtb:query')")
@ApiOperation(value = "获取属地通报详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcSdtbService.selectTcSdtbById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:sdtb:add')")
@Log(title = "属地通报", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增属地通报")
@PostMapping
public AjaxResult add(@RequestBody TcSdtb tcSdtb)
{
public AjaxResult add(@RequestBody TcSdtb tcSdtb) {
return toAjax(tcSdtbService.insertTcSdtb(tcSdtb));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:sdtb:edit')")
@Log(title = "属地通报", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改属地通报")
@PutMapping
public AjaxResult edit(@RequestBody TcSdtb tcSdtb)
{
public AjaxResult edit(@RequestBody TcSdtb tcSdtb) {
return toAjax(tcSdtbService.updateTcSdtb(tcSdtb));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:sdtb:remove')")
@Log(title = "属地通报", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除属地通报")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcSdtbService.deleteTcSdtbByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcSdtb> util = new ExcelUtil<TcSdtb>(TcSdtb.class);
List<TcSdtb> tcSdtbList = util.importExcel(file.getInputStream());
tcSdtbService.importUser(tcSdtbList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcSgjipTop5;
import com.ruoyi.tcZz.service.ITcSgjipTop5Service;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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;
/**
* IPTOP5Controller
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "受攻击IPTOP5")
@RequestMapping("/tcZz/networkSecurity/top5")
public class TcSgjipTop5Controller extends BaseController
{
public class TcSgjipTop5Controller extends BaseController {
@Autowired
private ITcSgjipTop5Service tcSgjipTop5Service;
/**
* IPTOP5
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:top5:list')")
@ApiOperation(value = "查询受攻击IPTOP5列表", response = TcSgjipTop5.class)
@GetMapping("/list")
public TableDataInfo list(TcSgjipTop5 tcSgjipTop5)
{
public TableDataInfo list(TcSgjipTop5 tcSgjipTop5) {
startPage();
List<TcSgjipTop5> list = tcSgjipTop5Service.selectTcSgjipTop5List(tcSgjipTop5);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcSgjipTop5Controller extends BaseController
/**
* IPTOP5
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:top5:export')")
@Log(title = "受攻击IPTOP5", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出受攻击IPTOP5列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcSgjipTop5 tcSgjipTop5)
{
public void export(HttpServletResponse response, TcSgjipTop5 tcSgjipTop5) {
List<TcSgjipTop5> list = tcSgjipTop5Service.selectTcSgjipTop5List(tcSgjipTop5);
ExcelUtil<TcSgjipTop5> util = new ExcelUtil<TcSgjipTop5>(TcSgjipTop5.class);
util.exportExcel(response, list, "受攻击IPTOP5数据");
@ -62,43 +57,47 @@ public class TcSgjipTop5Controller extends BaseController
/**
* IPTOP5
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:top5:query')")
@ApiOperation(value = "获取受攻击IPTOP5详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcSgjipTop5Service.selectTcSgjipTop5ById(id));
}
/**
* IPTOP5
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:top5:add')")
@Log(title = "受攻击IPTOP5", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增受攻击IPTOP5")
@PostMapping
public AjaxResult add(@RequestBody TcSgjipTop5 tcSgjipTop5)
{
public AjaxResult add(@RequestBody TcSgjipTop5 tcSgjipTop5) {
return toAjax(tcSgjipTop5Service.insertTcSgjipTop5(tcSgjipTop5));
}
/**
* IPTOP5
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:top5:edit')")
@Log(title = "受攻击IPTOP5", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改受攻击IPTOP5")
@PutMapping
public AjaxResult edit(@RequestBody TcSgjipTop5 tcSgjipTop5)
{
public AjaxResult edit(@RequestBody TcSgjipTop5 tcSgjipTop5) {
return toAjax(tcSgjipTop5Service.updateTcSgjipTop5(tcSgjipTop5));
}
/**
* IPTOP5
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:top5:remove')")
@Log(title = "受攻击IPTOP5", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除受攻击IPTOP5")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcSgjipTop5Service.deleteTcSgjipTop5ByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcSgjipTop5> util = new ExcelUtil<TcSgjipTop5>(TcSgjipTop5.class);
List<TcSgjipTop5> tcSgjipTop5List = util.importExcel(file.getInputStream());
tcSgjipTop5Service.importUser(tcSgjipTop5List);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcSjly;
import com.ruoyi.tcZz.service.ITcSjlyService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "硬探针、软探针")
@RequestMapping("/tcZz/networkSecurity/ryz")
public class TcSjlyController extends BaseController
{
public class TcSjlyController extends BaseController {
@Autowired
private ITcSjlyService tcSjlyService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:list')")
@ApiOperation(value = "查询硬探针、软探针列表", response = TcSjly.class)
@GetMapping("/list")
public TableDataInfo list(TcSjly tcSjly)
{
public TableDataInfo list(TcSjly tcSjly) {
startPage();
List<TcSjly> list = tcSjlyService.selectTcSjlyList(tcSjly);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcSjlyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:export')")
@Log(title = "硬探针、软探针", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出硬探针、软探针列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcSjly tcSjly)
{
public void export(HttpServletResponse response, TcSjly tcSjly) {
List<TcSjly> list = tcSjlyService.selectTcSjlyList(tcSjly);
ExcelUtil<TcSjly> util = new ExcelUtil<TcSjly>(TcSjly.class);
util.exportExcel(response, list, "硬探针、软探针数据");
@ -62,43 +57,49 @@ public class TcSjlyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:query')")
@ApiOperation(value = "获取硬探针、软探针详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcSjlyService.selectTcSjlyById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:add')")
@Log(title = "硬探针、软探针", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增硬探针、软探针")
@PostMapping
public AjaxResult add(@RequestBody TcSjly tcSjly)
{
public AjaxResult add(@RequestBody TcSjly tcSjly) {
return toAjax(tcSjlyService.insertTcSjly(tcSjly));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:edit')")
@Log(title = "硬探针、软探针", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改硬探针、软探针")
@PutMapping
public AjaxResult edit(@RequestBody TcSjly tcSjly)
{
public AjaxResult edit(@RequestBody TcSjly tcSjly) {
return toAjax(tcSjlyService.updateTcSjly(tcSjly));
}
/**
*
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:ryz:remove')")
@Log(title = "硬探针、软探针", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "修改硬探针、软探针")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcSjlyService.deleteTcSjlyByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcSjly> util = new ExcelUtil<TcSjly>(TcSjly.class);
List<TcSjly> tcSjlyList = util.importExcel(file.getInputStream());
tcSjlyService.importUser(tcSjlyList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,27 +24,27 @@ import com.ruoyi.tcZz.domain.TcSjlytj;
import com.ruoyi.tcZz.service.ITcSjlytjService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "数据来源统计")
@RequestMapping("/tcZz/networkSecurity/DataSourceTj")
public class TcSjlytjController extends BaseController
{
public class TcSjlytjController extends BaseController {
@Autowired
private ITcSjlytjService tcSjlytjService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:DataSourceTj:list')")
@ApiOperation(value = "查询数据来源统计列表", response = TcSjlytj.class)
@GetMapping("/list")
public TableDataInfo list(TcSjlytj tcSjlytj)
{
public TableDataInfo list(TcSjlytj tcSjlytj) {
startPage();
List<TcSjlytj> list = tcSjlytjService.selectTcSjlytjList(tcSjlytj);
return getDataTable(list);
@ -49,11 +53,9 @@ public class TcSjlytjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:DataSourceTj:export')")
@Log(title = "数据来源统计", businessType = BusinessType.EXPORT)
@ApiOperation("导出数据来源统计列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcSjlytj tcSjlytj)
{
public void export(HttpServletResponse response, TcSjlytj tcSjlytj) {
List<TcSjlytj> list = tcSjlytjService.selectTcSjlytjList(tcSjlytj);
ExcelUtil<TcSjlytj> util = new ExcelUtil<TcSjlytj>(TcSjlytj.class);
util.exportExcel(response, list, "数据来源统计数据");
@ -62,43 +64,49 @@ public class TcSjlytjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:DataSourceTj:query')")
@ApiOperation("获取数据来源统计详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcSjlytjService.selectTcSjlytjById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:DataSourceTj:add')")
@Log(title = "数据来源统计", businessType = BusinessType.INSERT)
@ApiOperation("新增数据来源统计")
@PostMapping
public AjaxResult add(@RequestBody TcSjlytj tcSjlytj)
{
public AjaxResult add(@RequestBody TcSjlytj tcSjlytj) {
return toAjax(tcSjlytjService.insertTcSjlytj(tcSjlytj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:DataSourceTj:edit')")
@Log(title = "数据来源统计", businessType = BusinessType.UPDATE)
@ApiOperation("修改数据来源统计")
@PutMapping
public AjaxResult edit(@RequestBody TcSjlytj tcSjlytj)
{
public AjaxResult edit(@RequestBody TcSjlytj tcSjlytj) {
return toAjax(tcSjlytjService.updateTcSjlytj(tcSjlytj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:DataSourceTj:remove')")
@Log(title = "数据来源统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation("删除数据来源统计")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcSjlytjService.deleteTcSjlytjByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcSjlytj> util = new ExcelUtil<TcSjlytj>(TcSjlytj.class);
List<TcSjlytj> tcSjlytjList = util.importExcel(file.getInputStream());
tcSjlytjService.importUser(tcSjlytjList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcSslx;
import com.ruoyi.tcZz.service.ITcSslxService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "涉事类型")
@RequestMapping("/tcZz/netWorkYq/sslx")
public class TcSslxController extends BaseController
{
public class TcSslxController extends BaseController {
@Autowired
private ITcSslxService tcSslxService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:sslx:list')")
@ApiOperation(value = "查询涉事类型列表", response = TcSslx.class)
@GetMapping("/list")
public TableDataInfo list(TcSslx tcSslx)
{
public TableDataInfo list(TcSslx tcSslx) {
startPage();
List<TcSslx> list = tcSslxService.selectTcSslxList(tcSslx);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcSslxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:sslx:export')")
@Log(title = "涉事类型", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出涉事类型列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcSslx tcSslx)
{
public void export(HttpServletResponse response, TcSslx tcSslx) {
List<TcSslx> list = tcSslxService.selectTcSslxList(tcSslx);
ExcelUtil<TcSslx> util = new ExcelUtil<TcSslx>(TcSslx.class);
util.exportExcel(response, list, "涉事类型数据");
@ -62,43 +57,50 @@ public class TcSslxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:sslx:query')")
@ApiOperation(value = "获取涉事类型详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcSslxService.selectTcSslxById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:sslx:add')")
@Log(title = "涉事类型", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增涉事类型")
@PostMapping
public AjaxResult add(@RequestBody TcSslx tcSslx)
{
public AjaxResult add(@RequestBody TcSslx tcSslx) {
return toAjax(tcSslxService.insertTcSslx(tcSslx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:sslx:edit')")
@Log(title = "涉事类型", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改涉事类型")
@PutMapping
public AjaxResult edit(@RequestBody TcSslx tcSslx)
{
public AjaxResult edit(@RequestBody TcSslx tcSslx) {
return toAjax(tcSslxService.updateTcSslx(tcSslx));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:sslx:remove')")
@Log(title = "涉事类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除涉事类型")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcSslxService.deleteTcSslxByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcSslx> util = new ExcelUtil<TcSslx>(TcSslx.class);
List<TcSslx> tcSslxList = util.importExcel(file.getInputStream());
tcSslxService.importUser(tcSslxList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcTbcz;
import com.ruoyi.tcZz.service.ITcTbczService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "通报处置")
@RequestMapping("/tcZz/networkSecurity/tbcz")
public class TcTbczController extends BaseController
{
public class TcTbczController extends BaseController {
@Autowired
private ITcTbczService tcTbczService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbcz:list')")
@ApiOperation(value = "查询通报处置列表", response = TcTbcz.class)
@GetMapping("/list")
public TableDataInfo list(TcTbcz tcTbcz)
{
public TableDataInfo list(TcTbcz tcTbcz) {
startPage();
List<TcTbcz> list = tcTbczService.selectTcTbczList(tcTbcz);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcTbczController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbcz:export')")
@Log(title = "通报处置", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出通报处置列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcTbcz tcTbcz)
{
public void export(HttpServletResponse response, TcTbcz tcTbcz) {
List<TcTbcz> list = tcTbczService.selectTcTbczList(tcTbcz);
ExcelUtil<TcTbcz> util = new ExcelUtil<TcTbcz>(TcTbcz.class);
util.exportExcel(response, list, "通报处置数据");
@ -62,43 +57,50 @@ public class TcTbczController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbcz:query')")
@ApiOperation(value = "获取通报处置详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcTbczService.selectTcTbczById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbcz:add')")
@Log(title = "通报处置", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增通报处置")
@PostMapping
public AjaxResult add(@RequestBody TcTbcz tcTbcz)
{
public AjaxResult add(@RequestBody TcTbcz tcTbcz) {
return toAjax(tcTbczService.insertTcTbcz(tcTbcz));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbcz:edit')")
@Log(title = "通报处置", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改通报处置")
@PutMapping
public AjaxResult edit(@RequestBody TcTbcz tcTbcz)
{
public AjaxResult edit(@RequestBody TcTbcz tcTbcz) {
return toAjax(tcTbczService.updateTcTbcz(tcTbcz));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbcz:remove')")
@Log(title = "通报处置", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除通报处置")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcTbczService.deleteTcTbczByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcTbcz> util = new ExcelUtil<TcTbcz>(TcTbcz.class);
List<TcTbcz> tcTbczList = util.importExcel(file.getInputStream());
tcTbczService.importUser(tcTbczList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcTbwc;
import com.ruoyi.tcZz.service.ITcTbwcService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "通报完成情况")
@RequestMapping("/tcZz/networkSecurity/tbwc")
public class TcTbwcController extends BaseController
{
public class TcTbwcController extends BaseController {
@Autowired
private ITcTbwcService tcTbwcService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbwc:list')")
@ApiOperation(value = "查询通报完成情况列表", response = TcTbwc.class)
@GetMapping("/list")
public TableDataInfo list(TcTbwc tcTbwc)
{
public TableDataInfo list(TcTbwc tcTbwc) {
startPage();
List<TcTbwc> list = tcTbwcService.selectTcTbwcList(tcTbwc);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcTbwcController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbwc:export')")
@Log(title = "通报完成情况", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出通报完成情况列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcTbwc tcTbwc)
{
public void export(HttpServletResponse response, TcTbwc tcTbwc) {
List<TcTbwc> list = tcTbwcService.selectTcTbwcList(tcTbwc);
ExcelUtil<TcTbwc> util = new ExcelUtil<TcTbwc>(TcTbwc.class);
util.exportExcel(response, list, "通报完成情况数据");
@ -62,43 +57,51 @@ public class TcTbwcController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbwc:query')")
@ApiOperation(value = "获取通报完成情况详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcTbwcService.selectTcTbwcById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbwc:add')")
@Log(title = "通报完成情况", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增通报完成情况")
@PostMapping
public AjaxResult add(@RequestBody TcTbwc tcTbwc)
{
public AjaxResult add(@RequestBody TcTbwc tcTbwc) {
return toAjax(tcTbwcService.insertTcTbwc(tcTbwc));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbwc:edit')")
@Log(title = "通报完成情况", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改通报完成情况")
@PutMapping
public AjaxResult edit(@RequestBody TcTbwc tcTbwc)
{
public AjaxResult edit(@RequestBody TcTbwc tcTbwc) {
return toAjax(tcTbwcService.updateTcTbwc(tcTbwc));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:tbwc:remove')")
@Log(title = "通报完成情况", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除通报完成情况")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcTbwcService.deleteTcTbwcByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcTbwc> util = new ExcelUtil<TcTbwc>(TcTbwc.class);
List<TcTbwc> tcTbwcList = util.importExcel(file.getInputStream());
tcTbwcService.importUser(tcTbwcList);
return AjaxResult.success();
}
}

@ -2,6 +2,9 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,27 +23,27 @@ import com.ruoyi.tcZz.domain.TcTtsum;
import com.ruoyi.tcZz.service.ITcTtsumService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@ApiOperation("今日头条、快手")
@RequestMapping("/tcZz/netManage/ttsum")
public class TcTtsumController extends BaseController
{
public class TcTtsumController extends BaseController {
@Autowired
private ITcTtsumService tcTtsumService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ttsum:list')")
@ApiOperation(value = "查询今日头条、快手列表", response = TcTtsum.class)
@GetMapping("/list")
public TableDataInfo list(TcTtsum tcTtsum)
{
public TableDataInfo list(TcTtsum tcTtsum) {
startPage();
List<TcTtsum> list = tcTtsumService.selectTcTtsumList(tcTtsum);
return getDataTable(list);
@ -49,11 +52,9 @@ public class TcTtsumController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ttsum:export')")
@Log(title = "今日头条、快手", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出今日头条、快手列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcTtsum tcTtsum)
{
public void export(HttpServletResponse response, TcTtsum tcTtsum) {
List<TcTtsum> list = tcTtsumService.selectTcTtsumList(tcTtsum);
ExcelUtil<TcTtsum> util = new ExcelUtil<TcTtsum>(TcTtsum.class);
util.exportExcel(response, list, "今日头条、快手数据");
@ -62,43 +63,49 @@ public class TcTtsumController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ttsum:query')")
@ApiOperation(value = "获取今日头条、快手详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcTtsumService.selectTcTtsumById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ttsum:add')")
@Log(title = "今日头条、快手", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增今日头条、快手")
@PostMapping
public AjaxResult add(@RequestBody TcTtsum tcTtsum)
{
public AjaxResult add(@RequestBody TcTtsum tcTtsum) {
return toAjax(tcTtsumService.insertTcTtsum(tcTtsum));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ttsum:edit')")
@Log(title = "今日头条、快手", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改今日头条、快手")
@PutMapping
public AjaxResult edit(@RequestBody TcTtsum tcTtsum)
{
public AjaxResult edit(@RequestBody TcTtsum tcTtsum) {
return toAjax(tcTtsumService.updateTcTtsum(tcTtsum));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ttsum:remove')")
@Log(title = "今日头条、快手", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation(value = "删除今日头条、快手")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcTtsumService.deleteTcTtsumByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcTtsum> util = new ExcelUtil<TcTtsum>(TcTtsum.class);
List<TcTtsum> tcTtsumList = util.importExcel(file.getInputStream());
tcTtsumService.importUser(tcTtsumList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,6 +24,7 @@ import com.ruoyi.tcZz.domain.TcVx;
import com.ruoyi.tcZz.service.ITcVxService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
@ -28,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13
*/
@RestController
@Api(tags = "微信")
@RequestMapping("/tcZz/netManage/vx")
public class TcVxController extends BaseController
{
@ -37,7 +43,7 @@ public class TcVxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:vx:list')")
@ApiOperation(value = "查询微信列表",response = TcVx.class)
@GetMapping("/list")
public TableDataInfo list(TcVx tcVx)
{
@ -49,8 +55,7 @@ public class TcVxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:vx:export')")
@Log(title = "微信", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出微信列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcVx tcVx)
{
@ -62,7 +67,7 @@ public class TcVxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:vx:query')")
@ApiOperation(value = "获取微信详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,8 +77,7 @@ public class TcVxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:vx:add')")
@Log(title = "微信", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增微信")
@PostMapping
public AjaxResult add(@RequestBody TcVx tcVx)
{
@ -83,8 +87,7 @@ public class TcVxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:vx:edit')")
@Log(title = "微信", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改微信")
@PutMapping
public AjaxResult edit(@RequestBody TcVx tcVx)
{
@ -94,11 +97,23 @@ public class TcVxController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:vx:remove')")
@Log(title = "微信", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除微信")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcVxService.deleteTcVxByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcVx> util = new ExcelUtil<TcVx>(TcVx.class);
List<TcVx> tcVxList = util.importExcel(file.getInputStream());
tcVxService.importUser(tcVxList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,6 +24,7 @@ import com.ruoyi.tcZz.domain.TcWb;
import com.ruoyi.tcZz.service.ITcWbService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
@ -28,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13
*/
@RestController
@Api(tags = "微博")
@RequestMapping("/tcZz/netManage/wb")
public class TcWbController extends BaseController
{
@ -37,7 +43,7 @@ public class TcWbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:wb:list')")
@ApiOperation(value = "查询微博列表",response =TcWb.class )
@GetMapping("/list")
public TableDataInfo list(TcWb tcWb)
{
@ -49,8 +55,7 @@ public class TcWbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:wb:export')")
@Log(title = "微博", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出微博列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcWb tcWb)
{
@ -62,7 +67,7 @@ public class TcWbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:wb:query')")
@ApiOperation(value = "获取微博详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,8 +77,7 @@ public class TcWbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:wb:add')")
@Log(title = "微博", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增微博")
@PostMapping
public AjaxResult add(@RequestBody TcWb tcWb)
{
@ -83,8 +87,7 @@ public class TcWbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:wb:edit')")
@Log(title = "微博", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改微博")
@PutMapping
public AjaxResult edit(@RequestBody TcWb tcWb)
{
@ -94,11 +97,23 @@ public class TcWbController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/netManage:wb:remove')")
@Log(title = "微博", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除微博")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcWbService.deleteTcWbByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcWb> util = new ExcelUtil<TcWb>(TcWb.class);
List<TcWb> tcWbList = util.importExcel(file.getInputStream());
tcWbService.importUser(tcWbList);
return AjaxResult.success();
}
}

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,6 +24,7 @@ import com.ruoyi.tcZz.domain.TcWlaqzcqy;
import com.ruoyi.tcZz.service.ITcWlaqzcqyService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
@ -28,6 +33,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* @date 2023-10-13
*/
@RestController
@Api(tags = "网络安全支持单位")
@RequestMapping("/tcZz/networkEcology/wlaqzcqy")
public class TcWlaqzcqyController extends BaseController
{
@ -37,7 +43,7 @@ public class TcWlaqzcqyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wlaqzcqy:list')")
@ApiOperation(value = "查询网络安全支持单位列表",response = TcWlaqzcqy.class)
@GetMapping("/list")
public TableDataInfo list(TcWlaqzcqy tcWlaqzcqy)
{
@ -49,8 +55,7 @@ public class TcWlaqzcqyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wlaqzcqy:export')")
@Log(title = "网络安全支持单位", businessType = BusinessType.EXPORT)
@ApiOperation(value = "导出网络安全支持单位列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcWlaqzcqy tcWlaqzcqy)
{
@ -62,7 +67,7 @@ public class TcWlaqzcqyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wlaqzcqy:query')")
@ApiOperation(value = "获取网络安全支持单位详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -72,8 +77,7 @@ public class TcWlaqzcqyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wlaqzcqy:add')")
@Log(title = "网络安全支持单位", businessType = BusinessType.INSERT)
@ApiOperation(value = "新增网络安全支持单位")
@PostMapping
public AjaxResult add(@RequestBody TcWlaqzcqy tcWlaqzcqy)
{
@ -83,8 +87,7 @@ public class TcWlaqzcqyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wlaqzcqy:edit')")
@Log(title = "网络安全支持单位", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改网络安全支持单位")
@PutMapping
public AjaxResult edit(@RequestBody TcWlaqzcqy tcWlaqzcqy)
{
@ -94,11 +97,24 @@ public class TcWlaqzcqyController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wlaqzcqy:remove')")
@Log(title = "网络安全支持单位", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除网络安全支持单位")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcWlaqzcqyService.deleteTcWlaqzcqyByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcWlaqzcqy> util = new ExcelUtil<TcWlaqzcqy>(TcWlaqzcqy.class);
List<TcWlaqzcqy> tcWlaqzcqyList = util.importExcel(file.getInputStream());
tcWlaqzcqyService.importUser(tcWlaqzcqyList);
return AjaxResult.success();
}
}

@ -1,46 +1,43 @@
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.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcWldv;
import com.ruoyi.tcZz.service.ITcWldvService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.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;
/**
* VController
*
*
* @author ruoyi
* @date 2023-10-13
*/
@RestController
@Api(tags = "网络大V")
@RequestMapping("/tcZz/networkEcology/wldv")
public class TcWldvController extends BaseController
{
public class TcWldvController extends BaseController {
@Autowired
private ITcWldvService tcWldvService;
/**
* V
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wldv:list')")
@ApiOperation("查询网络大V列表")
@GetMapping("/list")
public TableDataInfo list(TcWldv tcWldv)
{
public TableDataInfo list(TcWldv tcWldv) {
startPage();
List<TcWldv> list = tcWldvService.selectTcWldvList(tcWldv);
return getDataTable(list);
@ -49,11 +46,9 @@ public class TcWldvController extends BaseController
/**
* V
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wldv:export')")
@Log(title = "网络大V", businessType = BusinessType.EXPORT)
@ApiOperation("导出网络大V列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcWldv tcWldv)
{
public void export(HttpServletResponse response, TcWldv tcWldv) {
List<TcWldv> list = tcWldvService.selectTcWldvList(tcWldv);
ExcelUtil<TcWldv> util = new ExcelUtil<TcWldv>(TcWldv.class);
util.exportExcel(response, list, "网络大V数据");
@ -62,43 +57,49 @@ public class TcWldvController extends BaseController
/**
* V
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wldv:query')")
@ApiOperation("获取网络大V详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcWldvService.selectTcWldvById(id));
}
/**
* V
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wldv:add')")
@Log(title = "网络大V", businessType = BusinessType.INSERT)
@ApiOperation("新增网络大V")
@PostMapping
public AjaxResult add(@RequestBody TcWldv tcWldv)
{
public AjaxResult add(@RequestBody TcWldv tcWldv) {
return toAjax(tcWldvService.insertTcWldv(tcWldv));
}
/**
* V
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wldv:edit')")
@Log(title = "网络大V", businessType = BusinessType.UPDATE)
@ApiOperation("修改网络大V")
@PutMapping
public AjaxResult edit(@RequestBody TcWldv tcWldv)
{
public AjaxResult edit(@RequestBody TcWldv tcWldv) {
return toAjax(tcWldvService.updateTcWldv(tcWldv));
}
/**
* V
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkEcology:wldv:remove')")
@Log(title = "网络大V", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation("删除网络大V")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcWldvService.deleteTcWldvByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcWldv> util = new ExcelUtil<TcWldv>(TcWldv.class);
List<TcWldv> tcWldvList = util.importExcel(file.getInputStream());
tcWldvService.importUser(tcWldvList);
return AjaxResult.success();
}
}

@ -40,23 +40,11 @@ public class TcWljgController extends BaseController
@Autowired
private ITcWljgService tcWljgService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:list')")
@GetMapping("/list")
public TableDataInfo list(TcWljg tcWljg)
{
startPage();
List<TcWljg> list = tcWljgService.selectTcWljgList(tcWljg);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:export')")
@Log(title = "网络监测", businessType = BusinessType.EXPORT)
@ApiOperation("导出网络监测列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcWljg tcWljg)
{
@ -68,7 +56,7 @@ public class TcWljgController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:query')")
@ApiOperation("获取网络监测详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@ -78,8 +66,7 @@ public class TcWljgController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:add')")
@Log(title = "网络监测", businessType = BusinessType.INSERT)
@ApiOperation("新增网络监测")
@PostMapping
public AjaxResult add(@RequestBody TcWljg tcWljg)
{
@ -89,8 +76,7 @@ public class TcWljgController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:edit')")
@Log(title = "网络监测", businessType = BusinessType.UPDATE)
@ApiOperation("修改网络监测")
@PutMapping
public AjaxResult edit(@RequestBody TcWljg tcWljg)
{
@ -100,8 +86,7 @@ public class TcWljgController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:cybersecurity:remove')")
@Log(title = "网络监测", businessType = BusinessType.DELETE)
@ApiOperation("删除网络监测")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{

@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.tcZz.domain.TcAqg;
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.GetMapping;
@ -20,27 +24,27 @@ import com.ruoyi.tcZz.domain.TcWljgtj;
import com.ruoyi.tcZz.service.ITcWljgtjService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.multipart.MultipartFile;
/**
* Controller
*
*
* @author ruoyi
* @date 2023-10-12
*/
@RestController
@Api(tags = "网络监测统计")
@RequestMapping("/tcZz/networkSecurity/wljgtj")
public class TcWljgtjController extends BaseController
{
public class TcWljgtjController extends BaseController {
@Autowired
private ITcWljgtjService tcWljgtjService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:wljgtj:list')")
@ApiOperation("查询网络监测统计列表")
@GetMapping("/list")
public TableDataInfo list(TcWljgtj tcWljgtj)
{
public TableDataInfo list(TcWljgtj tcWljgtj) {
startPage();
List<TcWljgtj> list = tcWljgtjService.selectTcWljgtjList(tcWljgtj);
return getDataTable(list);
@ -49,11 +53,9 @@ public class TcWljgtjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:wljgtj:export')")
@Log(title = "网络监测统计", businessType = BusinessType.EXPORT)
@ApiOperation("导出网络监测统计列表")
@PostMapping("/export")
public void export(HttpServletResponse response, TcWljgtj tcWljgtj)
{
public void export(HttpServletResponse response, TcWljgtj tcWljgtj) {
List<TcWljgtj> list = tcWljgtjService.selectTcWljgtjList(tcWljgtj);
ExcelUtil<TcWljgtj> util = new ExcelUtil<TcWljgtj>(TcWljgtj.class);
util.exportExcel(response, list, "网络监测统计数据");
@ -62,43 +64,49 @@ public class TcWljgtjController extends BaseController
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:wljgtj:query')")
@ApiOperation("获取网络监测统计详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(tcWljgtjService.selectTcWljgtjById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:wljgtj:add')")
@Log(title = "网络监测统计", businessType = BusinessType.INSERT)
@ApiOperation("新增网络监测统计")
@PostMapping
public AjaxResult add(@RequestBody TcWljgtj tcWljgtj)
{
public AjaxResult add(@RequestBody TcWljgtj tcWljgtj) {
return toAjax(tcWljgtjService.insertTcWljgtj(tcWljgtj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:wljgtj:edit')")
@Log(title = "网络监测统计", businessType = BusinessType.UPDATE)
@ApiOperation("修改网络监测统计")
@PutMapping
public AjaxResult edit(@RequestBody TcWljgtj tcWljgtj)
{
public AjaxResult edit(@RequestBody TcWljgtj tcWljgtj) {
return toAjax(tcWljgtjService.updateTcWljgtj(tcWljgtj));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:wljgtj:remove')")
@Log(title = "网络监测统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
@ApiOperation("删除网络监测统计")
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tcWljgtjService.deleteTcWljgtjByIds(ids));
}
/**
*
*/
@ApiOperation("通用导入excel信息")
@PostMapping("/common/importExcel")
public AjaxResult importExcel(MultipartFile file) throws Exception {
ExcelUtil<TcWljgtj> util = new ExcelUtil<TcWljgtj>(TcWljgtj.class);
List<TcWljgtj> tcWljgtjList = util.importExcel(file.getInputStream());
tcWljgtjService.importUser(tcWljgtjList);
return AjaxResult.success();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,13 @@ public interface ITcAqgService
* @return
*/
public int deleteTcAqgById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcAqg> tcAqgList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqyh;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* tc_aqyhService
@ -58,4 +59,12 @@ public interface ITcAqyhService
* @return
*/
public int deleteTcAqyhById(Long id);
/**
* tc_aqyh
*
* @return
*/
public String importUser(List<TcAqyh> tcAqyhList);
}

@ -1,19 +1,20 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcBjsjwp;
import com.ruoyi.tcZz.domain.TcWljg;
import java.util.List;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-13
*/
public interface ITcBjsjwpService
{
public interface ITcBjsjwpService {
/**
*
*
*
* @param id
* @return
*/
@ -21,7 +22,7 @@ public interface ITcBjsjwpService
/**
*
*
*
* @param tcBjsjwp
* @return
*/
@ -29,7 +30,7 @@ public interface ITcBjsjwpService
/**
*
*
*
* @param tcBjsjwp
* @return
*/
@ -37,7 +38,7 @@ public interface ITcBjsjwpService
/**
*
*
*
* @param tcBjsjwp
* @return
*/
@ -45,7 +46,7 @@ public interface ITcBjsjwpService
/**
*
*
*
* @param ids
* @return
*/
@ -53,9 +54,16 @@ public interface ITcBjsjwpService
/**
*
*
*
* @param id
* @return
*/
public int deleteTcBjsjwpById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcBjsjwp> tcBjsjwpList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcBmtb;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,12 @@ public interface ITcBmtbService
* @return
*/
public int deleteTcBmtbById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcBmtb> tcBmtbList);
}

@ -1,19 +1,20 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcBzhan;
import com.ruoyi.tcZz.domain.TcWljg;
import java.util.List;
/**
* BService
*
*
* @author ruoyi
* @date 2023-10-13
*/
public interface ITcBzhanService
{
public interface ITcBzhanService {
/**
* B
*
*
* @param id B
* @return B
*/
@ -21,7 +22,7 @@ public interface ITcBzhanService
/**
* B
*
*
* @param tcBzhan B
* @return B
*/
@ -29,7 +30,7 @@ public interface ITcBzhanService
/**
* B
*
*
* @param tcBzhan B
* @return
*/
@ -37,7 +38,7 @@ public interface ITcBzhanService
/**
* B
*
*
* @param tcBzhan B
* @return
*/
@ -45,7 +46,7 @@ public interface ITcBzhanService
/**
* B
*
*
* @param ids B
* @return
*/
@ -53,9 +54,16 @@ public interface ITcBzhanService
/**
* B
*
*
* @param id B
* @return
*/
public int deleteTcBzhanById(Long id);
/**
* B
*
* @return
*/
public String importUser(List<TcBzhan> tcBzhanList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcCy;
import com.ruoyi.tcZz.domain.TcWljg;
import com.ruoyi.tcZz.domain.TcYqzs;
/**
@ -66,4 +67,6 @@ public interface ITcCyService
* @return
*/
public String importUser(List<TcCy> tcCyList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcDbdw;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,12 @@ public interface ITcDbdwService
* @return
*/
public int deleteTcDbdwById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcDbdw> tcDbdwList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcDbxt;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,12 @@ public interface ITcDbxtService
* @return
*/
public int deleteTcDbxtById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcDbxt> tcDbxtList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcDtsx;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,12 @@ public interface ITcDtsxService
* @return
*/
public int deleteTcDtsxById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcDtsx> tcDtsxList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcDy;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,12 @@ public interface ITcDyService
* @return
*/
public int deleteTcDyById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcDy> tcDyList);
}

@ -1,19 +1,19 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcFb;
import java.util.List;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-13
*/
public interface ITcFbService
{
public interface ITcFbService {
/**
*
*
*
* @param id
* @return
*/
@ -21,7 +21,7 @@ public interface ITcFbService
/**
*
*
*
* @param tcFb
* @return
*/
@ -29,7 +29,7 @@ public interface ITcFbService
/**
*
*
*
* @param tcFb
* @return
*/
@ -37,7 +37,7 @@ public interface ITcFbService
/**
*
*
*
* @param tcFb
* @return
*/
@ -45,7 +45,7 @@ public interface ITcFbService
/**
*
*
*
* @param ids
* @return
*/
@ -53,9 +53,16 @@ public interface ITcFbService
/**
*
*
*
* @param id
* @return
*/
public int deleteTcFbById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcFb> tccFbList);
}

@ -1,19 +1,19 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcFbqk;
import java.util.List;
/**
* tc_fbqkService
*
*
* @author ruoyi
* @date 2023-10-12
*/
public interface ITcFbqkService
{
public interface ITcFbqkService {
/**
* tc_fbqk
*
*
* @param id tc_fbqk
* @return tc_fbqk
*/
@ -21,7 +21,7 @@ public interface ITcFbqkService
/**
* tc_fbqk
*
*
* @param tcFbqk tc_fbqk
* @return tc_fbqk
*/
@ -29,7 +29,7 @@ public interface ITcFbqkService
/**
* tc_fbqk
*
*
* @param tcFbqk tc_fbqk
* @return
*/
@ -37,7 +37,7 @@ public interface ITcFbqkService
/**
* tc_fbqk
*
*
* @param tcFbqk tc_fbqk
* @return
*/
@ -45,7 +45,7 @@ public interface ITcFbqkService
/**
* tc_fbqk
*
*
* @param ids tc_fbqk
* @return
*/
@ -53,9 +53,17 @@ public interface ITcFbqkService
/**
* tc_fbqk
*
*
* @param id tc_fbqk
* @return
*/
public int deleteTcFbqkById(Long id);
/**
* tc_fbqk
*
* @return
*/
public String importUser(List<TcFbqk> tcFbqkList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcGzdt;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,12 @@ public interface ITcGzdtService
* @return
*/
public int deleteTcGzdtById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcGzdt> tcGzdtList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcIdcdw;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* IDCService
@ -58,4 +59,11 @@ public interface ITcIdcdwService
* @return
*/
public int deleteTcIdcdwById(Long id);
/**
* IDC
*
* @return
*/
public String importUser(List<TcIdcdw> tcIdcdwList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcJbmap;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,11 @@ public interface ITcJbmapService
* @return
*/
public int deleteTcJbmapById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcJbmap> tcJbmapList);
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcJbsjndfltj;
import com.ruoyi.tcZz.domain.TcWljg;
/**
* Service
@ -58,4 +59,12 @@ public interface ITcJbsjndfltjService
* @return
*/
public int deleteTcJbsjndfltjById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcJbsjndfltj> tcJbsjndfltjList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcMap;
/**
@ -58,4 +60,12 @@ public interface ITcMapService
* @return
*/
public int deleteTcMapById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcMap> tcMapList);
}

@ -1,19 +1,20 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcMtlx;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-12
*/
public interface ITcMtlxService
{
public interface ITcMtlxService {
/**
*
*
*
* @param id
* @return
*/
@ -21,7 +22,7 @@ public interface ITcMtlxService
/**
*
*
*
* @param tcMtlx
* @return
*/
@ -29,7 +30,7 @@ public interface ITcMtlxService
/**
*
*
*
* @param tcMtlx
* @return
*/
@ -37,7 +38,7 @@ public interface ITcMtlxService
/**
*
*
*
* @param tcMtlx
* @return
*/
@ -45,7 +46,7 @@ public interface ITcMtlxService
/**
*
*
*
* @param ids
* @return
*/
@ -53,9 +54,17 @@ public interface ITcMtlxService
/**
*
*
*
* @param id
* @return
*/
public int deleteTcMtlxById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcMtlx> tcMtlxList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcQlzxxddt;
/**
@ -58,4 +60,12 @@ public interface ITcQlzxxddtService
* @return
*/
public int deleteTcQlzxxddtById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcQlzxxddt> tTcQlzxxddtList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcQlzxxdsjtj;
/**
@ -58,4 +60,11 @@ public interface ITcQlzxxdsjtjService
* @return
*/
public int deleteTcQlzxxdsjtjById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcQlzxxdsjtj> tcQlzxxdsjtjList);
}

@ -1,19 +1,19 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcSdtb;
import java.util.List;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-12
*/
public interface ITcSdtbService
{
public interface ITcSdtbService {
/**
*
*
*
* @param id
* @return
*/
@ -21,7 +21,7 @@ public interface ITcSdtbService
/**
*
*
*
* @param tcSdtb
* @return
*/
@ -29,7 +29,7 @@ public interface ITcSdtbService
/**
*
*
*
* @param tcSdtb
* @return
*/
@ -37,7 +37,7 @@ public interface ITcSdtbService
/**
*
*
*
* @param tcSdtb
* @return
*/
@ -45,7 +45,7 @@ public interface ITcSdtbService
/**
*
*
*
* @param ids
* @return
*/
@ -53,9 +53,17 @@ public interface ITcSdtbService
/**
*
*
*
* @param id
* @return
*/
public int deleteTcSdtbById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcSdtb> tcSdtbList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcSgjipTop5;
/**
@ -58,4 +60,12 @@ public interface ITcSgjipTop5Service
* @return
*/
public int deleteTcSgjipTop5ById(Long id);
/**
* IPTOP5
*
* @return
*/
public String importUser(List<TcSgjipTop5> tcSgjipTop5List);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcSjly;
/**
@ -58,4 +60,12 @@ public interface ITcSjlyService
* @return
*/
public int deleteTcSjlyById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcSjly> tcSjlyList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcSjlytj;
/**
@ -58,4 +60,12 @@ public interface ITcSjlytjService
* @return
*/
public int deleteTcSjlytjById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcSjlytj> tcSjlytjList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcSslx;
/**
@ -58,4 +60,12 @@ public interface ITcSslxService
* @return
*/
public int deleteTcSslxById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcSslx> tcSslxList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcTbcz;
/**
@ -58,4 +60,12 @@ public interface ITcTbczService
* @return
*/
public int deleteTcTbczById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcTbcz> tcTbczList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcTbwc;
/**
@ -58,4 +60,12 @@ public interface ITcTbwcService
* @return
*/
public int deleteTcTbwcById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcTbwc> tcTbwcList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcTtsum;
/**
@ -58,4 +60,13 @@ public interface ITcTtsumService
* @return
*/
public int deleteTcTtsumById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcTtsum> tcTtsumList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcVx;
/**
@ -58,4 +60,12 @@ public interface ITcVxService
* @return
*/
public int deleteTcVxById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcVx> tcVxList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcWb;
/**
@ -58,4 +60,12 @@ public interface ITcWbService
* @return
*/
public int deleteTcWbById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcWb> tcWbList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcWlaqzcqy;
/**
@ -58,4 +60,13 @@ public interface ITcWlaqzcqyService
* @return
*/
public int deleteTcWlaqzcqyById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcWlaqzcqy> tcWlaqzcqyList);
}

@ -1,6 +1,8 @@
package com.ruoyi.tcZz.service;
import java.util.List;
import com.ruoyi.tcZz.domain.TcAqg;
import com.ruoyi.tcZz.domain.TcWldv;
/**
@ -58,4 +60,12 @@ public interface ITcWldvService
* @return
*/
public int deleteTcWldvById(Long id);
/**
*
*
* @return
*/
public String importUser(List<TcWldv> tcWldvList);
}

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

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcAqgMapper;
@ -93,4 +94,16 @@ public class TcAqgServiceImpl implements ITcAqgService
{
return tcAqgMapper.deleteTcAqgById(id);
}
@Override
public String importUser(List<TcAqg> tcAqgList) {
StringBuilder successMsg = new StringBuilder();
if (!tcAqgList.isEmpty()) {
for (TcAqg tcAqg : tcAqgList) {
tcAqgMapper.insertTcAqg(tcAqg);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcAqyhMapper;
@ -93,4 +94,17 @@ public class TcAqyhServiceImpl implements ITcAqyhService
{
return tcAqyhMapper.deleteTcAqyhById(id);
}
@Override
public String importUser(List<TcAqyh> tcAqyhList) {
StringBuilder successMsg = new StringBuilder();
if (!tcAqyhList.isEmpty()) {
for (TcAqyh tcAqyh : tcAqyhList) {
tcAqyhMapper.insertTcAqyh(tcAqyh);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcBjsjwpMapper;
@ -93,4 +94,19 @@ public class TcBjsjwpServiceImpl implements ITcBjsjwpService
{
return tcBjsjwpMapper.deleteTcBjsjwpById(id);
}
@Override
public String importUser(List<TcBjsjwp> tcBjsjwpList) {
StringBuilder successMsg = new StringBuilder();
if (!tcBjsjwpList.isEmpty()) {
for (TcBjsjwp tcBjsjwp : tcBjsjwpList) {
tcBjsjwpMapper.insertTcBjsjwp(tcBjsjwp);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -1,7 +1,9 @@
package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcBmtbMapper;
@ -10,87 +12,93 @@ import com.ruoyi.tcZz.service.ITcBmtbService;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-12
*/
@Service
public class TcBmtbServiceImpl implements ITcBmtbService
{
public class TcBmtbServiceImpl implements ITcBmtbService {
@Autowired
private TcBmtbMapper tcBmtbMapper;
/**
*
*
*
* @param id
* @return
*/
@Override
public TcBmtb selectTcBmtbById(Long id)
{
public TcBmtb selectTcBmtbById(Long id) {
return tcBmtbMapper.selectTcBmtbById(id);
}
/**
*
*
*
* @param tcBmtb
* @return
*/
@Override
public List<TcBmtb> selectTcBmtbList(TcBmtb tcBmtb)
{
public List<TcBmtb> selectTcBmtbList(TcBmtb tcBmtb) {
return tcBmtbMapper.selectTcBmtbList(tcBmtb);
}
/**
*
*
*
* @param tcBmtb
* @return
*/
@Override
public int insertTcBmtb(TcBmtb tcBmtb)
{
public int insertTcBmtb(TcBmtb tcBmtb) {
tcBmtb.setCreateTime(DateUtils.getNowDate());
return tcBmtbMapper.insertTcBmtb(tcBmtb);
}
/**
*
*
*
* @param tcBmtb
* @return
*/
@Override
public int updateTcBmtb(TcBmtb tcBmtb)
{
public int updateTcBmtb(TcBmtb tcBmtb) {
tcBmtb.setUpdateTime(DateUtils.getNowDate());
return tcBmtbMapper.updateTcBmtb(tcBmtb);
}
/**
*
*
*
* @param ids
* @return
*/
@Override
public int deleteTcBmtbByIds(Long[] ids)
{
public int deleteTcBmtbByIds(Long[] ids) {
return tcBmtbMapper.deleteTcBmtbByIds(ids);
}
/**
*
*
*
* @param id
* @return
*/
@Override
public int deleteTcBmtbById(Long id)
{
public int deleteTcBmtbById(Long id) {
return tcBmtbMapper.deleteTcBmtbById(id);
}
@Override
public String importUser(List<TcBmtb> tcBmtbList) {
StringBuilder successMsg = new StringBuilder();
if (!tcBmtbList.isEmpty()) {
for (TcBmtb tcBmtb : tcBmtbList) {
tcBmtbMapper.insertTcBmtb(tcBmtb);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -1,96 +1,104 @@
package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcBzhanMapper;
import com.ruoyi.tcZz.domain.TcBzhan;
import com.ruoyi.tcZz.mapper.TcBzhanMapper;
import com.ruoyi.tcZz.service.ITcBzhanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* BService
*
*
* @author ruoyi
* @date 2023-10-13
*/
@Service
public class TcBzhanServiceImpl implements ITcBzhanService
{
public class TcBzhanServiceImpl implements ITcBzhanService {
@Autowired
private TcBzhanMapper tcBzhanMapper;
/**
* B
*
*
* @param id B
* @return B
*/
@Override
public TcBzhan selectTcBzhanById(Long id)
{
public TcBzhan selectTcBzhanById(Long id) {
return tcBzhanMapper.selectTcBzhanById(id);
}
/**
* B
*
*
* @param tcBzhan B
* @return B
*/
@Override
public List<TcBzhan> selectTcBzhanList(TcBzhan tcBzhan)
{
public List<TcBzhan> selectTcBzhanList(TcBzhan tcBzhan) {
return tcBzhanMapper.selectTcBzhanList(tcBzhan);
}
/**
* B
*
*
* @param tcBzhan B
* @return
*/
@Override
public int insertTcBzhan(TcBzhan tcBzhan)
{
public int insertTcBzhan(TcBzhan tcBzhan) {
tcBzhan.setCreateTime(DateUtils.getNowDate());
return tcBzhanMapper.insertTcBzhan(tcBzhan);
}
/**
* B
*
*
* @param tcBzhan B
* @return
*/
@Override
public int updateTcBzhan(TcBzhan tcBzhan)
{
public int updateTcBzhan(TcBzhan tcBzhan) {
tcBzhan.setUpdateTime(DateUtils.getNowDate());
return tcBzhanMapper.updateTcBzhan(tcBzhan);
}
/**
* B
*
*
* @param ids B
* @return
*/
@Override
public int deleteTcBzhanByIds(Long[] ids)
{
public int deleteTcBzhanByIds(Long[] ids) {
return tcBzhanMapper.deleteTcBzhanByIds(ids);
}
/**
* B
*
*
* @param id B
* @return
*/
@Override
public int deleteTcBzhanById(Long id)
{
public int deleteTcBzhanById(Long id) {
return tcBzhanMapper.deleteTcBzhanById(id);
}
@Override
public String importUser(List<TcBzhan> tcBzhanList) {
StringBuilder successMsg = new StringBuilder();
if (!tcBzhanList.isEmpty()) {
for (TcBzhan tcBzhan : tcBzhanList) {
tcBzhanMapper.insertTcBzhan(tcBzhan);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcDbdwMapper;
@ -93,4 +94,17 @@ public class TcDbdwServiceImpl implements ITcDbdwService
{
return tcDbdwMapper.deleteTcDbdwById(id);
}
@Override
public String importUser(List<TcDbdw> tcDbdwList) {
StringBuilder successMsg = new StringBuilder();
if (!tcDbdwList.isEmpty()) {
for (TcDbdw tcDbdw : tcDbdwList) {
tcDbdwMapper.insertTcDbdw(tcDbdw);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcDbxtMapper;
@ -93,4 +94,17 @@ public class TcDbxtServiceImpl implements ITcDbxtService
{
return tcDbxtMapper.deleteTcDbxtById(id);
}
@Override
public String importUser(List<TcDbxt> tcDbxtList) {
StringBuilder successMsg = new StringBuilder();
if (!tcDbxtList.isEmpty()) {
for (TcDbxt tcDbxt : tcDbxtList) {
tcDbxtMapper.insertTcDbxt(tcDbxt);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcDtsxMapper;
@ -93,4 +94,17 @@ public class TcDtsxServiceImpl implements ITcDtsxService
{
return tcDtsxMapper.deleteTcDtsxById(id);
}
@Override
public String importUser(List<TcDtsx> tcDtsxList) {
StringBuilder successMsg = new StringBuilder();
if (!tcDtsxList.isEmpty()) {
for (TcDtsx tcDtsx : tcDtsxList) {
tcDtsxMapper.insertTcDtsx(tcDtsx);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcDyMapper;
@ -93,4 +94,17 @@ public class TcDyServiceImpl implements ITcDyService
{
return tcDyMapper.deleteTcDyById(id);
}
@Override
public String importUser(List<TcDy> tcDyList) {
StringBuilder successMsg = new StringBuilder();
if (!tcDyList.isEmpty()) {
for (TcDy tcDy : tcDyList) {
tcDyMapper.insertTcDy(tcDy);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcFbMapper;
@ -93,4 +94,17 @@ public class TcFbServiceImpl implements ITcFbService
{
return tcFbMapper.deleteTcFbById(id);
}
@Override
public String importUser(List<TcFb> tccFbList) {
StringBuilder successMsg = new StringBuilder();
if (!tccFbList.isEmpty()) {
for (TcFb tcFb : tccFbList) {
tcFbMapper.insertTcFb(tcFb);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcFbqkMapper;
@ -93,4 +94,17 @@ public class TcFbqkServiceImpl implements ITcFbqkService
{
return tcFbqkMapper.deleteTcFbqkById(id);
}
@Override
public String importUser(List<TcFbqk> tcFbqkList) {
StringBuilder successMsg = new StringBuilder();
if (!tcFbqkList.isEmpty()) {
for (TcFbqk tcFbqk : tcFbqkList) {
tcFbqkMapper.insertTcFbqk(tcFbqk);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcGzdtMapper;
@ -93,4 +94,17 @@ public class TcGzdtServiceImpl implements ITcGzdtService
{
return tcGzdtMapper.deleteTcGzdtById(id);
}
@Override
public String importUser(List<TcGzdt> tcGzdtList) {
StringBuilder successMsg = new StringBuilder();
if (!tcGzdtList.isEmpty()) {
for (TcGzdt tcGzdt : tcGzdtList) {
tcGzdtMapper.insertTcGzdt(tcGzdt);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcIdcdwMapper;
@ -93,4 +94,17 @@ public class TcIdcdwServiceImpl implements ITcIdcdwService
{
return tcIdcdwMapper.deleteTcIdcdwById(id);
}
@Override
public String importUser(List<TcIdcdw> tcIdcdwList) {
StringBuilder successMsg = new StringBuilder();
if (!tcIdcdwList.isEmpty()) {
for (TcIdcdw tcIdcdw : tcIdcdwList) {
tcIdcdwMapper.insertTcIdcdw(tcIdcdw);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcWljg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcJbmapMapper;
@ -93,4 +94,17 @@ public class TcJbmapServiceImpl implements ITcJbmapService
{
return tcJbmapMapper.deleteTcJbmapById(id);
}
@Override
public String importUser(List<TcJbmap> tcJbmapList) {
StringBuilder successMsg = new StringBuilder();
if (!tcJbmapList.isEmpty()) {
for (TcJbmap tcJbmap : tcJbmapList) {
tcJbmapMapper.insertTcJbmap(tcJbmap);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -1,96 +1,104 @@
package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcJbsjndfltjMapper;
import com.ruoyi.tcZz.domain.TcJbsjndfltj;
import com.ruoyi.tcZz.mapper.TcJbsjndfltjMapper;
import com.ruoyi.tcZz.service.ITcJbsjndfltjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-13
*/
@Service
public class TcJbsjndfltjServiceImpl implements ITcJbsjndfltjService
{
public class TcJbsjndfltjServiceImpl implements ITcJbsjndfltjService {
@Autowired
private TcJbsjndfltjMapper tcJbsjndfltjMapper;
/**
*
*
*
* @param id
* @return
*/
@Override
public TcJbsjndfltj selectTcJbsjndfltjById(Long id)
{
public TcJbsjndfltj selectTcJbsjndfltjById(Long id) {
return tcJbsjndfltjMapper.selectTcJbsjndfltjById(id);
}
/**
*
*
*
* @param tcJbsjndfltj
* @return
*/
@Override
public List<TcJbsjndfltj> selectTcJbsjndfltjList(TcJbsjndfltj tcJbsjndfltj)
{
public List<TcJbsjndfltj> selectTcJbsjndfltjList(TcJbsjndfltj tcJbsjndfltj) {
return tcJbsjndfltjMapper.selectTcJbsjndfltjList(tcJbsjndfltj);
}
/**
*
*
*
* @param tcJbsjndfltj
* @return
*/
@Override
public int insertTcJbsjndfltj(TcJbsjndfltj tcJbsjndfltj)
{
public int insertTcJbsjndfltj(TcJbsjndfltj tcJbsjndfltj) {
tcJbsjndfltj.setCreateTime(DateUtils.getNowDate());
return tcJbsjndfltjMapper.insertTcJbsjndfltj(tcJbsjndfltj);
}
/**
*
*
*
* @param tcJbsjndfltj
* @return
*/
@Override
public int updateTcJbsjndfltj(TcJbsjndfltj tcJbsjndfltj)
{
public int updateTcJbsjndfltj(TcJbsjndfltj tcJbsjndfltj) {
tcJbsjndfltj.setUpdateTime(DateUtils.getNowDate());
return tcJbsjndfltjMapper.updateTcJbsjndfltj(tcJbsjndfltj);
}
/**
*
*
*
* @param ids
* @return
*/
@Override
public int deleteTcJbsjndfltjByIds(Long[] ids)
{
public int deleteTcJbsjndfltjByIds(Long[] ids) {
return tcJbsjndfltjMapper.deleteTcJbsjndfltjByIds(ids);
}
/**
*
*
*
* @param id
* @return
*/
@Override
public int deleteTcJbsjndfltjById(Long id)
{
public int deleteTcJbsjndfltjById(Long id) {
return tcJbsjndfltjMapper.deleteTcJbsjndfltjById(id);
}
@Override
public String importUser(List<TcJbsjndfltj> tcJbsjndfltjList) {
StringBuilder successMsg = new StringBuilder();
if (!tcJbsjndfltjList.isEmpty()) {
for (TcJbsjndfltj tcJbsjndfltj : tcJbsjndfltjList) {
tcJbsjndfltjMapper.insertTcJbsjndfltj(tcJbsjndfltj);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -1,7 +1,9 @@
package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcMapMapper;
@ -10,87 +12,93 @@ import com.ruoyi.tcZz.service.ITcMapService;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-12
*/
@Service
public class TcMapServiceImpl implements ITcMapService
{
public class TcMapServiceImpl implements ITcMapService {
@Autowired
private TcMapMapper tcMapMapper;
/**
*
*
*
* @param id
* @return
*/
@Override
public TcMap selectTcMapById(Long id)
{
public TcMap selectTcMapById(Long id) {
return tcMapMapper.selectTcMapById(id);
}
/**
*
*
*
* @param tcMap
* @return
*/
@Override
public List<TcMap> selectTcMapList(TcMap tcMap)
{
public List<TcMap> selectTcMapList(TcMap tcMap) {
return tcMapMapper.selectTcMapList(tcMap);
}
/**
*
*
*
* @param tcMap
* @return
*/
@Override
public int insertTcMap(TcMap tcMap)
{
public int insertTcMap(TcMap tcMap) {
tcMap.setCreateTime(DateUtils.getNowDate());
return tcMapMapper.insertTcMap(tcMap);
}
/**
*
*
*
* @param tcMap
* @return
*/
@Override
public int updateTcMap(TcMap tcMap)
{
public int updateTcMap(TcMap tcMap) {
tcMap.setUpdateTime(DateUtils.getNowDate());
return tcMapMapper.updateTcMap(tcMap);
}
/**
*
*
*
* @param ids
* @return
*/
@Override
public int deleteTcMapByIds(Long[] ids)
{
public int deleteTcMapByIds(Long[] ids) {
return tcMapMapper.deleteTcMapByIds(ids);
}
/**
*
*
*
* @param id
* @return
*/
@Override
public int deleteTcMapById(Long id)
{
public int deleteTcMapById(Long id) {
return tcMapMapper.deleteTcMapById(id);
}
@Override
public String importUser(List<TcMap> tcMapList) {
StringBuilder successMsg = new StringBuilder();
if (!tcMapList.isEmpty()) {
for (TcMap tcMap : tcMapList) {
tcMapMapper.insertTcMap(tcMap);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcMtlxMapper;
@ -93,4 +94,17 @@ public class TcMtlxServiceImpl implements ITcMtlxService
{
return tcMtlxMapper.deleteTcMtlxById(id);
}
@Override
public String importUser(List<TcMtlx> tcMtlxList) {
StringBuilder successMsg = new StringBuilder();
if (!tcMtlxList.isEmpty()) {
for (TcMtlx tcMtlx : tcMtlxList) {
tcMtlxMapper.insertTcMtlx(tcMtlx);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -1,96 +1,104 @@
package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcQlzxxddtMapper;
import com.ruoyi.tcZz.domain.TcQlzxxddt;
import com.ruoyi.tcZz.mapper.TcQlzxxddtMapper;
import com.ruoyi.tcZz.service.ITcQlzxxddtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-13
*/
@Service
public class TcQlzxxddtServiceImpl implements ITcQlzxxddtService
{
public class TcQlzxxddtServiceImpl implements ITcQlzxxddtService {
@Autowired
private TcQlzxxddtMapper tcQlzxxddtMapper;
/**
*
*
*
* @param id
* @return
*/
@Override
public TcQlzxxddt selectTcQlzxxddtById(Long id)
{
public TcQlzxxddt selectTcQlzxxddtById(Long id) {
return tcQlzxxddtMapper.selectTcQlzxxddtById(id);
}
/**
*
*
*
* @param tcQlzxxddt
* @return
*/
@Override
public List<TcQlzxxddt> selectTcQlzxxddtList(TcQlzxxddt tcQlzxxddt)
{
public List<TcQlzxxddt> selectTcQlzxxddtList(TcQlzxxddt tcQlzxxddt) {
return tcQlzxxddtMapper.selectTcQlzxxddtList(tcQlzxxddt);
}
/**
*
*
*
* @param tcQlzxxddt
* @return
*/
@Override
public int insertTcQlzxxddt(TcQlzxxddt tcQlzxxddt)
{
public int insertTcQlzxxddt(TcQlzxxddt tcQlzxxddt) {
tcQlzxxddt.setCreateTime(DateUtils.getNowDate());
return tcQlzxxddtMapper.insertTcQlzxxddt(tcQlzxxddt);
}
/**
*
*
*
* @param tcQlzxxddt
* @return
*/
@Override
public int updateTcQlzxxddt(TcQlzxxddt tcQlzxxddt)
{
public int updateTcQlzxxddt(TcQlzxxddt tcQlzxxddt) {
tcQlzxxddt.setUpdateTime(DateUtils.getNowDate());
return tcQlzxxddtMapper.updateTcQlzxxddt(tcQlzxxddt);
}
/**
*
*
*
* @param ids
* @return
*/
@Override
public int deleteTcQlzxxddtByIds(Long[] ids)
{
public int deleteTcQlzxxddtByIds(Long[] ids) {
return tcQlzxxddtMapper.deleteTcQlzxxddtByIds(ids);
}
/**
*
*
*
* @param id
* @return
*/
@Override
public int deleteTcQlzxxddtById(Long id)
{
public int deleteTcQlzxxddtById(Long id) {
return tcQlzxxddtMapper.deleteTcQlzxxddtById(id);
}
@Override
public String importUser(List<TcQlzxxddt> tTcQlzxxddtList) {
StringBuilder successMsg = new StringBuilder();
if (!tTcQlzxxddtList.isEmpty()) {
for (TcQlzxxddt tcQlzxxddt : tTcQlzxxddtList) {
tcQlzxxddtMapper.insertTcQlzxxddt(tcQlzxxddt);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcQlzxxdsjtjMapper;
@ -93,4 +94,17 @@ public class TcQlzxxdsjtjServiceImpl implements ITcQlzxxdsjtjService
{
return tcQlzxxdsjtjMapper.deleteTcQlzxxdsjtjById(id);
}
@Override
public String importUser(List<TcQlzxxdsjtj> tcQlzxxdsjtjList) {
StringBuilder successMsg = new StringBuilder();
if (!tcQlzxxdsjtjList.isEmpty()) {
for (TcQlzxxdsjtj tcQlzxxdsjtj : tcQlzxxdsjtjList) {
tcQlzxxdsjtjMapper.insertTcQlzxxdsjtj(tcQlzxxdsjtj);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcSdtbMapper;
@ -93,4 +94,17 @@ public class TcSdtbServiceImpl implements ITcSdtbService
{
return tcSdtbMapper.deleteTcSdtbById(id);
}
@Override
public String importUser(List<TcSdtb> tcSdtbList) {
StringBuilder successMsg = new StringBuilder();
if (!tcSdtbList.isEmpty()) {
for (TcSdtb tcSdtb : tcSdtbList) {
tcSdtbMapper.insertTcSdtb(tcSdtb);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcSgjipTop5Mapper;
@ -93,4 +94,17 @@ public class TcSgjipTop5ServiceImpl implements ITcSgjipTop5Service
{
return tcSgjipTop5Mapper.deleteTcSgjipTop5ById(id);
}
@Override
public String importUser(List<TcSgjipTop5> tcSgjipTop5List) {
StringBuilder successMsg = new StringBuilder();
if (!tcSgjipTop5List.isEmpty()) {
for (TcSgjipTop5 tcSgjipTop5 : tcSgjipTop5List) {
tcSgjipTop5Mapper.insertTcSgjipTop5(tcSgjipTop5);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -1,96 +1,102 @@
package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcSjlyMapper;
import com.ruoyi.tcZz.domain.TcSjly;
import com.ruoyi.tcZz.mapper.TcSjlyMapper;
import com.ruoyi.tcZz.service.ITcSjlyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
*
* @author ruoyi
* @date 2023-10-13
*/
@Service
public class TcSjlyServiceImpl implements ITcSjlyService
{
public class TcSjlyServiceImpl implements ITcSjlyService {
@Autowired
private TcSjlyMapper tcSjlyMapper;
/**
*
*
*
* @param id
* @return
*/
@Override
public TcSjly selectTcSjlyById(Long id)
{
public TcSjly selectTcSjlyById(Long id) {
return tcSjlyMapper.selectTcSjlyById(id);
}
/**
*
*
*
* @param tcSjly
* @return
*/
@Override
public List<TcSjly> selectTcSjlyList(TcSjly tcSjly)
{
public List<TcSjly> selectTcSjlyList(TcSjly tcSjly) {
return tcSjlyMapper.selectTcSjlyList(tcSjly);
}
/**
*
*
*
* @param tcSjly
* @return
*/
@Override
public int insertTcSjly(TcSjly tcSjly)
{
public int insertTcSjly(TcSjly tcSjly) {
tcSjly.setCreateTime(DateUtils.getNowDate());
return tcSjlyMapper.insertTcSjly(tcSjly);
}
/**
*
*
*
* @param tcSjly
* @return
*/
@Override
public int updateTcSjly(TcSjly tcSjly)
{
public int updateTcSjly(TcSjly tcSjly) {
tcSjly.setUpdateTime(DateUtils.getNowDate());
return tcSjlyMapper.updateTcSjly(tcSjly);
}
/**
*
*
*
* @param ids
* @return
*/
@Override
public int deleteTcSjlyByIds(Long[] ids)
{
public int deleteTcSjlyByIds(Long[] ids) {
return tcSjlyMapper.deleteTcSjlyByIds(ids);
}
/**
*
*
*
* @param id
* @return
*/
@Override
public int deleteTcSjlyById(Long id)
{
public int deleteTcSjlyById(Long id) {
return tcSjlyMapper.deleteTcSjlyById(id);
}
@Override
public String importUser(List<TcSjly> tcSjlyList) {
StringBuilder successMsg = new StringBuilder();
if (!tcSjlyList.isEmpty()) {
for (TcSjly tcSjly : tcSjlyList) {
tcSjlyMapper.insertTcSjly(tcSjly);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcSjlytjMapper;
@ -93,4 +94,17 @@ public class TcSjlytjServiceImpl implements ITcSjlytjService
{
return tcSjlytjMapper.deleteTcSjlytjById(id);
}
@Override
public String importUser(List<TcSjlytj> tcSjlytjList) {
StringBuilder successMsg = new StringBuilder();
if (!tcSjlytjList.isEmpty()) {
for (TcSjlytj tcSjlytj : tcSjlytjList) {
tcSjlytjMapper.insertTcSjlytj(tcSjlytj);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcSslxMapper;
@ -93,4 +94,18 @@ public class TcSslxServiceImpl implements ITcSslxService
{
return tcSslxMapper.deleteTcSslxById(id);
}
@Override
public String importUser(List<TcSslx> tcSslxList) {
StringBuilder successMsg = new StringBuilder();
if (!tcSslxList.isEmpty()) {
for (TcSslx tcSslx : tcSslxList) {
tcSslxMapper.insertTcSslx(tcSslx);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcTbczMapper;
@ -93,4 +94,16 @@ public class TcTbczServiceImpl implements ITcTbczService
{
return tcTbczMapper.deleteTcTbczById(id);
}
@Override
public String importUser(List<TcTbcz> tcTbczList) {
StringBuilder successMsg = new StringBuilder();
if (!tcTbczList.isEmpty()) {
for (TcTbcz tcTbcz : tcTbczList) {
tcTbczMapper.insertTcTbcz(tcTbcz);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcTbwcMapper;
@ -93,4 +94,17 @@ public class TcTbwcServiceImpl implements ITcTbwcService
{
return tcTbwcMapper.deleteTcTbwcById(id);
}
@Override
public String importUser(List<TcTbwc> tcTbwcList) {
StringBuilder successMsg = new StringBuilder();
if (!tcTbwcList.isEmpty()) {
for (TcTbwc tcTbwc : tcTbwcList) {
tcTbwcMapper.insertTcTbwc(tcTbwc);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcTtsumMapper;
@ -93,4 +94,16 @@ public class TcTtsumServiceImpl implements ITcTtsumService
{
return tcTtsumMapper.deleteTcTtsumById(id);
}
@Override
public String importUser(List<TcTtsum> tcTtsumList) {
StringBuilder successMsg = new StringBuilder();
if (!tcTtsumList.isEmpty()) {
for (TcTtsum tcTtsum : tcTtsumList) {
tcTtsumMapper.insertTcTtsum(tcTtsum);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcVxMapper;
@ -93,4 +94,17 @@ public class TcVxServiceImpl implements ITcVxService
{
return tcVxMapper.deleteTcVxById(id);
}
@Override
public String importUser(List<TcVx> tcVxList) {
StringBuilder successMsg = new StringBuilder();
if (!tcVxList.isEmpty()) {
for (TcVx tcVx : tcVxList) {
tcVxMapper.insertTcVx(tcVx);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcWbMapper;
@ -93,4 +94,16 @@ public class TcWbServiceImpl implements ITcWbService
{
return tcWbMapper.deleteTcWbById(id);
}
@Override
public String importUser(List<TcWb> tcWbList) {
StringBuilder successMsg = new StringBuilder();
if (!tcWbList.isEmpty()) {
for (TcWb tcWb : tcWbList) {
tcWbMapper.insertTcWb(tcWb);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcWlaqzcqyMapper;
@ -93,4 +94,16 @@ public class TcWlaqzcqyServiceImpl implements ITcWlaqzcqyService
{
return tcWlaqzcqyMapper.deleteTcWlaqzcqyById(id);
}
@Override
public String importUser(List<TcWlaqzcqy> tcWlaqzcqyList) {
StringBuilder successMsg = new StringBuilder();
if (!tcWlaqzcqyList.isEmpty()) {
for (TcWlaqzcqy tcWlaqzcqy : tcWlaqzcqyList) {
tcWlaqzcqyMapper.insertTcWlaqzcqy(tcWlaqzcqy);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcWldvMapper;
@ -93,4 +94,16 @@ public class TcWldvServiceImpl implements ITcWldvService
{
return tcWldvMapper.deleteTcWldvById(id);
}
@Override
public String importUser(List<TcWldv> tcWldvList) {
StringBuilder successMsg = new StringBuilder();
if (!tcWldvList.isEmpty()) {
for (TcWldv tcWldv : tcWldvList) {
tcWldvMapper.insertTcWldv(tcWldv);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -2,6 +2,7 @@ package com.ruoyi.tcZz.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.tcZz.domain.TcAqg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tcZz.mapper.TcWljgtjMapper;
@ -93,4 +94,16 @@ public class TcWljgtjServiceImpl implements ITcWljgtjService
{
return tcWljgtjMapper.deleteTcWljgtjById(id);
}
@Override
public String importUser(List<TcWljgtj> tcWljgtjList) {
StringBuilder successMsg = new StringBuilder();
if (!tcWljgtjList.isEmpty()) {
for (TcWljgtj tcWljgtj : tcWljgtjList) {
tcWljgtjMapper.insertTcWljgtj(tcWljgtj);
}
successMsg.append("导入成功");
}
return successMsg.toString();
}
}

@ -115,7 +115,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/tcZz/networkSecurity/cybersecurity/ListNoToken", "/tcZz/networkSecurity/cybersecurity/ListNoToken",
"/tcZz/networkSecurity/jgdw/ListNoToken",
"/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/netManage/**/**"
).permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated()

Loading…
Cancel
Save