From 8a43df4a782504cd36c64fa751aaa93a5a56f013 Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Fri, 13 Oct 2023 13:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=8E=A5=E5=8F=A3=E6=96=B0?= =?UTF-8?q?=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tcZz/controller/TcJgdwController.java | 76 +++++++++++-------- .../tcZz/controller/TcXtjcController.java | 56 ++++++++++---- .../tcZz/controller/TcYqxxltjController.java | 75 ++++++++++-------- .../com/ruoyi/tcZz/service/ITcCyService.java | 2 +- .../ruoyi/tcZz/service/ITcJgdwService.java | 27 ++++--- .../ruoyi/tcZz/service/ITcXtjcService.java | 11 +++ .../ruoyi/tcZz/service/ITcYqxxltjService.java | 11 +++ .../tcZz/service/impl/TcJgdwServiceImpl.java | 14 ++++ .../tcZz/service/impl/TcXtjcServiceImpl.java | 15 ++++ .../service/impl/TcYqxxltjServiceImpl.java | 15 ++++ .../ruoyi/web/core/config/SwaggerConfig.java | 4 +- .../framework/config/SecurityConfig.java | 4 +- 12 files changed, 221 insertions(+), 89 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java index dcf8baa2..f0c21f59 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcJgdwController.java @@ -1,36 +1,33 @@ 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.TcJgdw; import com.ruoyi.tcZz.service.ITcJgdwService; -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/jgdw") -public class TcJgdwController extends BaseController -{ +public class TcJgdwController extends BaseController { @Autowired private ITcJgdwService tcJgdwService; @@ -39,8 +36,7 @@ public class TcJgdwController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:list')") @GetMapping("/list") - public TableDataInfo list(TcJgdw tcJgdw) - { + public TableDataInfo list(TcJgdw tcJgdw) { startPage(); List list = tcJgdwService.selectTcJgdwList(tcJgdw); return getDataTable(list); @@ -52,8 +48,7 @@ public class TcJgdwController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:export')") @Log(title = "监管单位", businessType = BusinessType.EXPORT) @PostMapping("/export") - public void export(HttpServletResponse response, TcJgdw tcJgdw) - { + public void export(HttpServletResponse response, TcJgdw tcJgdw) { List list = tcJgdwService.selectTcJgdwList(tcJgdw); ExcelUtil util = new ExcelUtil(TcJgdw.class); util.exportExcel(response, list, "监管单位数据"); @@ -64,8 +59,7 @@ public class TcJgdwController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:query')") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcJgdwService.selectTcJgdwById(id)); } @@ -75,8 +69,7 @@ public class TcJgdwController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:add')") @Log(title = "监管单位", businessType = BusinessType.INSERT) @PostMapping - public AjaxResult add(@RequestBody TcJgdw tcJgdw) - { + public AjaxResult add(@RequestBody TcJgdw tcJgdw) { return toAjax(tcJgdwService.insertTcJgdw(tcJgdw)); } @@ -86,8 +79,7 @@ public class TcJgdwController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:edit')") @Log(title = "监管单位", businessType = BusinessType.UPDATE) @PutMapping - public AjaxResult edit(@RequestBody TcJgdw tcJgdw) - { + public AjaxResult edit(@RequestBody TcJgdw tcJgdw) { return toAjax(tcJgdwService.updateTcJgdw(tcJgdw)); } @@ -96,9 +88,33 @@ public class TcJgdwController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:jgdw:remove')") @Log(title = "监管单位", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcJgdwService.deleteTcJgdwByIds(ids)); } + + + /** + * 查询监管单位列表 + */ + @ApiOperation(value = "查询监管单位列表", response = TcJgdw.class) + @GetMapping("/ListNoToken") + public TableDataInfo ListNoToken(TcJgdw tcJgdw) { + startPage(); + List list = tcJgdwService.selectTcJgdwList(tcJgdw); + return getDataTable(list); + } + + + /** + * 导入 + */ + @ApiOperation("通用导入excel信息") + @PostMapping("/common/importExcel") + public AjaxResult importExcel(MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil(TcJgdw.class); + List tcJgdwList = util.importExcel(file.getInputStream()); + tcJgdwService.importUser(tcJgdwList); + return AjaxResult.success(); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java index 6bd3aef9..2946c742 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcXtjcController.java @@ -2,6 +2,10 @@ package com.ruoyi.tcZz.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.tcZz.domain.TcCy; +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,17 +24,18 @@ import com.ruoyi.tcZz.domain.TcXtjc; import com.ruoyi.tcZz.service.ITcXtjcService; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.common.core.page.TableDataInfo; +import org.springframework.web.multipart.MultipartFile; /** * 系统监测Controller - * + * * @author ruoyi * @date 2023-10-12 */ +@Api(tags = "系统监测") @RestController @RequestMapping("/tcZz/networkSecurity/xtjc") -public class TcXtjcController extends BaseController -{ +public class TcXtjcController extends BaseController { @Autowired private ITcXtjcService tcXtjcService; @@ -39,8 +44,7 @@ public class TcXtjcController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:list')") @GetMapping("/list") - public TableDataInfo list(TcXtjc tcXtjc) - { + public TableDataInfo list(TcXtjc tcXtjc) { startPage(); List list = tcXtjcService.selectTcXtjcList(tcXtjc); return getDataTable(list); @@ -52,8 +56,7 @@ public class TcXtjcController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:export')") @Log(title = "系统监测", businessType = BusinessType.EXPORT) @PostMapping("/export") - public void export(HttpServletResponse response, TcXtjc tcXtjc) - { + public void export(HttpServletResponse response, TcXtjc tcXtjc) { List list = tcXtjcService.selectTcXtjcList(tcXtjc); ExcelUtil util = new ExcelUtil(TcXtjc.class); util.exportExcel(response, list, "系统监测数据"); @@ -64,8 +67,7 @@ public class TcXtjcController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:query')") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcXtjcService.selectTcXtjcById(id)); } @@ -75,8 +77,7 @@ public class TcXtjcController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:add')") @Log(title = "系统监测", businessType = BusinessType.INSERT) @PostMapping - public AjaxResult add(@RequestBody TcXtjc tcXtjc) - { + public AjaxResult add(@RequestBody TcXtjc tcXtjc) { return toAjax(tcXtjcService.insertTcXtjc(tcXtjc)); } @@ -86,8 +87,7 @@ public class TcXtjcController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:edit')") @Log(title = "系统监测", businessType = BusinessType.UPDATE) @PutMapping - public AjaxResult edit(@RequestBody TcXtjc tcXtjc) - { + public AjaxResult edit(@RequestBody TcXtjc tcXtjc) { return toAjax(tcXtjcService.updateTcXtjc(tcXtjc)); } @@ -96,9 +96,33 @@ public class TcXtjcController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/networkSecurity:xtjc:remove')") @Log(title = "系统监测", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcXtjcService.deleteTcXtjcByIds(ids)); } + + + /** + * 查询系统监测列表 + */ + @ApiOperation(value = "查询系统监测列表", response = TcXtjc.class) + @GetMapping("/ListNoToken") + public TableDataInfo ListNoToken(TcXtjc tcXtjc) { + startPage(); + List list = tcXtjcService.selectTcXtjcList(tcXtjc); + return getDataTable(list); + } + + + /** + * 导入 + */ + @ApiOperation("通用导入excel信息") + @PostMapping("/common/importExcel") + public AjaxResult importExcel(MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil(TcXtjc.class); + List tcXtjcList = util.importExcel(file.getInputStream()); + tcXtjcService.importUser(tcXtjcList); + return AjaxResult.success(); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java index a91351e2..edf78d77 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/controller/TcYqxxltjController.java @@ -1,36 +1,33 @@ 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.TcYqxxltj; import com.ruoyi.tcZz.service.ITcYqxxltjService; -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/yqxxltj") -public class TcYqxxltjController extends BaseController -{ +public class TcYqxxltjController extends BaseController { @Autowired private ITcYqxxltjService tcYqxxltjService; @@ -39,8 +36,7 @@ public class TcYqxxltjController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:list')") @GetMapping("/list") - public TableDataInfo list(TcYqxxltj tcYqxxltj) - { + public TableDataInfo list(TcYqxxltj tcYqxxltj) { startPage(); List list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj); return getDataTable(list); @@ -52,8 +48,7 @@ public class TcYqxxltjController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:export')") @Log(title = "舆情信息量统计明細", businessType = BusinessType.EXPORT) @PostMapping("/export") - public void export(HttpServletResponse response, TcYqxxltj tcYqxxltj) - { + public void export(HttpServletResponse response, TcYqxxltj tcYqxxltj) { List list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj); ExcelUtil util = new ExcelUtil(TcYqxxltj.class); util.exportExcel(response, list, "舆情信息量统计明細数据"); @@ -64,8 +59,7 @@ public class TcYqxxltjController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:query')") @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { + public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tcYqxxltjService.selectTcYqxxltjById(id)); } @@ -75,8 +69,7 @@ public class TcYqxxltjController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:add')") @Log(title = "舆情信息量统计明細", businessType = BusinessType.INSERT) @PostMapping - public AjaxResult add(@RequestBody TcYqxxltj tcYqxxltj) - { + public AjaxResult add(@RequestBody TcYqxxltj tcYqxxltj) { return toAjax(tcYqxxltjService.insertTcYqxxltj(tcYqxxltj)); } @@ -86,8 +79,7 @@ public class TcYqxxltjController extends BaseController @PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:edit')") @Log(title = "舆情信息量统计明細", businessType = BusinessType.UPDATE) @PutMapping - public AjaxResult edit(@RequestBody TcYqxxltj tcYqxxltj) - { + public AjaxResult edit(@RequestBody TcYqxxltj tcYqxxltj) { return toAjax(tcYqxxltjService.updateTcYqxxltj(tcYqxxltj)); } @@ -96,9 +88,32 @@ public class TcYqxxltjController extends BaseController */ @PreAuthorize("@ss.hasPermi('tcZz/netWorkYq:yqxxltj:remove')") @Log(title = "舆情信息量统计明細", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(tcYqxxltjService.deleteTcYqxxltjByIds(ids)); } + + /** + * 查询舆情信息量统计明細列表 + */ + @ApiOperation(value = "查询舆情信息量统计明細列表", response = TcYqxxltj.class) + @GetMapping("/ListNoToken") + public TableDataInfo ListNoToken(TcYqxxltj tcYqxxltj) { + startPage(); + List list = tcYqxxltjService.selectTcYqxxltjList(tcYqxxltj); + return getDataTable(list); + } + + /** + * 导入 + */ + @ApiOperation("通用导入excel信息") + @PostMapping("/common/importExcel") + public AjaxResult importExcel(MultipartFile file) throws Exception { + ExcelUtil util = new ExcelUtil(TcYqxxltj.class); + List YqxxltjList = util.importExcel(file.getInputStream()); + tcYqxxltjService.importUser(YqxxltjList); + return AjaxResult.success(); + } + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcCyService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcCyService.java index 559d5f41..bc60a0a3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcCyService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcCyService.java @@ -61,7 +61,7 @@ public interface ITcCyService public int deleteTcCyById(Long id); /** - * 导入云信息 + * 导入词云信息 * * @return 结果 */ diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcJgdwService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcJgdwService.java index 99e4c31d..2bcdcda8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcJgdwService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcJgdwService.java @@ -1,19 +1,20 @@ package com.ruoyi.tcZz.service; import java.util.List; + import com.ruoyi.tcZz.domain.TcJgdw; +import com.ruoyi.tcZz.domain.TcXtjc; /** * 监管单位Service接口 - * + * * @author ruoyi * @date 2023-10-12 */ -public interface ITcJgdwService -{ +public interface ITcJgdwService { /** * 查询监管单位 - * + * * @param id 监管单位主键 * @return 监管单位 */ @@ -21,7 +22,7 @@ public interface ITcJgdwService /** * 查询监管单位列表 - * + * * @param tcJgdw 监管单位 * @return 监管单位集合 */ @@ -29,7 +30,7 @@ public interface ITcJgdwService /** * 新增监管单位 - * + * * @param tcJgdw 监管单位 * @return 结果 */ @@ -37,7 +38,7 @@ public interface ITcJgdwService /** * 修改监管单位 - * + * * @param tcJgdw 监管单位 * @return 结果 */ @@ -45,7 +46,7 @@ public interface ITcJgdwService /** * 批量删除监管单位 - * + * * @param ids 需要删除的监管单位主键集合 * @return 结果 */ @@ -53,9 +54,17 @@ public interface ITcJgdwService /** * 删除监管单位信息 - * + * * @param id 监管单位主键 * @return 结果 */ public int deleteTcJgdwById(Long id); + + + /** + * 导入监管单位信息 + * + * @return 结果 + */ + public String importUser(List tcJgdwList); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcXtjcService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcXtjcService.java index 710ed74a..4a461dc1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcXtjcService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcXtjcService.java @@ -1,6 +1,8 @@ package com.ruoyi.tcZz.service; import java.util.List; + +import com.ruoyi.tcZz.domain.TcCy; import com.ruoyi.tcZz.domain.TcXtjc; /** @@ -58,4 +60,13 @@ public interface ITcXtjcService * @return 结果 */ public int deleteTcXtjcById(Long id); + + + + /** + * 导入系统监测信息 + * + * @return 结果 + */ + public String importUser(List tcXtjcList); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcYqxxltjService.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcYqxxltjService.java index 2e3f1f93..0ad16d10 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcYqxxltjService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcYqxxltjService.java @@ -1,6 +1,8 @@ package com.ruoyi.tcZz.service; import java.util.List; + +import com.ruoyi.tcZz.domain.TcJgdw; import com.ruoyi.tcZz.domain.TcYqxxltj; /** @@ -58,4 +60,13 @@ public interface ITcYqxxltjService * @return 结果 */ public int deleteTcYqxxltjById(Long id); + + + + /** + * 导入舆情信息量统计明細信息 + * + * @return 结果 + */ + public String importUser(List tcJgdwList); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcJgdwServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcJgdwServiceImpl.java index 158de9a7..fa9fca2c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcJgdwServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcJgdwServiceImpl.java @@ -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.TcXtjc; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.tcZz.mapper.TcJgdwMapper; @@ -93,4 +94,17 @@ public class TcJgdwServiceImpl implements ITcJgdwService { return tcJgdwMapper.deleteTcJgdwById(id); } + + @Override + public String importUser(List tcJgdwList) { + StringBuilder successMsg = new StringBuilder(); + if (!tcJgdwList.isEmpty()) { + for (TcJgdw tcJgdw : tcJgdwList) { + tcJgdwMapper.insertTcJgdw(tcJgdw); + } + successMsg.append("导入成功"); + } + + return successMsg.toString(); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcXtjcServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcXtjcServiceImpl.java index bf1585a7..e4785632 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcXtjcServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcXtjcServiceImpl.java @@ -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.TcCy; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.tcZz.mapper.TcXtjcMapper; @@ -93,4 +94,18 @@ public class TcXtjcServiceImpl implements ITcXtjcService { return tcXtjcMapper.deleteTcXtjcById(id); } + + @Override + public String importUser(List tcXtjcList) { + StringBuilder successMsg = new StringBuilder(); + if (!tcXtjcList.isEmpty()) { + for (TcXtjc tcXtjc : tcXtjcList) { + tcXtjcMapper.insertTcXtjc(tcXtjc); + } + successMsg.append("导入成功"); + } + + return successMsg.toString(); + + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcYqxxltjServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcYqxxltjServiceImpl.java index 971a58e5..a5584c33 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcYqxxltjServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/impl/TcYqxxltjServiceImpl.java @@ -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.TcXtjc; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.tcZz.mapper.TcYqxxltjMapper; @@ -93,4 +94,18 @@ public class TcYqxxltjServiceImpl implements ITcYqxxltjService { return tcYqxxltjMapper.deleteTcYqxxltjById(id); } + + @Override + public String importUser(List tcJgdwList) { + StringBuilder successMsg = new StringBuilder(); + if (!tcJgdwList.isEmpty()) { + for (TcYqxxltj tcYqxxltj : tcJgdwList) { + tcYqxxltjMapper.insertTcYqxxltj(tcYqxxltj); + } + successMsg.append("导入成功"); + } + + return successMsg.toString(); + + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java index 53a1966f..278c8194 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java @@ -75,9 +75,9 @@ public class SwaggerConfig { // 用ApiInfoBuilder进行定制 return new ApiInfoBuilder() // 设置标题 - .title("苏州应急3期系统_接口文档") + .title("太仓综治") // 描述 - .description("描述:用于苏州应急3期系统") + .description("描述:用于太仓综治系统") // 作者信息 .contact(new Contact(ruoyiConfig.getName(), null, null)) // 版本 diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index 3d530a46..87c042e0 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -114,7 +114,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter .antMatchers("/login", "/register", "/captchaImage").permitAll() // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() - .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/tcZz/cy/ListNoToken","/tcZz/yqzs/ListNoToken","/tcZz/networkSecurity/cybersecurity/ListNoToken","/tcZz/networkSecurity/cybersecurity/common/importExcel","/tcZz/yqzs/common/importExcel","/tcZz/cy/common/importExcel").permitAll() + .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/tcZz/cy/**n","/tcZz/yqzs/**", + "/tcZz/networkSecurity/cybersecurity/**","/tcZz/networkSecurity/xtjc/**", + "/tcZz/networkSecurity/jgdw/**","/tcZz/netWorkYq/yqxxltj/**","/tcZz/netWorkYq/yqxxltj/**").permitAll() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated() .and()