第二次提交

xuhongjie
董丁丁 2 years ago
parent 46c9b810c0
commit f213391e0c

@ -6,32 +6,28 @@
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi</artifactId>
<version>3.7.0</version>
<version>3.8.6</version>
<name>ruoyi</name>
<url>http://www.ruoyi.vip</url>
<description>若依管理系统</description>
<properties>
<ruoyi.version>3.7.0</ruoyi.version>
<ruoyi.version>3.8.6</ruoyi.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
<druid.version>1.2.6</druid.version>
<druid.version>1.2.16</druid.version>
<bitwalker.version>1.21</bitwalker.version>
<swagger.version>3.0.0</swagger.version>
<kaptcha.version>2.3.2</kaptcha.version>
<mybatis-spring-boot.version>2.1.4</mybatis-spring-boot.version>
<pagehelper.boot.version>1.3.1</pagehelper.boot.version>
<fastjson.version>1.2.76</fastjson.version>
<oshi.version>5.8.0</oshi.version>
<jna.version>5.8.0</jna.version>
<kaptcha.version>2.3.3</kaptcha.version>
<pagehelper.boot.version>1.4.6</pagehelper.boot.version>
<fastjson.version>2.0.34</fastjson.version>
<oshi.version>6.4.3</oshi.version>
<commons.io.version>2.11.0</commons.io.version>
<commons.fileupload.version>1.4</commons.fileupload.version>
<commons.collections.version>3.2.2</commons.collections.version>
<poi.version>4.1.2</poi.version>
<velocity.version>1.7</velocity.version>
<velocity.version>2.3</velocity.version>
<jwt.version>0.9.1</jwt.version>
</properties>
@ -43,7 +39,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.2.13.RELEASE</version>
<version>2.5.15</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@ -62,13 +58,6 @@
<version>${bitwalker.version}</version>
</dependency>
<!-- SpringBoot集成mybatis框架 -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot.version}</version>
</dependency>
<!-- pagehelper 分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
@ -83,18 +72,6 @@
<version>${oshi.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>${jna.version}</version>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
<version>${jna.version}</version>
</dependency>
<!-- Swagger3依赖 -->
<dependency>
<groupId>io.springfox</groupId>
@ -115,13 +92,6 @@
<version>${commons.io.version}</version>
</dependency>
<!-- 文件上传工具类 -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons.fileupload.version}</version>
</dependency>
<!-- excel工具 -->
<dependency>
<groupId>org.apache.poi</groupId>
@ -132,14 +102,8 @@
<!-- velocity代码生成使用模板 -->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<artifactId>velocity-engine-core</artifactId>
<version>${velocity.version}</version>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- collections工具类 -->
@ -151,8 +115,8 @@
<!-- 阿里JSON解析器 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>${fastjson.version}</version>
</dependency>
@ -165,7 +129,7 @@
<!-- 验证码 -->
<dependency>
<groupId>com.github.penggle</groupId>
<groupId>pro.fessional</groupId>
<artifactId>kaptcha</artifactId>
<version>${kaptcha.version}</version>
</dependency>
@ -218,11 +182,6 @@
</modules>
<packaging>pom</packaging>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
@ -242,7 +201,7 @@
<repository>
<id>public</id>
<name>aliyun nexus</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>
@ -253,7 +212,7 @@
<pluginRepository>
<id>public</id>
<name>aliyun nexus</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<url>https://maven.aliyun.com/repository/public</url>
<releases>
<enabled>true</enabled>
</releases>

@ -5,7 +5,7 @@
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>3.7.0</version>
<version>3.8.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
@ -14,6 +14,9 @@
<description>
web服务入口
</description>
<properties>
<knife4j.version>4.0.0</knife4j.version>
</properties>
<dependencies>
@ -24,20 +27,21 @@
<optional>true</optional> <!-- 表示依赖不会传递 -->
</dependency>
<!-- swagger3-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi2-spring-boot-starter</artifactId>
<version>${knife4j.version}</version>
</dependency>
<!-- 防止进入swagger页面报类型转换错误排除3.0.0中的引用手动增加1.6.2版本 -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.6.2</version>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- Mysql驱动包 -->
<!-- Mysql驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
@ -80,15 +84,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>
</configuration>
</plugin>
</plugins>
<finalName>${project.artifactId}</finalName>
</build>

@ -3,6 +3,11 @@ package com.ruoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
*
@ -12,19 +17,22 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
public static void main(String[] args)
{
// System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(RuoYiApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" +
" |(_ o _) / _( )_ .' \n" +
" | (_,_).' __ ___(_ o _)' \n" +
" | |\\ \\ | || |(_,_)' \n" +
" | | \\ `' /| `-' / \n" +
" | | \\ / \\ / \n" +
" ''-' `'-' `-..-' ");
public static void main(String[] args) {
ConfigurableApplicationContext application = SpringApplication.run(RuoYiApplication.class, args);
Environment env = application.getEnvironment();
String ip = null;
try {
ip = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
String port = env.getProperty("server.port");
String path = env.getProperty("server.servlet.context-path");
path = path.isEmpty() ? "" : path;
System.out.println("\n----------------------------------------------------------\n\t"
+ "Application is running! Access URLs:\n\t"
+ "swagger-ui: http://localhost:" + port + path + "doc.html\n\t"
+ "swagger-ui: http://" + ip + ":" + port + path + "doc.html\n\t"
+ "----------------------------------------------------------");
}
}

@ -7,11 +7,12 @@ import javax.annotation.Resource;
import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.FastByteArrayOutputStream;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import com.google.code.kaptcha.Producer;
import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.redis.RedisCache;
@ -36,10 +37,6 @@ public class CaptchaController
@Autowired
private RedisCache redisCache;
// 验证码类型
@Value("${ruoyi.captchaType}")
private String captchaType;
@Autowired
private ISysConfigService configService;
/**
@ -49,21 +46,22 @@ public class CaptchaController
public AjaxResult getCode(HttpServletResponse response) throws IOException
{
AjaxResult ajax = AjaxResult.success();
boolean captchaOnOff = configService.selectCaptchaOnOff();
ajax.put("captchaOnOff", captchaOnOff);
if (!captchaOnOff)
boolean captchaEnabled = configService.selectCaptchaEnabled();
ajax.put("captchaEnabled", captchaEnabled);
if (!captchaEnabled)
{
return ajax;
}
// 保存验证码信息
String uuid = IdUtils.simpleUUID();
String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid;
String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + uuid;
String capStr = null, code = null;
BufferedImage image = null;
// 生成验证码
String captchaType = RuoYiConfig.getCaptchaType();
if ("math".equals(captchaType))
{
String capText = captchaProducerMath.createText();

@ -1,13 +1,20 @@
package com.ruoyi.web.controller.common;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.core.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.common.config.RuoYiConfig;
@ -24,20 +31,25 @@ import com.ruoyi.framework.config.ServerConfig;
* @author ruoyi
*/
@RestController
public class CommonController
@Api(tags = "通用请求处理")
@RequestMapping("/zongzhi/common")
public class CommonController extends BaseController
{
private static final Logger log = LoggerFactory.getLogger(CommonController.class);
@Autowired
private ServerConfig serverConfig;
private static final String FILE_DELIMETER = ",";
/**
*
*
* @param fileName
* @param delete
*/
@GetMapping("common/download")
@ApiOperation("通用下载请求")
@GetMapping("/download")
public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request)
{
try
@ -64,9 +76,10 @@ public class CommonController
}
/**
*
*
*/
@PostMapping("/common/upload")
@ApiOperation("通用上传请求(单个)")
@PostMapping("/upload")
public AjaxResult uploadFile(MultipartFile file) throws Exception
{
try
@ -77,8 +90,48 @@ public class CommonController
String fileName = FileUploadUtils.upload(filePath, file);
String url = serverConfig.getUrl() + fileName;
AjaxResult ajax = AjaxResult.success();
ajax.put("fileName", fileName);
ajax.put("url", url);
ajax.put("fileName", fileName);
ajax.put("newFileName", FileUtils.getName(fileName));
ajax.put("originalFilename", file.getOriginalFilename());
return ajax;
}
catch (Exception e)
{
return AjaxResult.error(e.getMessage());
}
}
/**
*
*/
@ApiOperation("通用上传请求(多个)")
@PostMapping("/uploads")
public AjaxResult uploadFiles(List<MultipartFile> files) throws Exception
{
try
{
// 上传文件路径
String filePath = RuoYiConfig.getUploadPath();
List<String> urls = new ArrayList<String>();
List<String> fileNames = new ArrayList<String>();
List<String> newFileNames = new ArrayList<String>();
List<String> originalFilenames = new ArrayList<String>();
for (MultipartFile file : files)
{
// 上传并返回新文件名称
String fileName = FileUploadUtils.upload(filePath, file);
String url = serverConfig.getUrl() + fileName;
urls.add(url);
fileNames.add(fileName);
newFileNames.add(FileUtils.getName(fileName));
originalFilenames.add(file.getOriginalFilename());
}
AjaxResult ajax = AjaxResult.success();
ajax.put("urls", StringUtils.join(urls, FILE_DELIMETER));
ajax.put("fileNames", StringUtils.join(fileNames, FILE_DELIMETER));
ajax.put("newFileNames", StringUtils.join(newFileNames, FILE_DELIMETER));
ajax.put("originalFilenames", StringUtils.join(originalFilenames, FILE_DELIMETER));
return ajax;
}
catch (Exception e)
@ -90,7 +143,8 @@ public class CommonController
/**
*
*/
@GetMapping("/common/download/resource")
@ApiOperation("本地资源通用下载")
@GetMapping("/download/resource")
public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response)
throws Exception
{

@ -1,19 +1,25 @@
package com.ruoyi.web.controller.monitor;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.SysCache;
/**
*
@ -27,6 +33,17 @@ public class CacheController
@Autowired
private RedisTemplate<String, String> redisTemplate;
private final static List<SysCache> caches = new ArrayList<SysCache>();
{
caches.add(new SysCache(CacheConstants.LOGIN_TOKEN_KEY, "用户信息"));
caches.add(new SysCache(CacheConstants.SYS_CONFIG_KEY, "配置信息"));
caches.add(new SysCache(CacheConstants.SYS_DICT_KEY, "数据字典"));
caches.add(new SysCache(CacheConstants.CAPTCHA_CODE_KEY, "验证码"));
caches.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交"));
caches.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理"));
caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数"));
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping()
public AjaxResult getInfo() throws Exception
@ -50,4 +67,54 @@ public class CacheController
result.put("commandStats", pieList);
return AjaxResult.success(result);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping("/getNames")
public AjaxResult cache()
{
return AjaxResult.success(caches);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping("/getKeys/{cacheName}")
public AjaxResult getCacheKeys(@PathVariable String cacheName)
{
Set<String> cacheKeys = redisTemplate.keys(cacheName + "*");
return AjaxResult.success(cacheKeys);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@GetMapping("/getValue/{cacheName}/{cacheKey}")
public AjaxResult getCacheValue(@PathVariable String cacheName, @PathVariable String cacheKey)
{
String cacheValue = redisTemplate.opsForValue().get(cacheKey);
SysCache sysCache = new SysCache(cacheName, cacheKey, cacheValue);
return AjaxResult.success(sysCache);
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheName/{cacheName}")
public AjaxResult clearCacheName(@PathVariable String cacheName)
{
Collection<String> cacheKeys = redisTemplate.keys(cacheName + "*");
redisTemplate.delete(cacheKeys);
return AjaxResult.success();
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheKey/{cacheKey}")
public AjaxResult clearCacheKey(@PathVariable String cacheKey)
{
redisTemplate.delete(cacheKey);
return AjaxResult.success();
}
@PreAuthorize("@ss.hasPermi('monitor:cache:list')")
@DeleteMapping("/clearCacheAll")
public AjaxResult clearCacheAll()
{
Collection<String> cacheKeys = redisTemplate.keys("*");
redisTemplate.delete(cacheKeys);
return AjaxResult.success();
}
}

@ -1,11 +1,13 @@
package com.ruoyi.web.controller.monitor;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
@ -14,6 +16,7 @@ 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.framework.web.service.SysPasswordService;
import com.ruoyi.system.domain.SysLogininfor;
import com.ruoyi.system.service.ISysLogininforService;
@ -29,6 +32,9 @@ public class SysLogininforController extends BaseController
@Autowired
private ISysLogininforService logininforService;
@Autowired
private SysPasswordService passwordService;
@PreAuthorize("@ss.hasPermi('monitor:logininfor:list')")
@GetMapping("/list")
public TableDataInfo list(SysLogininfor logininfor)
@ -40,12 +46,12 @@ public class SysLogininforController extends BaseController
@Log(title = "登录日志", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('monitor:logininfor:export')")
@GetMapping("/export")
public AjaxResult export(SysLogininfor logininfor)
@PostMapping("/export")
public void export(HttpServletResponse response, SysLogininfor logininfor)
{
List<SysLogininfor> list = logininforService.selectLogininforList(logininfor);
ExcelUtil<SysLogininfor> util = new ExcelUtil<SysLogininfor>(SysLogininfor.class);
return util.exportExcel(list, "登录日志");
util.exportExcel(response, list, "登录日志");
}
@PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
@ -62,6 +68,15 @@ public class SysLogininforController extends BaseController
public AjaxResult clean()
{
logininforService.cleanLogininfor();
return AjaxResult.success();
return success();
}
@PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')")
@Log(title = "账户解锁", businessType = BusinessType.OTHER)
@GetMapping("/unlock/{userName}")
public AjaxResult unlock(@PathVariable("userName") String userName)
{
passwordService.clearLoginRecordCache(userName);
return success();
}
}

@ -1,11 +1,13 @@
package com.ruoyi.web.controller.monitor;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
@ -40,12 +42,12 @@ public class SysOperlogController extends BaseController
@Log(title = "操作日志", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('monitor:operlog:export')")
@GetMapping("/export")
public AjaxResult export(SysOperLog operLog)
@PostMapping("/export")
public void export(HttpServletResponse response, SysOperLog operLog)
{
List<SysOperLog> list = operLogService.selectOperLogList(operLog);
ExcelUtil<SysOperLog> util = new ExcelUtil<SysOperLog>(SysOperLog.class);
return util.exportExcel(list, "操作日志");
util.exportExcel(response, list, "操作日志");
}
@Log(title = "操作日志", businessType = BusinessType.DELETE)
@ -62,6 +64,6 @@ public class SysOperlogController extends BaseController
public AjaxResult clean()
{
operLogService.cleanOperLog();
return AjaxResult.success();
return success();
}
}

@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.LoginUser;
@ -42,31 +42,22 @@ public class SysUserOnlineController extends BaseController
@GetMapping("/list")
public TableDataInfo list(String ipaddr, String userName)
{
Collection<String> keys = redisCache.keys(Constants.LOGIN_TOKEN_KEY + "*");
Collection<String> keys = redisCache.keys(CacheConstants.LOGIN_TOKEN_KEY + "*");
List<SysUserOnline> userOnlineList = new ArrayList<SysUserOnline>();
for (String key : keys)
{
LoginUser user = redisCache.getCacheObject(key);
if (StringUtils.isNotEmpty(ipaddr) && StringUtils.isNotEmpty(userName))
{
if (StringUtils.equals(ipaddr, user.getIpaddr()) && StringUtils.equals(userName, user.getUsername()))
{
userOnlineList.add(userOnlineService.selectOnlineByInfo(ipaddr, userName, user));
}
userOnlineList.add(userOnlineService.selectOnlineByInfo(ipaddr, userName, user));
}
else if (StringUtils.isNotEmpty(ipaddr))
{
if (StringUtils.equals(ipaddr, user.getIpaddr()))
{
userOnlineList.add(userOnlineService.selectOnlineByIpaddr(ipaddr, user));
}
userOnlineList.add(userOnlineService.selectOnlineByIpaddr(ipaddr, user));
}
else if (StringUtils.isNotEmpty(userName) && StringUtils.isNotNull(user.getUser()))
{
if (StringUtils.equals(userName, user.getUsername()))
{
userOnlineList.add(userOnlineService.selectOnlineByUserName(userName, user));
}
userOnlineList.add(userOnlineService.selectOnlineByUserName(userName, user));
}
else
{
@ -86,7 +77,7 @@ public class SysUserOnlineController extends BaseController
@DeleteMapping("/{tokenId}")
public AjaxResult forceLogout(@PathVariable String tokenId)
{
redisCache.deleteObject(Constants.LOGIN_TOKEN_KEY + tokenId);
return AjaxResult.success();
redisCache.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId);
return success();
}
}

@ -1,6 +1,7 @@
package com.ruoyi.web.controller.system;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@ -13,8 +14,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.RepeatSubmit;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
@ -49,12 +48,12 @@ public class SysConfigController extends BaseController
@Log(title = "参数管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:config:export')")
@GetMapping("/export")
public AjaxResult export(SysConfig config)
@PostMapping("/export")
public void export(HttpServletResponse response, SysConfig config)
{
List<SysConfig> list = configService.selectConfigList(config);
ExcelUtil<SysConfig> util = new ExcelUtil<SysConfig>(SysConfig.class);
return util.exportExcel(list, "参数数据");
util.exportExcel(response, list, "参数数据");
}
/**
@ -64,7 +63,7 @@ public class SysConfigController extends BaseController
@GetMapping(value = "/{configId}")
public AjaxResult getInfo(@PathVariable Long configId)
{
return AjaxResult.success(configService.selectConfigById(configId));
return success(configService.selectConfigById(configId));
}
/**
@ -73,7 +72,7 @@ public class SysConfigController extends BaseController
@GetMapping(value = "/configKey/{configKey}")
public AjaxResult getConfigKey(@PathVariable String configKey)
{
return AjaxResult.success(configService.selectConfigByKey(configKey));
return success(configService.selectConfigByKey(configKey));
}
/**
@ -82,12 +81,11 @@ public class SysConfigController extends BaseController
@PreAuthorize("@ss.hasPermi('system:config:add')")
@Log(title = "参数管理", businessType = BusinessType.INSERT)
@PostMapping
@RepeatSubmit
public AjaxResult add(@Validated @RequestBody SysConfig config)
{
if (UserConstants.NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config)))
if (!configService.checkConfigKeyUnique(config))
{
return AjaxResult.error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在");
}
config.setCreateBy(getUsername());
return toAjax(configService.insertConfig(config));
@ -101,9 +99,9 @@ public class SysConfigController extends BaseController
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysConfig config)
{
if (UserConstants.NOT_UNIQUE.equals(configService.checkConfigKeyUnique(config)))
if (!configService.checkConfigKeyUnique(config))
{
return AjaxResult.error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在");
return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在");
}
config.setUpdateBy(getUsername());
return toAjax(configService.updateConfig(config));
@ -130,6 +128,6 @@ public class SysConfigController extends BaseController
public AjaxResult refreshCache()
{
configService.resetConfigCache();
return AjaxResult.success();
return success();
}
}

@ -1,6 +1,5 @@
package com.ruoyi.web.controller.system;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.factory.annotation.Autowired;
@ -43,7 +42,7 @@ public class SysDeptController extends BaseController
public AjaxResult list(SysDept dept)
{
List<SysDept> depts = deptService.selectDeptList(dept);
return AjaxResult.success(depts);
return success(depts);
}
/**
@ -54,17 +53,8 @@ public class SysDeptController extends BaseController
public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId)
{
List<SysDept> depts = deptService.selectDeptList(new SysDept());
Iterator<SysDept> it = depts.iterator();
while (it.hasNext())
{
SysDept d = (SysDept) it.next();
if (d.getDeptId().intValue() == deptId
|| ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + ""))
{
it.remove();
}
}
return AjaxResult.success(depts);
depts.removeIf(d -> d.getDeptId().intValue() == deptId || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + ""));
return success(depts);
}
/**
@ -75,30 +65,7 @@ public class SysDeptController extends BaseController
public AjaxResult getInfo(@PathVariable Long deptId)
{
deptService.checkDeptDataScope(deptId);
return AjaxResult.success(deptService.selectDeptById(deptId));
}
/**
*
*/
@GetMapping("/treeselect")
public AjaxResult treeselect(SysDept dept)
{
List<SysDept> depts = deptService.selectDeptList(dept);
return AjaxResult.success(deptService.buildDeptTreeSelect(depts));
}
/**
*
*/
@GetMapping(value = "/roleDeptTreeselect/{roleId}")
public AjaxResult roleDeptTreeselect(@PathVariable("roleId") Long roleId)
{
List<SysDept> depts = deptService.selectDeptList(new SysDept());
AjaxResult ajax = AjaxResult.success();
ajax.put("checkedKeys", deptService.selectDeptListByRoleId(roleId));
ajax.put("depts", deptService.buildDeptTreeSelect(depts));
return ajax;
return success(deptService.selectDeptById(deptId));
}
/**
@ -109,9 +76,9 @@ public class SysDeptController extends BaseController
@PostMapping
public AjaxResult add(@Validated @RequestBody SysDept dept)
{
if (UserConstants.NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept)))
if (!deptService.checkDeptNameUnique(dept))
{
return AjaxResult.error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在");
return error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在");
}
dept.setCreateBy(getUsername());
return toAjax(deptService.insertDept(dept));
@ -125,18 +92,19 @@ public class SysDeptController extends BaseController
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysDept dept)
{
if (UserConstants.NOT_UNIQUE.equals(deptService.checkDeptNameUnique(dept)))
Long deptId = dept.getDeptId();
deptService.checkDeptDataScope(deptId);
if (!deptService.checkDeptNameUnique(dept))
{
return AjaxResult.error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在");
return error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在");
}
else if (dept.getParentId().equals(dept.getDeptId()))
else if (dept.getParentId().equals(deptId))
{
return AjaxResult.error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己");
return error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己");
}
else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus())
&& deptService.selectNormalChildrenDeptById(dept.getDeptId()) > 0)
else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()) && deptService.selectNormalChildrenDeptById(deptId) > 0)
{
return AjaxResult.error("该部门包含未停用的子部门!");
return error("该部门包含未停用的子部门!");
}
dept.setUpdateBy(getUsername());
return toAjax(deptService.updateDept(dept));
@ -152,12 +120,13 @@ public class SysDeptController extends BaseController
{
if (deptService.hasChildByDeptId(deptId))
{
return AjaxResult.error("存在下级部门,不允许删除");
return warn("存在下级部门,不允许删除");
}
if (deptService.checkDeptExistUser(deptId))
{
return AjaxResult.error("部门存在用户,不允许删除");
return warn("部门存在用户,不允许删除");
}
deptService.checkDeptDataScope(deptId);
return toAjax(deptService.deleteDeptById(deptId));
}
}

@ -2,6 +2,7 @@ package com.ruoyi.web.controller.system;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@ -50,12 +51,12 @@ public class SysDictDataController extends BaseController
@Log(title = "字典数据", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:dict:export')")
@GetMapping("/export")
public AjaxResult export(SysDictData dictData)
@PostMapping("/export")
public void export(HttpServletResponse response, SysDictData dictData)
{
List<SysDictData> list = dictDataService.selectDictDataList(dictData);
ExcelUtil<SysDictData> util = new ExcelUtil<SysDictData>(SysDictData.class);
return util.exportExcel(list, "字典数据");
util.exportExcel(response, list, "字典数据");
}
/**
@ -65,7 +66,7 @@ public class SysDictDataController extends BaseController
@GetMapping(value = "/{dictCode}")
public AjaxResult getInfo(@PathVariable Long dictCode)
{
return AjaxResult.success(dictDataService.selectDictDataById(dictCode));
return success(dictDataService.selectDictDataById(dictCode));
}
/**
@ -79,7 +80,7 @@ public class SysDictDataController extends BaseController
{
data = new ArrayList<SysDictData>();
}
return AjaxResult.success(data);
return success(data);
}
/**

@ -1,6 +1,7 @@
package com.ruoyi.web.controller.system;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@ -13,7 +14,6 @@ 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.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictType;
@ -45,12 +45,12 @@ public class SysDictTypeController extends BaseController
@Log(title = "字典类型", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:dict:export')")
@GetMapping("/export")
public AjaxResult export(SysDictType dictType)
@PostMapping("/export")
public void export(HttpServletResponse response, SysDictType dictType)
{
List<SysDictType> list = dictTypeService.selectDictTypeList(dictType);
ExcelUtil<SysDictType> util = new ExcelUtil<SysDictType>(SysDictType.class);
return util.exportExcel(list, "字典类型");
util.exportExcel(response, list, "字典类型");
}
/**
@ -60,7 +60,7 @@ public class SysDictTypeController extends BaseController
@GetMapping(value = "/{dictId}")
public AjaxResult getInfo(@PathVariable Long dictId)
{
return AjaxResult.success(dictTypeService.selectDictTypeById(dictId));
return success(dictTypeService.selectDictTypeById(dictId));
}
/**
@ -71,9 +71,9 @@ public class SysDictTypeController extends BaseController
@PostMapping
public AjaxResult add(@Validated @RequestBody SysDictType dict)
{
if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict)))
if (!dictTypeService.checkDictTypeUnique(dict))
{
return AjaxResult.error("新增字典'" + dict.getDictName() + "'失败,字典类型已存在");
return error("新增字典'" + dict.getDictName() + "'失败,字典类型已存在");
}
dict.setCreateBy(getUsername());
return toAjax(dictTypeService.insertDictType(dict));
@ -87,9 +87,9 @@ public class SysDictTypeController extends BaseController
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysDictType dict)
{
if (UserConstants.NOT_UNIQUE.equals(dictTypeService.checkDictTypeUnique(dict)))
if (!dictTypeService.checkDictTypeUnique(dict))
{
return AjaxResult.error("修改字典'" + dict.getDictName() + "'失败,字典类型已存在");
return error("修改字典'" + dict.getDictName() + "'失败,字典类型已存在");
}
dict.setUpdateBy(getUsername());
return toAjax(dictTypeService.updateDictType(dict));
@ -116,7 +116,7 @@ public class SysDictTypeController extends BaseController
public AjaxResult refreshCache()
{
dictTypeService.resetDictCache();
return AjaxResult.success();
return success();
}
/**
@ -126,6 +126,6 @@ public class SysDictTypeController extends BaseController
public AjaxResult optionselect()
{
List<SysDictType> dictTypes = dictTypeService.selectDictTypeAll();
return AjaxResult.success(dictTypes);
return success(dictTypes);
}
}

@ -41,7 +41,7 @@ public class SysMenuController extends BaseController
public AjaxResult list(SysMenu menu)
{
List<SysMenu> menus = menuService.selectMenuList(menu, getUserId());
return AjaxResult.success(menus);
return success(menus);
}
/**
@ -51,7 +51,7 @@ public class SysMenuController extends BaseController
@GetMapping(value = "/{menuId}")
public AjaxResult getInfo(@PathVariable Long menuId)
{
return AjaxResult.success(menuService.selectMenuById(menuId));
return success(menuService.selectMenuById(menuId));
}
/**
@ -61,7 +61,7 @@ public class SysMenuController extends BaseController
public AjaxResult treeselect(SysMenu menu)
{
List<SysMenu> menus = menuService.selectMenuList(menu, getUserId());
return AjaxResult.success(menuService.buildMenuTreeSelect(menus));
return success(menuService.buildMenuTreeSelect(menus));
}
/**
@ -85,13 +85,13 @@ public class SysMenuController extends BaseController
@PostMapping
public AjaxResult add(@Validated @RequestBody SysMenu menu)
{
if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu)))
if (!menuService.checkMenuNameUnique(menu))
{
return AjaxResult.error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
return error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
}
else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath()))
{
return AjaxResult.error("新增菜单'" + menu.getMenuName() + "'失败地址必须以http(s)://开头");
return error("新增菜单'" + menu.getMenuName() + "'失败地址必须以http(s)://开头");
}
menu.setCreateBy(getUsername());
return toAjax(menuService.insertMenu(menu));
@ -105,17 +105,17 @@ public class SysMenuController extends BaseController
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysMenu menu)
{
if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu)))
if (!menuService.checkMenuNameUnique(menu))
{
return AjaxResult.error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
return error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在");
}
else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath()))
{
return AjaxResult.error("修改菜单'" + menu.getMenuName() + "'失败地址必须以http(s)://开头");
return error("修改菜单'" + menu.getMenuName() + "'失败地址必须以http(s)://开头");
}
else if (menu.getMenuId().equals(menu.getParentId()))
{
return AjaxResult.error("修改菜单'" + menu.getMenuName() + "'失败,上级菜单不能选择自己");
return error("修改菜单'" + menu.getMenuName() + "'失败,上级菜单不能选择自己");
}
menu.setUpdateBy(getUsername());
return toAjax(menuService.updateMenu(menu));
@ -131,11 +131,11 @@ public class SysMenuController extends BaseController
{
if (menuService.hasChildByMenuId(menuId))
{
return AjaxResult.error("存在子菜单,不允许删除");
return warn("存在子菜单,不允许删除");
}
if (menuService.checkMenuExistRole(menuId))
{
return AjaxResult.error("菜单已分配,不允许删除");
return warn("菜单已分配,不允许删除");
}
return toAjax(menuService.deleteMenuById(menuId));
}

@ -51,7 +51,7 @@ public class SysNoticeController extends BaseController
@GetMapping(value = "/{noticeId}")
public AjaxResult getInfo(@PathVariable Long noticeId)
{
return AjaxResult.success(noticeService.selectNoticeById(noticeId));
return success(noticeService.selectNoticeById(noticeId));
}
/**

@ -1,6 +1,7 @@
package com.ruoyi.web.controller.system;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@ -13,7 +14,6 @@ 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.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
@ -48,12 +48,12 @@ public class SysPostController extends BaseController
@Log(title = "岗位管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:post:export')")
@GetMapping("/export")
public AjaxResult export(SysPost post)
@PostMapping("/export")
public void export(HttpServletResponse response, SysPost post)
{
List<SysPost> list = postService.selectPostList(post);
ExcelUtil<SysPost> util = new ExcelUtil<SysPost>(SysPost.class);
return util.exportExcel(list, "岗位数据");
util.exportExcel(response, list, "岗位数据");
}
/**
@ -63,7 +63,7 @@ public class SysPostController extends BaseController
@GetMapping(value = "/{postId}")
public AjaxResult getInfo(@PathVariable Long postId)
{
return AjaxResult.success(postService.selectPostById(postId));
return success(postService.selectPostById(postId));
}
/**
@ -74,13 +74,13 @@ public class SysPostController extends BaseController
@PostMapping
public AjaxResult add(@Validated @RequestBody SysPost post)
{
if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post)))
if (!postService.checkPostNameUnique(post))
{
return AjaxResult.error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在");
return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在");
}
else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post)))
else if (!postService.checkPostCodeUnique(post))
{
return AjaxResult.error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在");
return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在");
}
post.setCreateBy(getUsername());
return toAjax(postService.insertPost(post));
@ -94,13 +94,13 @@ public class SysPostController extends BaseController
@PutMapping
public AjaxResult edit(@Validated @RequestBody SysPost post)
{
if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post)))
if (!postService.checkPostNameUnique(post))
{
return AjaxResult.error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在");
return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在");
}
else if (UserConstants.NOT_UNIQUE.equals(postService.checkPostCodeUnique(post)))
else if (!postService.checkPostCodeUnique(post))
{
return AjaxResult.error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在");
return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在");
}
post.setUpdateBy(getUsername());
return toAjax(postService.updatePost(post));
@ -124,6 +124,6 @@ public class SysPostController extends BaseController
public AjaxResult optionselect()
{
List<SysPost> posts = postService.selectPostAll();
return AjaxResult.success(posts);
return success(posts);
}
}

@ -1,6 +1,5 @@
package com.ruoyi.web.controller.system;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@ -12,7 +11,6 @@ import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.config.RuoYiConfig;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
@ -21,6 +19,7 @@ import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.file.FileUploadUtils;
import com.ruoyi.common.utils.file.MimeTypeUtils;
import com.ruoyi.framework.web.service.TokenService;
import com.ruoyi.system.service.ISysUserService;
@ -60,20 +59,21 @@ public class SysProfileController extends BaseController
@PutMapping
public AjaxResult updateProfile(@RequestBody SysUser user)
{
if (StringUtils.isNotEmpty(user.getPhonenumber())
&& UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user)))
LoginUser loginUser = getLoginUser();
SysUser sysUser = loginUser.getUser();
user.setUserName(sysUser.getUserName());
if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user))
{
return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
return error("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
}
if (StringUtils.isNotEmpty(user.getEmail())
&& UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user)))
if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user))
{
return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
}
LoginUser loginUser = getLoginUser();
SysUser sysUser = loginUser.getUser();
user.setUserId(sysUser.getUserId());
user.setPassword(null);
user.setAvatar(null);
user.setDeptId(null);
if (userService.updateUserProfile(user) > 0)
{
// 更新缓存用户信息
@ -82,9 +82,9 @@ public class SysProfileController extends BaseController
sysUser.setEmail(user.getEmail());
sysUser.setSex(user.getSex());
tokenService.setLoginUser(loginUser);
return AjaxResult.success();
return success();
}
return AjaxResult.error("修改个人信息异常,请联系管理员");
return error("修改个人信息异常,请联系管理员");
}
/**
@ -99,20 +99,20 @@ public class SysProfileController extends BaseController
String password = loginUser.getPassword();
if (!SecurityUtils.matchesPassword(oldPassword, password))
{
return AjaxResult.error("修改密码失败,旧密码错误");
return error("修改密码失败,旧密码错误");
}
if (SecurityUtils.matchesPassword(newPassword, password))
{
return AjaxResult.error("新密码不能与旧密码相同");
return error("新密码不能与旧密码相同");
}
if (userService.resetUserPwd(userName, SecurityUtils.encryptPassword(newPassword)) > 0)
{
// 更新缓存用户密码
loginUser.getUser().setPassword(SecurityUtils.encryptPassword(newPassword));
tokenService.setLoginUser(loginUser);
return AjaxResult.success();
return success();
}
return AjaxResult.error("修改密码异常,请联系管理员");
return error("修改密码异常,请联系管理员");
}
/**
@ -120,12 +120,12 @@ public class SysProfileController extends BaseController
*/
@Log(title = "用户头像", businessType = BusinessType.UPDATE)
@PostMapping("/avatar")
public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file) throws IOException
public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file) throws Exception
{
if (!file.isEmpty())
{
LoginUser loginUser = getLoginUser();
String avatar = FileUploadUtils.upload(RuoYiConfig.getAvatarPath(), file);
String avatar = FileUploadUtils.upload(RuoYiConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION);
if (userService.updateUserAvatar(loginUser.getUsername(), avatar))
{
AjaxResult ajax = AjaxResult.success();
@ -136,6 +136,6 @@ public class SysProfileController extends BaseController
return ajax;
}
}
return AjaxResult.error("上传图片异常,请联系管理员");
return error("上传图片异常,请联系管理员");
}
}

@ -1,13 +1,13 @@
package com.ruoyi.web.controller.system;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.RegisterBody;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.framework.web.service.SysRegisterService;
import com.ruoyi.system.service.ISysConfigService;

@ -1,6 +1,7 @@
package com.ruoyi.web.controller.system;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
@ -13,9 +14,9 @@ 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.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginUser;
@ -26,6 +27,7 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.web.service.SysPermissionService;
import com.ruoyi.framework.web.service.TokenService;
import com.ruoyi.system.domain.SysUserRole;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysRoleService;
import com.ruoyi.system.service.ISysUserService;
@ -43,13 +45,16 @@ public class SysRoleController extends BaseController
@Autowired
private TokenService tokenService;
@Autowired
private SysPermissionService permissionService;
@Autowired
private ISysUserService userService;
@Autowired
private ISysDeptService deptService;
@PreAuthorize("@ss.hasPermi('system:role:list')")
@GetMapping("/list")
public TableDataInfo list(SysRole role)
@ -61,12 +66,12 @@ public class SysRoleController extends BaseController
@Log(title = "角色管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:role:export')")
@GetMapping("/export")
public AjaxResult export(SysRole role)
@PostMapping("/export")
public void export(HttpServletResponse response, SysRole role)
{
List<SysRole> list = roleService.selectRoleList(role);
ExcelUtil<SysRole> util = new ExcelUtil<SysRole>(SysRole.class);
return util.exportExcel(list, "角色数据");
util.exportExcel(response, list, "角色数据");
}
/**
@ -77,7 +82,7 @@ public class SysRoleController extends BaseController
public AjaxResult getInfo(@PathVariable Long roleId)
{
roleService.checkRoleDataScope(roleId);
return AjaxResult.success(roleService.selectRoleById(roleId));
return success(roleService.selectRoleById(roleId));
}
/**
@ -88,13 +93,13 @@ public class SysRoleController extends BaseController
@PostMapping
public AjaxResult add(@Validated @RequestBody SysRole role)
{
if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role)))
if (!roleService.checkRoleNameUnique(role))
{
return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在");
return error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在");
}
else if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role)))
else if (!roleService.checkRoleKeyUnique(role))
{
return AjaxResult.error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在");
return error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在");
}
role.setCreateBy(getUsername());
return toAjax(roleService.insertRole(role));
@ -110,13 +115,14 @@ public class SysRoleController extends BaseController
public AjaxResult edit(@Validated @RequestBody SysRole role)
{
roleService.checkRoleAllowed(role);
if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleNameUnique(role)))
roleService.checkRoleDataScope(role.getRoleId());
if (!roleService.checkRoleNameUnique(role))
{
return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,角色名称已存在");
return error("修改角色'" + role.getRoleName() + "'失败,角色名称已存在");
}
else if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role)))
else if (!roleService.checkRoleKeyUnique(role))
{
return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在");
return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在");
}
role.setUpdateBy(getUsername());
@ -130,9 +136,9 @@ public class SysRoleController extends BaseController
loginUser.setUser(userService.selectUserByUserName(loginUser.getUser().getUserName()));
tokenService.setLoginUser(loginUser);
}
return AjaxResult.success();
return success();
}
return AjaxResult.error("修改角色'" + role.getRoleName() + "'失败,请联系管理员");
return error("修改角色'" + role.getRoleName() + "'失败,请联系管理员");
}
/**
@ -144,6 +150,7 @@ public class SysRoleController extends BaseController
public AjaxResult dataScope(@RequestBody SysRole role)
{
roleService.checkRoleAllowed(role);
roleService.checkRoleDataScope(role.getRoleId());
return toAjax(roleService.authDataScope(role));
}
@ -156,6 +163,7 @@ public class SysRoleController extends BaseController
public AjaxResult changeStatus(@RequestBody SysRole role)
{
roleService.checkRoleAllowed(role);
roleService.checkRoleDataScope(role.getRoleId());
role.setUpdateBy(getUsername());
return toAjax(roleService.updateRoleStatus(role));
}
@ -178,7 +186,7 @@ public class SysRoleController extends BaseController
@GetMapping("/optionselect")
public AjaxResult optionselect()
{
return AjaxResult.success(roleService.selectRoleAll());
return success(roleService.selectRoleAll());
}
/**
@ -235,6 +243,20 @@ public class SysRoleController extends BaseController
@PutMapping("/authUser/selectAll")
public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
{
roleService.checkRoleDataScope(roleId);
return toAjax(roleService.insertAuthUsers(roleId, userIds));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:role:query')")
@GetMapping(value = "/deptTree/{roleId}")
public AjaxResult deptTree(@PathVariable("roleId") Long roleId)
{
AjaxResult ajax = AjaxResult.success();
ajax.put("checkedKeys", deptService.selectDeptListByRoleId(roleId));
ajax.put("depts", deptService.selectDeptTreeList(new SysDept()));
return ajax;
}
}

@ -2,6 +2,7 @@ package com.ruoyi.web.controller.system;
import java.util.List;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
@ -16,9 +17,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
@ -26,6 +27,7 @@ import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.service.ISysDeptService;
import com.ruoyi.system.service.ISysPostService;
import com.ruoyi.system.service.ISysRoleService;
import com.ruoyi.system.service.ISysUserService;
@ -45,6 +47,9 @@ public class SysUserController extends BaseController
@Autowired
private ISysRoleService roleService;
@Autowired
private ISysDeptService deptService;
@Autowired
private ISysPostService postService;
@ -62,12 +67,12 @@ public class SysUserController extends BaseController
@Log(title = "用户管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:user:export')")
@GetMapping("/export")
public AjaxResult export(SysUser user)
@PostMapping("/export")
public void export(HttpServletResponse response, SysUser user)
{
List<SysUser> list = userService.selectUserList(user);
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
return util.exportExcel(list, "用户数据");
util.exportExcel(response, list, "用户数据");
}
@Log(title = "用户管理", businessType = BusinessType.IMPORT)
@ -79,14 +84,14 @@ public class SysUserController extends BaseController
List<SysUser> userList = util.importExcel(file.getInputStream());
String operName = getUsername();
String message = userService.importUser(userList, updateSupport, operName);
return AjaxResult.success(message);
return success(message);
}
@GetMapping("/importTemplate")
public AjaxResult importTemplate()
@PostMapping("/importTemplate")
public void importTemplate(HttpServletResponse response)
{
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
return util.importTemplateExcel("用户数据");
util.importTemplateExcel(response, "用户数据");
}
/**
@ -103,9 +108,10 @@ public class SysUserController extends BaseController
ajax.put("posts", postService.selectPostAll());
if (StringUtils.isNotNull(userId))
{
ajax.put(AjaxResult.DATA_TAG, userService.selectUserById(userId));
SysUser sysUser = userService.selectUserById(userId);
ajax.put(AjaxResult.DATA_TAG, sysUser);
ajax.put("postIds", postService.selectPostListByUserId(userId));
ajax.put("roleIds", roleService.selectRoleListByUserId(userId));
ajax.put("roleIds", sysUser.getRoles().stream().map(SysRole::getRoleId).collect(Collectors.toList()));
}
return ajax;
}
@ -118,19 +124,17 @@ public class SysUserController extends BaseController
@PostMapping
public AjaxResult add(@Validated @RequestBody SysUser user)
{
if (UserConstants.NOT_UNIQUE.equals(userService.checkUserNameUnique(user.getUserName())))
if (!userService.checkUserNameUnique(user))
{
return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,登录账号已存在");
return error("新增用户'" + user.getUserName() + "'失败,登录账号已存在");
}
else if (StringUtils.isNotEmpty(user.getPhonenumber())
&& UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user)))
else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user))
{
return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,手机号码已存在");
return error("新增用户'" + user.getUserName() + "'失败,手机号码已存在");
}
else if (StringUtils.isNotEmpty(user.getEmail())
&& UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user)))
else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user))
{
return AjaxResult.error("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在");
return error("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在");
}
user.setCreateBy(getUsername());
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
@ -146,15 +150,18 @@ public class SysUserController extends BaseController
public AjaxResult edit(@Validated @RequestBody SysUser user)
{
userService.checkUserAllowed(user);
if (StringUtils.isNotEmpty(user.getPhonenumber())
&& UserConstants.NOT_UNIQUE.equals(userService.checkPhoneUnique(user)))
userService.checkUserDataScope(user.getUserId());
if (!userService.checkUserNameUnique(user))
{
return error("修改用户'" + user.getUserName() + "'失败,登录账号已存在");
}
else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user))
{
return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
return error("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
}
else if (StringUtils.isNotEmpty(user.getEmail())
&& UserConstants.NOT_UNIQUE.equals(userService.checkEmailUnique(user)))
else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user))
{
return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在");
}
user.setUpdateBy(getUsername());
return toAjax(userService.updateUser(user));
@ -184,6 +191,7 @@ public class SysUserController extends BaseController
public AjaxResult resetPwd(@RequestBody SysUser user)
{
userService.checkUserAllowed(user);
userService.checkUserDataScope(user.getUserId());
user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
user.setUpdateBy(getUsername());
return toAjax(userService.resetPwd(user));
@ -198,6 +206,7 @@ public class SysUserController extends BaseController
public AjaxResult changeStatus(@RequestBody SysUser user)
{
userService.checkUserAllowed(user);
userService.checkUserDataScope(user.getUserId());
user.setUpdateBy(getUsername());
return toAjax(userService.updateUserStatus(user));
}
@ -225,7 +234,18 @@ public class SysUserController extends BaseController
@PutMapping("/authRole")
public AjaxResult insertAuthRole(Long userId, Long[] roleIds)
{
userService.checkUserDataScope(userId);
userService.insertUserAuth(userId, roleIds);
return success();
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/deptTree")
public AjaxResult deptTree(SysDept dept)
{
return success(deptService.selectDeptTreeList(dept));
}
}

@ -13,7 +13,7 @@ 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.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.utils.StringUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
@ -40,73 +40,75 @@ public class TestController extends BaseController
@ApiOperation("获取用户列表")
@GetMapping("/list")
public AjaxResult userList()
public R<List<UserEntity>> userList()
{
List<UserEntity> userList = new ArrayList<UserEntity>(users.values());
return AjaxResult.success(userList);
return R.ok(userList);
}
@ApiOperation("获取用户详细")
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path")
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
@GetMapping("/{userId}")
public AjaxResult getUser(@PathVariable Integer userId)
public R<UserEntity> getUser(@PathVariable Integer userId)
{
if (!users.isEmpty() && users.containsKey(userId))
{
return AjaxResult.success(users.get(userId));
return R.ok(users.get(userId));
}
else
{
return error("用户不存在");
return R.fail("用户不存在");
}
}
@ApiOperation("新增用户")
@ApiImplicitParams({
@ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer"),
@ApiImplicitParam(name = "username", value = "用户名称", dataType = "String"),
@ApiImplicitParam(name = "password", value = "用户密码", dataType = "String"),
@ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String")
@ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", dataTypeClass = Integer.class),
@ApiImplicitParam(name = "username", value = "用户名称", dataType = "String", dataTypeClass = String.class),
@ApiImplicitParam(name = "password", value = "用户密码", dataType = "String", dataTypeClass = String.class),
@ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String", dataTypeClass = String.class)
})
@PostMapping("/save")
public AjaxResult save(UserEntity user)
public R<String> save(UserEntity user)
{
if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId()))
{
return error("用户ID不能为空");
return R.fail("用户ID不能为空");
}
return AjaxResult.success(users.put(user.getUserId(), user));
users.put(user.getUserId(), user);
return R.ok();
}
@ApiOperation("更新用户")
@PutMapping("/update")
public AjaxResult update(@RequestBody UserEntity user)
public R<String> update(@RequestBody UserEntity user)
{
if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId()))
{
return error("用户ID不能为空");
return R.fail("用户ID不能为空");
}
if (users.isEmpty() || !users.containsKey(user.getUserId()))
{
return error("用户不存在");
return R.fail("用户不存在");
}
users.remove(user.getUserId());
return AjaxResult.success(users.put(user.getUserId(), user));
users.put(user.getUserId(), user);
return R.ok();
}
@ApiOperation("删除用户信息")
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path")
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
@DeleteMapping("/{userId}")
public AjaxResult delete(@PathVariable Integer userId)
public R<String> delete(@PathVariable Integer userId)
{
if (!users.isEmpty() && users.containsKey(userId))
{
users.remove(userId);
return success();
return R.ok();
}
else
{
return error("用户不存在");
return R.fail("用户不存在");
}
}
}

@ -1,44 +1,43 @@
package com.ruoyi.web.core.config;
import java.util.ArrayList;
import java.util.List;
import com.ruoyi.common.config.RuoYiConfig;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.ruoyi.common.config.RuoYiConfig;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.ApiKey;
import springfox.documentation.service.AuthorizationScope;
import springfox.documentation.service.Contact;
import springfox.documentation.service.SecurityReference;
import springfox.documentation.service.SecurityScheme;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spi.service.contexts.SecurityContext;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
/**
* Swagger2
*
*
* @author ruoyi
*/
@Configuration
public class SwaggerConfig
{
/** 系统基础配置 */
@EnableSwagger2WebMvc
public class SwaggerConfig {
/**
*
*/
@Autowired
private RuoYiConfig ruoyiConfig;
/** 是否开启swagger */
/**
* swagger
*/
@Value("${swagger.enabled}")
private boolean enabled;
/** 设置请求的统一前缀 */
/**
*
*/
@Value("${swagger.pathMapping}")
private String pathMapping;
@ -46,11 +45,12 @@ public class SwaggerConfig
* API
*/
@Bean
public Docket createRestApi()
{
return new Docket(DocumentationType.OAS_30)
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
// 是否启用Swagger
.enable(enabled)
//分组名称
.groupName("木渎")
// 用来创建该API的基本信息展示在文档的页面中自定义展示的信息
.apiInfo(apiInfo())
// 设置哪些接口暴露给Swagger展示
@ -62,60 +62,21 @@ public class SwaggerConfig
// 扫描所有 .apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any())
.build()
/* 设置安全模式swagger可以设置访问token */
.securitySchemes(securitySchemes())
.securityContexts(securityContexts())
.pathMapping(pathMapping);
}
/**
* tokenAuthorization
*/
private List<SecurityScheme> securitySchemes()
{
List<SecurityScheme> apiKeyList = new ArrayList<SecurityScheme>();
apiKeyList.add(new ApiKey("Authorization", "Authorization", In.HEADER.toValue()));
return apiKeyList;
}
/**
*
*/
private List<SecurityContext> securityContexts()
{
List<SecurityContext> securityContexts = new ArrayList<>();
securityContexts.add(
SecurityContext.builder()
.securityReferences(defaultAuth())
.operationSelector(o -> o.requestMappingPattern().matches("/.*"))
.build());
return securityContexts;
}
/**
*
*/
private List<SecurityReference> defaultAuth()
{
AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
authorizationScopes[0] = authorizationScope;
List<SecurityReference> securityReferences = new ArrayList<>();
securityReferences.add(new SecurityReference("Authorization", authorizationScopes));
return securityReferences;
}
/**
*
*/
private ApiInfo apiInfo()
{
private ApiInfo apiInfo() {
// 用ApiInfoBuilder进行定制
return new ApiInfoBuilder()
// 设置标题
.title("标题:若依管理系统_接口文档")
.title("木渎管理系统_接口文档")
// 描述
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
.description("描述:用于木渎管理系统")
// 作者信息
.contact(new Contact(ruoyiConfig.getName(), null, null))
// 版本

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcCommentator;
import com.ruoyi.zongzhi.service.ITcCommentatorService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/commentator")
@Api(tags = " 网评员")
public class TcCommentatorController extends BaseController
{
@Autowired
private ITcCommentatorService tcCommentatorService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:commentator:list')")
@GetMapping("/list")
public TableDataInfo list(TcCommentator tcCommentator)
{
startPage();
List<TcCommentator> list = tcCommentatorService.selectTcCommentatorList(tcCommentator);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:commentator:export')")
@Log(title = "网评员", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcCommentator tcCommentator)
{
List<TcCommentator> list = tcCommentatorService.selectTcCommentatorList(tcCommentator);
ExcelUtil<TcCommentator> util = new ExcelUtil<TcCommentator>(TcCommentator.class);
util.exportExcel(response, list, "网评员数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:commentator:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcCommentatorService.selectTcCommentatorById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:commentator:add')")
@Log(title = "网评员", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcCommentator tcCommentator)
{
return toAjax(tcCommentatorService.insertTcCommentator(tcCommentator));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:commentator:edit')")
@Log(title = "网评员", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcCommentator tcCommentator)
{
return toAjax(tcCommentatorService.updateTcCommentator(tcCommentator));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:commentator:remove')")
@Log(title = "网评员", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcCommentatorService.deleteTcCommentatorByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcDataSource;
import com.ruoyi.zongzhi.service.ITcDataSourceService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/source")
@Api(tags = " 数据来源")
public class TcDataSourceController extends BaseController
{
@Autowired
private ITcDataSourceService tcDataSourceService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:source:list')")
@GetMapping("/list")
public TableDataInfo list(TcDataSource tcDataSource)
{
startPage();
List<TcDataSource> list = tcDataSourceService.selectTcDataSourceList(tcDataSource);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:source:export')")
@Log(title = "数据来源", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcDataSource tcDataSource)
{
List<TcDataSource> list = tcDataSourceService.selectTcDataSourceList(tcDataSource);
ExcelUtil<TcDataSource> util = new ExcelUtil<TcDataSource>(TcDataSource.class);
util.exportExcel(response, list, "数据来源数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:source:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcDataSourceService.selectTcDataSourceById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:source:add')")
@Log(title = "数据来源", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcDataSource tcDataSource)
{
return toAjax(tcDataSourceService.insertTcDataSource(tcDataSource));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:source:edit')")
@Log(title = "数据来源", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcDataSource tcDataSource)
{
return toAjax(tcDataSourceService.updateTcDataSource(tcDataSource));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:source:remove')")
@Log(title = "数据来源", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcDataSourceService.deleteTcDataSourceByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcDengbaoSystem;
import com.ruoyi.zongzhi.service.ITcDengbaoSystemService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/system")
@Api(tags = " 等保系统")
public class TcDengbaoSystemController extends BaseController
{
@Autowired
private ITcDengbaoSystemService tcDengbaoSystemService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:list')")
@GetMapping("/list")
public TableDataInfo list(TcDengbaoSystem tcDengbaoSystem)
{
startPage();
List<TcDengbaoSystem> list = tcDengbaoSystemService.selectTcDengbaoSystemList(tcDengbaoSystem);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:export')")
@Log(title = "等保系统", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcDengbaoSystem tcDengbaoSystem)
{
List<TcDengbaoSystem> list = tcDengbaoSystemService.selectTcDengbaoSystemList(tcDengbaoSystem);
ExcelUtil<TcDengbaoSystem> util = new ExcelUtil<TcDengbaoSystem>(TcDengbaoSystem.class);
util.exportExcel(response, list, "等保系统数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcDengbaoSystemService.selectTcDengbaoSystemById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:add')")
@Log(title = "等保系统", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcDengbaoSystem tcDengbaoSystem)
{
return toAjax(tcDengbaoSystemService.insertTcDengbaoSystem(tcDengbaoSystem));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:edit')")
@Log(title = "等保系统", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcDengbaoSystem tcDengbaoSystem)
{
return toAjax(tcDengbaoSystemService.updateTcDengbaoSystem(tcDengbaoSystem));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:system:remove')")
@Log(title = "等保系统", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcDengbaoSystemService.deleteTcDengbaoSystemByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcDengbaoUnit;
import com.ruoyi.zongzhi.service.ITcDengbaoUnitService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/dengbaounit")
@Api(tags = " 等保单位")
public class TcDengbaoUnitController extends BaseController
{
@Autowired
private ITcDengbaoUnitService tcDengbaoUnitService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:list')")
@GetMapping("/list")
public TableDataInfo list(TcDengbaoUnit tcDengbaoUnit)
{
startPage();
List<TcDengbaoUnit> list = tcDengbaoUnitService.selectTcDengbaoUnitList(tcDengbaoUnit);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:export')")
@Log(title = "等保单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcDengbaoUnit tcDengbaoUnit)
{
List<TcDengbaoUnit> list = tcDengbaoUnitService.selectTcDengbaoUnitList(tcDengbaoUnit);
ExcelUtil<TcDengbaoUnit> util = new ExcelUtil<TcDengbaoUnit>(TcDengbaoUnit.class);
util.exportExcel(response, list, "等保单位数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcDengbaoUnitService.selectTcDengbaoUnitById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:add')")
@Log(title = "等保单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcDengbaoUnit tcDengbaoUnit)
{
return toAjax(tcDengbaoUnitService.insertTcDengbaoUnit(tcDengbaoUnit));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:edit')")
@Log(title = "等保单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcDengbaoUnit tcDengbaoUnit)
{
return toAjax(tcDengbaoUnitService.updateTcDengbaoUnit(tcDengbaoUnit));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:remove')")
@Log(title = "等保单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcDengbaoUnitService.deleteTcDengbaoUnitByIds(ids));
}
}

@ -0,0 +1,107 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcExtworkSafetyadmin;
import com.ruoyi.zongzhi.service.ITcExtworkSafetyadminService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/safetyadmin")
@Api(tags = "网络安全官")
public class TcExtworkSafetyadminController extends BaseController
{
@Autowired
private ITcExtworkSafetyadminService tcExtworkSafetyadminService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:list')")
@GetMapping("/list")
public TableDataInfo list(TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
startPage();
List<TcExtworkSafetyadmin> list = tcExtworkSafetyadminService.selectTcExtworkSafetyadminList(tcExtworkSafetyadmin);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:export')")
@Log(title = "网络安全官", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
List<TcExtworkSafetyadmin> list = tcExtworkSafetyadminService.selectTcExtworkSafetyadminList(tcExtworkSafetyadmin);
ExcelUtil<TcExtworkSafetyadmin> util = new ExcelUtil<TcExtworkSafetyadmin>(TcExtworkSafetyadmin.class);
util.exportExcel(response, list, "网络安全官数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcExtworkSafetyadminService.selectTcExtworkSafetyadminById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:add')")
@Log(title = "网络安全官", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
return toAjax(tcExtworkSafetyadminService.insertTcExtworkSafetyadmin(tcExtworkSafetyadmin));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:edit')")
@Log(title = "网络安全官", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcExtworkSafetyadmin tcExtworkSafetyadmin)
{
return toAjax(tcExtworkSafetyadminService.updateTcExtworkSafetyadmin(tcExtworkSafetyadmin));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:safetyadmin:remove')")
@Log(title = "网络安全官", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcExtworkSafetyadminService.deleteTcExtworkSafetyadminByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcGovernmentWeb;
import com.ruoyi.zongzhi.service.ITcGovernmentWebService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/web")
@Api(tags = " 政府网站")
public class TcGovernmentWebController extends BaseController
{
@Autowired
private ITcGovernmentWebService tcGovernmentWebService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:list')")
@GetMapping("/list")
public TableDataInfo list(TcGovernmentWeb tcGovernmentWeb)
{
startPage();
List<TcGovernmentWeb> list = tcGovernmentWebService.selectTcGovernmentWebList(tcGovernmentWeb);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:export')")
@Log(title = "政府网站", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcGovernmentWeb tcGovernmentWeb)
{
List<TcGovernmentWeb> list = tcGovernmentWebService.selectTcGovernmentWebList(tcGovernmentWeb);
ExcelUtil<TcGovernmentWeb> util = new ExcelUtil<TcGovernmentWeb>(TcGovernmentWeb.class);
util.exportExcel(response, list, "政府网站数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcGovernmentWebService.selectTcGovernmentWebById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:add')")
@Log(title = "政府网站", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcGovernmentWeb tcGovernmentWeb)
{
return toAjax(tcGovernmentWebService.insertTcGovernmentWeb(tcGovernmentWeb));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:edit')")
@Log(title = "政府网站", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcGovernmentWeb tcGovernmentWeb)
{
return toAjax(tcGovernmentWebService.updateTcGovernmentWeb(tcGovernmentWeb));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:web:remove')")
@Log(title = "政府网站", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcGovernmentWebService.deleteTcGovernmentWebByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcIdcUnit;
import com.ruoyi.zongzhi.service.ITcIdcUnitService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* IDCController
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/unit")
@Api(tags = " IDC单位")
public class TcIdcUnitController extends BaseController
{
@Autowired
private ITcIdcUnitService tcIdcUnitService;
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:list')")
@GetMapping("/list")
public TableDataInfo list(TcIdcUnit tcIdcUnit)
{
startPage();
List<TcIdcUnit> list = tcIdcUnitService.selectTcIdcUnitList(tcIdcUnit);
return getDataTable(list);
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:export')")
@Log(title = "IDC单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcIdcUnit tcIdcUnit)
{
List<TcIdcUnit> list = tcIdcUnitService.selectTcIdcUnitList(tcIdcUnit);
ExcelUtil<TcIdcUnit> util = new ExcelUtil<TcIdcUnit>(TcIdcUnit.class);
util.exportExcel(response, list, "IDC单位数据");
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcIdcUnitService.selectTcIdcUnitById(id));
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:add')")
@Log(title = "IDC单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcIdcUnit tcIdcUnit)
{
return toAjax(tcIdcUnitService.insertTcIdcUnit(tcIdcUnit));
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:edit')")
@Log(title = "IDC单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcIdcUnit tcIdcUnit)
{
return toAjax(tcIdcUnitService.updateTcIdcUnit(tcIdcUnit));
}
/**
* IDC
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:remove')")
@Log(title = "IDC单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcIdcUnitService.deleteTcIdcUnitByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkArticle;
import com.ruoyi.zongzhi.service.ITcNetworkArticleService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/article")
@Api(tags = " 网络文章")
public class TcNetworkArticleController extends BaseController
{
@Autowired
private ITcNetworkArticleService tcNetworkArticleService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkArticle tcNetworkArticle)
{
startPage();
List<TcNetworkArticle> list = tcNetworkArticleService.selectTcNetworkArticleList(tcNetworkArticle);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:export')")
@Log(title = "网络文章", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkArticle tcNetworkArticle)
{
List<TcNetworkArticle> list = tcNetworkArticleService.selectTcNetworkArticleList(tcNetworkArticle);
ExcelUtil<TcNetworkArticle> util = new ExcelUtil<TcNetworkArticle>(TcNetworkArticle.class);
util.exportExcel(response, list, "网络文章数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkArticleService.selectTcNetworkArticleById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:add')")
@Log(title = "网络文章", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkArticle tcNetworkArticle)
{
return toAjax(tcNetworkArticleService.insertTcNetworkArticle(tcNetworkArticle));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:edit')")
@Log(title = "网络文章", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkArticle tcNetworkArticle)
{
return toAjax(tcNetworkArticleService.updateTcNetworkArticle(tcNetworkArticle));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:article:remove')")
@Log(title = "网络文章", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkArticleService.deleteTcNetworkArticleByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkEvaluate;
import com.ruoyi.zongzhi.service.ITcNetworkEvaluateService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/evaluate")
@Api(tags = " 网评")
public class TcNetworkEvaluateController extends BaseController
{
@Autowired
private ITcNetworkEvaluateService tcNetworkEvaluateService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkEvaluate tcNetworkEvaluate)
{
startPage();
List<TcNetworkEvaluate> list = tcNetworkEvaluateService.selectTcNetworkEvaluateList(tcNetworkEvaluate);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:export')")
@Log(title = "网评", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkEvaluate tcNetworkEvaluate)
{
List<TcNetworkEvaluate> list = tcNetworkEvaluateService.selectTcNetworkEvaluateList(tcNetworkEvaluate);
ExcelUtil<TcNetworkEvaluate> util = new ExcelUtil<TcNetworkEvaluate>(TcNetworkEvaluate.class);
util.exportExcel(response, list, "网评数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkEvaluateService.selectTcNetworkEvaluateById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:add')")
@Log(title = "网评", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkEvaluate tcNetworkEvaluate)
{
return toAjax(tcNetworkEvaluateService.insertTcNetworkEvaluate(tcNetworkEvaluate));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:edit')")
@Log(title = "网评", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkEvaluate tcNetworkEvaluate)
{
return toAjax(tcNetworkEvaluateService.updateTcNetworkEvaluate(tcNetworkEvaluate));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:evaluate:remove')")
@Log(title = "网评", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkEvaluateService.deleteTcNetworkEvaluateByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkMqPrincipal;
import com.ruoyi.zongzhi.service.ITcNetworkMqPrincipalService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/principal")
@Api(tags = " 网络民情责任人")
public class TcNetworkMqPrincipalController extends BaseController
{
@Autowired
private ITcNetworkMqPrincipalService tcNetworkMqPrincipalService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
startPage();
List<TcNetworkMqPrincipal> list = tcNetworkMqPrincipalService.selectTcNetworkMqPrincipalList(tcNetworkMqPrincipal);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:export')")
@Log(title = "网络民情责任人", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
List<TcNetworkMqPrincipal> list = tcNetworkMqPrincipalService.selectTcNetworkMqPrincipalList(tcNetworkMqPrincipal);
ExcelUtil<TcNetworkMqPrincipal> util = new ExcelUtil<TcNetworkMqPrincipal>(TcNetworkMqPrincipal.class);
util.exportExcel(response, list, "网络民情责任人数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkMqPrincipalService.selectTcNetworkMqPrincipalById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:add')")
@Log(title = "网络民情责任人", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
return toAjax(tcNetworkMqPrincipalService.insertTcNetworkMqPrincipal(tcNetworkMqPrincipal));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:edit')")
@Log(title = "网络民情责任人", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkMqPrincipal tcNetworkMqPrincipal)
{
return toAjax(tcNetworkMqPrincipalService.updateTcNetworkMqPrincipal(tcNetworkMqPrincipal));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:principal:remove')")
@Log(title = "网络民情责任人", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkMqPrincipalService.deleteTcNetworkMqPrincipalByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkPingtai;
import com.ruoyi.zongzhi.service.ITcNetworkPingtaiService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/pingtai")
@Api(tags = " 网络平台")
public class TcNetworkPingtaiController extends BaseController
{
@Autowired
private ITcNetworkPingtaiService tcNetworkPingtaiService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkPingtai tcNetworkPingtai)
{
startPage();
List<TcNetworkPingtai> list = tcNetworkPingtaiService.selectTcNetworkPingtaiList(tcNetworkPingtai);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:export')")
@Log(title = "网络平台", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkPingtai tcNetworkPingtai)
{
List<TcNetworkPingtai> list = tcNetworkPingtaiService.selectTcNetworkPingtaiList(tcNetworkPingtai);
ExcelUtil<TcNetworkPingtai> util = new ExcelUtil<TcNetworkPingtai>(TcNetworkPingtai.class);
util.exportExcel(response, list, "网络平台数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkPingtaiService.selectTcNetworkPingtaiById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:add')")
@Log(title = "网络平台", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkPingtai tcNetworkPingtai)
{
return toAjax(tcNetworkPingtaiService.insertTcNetworkPingtai(tcNetworkPingtai));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:edit')")
@Log(title = "网络平台", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkPingtai tcNetworkPingtai)
{
return toAjax(tcNetworkPingtaiService.updateTcNetworkPingtai(tcNetworkPingtai));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:pingtai:remove')")
@Log(title = "网络平台", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkPingtaiService.deleteTcNetworkPingtaiByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkReport;
import com.ruoyi.zongzhi.service.ITcNetworkReportService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/report")
@Api(tags = " 网络举报")
public class TcNetworkReportController extends BaseController
{
@Autowired
private ITcNetworkReportService tcNetworkReportService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkReport tcNetworkReport)
{
startPage();
List<TcNetworkReport> list = tcNetworkReportService.selectTcNetworkReportList(tcNetworkReport);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:export')")
@Log(title = "网络举报", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkReport tcNetworkReport)
{
List<TcNetworkReport> list = tcNetworkReportService.selectTcNetworkReportList(tcNetworkReport);
ExcelUtil<TcNetworkReport> util = new ExcelUtil<TcNetworkReport>(TcNetworkReport.class);
util.exportExcel(response, list, "网络举报数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkReportService.selectTcNetworkReportById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:add')")
@Log(title = "网络举报", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkReport tcNetworkReport)
{
return toAjax(tcNetworkReportService.insertTcNetworkReport(tcNetworkReport));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:edit')")
@Log(title = "网络举报", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkReport tcNetworkReport)
{
return toAjax(tcNetworkReportService.updateTcNetworkReport(tcNetworkReport));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:report:remove')")
@Log(title = "网络举报", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkReportService.deleteTcNetworkReportByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkSentiment;
import com.ruoyi.zongzhi.service.ITcNetworkSentimentService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/sentiment")
@Api(tags = " 网络舆情")
public class TcNetworkSentimentController extends BaseController
{
@Autowired
private ITcNetworkSentimentService tcNetworkSentimentService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkSentiment tcNetworkSentiment)
{
startPage();
List<TcNetworkSentiment> list = tcNetworkSentimentService.selectTcNetworkSentimentList(tcNetworkSentiment);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:export')")
@Log(title = "网络舆情", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkSentiment tcNetworkSentiment)
{
List<TcNetworkSentiment> list = tcNetworkSentimentService.selectTcNetworkSentimentList(tcNetworkSentiment);
ExcelUtil<TcNetworkSentiment> util = new ExcelUtil<TcNetworkSentiment>(TcNetworkSentiment.class);
util.exportExcel(response, list, "网络舆情数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkSentimentService.selectTcNetworkSentimentById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:add')")
@Log(title = "网络舆情", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkSentiment tcNetworkSentiment)
{
return toAjax(tcNetworkSentimentService.insertTcNetworkSentiment(tcNetworkSentiment));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:edit')")
@Log(title = "网络舆情", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkSentiment tcNetworkSentiment)
{
return toAjax(tcNetworkSentimentService.updateTcNetworkSentiment(tcNetworkSentiment));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:sentiment:remove')")
@Log(title = "网络舆情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkSentimentService.deleteTcNetworkSentimentByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkSupportUnit;
import com.ruoyi.zongzhi.service.ITcNetworkSupportUnitService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/supportunit")
@Api(tags = " 网络安全支持单位")
public class TcNetworkSupportUnitController extends BaseController
{
@Autowired
private ITcNetworkSupportUnitService tcNetworkSupportUnitService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkSupportUnit tcNetworkSupportUnit)
{
startPage();
List<TcNetworkSupportUnit> list = tcNetworkSupportUnitService.selectTcNetworkSupportUnitList(tcNetworkSupportUnit);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:export')")
@Log(title = "网络安全支持单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkSupportUnit tcNetworkSupportUnit)
{
List<TcNetworkSupportUnit> list = tcNetworkSupportUnitService.selectTcNetworkSupportUnitList(tcNetworkSupportUnit);
ExcelUtil<TcNetworkSupportUnit> util = new ExcelUtil<TcNetworkSupportUnit>(TcNetworkSupportUnit.class);
util.exportExcel(response, list, "网络安全支持单位数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkSupportUnitService.selectTcNetworkSupportUnitById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:add')")
@Log(title = "网络安全支持单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkSupportUnit tcNetworkSupportUnit)
{
return toAjax(tcNetworkSupportUnitService.insertTcNetworkSupportUnit(tcNetworkSupportUnit));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:edit')")
@Log(title = "网络安全支持单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkSupportUnit tcNetworkSupportUnit)
{
return toAjax(tcNetworkSupportUnitService.updateTcNetworkSupportUnit(tcNetworkSupportUnit));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:unit:remove')")
@Log(title = "网络安全支持单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkSupportUnitService.deleteTcNetworkSupportUnitByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcNetworkVolunteer;
import com.ruoyi.zongzhi.service.ITcNetworkVolunteerService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/volunteer")
@Api(tags = " 网络文明自愿者")
public class TcNetworkVolunteerController extends BaseController
{
@Autowired
private ITcNetworkVolunteerService tcNetworkVolunteerService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:list')")
@GetMapping("/list")
public TableDataInfo list(TcNetworkVolunteer tcNetworkVolunteer)
{
startPage();
List<TcNetworkVolunteer> list = tcNetworkVolunteerService.selectTcNetworkVolunteerList(tcNetworkVolunteer);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:export')")
@Log(title = "网络文明自愿者", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcNetworkVolunteer tcNetworkVolunteer)
{
List<TcNetworkVolunteer> list = tcNetworkVolunteerService.selectTcNetworkVolunteerList(tcNetworkVolunteer);
ExcelUtil<TcNetworkVolunteer> util = new ExcelUtil<TcNetworkVolunteer>(TcNetworkVolunteer.class);
util.exportExcel(response, list, "网络文明自愿者数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcNetworkVolunteerService.selectTcNetworkVolunteerById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:add')")
@Log(title = "网络文明自愿者", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcNetworkVolunteer tcNetworkVolunteer)
{
return toAjax(tcNetworkVolunteerService.insertTcNetworkVolunteer(tcNetworkVolunteer));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:edit')")
@Log(title = "网络文明自愿者", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcNetworkVolunteer tcNetworkVolunteer)
{
return toAjax(tcNetworkVolunteerService.updateTcNetworkVolunteer(tcNetworkVolunteer));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:volunteer:remove')")
@Log(title = "网络文明自愿者", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcNetworkVolunteerService.deleteTcNetworkVolunteerByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcQinglangZhuanxiang;
import com.ruoyi.zongzhi.service.ITcQinglangZhuanxiangService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/zhuanxiang")
@Api(tags = " 清朗专项")
public class TcQinglangZhuanxiangController extends BaseController
{
@Autowired
private ITcQinglangZhuanxiangService tcQinglangZhuanxiangService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:list')")
@GetMapping("/list")
public TableDataInfo list(TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
startPage();
List<TcQinglangZhuanxiang> list = tcQinglangZhuanxiangService.selectTcQinglangZhuanxiangList(tcQinglangZhuanxiang);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:export')")
@Log(title = "清朗专项", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
List<TcQinglangZhuanxiang> list = tcQinglangZhuanxiangService.selectTcQinglangZhuanxiangList(tcQinglangZhuanxiang);
ExcelUtil<TcQinglangZhuanxiang> util = new ExcelUtil<TcQinglangZhuanxiang>(TcQinglangZhuanxiang.class);
util.exportExcel(response, list, "清朗专项数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcQinglangZhuanxiangService.selectTcQinglangZhuanxiangById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:add')")
@Log(title = "清朗专项", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
return toAjax(tcQinglangZhuanxiangService.insertTcQinglangZhuanxiang(tcQinglangZhuanxiang));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:edit')")
@Log(title = "清朗专项", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcQinglangZhuanxiang tcQinglangZhuanxiang)
{
return toAjax(tcQinglangZhuanxiangService.updateTcQinglangZhuanxiang(tcQinglangZhuanxiang));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:zhuanxiang:remove')")
@Log(title = "清朗专项", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcQinglangZhuanxiangService.deleteTcQinglangZhuanxiangByIds(ids));
}
}

@ -0,0 +1,106 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcSafetyDanger;
import com.ruoyi.zongzhi.service.ITcSafetyDangerService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/danger")
@Api(tags = " 监管单位")
public class TcSafetyDangerController extends BaseController
{
@Autowired
private ITcSafetyDangerService tcSafetyDangerService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:list')")
@GetMapping("/list")
public TableDataInfo list(TcSafetyDanger tcSafetyDanger)
{
startPage();
List<TcSafetyDanger> list = tcSafetyDangerService.selectTcSafetyDangerList(tcSafetyDanger);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:export')")
@Log(title = "监管单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcSafetyDanger tcSafetyDanger)
{
List<TcSafetyDanger> list = tcSafetyDangerService.selectTcSafetyDangerList(tcSafetyDanger);
ExcelUtil<TcSafetyDanger> util = new ExcelUtil<TcSafetyDanger>(TcSafetyDanger.class);
util.exportExcel(response, list, "监管单位数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcSafetyDangerService.selectTcSafetyDangerById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:add')")
@Log(title = "监管单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcSafetyDanger tcSafetyDanger)
{
return toAjax(tcSafetyDangerService.insertTcSafetyDanger(tcSafetyDanger));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:edit')")
@Log(title = "监管单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcSafetyDanger tcSafetyDanger)
{
return toAjax(tcSafetyDangerService.updateTcSafetyDanger(tcSafetyDanger));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:danger:remove')")
@Log(title = "监管单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcSafetyDangerService.deleteTcSafetyDangerByIds(ids));
}
}

@ -0,0 +1,107 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcSafetyDetection;
import com.ruoyi.zongzhi.service.ITcSafetyDetectionService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/detection")
@Api(tags = "安全检测")
public class TcSafetyDetectionController extends BaseController
{
@Autowired
private ITcSafetyDetectionService tcSafetyDetectionService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:list')")
@GetMapping("/list")
public TableDataInfo list(TcSafetyDetection tcSafetyDetection)
{
startPage();
List<TcSafetyDetection> list = tcSafetyDetectionService.selectTcSafetyDetectionList(tcSafetyDetection);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:export')")
@Log(title = "安全检测", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcSafetyDetection tcSafetyDetection)
{
List<TcSafetyDetection> list = tcSafetyDetectionService.selectTcSafetyDetectionList(tcSafetyDetection);
ExcelUtil<TcSafetyDetection> util = new ExcelUtil<TcSafetyDetection>(TcSafetyDetection.class);
util.exportExcel(response, list, "安全检测数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcSafetyDetectionService.selectTcSafetyDetectionById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:add')")
@Log(title = "安全检测", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcSafetyDetection tcSafetyDetection)
{
return toAjax(tcSafetyDetectionService.insertTcSafetyDetection(tcSafetyDetection));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:edit')")
@Log(title = "安全检测", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcSafetyDetection tcSafetyDetection)
{
return toAjax(tcSafetyDetectionService.updateTcSafetyDetection(tcSafetyDetection));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:detection:remove')")
@Log(title = "安全检测", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcSafetyDetectionService.deleteTcSafetyDetectionByIds(ids));
}
}

@ -0,0 +1,107 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcTown;
import com.ruoyi.zongzhi.service.ITcTownService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/town")
@Api(tags = "区域")
public class TcTownController extends BaseController
{
@Autowired
private ITcTownService tcTownService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:town:list')")
@GetMapping("/list")
public TableDataInfo list(TcTown tcTown)
{
startPage();
List<TcTown> list = tcTownService.selectTcTownList(tcTown);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:town:export')")
@Log(title = "区域", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcTown tcTown)
{
List<TcTown> list = tcTownService.selectTcTownList(tcTown);
ExcelUtil<TcTown> util = new ExcelUtil<TcTown>(TcTown.class);
util.exportExcel(response, list, "区域数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:town:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcTownService.selectTcTownById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:town:add')")
@Log(title = "区域", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcTown tcTown)
{
return toAjax(tcTownService.insertTcTown(tcTown));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:town:edit')")
@Log(title = "区域", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcTown tcTown)
{
return toAjax(tcTownService.updateTcTown(tcTown));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:town:remove')")
@Log(title = "区域", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcTownService.deleteTcTownByIds(ids));
}
}

@ -0,0 +1,107 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcWorkDongtai;
import com.ruoyi.zongzhi.service.ITcWorkDongtaiService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/dongtai")
@Api(tags = "工作动态")
public class TcWorkDongtaiController extends BaseController
{
@Autowired
private ITcWorkDongtaiService tcWorkDongtaiService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:list')")
@GetMapping("/list")
public TableDataInfo list(TcWorkDongtai tcWorkDongtai)
{
startPage();
List<TcWorkDongtai> list = tcWorkDongtaiService.selectTcWorkDongtaiList(tcWorkDongtai);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:export')")
@Log(title = "工作动态", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcWorkDongtai tcWorkDongtai)
{
List<TcWorkDongtai> list = tcWorkDongtaiService.selectTcWorkDongtaiList(tcWorkDongtai);
ExcelUtil<TcWorkDongtai> util = new ExcelUtil<TcWorkDongtai>(TcWorkDongtai.class);
util.exportExcel(response, list, "工作动态数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcWorkDongtaiService.selectTcWorkDongtaiById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:add')")
@Log(title = "工作动态", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcWorkDongtai tcWorkDongtai)
{
return toAjax(tcWorkDongtaiService.insertTcWorkDongtai(tcWorkDongtai));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:edit')")
@Log(title = "工作动态", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcWorkDongtai tcWorkDongtai)
{
return toAjax(tcWorkDongtaiService.updateTcWorkDongtai(tcWorkDongtai));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:dongtai:remove')")
@Log(title = "工作动态", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcWorkDongtaiService.deleteTcWorkDongtaiByIds(ids));
}
}

@ -0,0 +1,107 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcZhongdianDomain;
import com.ruoyi.zongzhi.service.ITcZhongdianDomainService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/domain")
@Api(tags = "重点领域监管")
public class TcZhongdianDomainController extends BaseController
{
@Autowired
private ITcZhongdianDomainService tcZhongdianDomainService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:list')")
@GetMapping("/list")
public TableDataInfo list(TcZhongdianDomain tcZhongdianDomain)
{
startPage();
List<TcZhongdianDomain> list = tcZhongdianDomainService.selectTcZhongdianDomainList(tcZhongdianDomain);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:export')")
@Log(title = "重点领域监管", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcZhongdianDomain tcZhongdianDomain)
{
List<TcZhongdianDomain> list = tcZhongdianDomainService.selectTcZhongdianDomainList(tcZhongdianDomain);
ExcelUtil<TcZhongdianDomain> util = new ExcelUtil<TcZhongdianDomain>(TcZhongdianDomain.class);
util.exportExcel(response, list, "重点领域监管数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcZhongdianDomainService.selectTcZhongdianDomainById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:add')")
@Log(title = "重点领域监管", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcZhongdianDomain tcZhongdianDomain)
{
return toAjax(tcZhongdianDomainService.insertTcZhongdianDomain(tcZhongdianDomain));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:edit')")
@Log(title = "重点领域监管", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcZhongdianDomain tcZhongdianDomain)
{
return toAjax(tcZhongdianDomainService.updateTcZhongdianDomain(tcZhongdianDomain));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:domain:remove')")
@Log(title = "重点领域监管", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZhongdianDomainService.deleteTcZhongdianDomainByIds(ids));
}
}

@ -0,0 +1,107 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcZhongdianEnterprise;
import com.ruoyi.zongzhi.service.ITcZhongdianEnterpriseService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/enterprise")
@Api(tags = "重点企业名录")
public class TcZhongdianEnterpriseController extends BaseController
{
@Autowired
private ITcZhongdianEnterpriseService tcZhongdianEnterpriseService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:list')")
@GetMapping("/list")
public TableDataInfo list(TcZhongdianEnterprise tcZhongdianEnterprise)
{
startPage();
List<TcZhongdianEnterprise> list = tcZhongdianEnterpriseService.selectTcZhongdianEnterpriseList(tcZhongdianEnterprise);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:export')")
@Log(title = "重点企业名录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcZhongdianEnterprise tcZhongdianEnterprise)
{
List<TcZhongdianEnterprise> list = tcZhongdianEnterpriseService.selectTcZhongdianEnterpriseList(tcZhongdianEnterprise);
ExcelUtil<TcZhongdianEnterprise> util = new ExcelUtil<TcZhongdianEnterprise>(TcZhongdianEnterprise.class);
util.exportExcel(response, list, "重点企业名录数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcZhongdianEnterpriseService.selectTcZhongdianEnterpriseById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:add')")
@Log(title = "重点企业名录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcZhongdianEnterprise tcZhongdianEnterprise)
{
return toAjax(tcZhongdianEnterpriseService.insertTcZhongdianEnterprise(tcZhongdianEnterprise));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:edit')")
@Log(title = "重点企业名录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcZhongdianEnterprise tcZhongdianEnterprise)
{
return toAjax(tcZhongdianEnterpriseService.updateTcZhongdianEnterprise(tcZhongdianEnterprise));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:enterprise:remove')")
@Log(title = "重点企业名录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZhongdianEnterpriseService.deleteTcZhongdianEnterpriseByIds(ids));
}
}

@ -0,0 +1,107 @@
package com.ruoyi.zongzhi.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.Api;
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.zongzhi.domain.TcZhongdianWork;
import com.ruoyi.zongzhi.service.ITcZhongdianWorkService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* Controller
*
* @author ruoyi
* @date 2023-08-10
*/
@RestController
@RequestMapping("/zongzhi/work")
@Api(tags = "重点工作项目")
public class TcZhongdianWorkController extends BaseController
{
@Autowired
private ITcZhongdianWorkService tcZhongdianWorkService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:list')")
@GetMapping("/list")
public TableDataInfo list(TcZhongdianWork tcZhongdianWork)
{
startPage();
List<TcZhongdianWork> list = tcZhongdianWorkService.selectTcZhongdianWorkList(tcZhongdianWork);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:export')")
@Log(title = "重点工作项目", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TcZhongdianWork tcZhongdianWork)
{
List<TcZhongdianWork> list = tcZhongdianWorkService.selectTcZhongdianWorkList(tcZhongdianWork);
ExcelUtil<TcZhongdianWork> util = new ExcelUtil<TcZhongdianWork>(TcZhongdianWork.class);
util.exportExcel(response, list, "重点工作项目数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(tcZhongdianWorkService.selectTcZhongdianWorkById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:add')")
@Log(title = "重点工作项目", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TcZhongdianWork tcZhongdianWork)
{
return toAjax(tcZhongdianWorkService.insertTcZhongdianWork(tcZhongdianWork));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:edit')")
@Log(title = "重点工作项目", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TcZhongdianWork tcZhongdianWork)
{
return toAjax(tcZhongdianWorkService.updateTcZhongdianWork(tcZhongdianWork));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('zongzhi:work:remove')")
@Log(title = "重点工作项目", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tcZhongdianWorkService.deleteTcZhongdianWorkByIds(ids));
}
}

@ -0,0 +1,111 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_commentator
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcCommentator extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "姓名")
@ApiModelProperty(value = "姓名")
private String name;
/**
*
*/
@Excel(name = "性别")
@ApiModelProperty(value = "性别")
private String sex;
/**
*
*/
@Excel(name = "年龄")
@ApiModelProperty(value = "年龄")
private Long age;
/**
*
*/
@Excel(name = "民族")
@ApiModelProperty(value = "民族")
private String nationality;
/**
*
*/
@Excel(name = "政治面貌")
@ApiModelProperty(value = "政治面貌")
private String politicsStatus;
/**
*
*/
@Excel(name = "单位")
@ApiModelProperty(value = "单位")
private String unit;
/**
*
*/
@Excel(name = "移动电话")
@ApiModelProperty(value = "移动电话")
private String phoneNum;
/**
*
*/
@Excel(name = "微信号")
@ApiModelProperty(value = "微信号")
private String vxNum;
/**
* 1.
* 2.
* 3.
*/
@Excel(name = "类别")
@ApiModelProperty(value = "类别1.核心网评员 2. 骨干网评员 3. 普通网评员")
private Long type;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,128 @@
package com.ruoyi.zongzhi.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_data_source
*
* @author ruoyi
* @date 2023-08-10
*/
public class TcDataSource extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
* 1.
* 2. APTM
* 3.
* 4.
* 5.
*/
@ApiModelProperty(value = "1.云断监管 2.APT")
@Excel(name = "类型")
private Long type;
/**
*
*/
@Excel(name = "资产名称")
@ApiModelProperty(value = "资产名称")
private String assetName;
/**
*
*/
@Excel(name = "所属单位")
@ApiModelProperty(value = "所属单位")
private String affUnit;
/**
*
*/
@Excel(name = "所属分组")
@ApiModelProperty(value = "所属分组")
private String affGroups;
/**
* /
*/
@Excel(name = "网站/系统名称")
@ApiModelProperty(value = "网站/系统名称")
private String systeamName;
/**
*
*/
@Excel(name = "网站地址")
@ApiModelProperty(value = "网站地址")
private String url;
/**
* IP
*/
@Excel(name = "IP地址")
@ApiModelProperty(value = "IP地址")
private String ipAddress;
/**
* 1:Linux,2:windows
*/
@Excel(name = "操作系统1:Linux,2:windows")
@ApiModelProperty(value = "操作系统1:Linux,2:windows")
private Long os;
/**
*
*/
@Excel(name = "版本")
@ApiModelProperty(value = "版本")
private String versions;
/**
* 1.
* 2.
*/
@Excel(name = "是否关注重点")
@ApiModelProperty(value = "是否关注重点1.是 2.否 ")
private Long isFocus;
/**
* 1.
* 2.
* 3.
*/
@Excel(name = "级别")
@ApiModelProperty(value = "级别1.一级 2.二级 3.三级 ")
private Long level;
/**
* $column.columnComment
*/
@ApiModelProperty(value = "创建者id")
@Excel(name = "创建者id")
private Long createId;
/**
* $column.columnComment
*/
@ApiModelProperty(value = "修改者")
@Excel(name = "修改者")
private Long updateId;
}

@ -0,0 +1,170 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_dengbao_system
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcDengbaoSystem extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "系统名称")
@ApiModelProperty(value = "系统名称")
private String steamName;
/**
*
*/
@Excel(name = "备案编号")
@ApiModelProperty(value = "备案编号")
private String beianNum;
/**
*
*/
@Excel(name = "信息系统安全保护等级")
@ApiModelProperty(value = "信息系统安全保护等级")
private String safetyLevel;
/**
*
*/
@Excel(name = "单位名称")
@ApiModelProperty(value = "单位名称")
private String unitName;
/**
*
*/
@Excel(name = "业务类型")
@ApiModelProperty(value = "业务类型")
private String yewuType;
/**
*
*/
@Excel(name = "服务范围")
@ApiModelProperty(value = "服务范围")
private String servicesArea;
/**
*
*/
@Excel(name = "服务对象")
@ApiModelProperty(value = "服务对象")
private String servicesObj;
/**
*
*/
@Excel(name = "覆盖范围")
@ApiModelProperty(value = "覆盖范围")
private String coverageArea;
/**
*
*/
@Excel(name = "网络性质")
@ApiModelProperty(value = "网络性质")
private String networkNature;
/**
*
*/
@Excel(name = "系统互联情况")
@ApiModelProperty(value = "系统互联情况")
private String systemSitutation;
/**
* 使
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "投入运行使用日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date useTime;
/**
*
*/
@Excel(name = "系统是否分级")
@ApiModelProperty(value = "系统是否分级")
private String isRate;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "系统定级时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date rankTime;
/**
*
*/
@Excel(name = "专家评审情况")
@ApiModelProperty(value = "专家评审情况")
private String reviewCase;
/**
*
*/
@Excel(name = "是否有主管部门")
@ApiModelProperty(value = "是否有主管部门")
private String isParent;
/**
*
*/
@Excel(name = "系统定级报告")
@ApiModelProperty(value = "系统定级报告")
private String rankReport;
/**
*
* 1:2:
*/
@Excel(name = "系统状态 ")
@ApiModelProperty(value = "系统状态 ")
private Long systemState;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,144 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_dengbao_unit
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcDengbaoUnit extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "单位名称")
@ApiModelProperty(value = "单位名称")
private String unitName;
/**
*
*/
@Excel(name = "邮政编码")
@ApiModelProperty(value = "邮政编码")
private String postCode;
/**
*
*/
@ApiModelProperty(value = "单位地址")
@Excel(name = "单位地址", readConverterExp = "省=")
private String unitProvince;
/**
*
*/
@ApiModelProperty(value = "单位地址")
@Excel(name = "单位地址", readConverterExp = "市=")
private String unitCity;
/**
* /
*/
@ApiModelProperty(value = "单位地址")
@Excel(name = "单位地址", readConverterExp = "区=/县")
private String unitCounty;
/**
*
*/
@ApiModelProperty(value = "单位地址")
@Excel(name = "单位地址", readConverterExp = "街=道")
private String unitStreet;
/**
*
*/
@Excel(name = "行政区域代码")
@ApiModelProperty(value = "行政区域代码")
private String areaCode;
/**
*
*/
@Excel(name = "隶属关系")
@ApiModelProperty(value = "隶属关系")
private String affiliation;
/**
*
*/
@Excel(name = "单位类型")
@ApiModelProperty(value = "单位类型")
private String unitType;
/**
*
*/
@Excel(name = "行业类型")
@ApiModelProperty(value = "行业类型")
private String tmtType;
/**
*
*/
@Excel(name = "单位责任人—姓名")
@ApiModelProperty(value = "单位责任人—姓名")
private String fuzeName;
/**
*
*/
@Excel(name = "单位责任人—职务")
@ApiModelProperty(value = "单位责任人—职务")
private String fuzeDuty;
/**
*
*/
@Excel(name = "单位责任人—办公电话")
@ApiModelProperty(value = "单位责任人—办公电话")
private String fuzeTel;
/**
*
*/
@Excel(name = "单位责任人—电子邮件")
@ApiModelProperty(value = "单位责任人—电子邮件")
private String fuzeEmail;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,236 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_extwork_safetyadmin
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcExtworkSafetyadmin extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "单位")
@ApiModelProperty(value = "单位")
private String unit;
/**
*
*/
@Excel(name = "第一负责人")
@ApiModelProperty(value = "第一负责人")
private String firstPrincipal;
/**
*
*/
@Excel(name = "职务")
@ApiModelProperty(value = "职务")
private String duty;
/**
*
*/
@Excel(name = "直接负责人")
@ApiModelProperty(value = "直接负责人")
private String directPrincipal;
/**
* _1
*/
@Excel(name = "职务_1")
@ApiModelProperty(value = "职务_1")
private String duty1;
/**
*
*/
@Excel(name = "负责科室")
@ApiModelProperty(value = "负责科室")
private String fuzeKeshi;
/**
*
*/
@Excel(name = "网络安全官")
@ApiModelProperty(value = "网络安全官")
private String networkAqg;
/**
* _2
*/
@Excel(name = "职务_2")
@ApiModelProperty(value = "职务_2")
private String duty2;
/**
*
*/
@Excel(name = "电话")
@ApiModelProperty(value = "电话")
private String tel;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setAreaId(Long areaId) {
this.areaId = areaId;
}
public Long getAreaId() {
return areaId;
}
public void setUnit(String unit) {
this.unit = unit;
}
public String getUnit() {
return unit;
}
public void setFirstPrincipal(String firstPrincipal) {
this.firstPrincipal = firstPrincipal;
}
public String getFirstPrincipal() {
return firstPrincipal;
}
public void setDuty(String duty) {
this.duty = duty;
}
public String getDuty() {
return duty;
}
public void setDirectPrincipal(String directPrincipal) {
this.directPrincipal = directPrincipal;
}
public String getDirectPrincipal() {
return directPrincipal;
}
public void setDuty1(String duty1) {
this.duty1 = duty1;
}
public String getDuty1() {
return duty1;
}
public void setFuzeKeshi(String fuzeKeshi) {
this.fuzeKeshi = fuzeKeshi;
}
public String getFuzeKeshi() {
return fuzeKeshi;
}
public void setNetworkAqg(String networkAqg) {
this.networkAqg = networkAqg;
}
public String getNetworkAqg() {
return networkAqg;
}
public void setDuty2(String duty2) {
this.duty2 = duty2;
}
public String getDuty2() {
return duty2;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getTel() {
return tel;
}
public void setCreateId(Long createId) {
this.createId = createId;
}
public Long getCreateId() {
return createId;
}
public void setUpdateId(Long updateId) {
this.updateId = updateId;
}
public Long getUpdateId() {
return updateId;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("areaId", getAreaId())
.append("unit", getUnit())
.append("firstPrincipal", getFirstPrincipal())
.append("duty", getDuty())
.append("directPrincipal", getDirectPrincipal())
.append("duty1", getDuty1())
.append("fuzeKeshi", getFuzeKeshi())
.append("networkAqg", getNetworkAqg())
.append("duty2", getDuty2())
.append("tel", getTel())
.append("createId", getCreateId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateId", getUpdateId())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

@ -0,0 +1,67 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_government_web
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcGovernmentWeb extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "网址")
@ApiModelProperty(value = "网址")
private String url;
/**
*
*/
@Excel(name = "资产名称")
@ApiModelProperty(value = "资产名称")
private String assetName;
/**
*
*/
@Excel(name = "资产重要等级")
@ApiModelProperty(value = "资产重要等级")
private String assetLevel;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,67 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* IDC tc_idc_unit
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcIdcUnit extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "名称")
@ApiModelProperty(value = "名称")
private String unitName;
/**
*
*/
@Excel(name = "所属区域")
@ApiModelProperty(value = "所属区域")
private String area;
/**
* IP
*/
@Excel(name = "IP段信息")
@ApiModelProperty(value = "IP段信息")
private String ipData;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,88 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_article
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcNetworkArticle extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
* 1.
* 2.
* 3.
* 4.
* 5.
*/
@Excel(name = "文章类型")
@ApiModelProperty(value = "文章类型 1.本地录用,2.苏州级录用,3.省级级以上录用,4,上级媒体,5本地发布")
private Long type;
/**
*
*/
@Excel(name = "文章标题")
@ApiModelProperty(value = "文章标题")
private String articleTitle;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date releaseTime;
/**
*
*/
@Excel(name = "来源")
@ApiModelProperty(value = "来源")
private String source;
/**
*
*/
@Excel(name = "文章地址")
@ApiModelProperty(value = "文章地址")
private String url;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,119 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_evaluate
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcNetworkEvaluate extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
* ID
*/
@Excel(name = "文章ID")
@ApiModelProperty(value = "文章ID")
private Long articleId;
/**
*
*/
@Excel(name = "文章类型")
@ApiModelProperty(value = "文章类型")
private Long articleType;
/**
* ID
*/
@Excel(name = "评价人ID")
@ApiModelProperty(value = "评价人ID")
private Long appraiserId;
/**
*
*/
@Excel(name = "评价人名字")
@ApiModelProperty(value = "评价人名字")
private String appraiserName;
/**
*
*/
@Excel(name = "文章标题")
@ApiModelProperty(value = "文章标题")
private String articleTitle;
/**
*
*/
@Excel(name = "文章内容")
@ApiModelProperty(value = "文章内容")
private String articleContent;
/**
*
*/
@Excel(name = "来源")
@ApiModelProperty(value = "来源")
private String articleSource;
/**
*
*/
@Excel(name = "文章地址")
@ApiModelProperty(value = "文章地址")
private String articleUrl;
/**
*
*/
@Excel(name = "评价内容")
@ApiModelProperty(value = "评价内容")
private String pjContent;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date pjTime;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,89 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_mq_principal
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcNetworkMqPrincipal extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "单位名称")
@ApiModelProperty(value = "单位名称")
private String unitName;
/**
*
*/
@Excel(name = "民情负责人")
@ApiModelProperty(value = "民情负责人")
private String fuzeMan;
/**
*
*/
@Excel(name = "职务")
@ApiModelProperty(value = "职务")
private String duty;
/**
*
*/
@Excel(name = "联系电话")
@ApiModelProperty(value = "联系电话")
private String tel;
/**
* fax_num
*/
@Excel(name = "fax_num")
@ApiModelProperty(value = "fax_num")
private String faxNum;
/**
*
*/
@Excel(name = "手机号")
@ApiModelProperty(value = "手机号")
private String phoneNum;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,128 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_pingtai
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcNetworkPingtai extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
* 1.
* 2.
* 3.
* 4.
* 5.
* 6.
* 7. B
* 8.
*/
@Excel(name = "平台类别")
@ApiModelProperty(value = "平台类别")
private Long type;
/**
*
*/
@Excel(name = "账号名称")
@ApiModelProperty(value = "账号名称")
private String name;
/**
* 1.
* 2.
* 3.
* 4.
* 5.
* 6.
*/
@Excel(name = "属性")
@ApiModelProperty(value = "属性 1.房产,2.汽车,3.自媒体,4.餐饮,5.电子竞技,6.财务")
private Long props;
/**
*
*/
@Excel(name = "粉丝数")
@ApiModelProperty(value = "粉丝数")
private Long fansNum;
/**
* 1
*/
@ApiModelProperty(value = "网站域名")
@Excel(name = "网站域名")
private String dns;
/**
* IP1
*/
@ApiModelProperty(value = "真实IP")
@Excel(name = "真实IP")
private String ipAddress;
/**
* 1
*/
@ApiModelProperty(value = "备案许可证号")
@Excel(name = "备案许可证号")
private String licenceNum;
/**
* 4
*/
@ApiModelProperty(value = "认证")
@Excel(name = "认证")
private String authentication;
/**
* 4
*/
@ApiModelProperty(value = "地区")
@Excel(name = "地区")
private String area;
/**
*
*/
@Excel(name = "简介")
@ApiModelProperty(value = "简介")
private String intro;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,120 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_report
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcNetworkReport extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "举报人")
@ApiModelProperty(value = "举报人")
private String jbMan;
/**
*
*/
@Excel(name = "被举报对象")
@ApiModelProperty(value = "被举报对象")
private String jbdx;
/**
*
*/
@Excel(name = "苏州编号")
@ApiModelProperty(value = "苏州编号")
private String jbbh;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "举报时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date jbTime;
/**
*
*/
@Excel(name = "经度")
@ApiModelProperty(value = "经度")
private String longitude;
/**
*
*/
@Excel(name = "纬度")
@ApiModelProperty(value = "纬度")
private String latitude;
/**
*
*/
@Excel(name = "地址")
@ApiModelProperty(value = "地址")
private String address;
/**
*
*/
@Excel(name = "举报内容")
@ApiModelProperty(value = "举报内容")
private String content;
/**
* 1.
* 2.
*/
@Excel(name = "状态")
@ApiModelProperty(value = "状态")
private Long state;
/**
* 1. 2. 3. 4
*/
@Excel(name = "来源1.上级下发 2.部门转发 3.小程序 4无效")
@ApiModelProperty(value = "来源1.上级下发 2.部门转发 3.小程序 4无效")
private Long source;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,140 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_sentiment
*
* @author ruoyi
* @date 2023-08-10
*/
public class TcNetworkSentiment extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "舆情名称")
@ApiModelProperty(value = "舆情名称")
private String sentimentName;
/**
*
*/
@Excel(name = "舆情内容")
@ApiModelProperty(value = "舆情内容")
private String sentimentContent;
/**
*
*/
@Excel(name = "部门名称")
@ApiModelProperty(value = "部门名称")
private String depName;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date publishTime;
/**
* 1. 2 3
*/
@Excel(name = "舆情状态1. 待处理 2处理中 3已处理")
@ApiModelProperty(value = "舆情状态1. 待处理 2处理中 3已处理")
private Long sentimentState;
/**
* 1. 2. 3. 4.
* 4. APP 6. 7. 8.
*/
@Excel(name = "媒体类型")
@ApiModelProperty(value = "媒体类型")
private Long mediaType;
/**
* 1. 2. 3. 4. 5. 6. 7. 8.
*/
@Excel(name = "涉事类型1. 治安维护 2.医疗卫生 3.执政形象 4.市场监督 5.自然灾害 6.安全事故 7.社会保证 8.市政管理")
@ApiModelProperty(value = "涉事类型1. 治安维护 2.医疗卫生 3.执政形象 4.市场监督 5.自然灾害 6.安全事故 7.社会保证 8.市政管理")
private Long eventType;
/**
* 1. 2. 3.
* 4. 5.
*/
@Excel(name = "舆情类型")
@ApiModelProperty(value = "舆情类型1.敏感 2.非敏感 3.本地相关信息 4.推送预警信息 5.聚焦本地媒体信息 ")
private Long sentimentType;
/**
* 1. 2..
*/
@Excel(name = "词云类别1.开门红 2.城乡文明融合……….")
@ApiModelProperty(value = "词云类别1.开门红 2.城乡文明融合……….")
private Long yuciType;
/**
* 1. 2. .
*/
@Excel(name = "来源1.微博 2.抖音 ….")
@ApiModelProperty(value = "来源1.微博 2.抖音 ….")
private Long source;
/**
* 1 2
*/
@Excel(name = "是否转办1是 2否")
@ApiModelProperty(value = "是否转办1是 2否")
private Long isturn;
/**
*
*/
@Excel(name = "文件名称")
@ApiModelProperty(value = "文件名称")
private String fileName;
/**
*
*/
@Excel(name = "文件地址")
@ApiModelProperty(value = "文件地址")
private String fileUrl;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,67 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_support_unit
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcNetworkSupportUnit extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "单位名称")
@ApiModelProperty(value = "单位名称")
private String name;
/**
*
*/
@Excel(name = "联系人")
@ApiModelProperty(value = "联系人")
private String linkMan;
/**
*
*/
@Excel(name = "联系电话")
@ApiModelProperty(value = "联系电话")
private String phoneNum;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,96 @@
package com.ruoyi.zongzhi.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_network_volunteer
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcNetworkVolunteer extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
* 1.
* 2.
*/
@Excel(name = "类别")
@ApiModelProperty(value = "类别1.银龄生活 2.凌云燕")
private Long type;
/**
*
*/
@Excel(name = "姓名")
@ApiModelProperty(value = "姓名")
private String name;
/**
*
*/
@Excel(name = "年龄")
@ApiModelProperty(value = "年龄")
private Long age;
/**
*
*/
@Excel(name = "活动内容")
@ApiModelProperty(value = "活动内容")
private String content;
/**
*
*/
@Excel(name = "单位")
@ApiModelProperty(value = "单位")
private String unit;
/**
*
*/
@Excel(name = "职务")
@ApiModelProperty(value = "职务")
private String duty;
/**
*
*/
@Excel(name = "联系方式")
@ApiModelProperty(value = "联系方式")
private Long phoneNum;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,85 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_qinglang_zhuanxiang
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcQinglangZhuanxiang extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "专项标题")
@ApiModelProperty(value = "专项标题")
private String zhuanxiangTitle;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date zhuanxiangTime;
/**
*
*/
@Excel(name = "专项内容")
@ApiModelProperty(value = "专项内容")
private String zhuanxiangContent;
/**
*
*/
@Excel(name = "专项图片")
@ApiModelProperty(value = "专项图片")
private String zhuanxiangImg;
/**
* 1.
* 2.
*/
@Excel(name = "处理类型")
@ApiModelProperty(value = "处理类型")
private Long zhuanxiangType;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,142 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_safety_danger
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcSafetyDanger extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
* 1.
* 2. 访
* 3.
* 4.
* 5.
* 6.
*/
@Excel(name = "隐患类型1. 敏感信息泄露漏洞 ")
@ApiModelProperty(value = "隐患类型1. 敏感信息泄露漏洞 2.权限许可和访问控制 3.未加密登录请求 4. 应用程序测试脚本漏洞 5. 文件上传漏洞 6.其他 ")
private Long type;
/**
*
*/
@Excel(name = "单位名称")
@ApiModelProperty(value = "单位名称")
private String unitName;
/**
*
*/
@Excel(name = "隐患名称")
@ApiModelProperty(value = "隐患名称")
private String riskName;
/**
* 1.
* 2.
* 3.
*/
@Excel(name = "等级")
@ApiModelProperty(value = "等级1.低级 2.中级 3.高级")
private Long level;
/**
* 1.
* 2.
* 3.
*/
@Excel(name = "隐患来源")
@ApiModelProperty(value = "隐患来源1. 众测 2.态势感知平台 3.网信办 ")
private Long riskSource;
/**
* IP/
*/
@Excel(name = "目标IP/域名")
@ApiModelProperty(value = "目标IP/域名")
private String ipDns;
/**
* 1.2.
*/
@Excel(name = "处置情况1.已归档2.未归档")
@ApiModelProperty(value = "处置情况1.已归档2.未归档")
private Long state;
/**
*
*/
@Excel(name = "文件名称")
@ApiModelProperty(value = "文件名称")
private String fileName;
/**
*
*/
@Excel(name = "文件地址")
@ApiModelProperty(value = "文件地址")
private String fileUrl;
/**
*
*/
@Excel(name = "部门")
@ApiModelProperty(value = "部门")
private String depName;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "隐患开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date startTime;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "隐患结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date endTime;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,155 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_safety_detection
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcSafetyDetection extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "攻击发起时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(value = "攻击发起时间")
private Date attackTime;
/**
* ID
*/
@Excel(name = "攻击源ID")
@ApiModelProperty(value = "攻击源ID")
private String sourceIp;
/**
*
*/
@Excel(name = "攻击源经度")
@ApiModelProperty(value = "攻击源经度")
private String attackedLongitude;
/**
*
*/
@Excel(name = "攻击源纬度")
@ApiModelProperty(value = "攻击源纬度")
private String attackedLatitude;
/**
*
* 1.
* 2.
* 3
* 4
* 5
*/
@Excel(name = "攻击类型")
@ApiModelProperty(value = "攻击类型")
private Long attackType;
/**
* IP
*/
@Excel(name = "攻击源IP地址区域")
@ApiModelProperty(value = "攻击源IP地址区域")
private String attackIpRegion;
/**
* IP
*/
@Excel(name = "受攻击IP")
@ApiModelProperty(value = "受攻击IP")
private String attackedIp;
/**
* IP
*/
@Excel(name = "受攻击IP区域")
@ApiModelProperty(value = "受攻击IP区域")
private String attackedIpRegion;
/**
*
*/
@Excel(name = "受攻击经度")
@ApiModelProperty(value = "受攻击经度")
private String attackLongitude;
/**
*
*/
@Excel(name = "受攻击纬度")
@ApiModelProperty(value = "受攻击纬度")
private String attackLatitude;
/**
*
* 1.
* 2.
* 3.
*/
@Excel(name = "网络安全等级")
@ApiModelProperty(value = "网络安全等级")
private Long level;
/**
*
*/
@ApiModelProperty(value = "所属单位")
@Excel(name = "所属单位")
private String affUnit;
/**
*
*/
@ApiModelProperty(value = "联系电话")
@Excel(name = "联系电话")
private String phoneNum;
/**
*
*/
@Excel(name = "联系人")
@ApiModelProperty(value = "联系人")
private String linkMan;
/**
* ID
*/
@Excel(name = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
private Long updateId;
}

@ -0,0 +1,52 @@
package com.ruoyi.zongzhi.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_town
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcTown extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域名称 */
@Excel(name = "区域名称")
@ApiModelProperty(value = "区域名称")
private String name;
/** 上级区域名称 */
@Excel(name = "上级区域名称")
@ApiModelProperty(value = "上级区域名称")
private String parentName;
/** 上级区域id */
@Excel(name = "上级区域id")
@ApiModelProperty(value = "上级区域id")
private Long parentId;
/** 层级123村 */
@Excel(name = "层级123村")
@ApiModelProperty(value = "层级")
private Long level;
/** 创建人id */
@Excel(name = "创建人id")
private Long createId;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long updateId;
}

@ -0,0 +1,84 @@
package com.ruoyi.zongzhi.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_work_dongtai
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcWorkDongtai extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "类型")
@ApiModelProperty(value = "类型")
private String type;
/**
*
*/
@Excel(name = "材料名称")
@ApiModelProperty(value = "材料名称")
private String materialsName;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date fabuTime;
/**
*
*/
@Excel(name = "材料文件名称")
@ApiModelProperty(value = "材料文件名称")
private String materialsFileName;
/**
* URL
*/
@Excel(name = "材料文件URL")
@ApiModelProperty(value = "材料文件URL")
private String materialsFileUrl;
/**
* ID
*/
@Excel(name = "创建人ID")
@ApiModelProperty(value = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
@ApiModelProperty(value = "修改人ID")
private Long updateId;
}

@ -0,0 +1,62 @@
package com.ruoyi.zongzhi.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_zhongdian_domain
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcZhongdianDomain extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域id */
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/** 企业类型 */
@Excel(name = "企业类型")
@ApiModelProperty(value = "企业类型")
private Long enterpriseType;
/** 重点监管内容 */
@Excel(name = "重点监管内容")
@ApiModelProperty(value = "重点监管内容")
private String zdjgContent;
/** 法律法规明令禁止的有关行为 */
@Excel(name = "法律法规明令禁止的有关行为")
@ApiModelProperty(value = "法律法规明令禁止的有关行为")
private String weifaXingwei;
/** 主要监管部门 */
@Excel(name = "主要监管部门")
@ApiModelProperty(value = "主要监管部门")
private String dep;
/** 主要依据 */
@Excel(name = "主要依据")
@ApiModelProperty(value = "主要依据")
private String zhuyaoYiju;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long createId;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long updateId;
}

@ -0,0 +1,82 @@
package com.ruoyi.zongzhi.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_zhongdian_enterprise
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcZhongdianEnterprise extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 区域id */
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/** 企业名称 */
@Excel(name = "企业名称")
@ApiModelProperty(value = "企业名称")
private String enterpriseName;
/** 企业类型 */
@Excel(name = "企业类型")
@ApiModelProperty(value = "企业类型")
private Long enterpriseType;
/** 互联网业务1.直播2.论坛bbs3短视频4.电子商务销售5.信息展示 */
@ApiModelProperty(value = "互联网业务")
@Excel(name = "互联网业务1.直播2.论坛bbs3短视频4.电子商务销售5.信息展示")
private Long networkYewu;
/** 监管部门 */
@Excel(name = "监管部门")
@ApiModelProperty(value = "监管部门")
private String jianguanBumen;
/** 单位地址 */
@Excel(name = "单位地址")
@ApiModelProperty(value = "单位地址")
private String address;
/** 联系人 */
@Excel(name = "联系人")
@ApiModelProperty(value = "联系人")
private String linkMan;
/** 联系电话 */
@Excel(name = "联系电话")
@ApiModelProperty(value = "联系电话")
private String phoneNum;
/** 网站或平台名称 */
@Excel(name = "网站或平台名称")
@ApiModelProperty(value = "网站或平台名称")
private String productName;
/** 域名 */
@Excel(name = "域名")
@ApiModelProperty(value = "域名")
private String dns;
/** 创建人ID */
@Excel(name = "创建人ID")
private Long createId;
/** 修改人ID */
@Excel(name = "修改人ID")
private Long updateId;
}

@ -0,0 +1,93 @@
package com.ruoyi.zongzhi.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* tc_zhongdian_work
*
* @author ruoyi
* @date 2023-08-10
*/
@Data
public class TcZhongdianWork extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* $column.columnComment
*/
private Long id;
/**
* id
*/
@Excel(name = "区域id")
@ApiModelProperty(value = "区域id")
private Long areaId;
/**
*
*/
@Excel(name = "推进单位")
@ApiModelProperty(value = "推进单位")
private String unitName;
/**
*
*/
@Excel(name = "项目名称")
@ApiModelProperty(value = "项目名称")
private String projectName;
/**
*
*/
@ApiModelProperty(value = "项目内容")
@Excel(name = "项目内容")
private String projectContent;
/**
*
*/
@ApiModelProperty(value = "项目类型")
@Excel(name = "项目类型")
private Long projectType;
/**
*
*/
@Excel(name = "项目联系人")
@ApiModelProperty(value = "项目联系人")
private String projectLinkMan;
/**
*
*/
@Excel(name = "联系电话")
@ApiModelProperty(value = "联系电话")
private String phoneNum;
/**
*
*/
@Excel(name = "联系人职务")
@ApiModelProperty(value = "联系人职务")
private String linkManDuty;
/**
* ID
*/
@Excel(name = "创建人ID")
private Long createId;
/**
* ID
*/
@Excel(name = "修改人ID")
private Long updateId;
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcCommentator;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcCommentatorMapper
{
/**
*
*
* @param id
* @return
*/
public TcCommentator selectTcCommentatorById(Long id);
/**
*
*
* @param tcCommentator
* @return
*/
public List<TcCommentator> selectTcCommentatorList(TcCommentator tcCommentator);
/**
*
*
* @param tcCommentator
* @return
*/
public int insertTcCommentator(TcCommentator tcCommentator);
/**
*
*
* @param tcCommentator
* @return
*/
public int updateTcCommentator(TcCommentator tcCommentator);
/**
*
*
* @param id
* @return
*/
public int deleteTcCommentatorById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcCommentatorByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDataSource;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcDataSourceMapper
{
/**
*
*
* @param id
* @return
*/
public TcDataSource selectTcDataSourceById(Long id);
/**
*
*
* @param tcDataSource
* @return
*/
public List<TcDataSource> selectTcDataSourceList(TcDataSource tcDataSource);
/**
*
*
* @param tcDataSource
* @return
*/
public int insertTcDataSource(TcDataSource tcDataSource);
/**
*
*
* @param tcDataSource
* @return
*/
public int updateTcDataSource(TcDataSource tcDataSource);
/**
*
*
* @param id
* @return
*/
public int deleteTcDataSourceById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDataSourceByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDengbaoSystem;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcDengbaoSystemMapper
{
/**
*
*
* @param id
* @return
*/
public TcDengbaoSystem selectTcDengbaoSystemById(Long id);
/**
*
*
* @param tcDengbaoSystem
* @return
*/
public List<TcDengbaoSystem> selectTcDengbaoSystemList(TcDengbaoSystem tcDengbaoSystem);
/**
*
*
* @param tcDengbaoSystem
* @return
*/
public int insertTcDengbaoSystem(TcDengbaoSystem tcDengbaoSystem);
/**
*
*
* @param tcDengbaoSystem
* @return
*/
public int updateTcDengbaoSystem(TcDengbaoSystem tcDengbaoSystem);
/**
*
*
* @param id
* @return
*/
public int deleteTcDengbaoSystemById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDengbaoSystemByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDengbaoUnit;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcDengbaoUnitMapper
{
/**
*
*
* @param id
* @return
*/
public TcDengbaoUnit selectTcDengbaoUnitById(Long id);
/**
*
*
* @param tcDengbaoUnit
* @return
*/
public List<TcDengbaoUnit> selectTcDengbaoUnitList(TcDengbaoUnit tcDengbaoUnit);
/**
*
*
* @param tcDengbaoUnit
* @return
*/
public int insertTcDengbaoUnit(TcDengbaoUnit tcDengbaoUnit);
/**
*
*
* @param tcDengbaoUnit
* @return
*/
public int updateTcDengbaoUnit(TcDengbaoUnit tcDengbaoUnit);
/**
*
*
* @param id
* @return
*/
public int deleteTcDengbaoUnitById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDengbaoUnitByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcExtworkSafetyadmin;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcExtworkSafetyadminMapper
{
/**
*
*
* @param id
* @return
*/
public TcExtworkSafetyadmin selectTcExtworkSafetyadminById(Long id);
/**
*
*
* @param tcExtworkSafetyadmin
* @return
*/
public List<TcExtworkSafetyadmin> selectTcExtworkSafetyadminList(TcExtworkSafetyadmin tcExtworkSafetyadmin);
/**
*
*
* @param tcExtworkSafetyadmin
* @return
*/
public int insertTcExtworkSafetyadmin(TcExtworkSafetyadmin tcExtworkSafetyadmin);
/**
*
*
* @param tcExtworkSafetyadmin
* @return
*/
public int updateTcExtworkSafetyadmin(TcExtworkSafetyadmin tcExtworkSafetyadmin);
/**
*
*
* @param id
* @return
*/
public int deleteTcExtworkSafetyadminById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcExtworkSafetyadminByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcGovernmentWeb;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcGovernmentWebMapper
{
/**
*
*
* @param id
* @return
*/
public TcGovernmentWeb selectTcGovernmentWebById(Long id);
/**
*
*
* @param tcGovernmentWeb
* @return
*/
public List<TcGovernmentWeb> selectTcGovernmentWebList(TcGovernmentWeb tcGovernmentWeb);
/**
*
*
* @param tcGovernmentWeb
* @return
*/
public int insertTcGovernmentWeb(TcGovernmentWeb tcGovernmentWeb);
/**
*
*
* @param tcGovernmentWeb
* @return
*/
public int updateTcGovernmentWeb(TcGovernmentWeb tcGovernmentWeb);
/**
*
*
* @param id
* @return
*/
public int deleteTcGovernmentWebById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcGovernmentWebByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcIdcUnit;
/**
* IDCMapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcIdcUnitMapper
{
/**
* IDC
*
* @param id IDC
* @return IDC
*/
public TcIdcUnit selectTcIdcUnitById(Long id);
/**
* IDC
*
* @param tcIdcUnit IDC
* @return IDC
*/
public List<TcIdcUnit> selectTcIdcUnitList(TcIdcUnit tcIdcUnit);
/**
* IDC
*
* @param tcIdcUnit IDC
* @return
*/
public int insertTcIdcUnit(TcIdcUnit tcIdcUnit);
/**
* IDC
*
* @param tcIdcUnit IDC
* @return
*/
public int updateTcIdcUnit(TcIdcUnit tcIdcUnit);
/**
* IDC
*
* @param id IDC
* @return
*/
public int deleteTcIdcUnitById(Long id);
/**
* IDC
*
* @param ids
* @return
*/
public int deleteTcIdcUnitByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkArticle;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkArticleMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkArticle selectTcNetworkArticleById(Long id);
/**
*
*
* @param tcNetworkArticle
* @return
*/
public List<TcNetworkArticle> selectTcNetworkArticleList(TcNetworkArticle tcNetworkArticle);
/**
*
*
* @param tcNetworkArticle
* @return
*/
public int insertTcNetworkArticle(TcNetworkArticle tcNetworkArticle);
/**
*
*
* @param tcNetworkArticle
* @return
*/
public int updateTcNetworkArticle(TcNetworkArticle tcNetworkArticle);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkArticleById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkArticleByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkEvaluate;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkEvaluateMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkEvaluate selectTcNetworkEvaluateById(Long id);
/**
*
*
* @param tcNetworkEvaluate
* @return
*/
public List<TcNetworkEvaluate> selectTcNetworkEvaluateList(TcNetworkEvaluate tcNetworkEvaluate);
/**
*
*
* @param tcNetworkEvaluate
* @return
*/
public int insertTcNetworkEvaluate(TcNetworkEvaluate tcNetworkEvaluate);
/**
*
*
* @param tcNetworkEvaluate
* @return
*/
public int updateTcNetworkEvaluate(TcNetworkEvaluate tcNetworkEvaluate);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkEvaluateById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkEvaluateByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkMqPrincipal;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkMqPrincipalMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkMqPrincipal selectTcNetworkMqPrincipalById(Long id);
/**
*
*
* @param tcNetworkMqPrincipal
* @return
*/
public List<TcNetworkMqPrincipal> selectTcNetworkMqPrincipalList(TcNetworkMqPrincipal tcNetworkMqPrincipal);
/**
*
*
* @param tcNetworkMqPrincipal
* @return
*/
public int insertTcNetworkMqPrincipal(TcNetworkMqPrincipal tcNetworkMqPrincipal);
/**
*
*
* @param tcNetworkMqPrincipal
* @return
*/
public int updateTcNetworkMqPrincipal(TcNetworkMqPrincipal tcNetworkMqPrincipal);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkMqPrincipalById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkMqPrincipalByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkPingtai;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkPingtaiMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkPingtai selectTcNetworkPingtaiById(Long id);
/**
*
*
* @param tcNetworkPingtai
* @return
*/
public List<TcNetworkPingtai> selectTcNetworkPingtaiList(TcNetworkPingtai tcNetworkPingtai);
/**
*
*
* @param tcNetworkPingtai
* @return
*/
public int insertTcNetworkPingtai(TcNetworkPingtai tcNetworkPingtai);
/**
*
*
* @param tcNetworkPingtai
* @return
*/
public int updateTcNetworkPingtai(TcNetworkPingtai tcNetworkPingtai);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkPingtaiById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkPingtaiByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkReport;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkReportMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkReport selectTcNetworkReportById(Long id);
/**
*
*
* @param tcNetworkReport
* @return
*/
public List<TcNetworkReport> selectTcNetworkReportList(TcNetworkReport tcNetworkReport);
/**
*
*
* @param tcNetworkReport
* @return
*/
public int insertTcNetworkReport(TcNetworkReport tcNetworkReport);
/**
*
*
* @param tcNetworkReport
* @return
*/
public int updateTcNetworkReport(TcNetworkReport tcNetworkReport);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkReportById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkReportByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkSentiment;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkSentimentMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkSentiment selectTcNetworkSentimentById(Long id);
/**
*
*
* @param tcNetworkSentiment
* @return
*/
public List<TcNetworkSentiment> selectTcNetworkSentimentList(TcNetworkSentiment tcNetworkSentiment);
/**
*
*
* @param tcNetworkSentiment
* @return
*/
public int insertTcNetworkSentiment(TcNetworkSentiment tcNetworkSentiment);
/**
*
*
* @param tcNetworkSentiment
* @return
*/
public int updateTcNetworkSentiment(TcNetworkSentiment tcNetworkSentiment);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkSentimentById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkSentimentByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkSupportUnit;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkSupportUnitMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkSupportUnit selectTcNetworkSupportUnitById(Long id);
/**
*
*
* @param tcNetworkSupportUnit
* @return
*/
public List<TcNetworkSupportUnit> selectTcNetworkSupportUnitList(TcNetworkSupportUnit tcNetworkSupportUnit);
/**
*
*
* @param tcNetworkSupportUnit
* @return
*/
public int insertTcNetworkSupportUnit(TcNetworkSupportUnit tcNetworkSupportUnit);
/**
*
*
* @param tcNetworkSupportUnit
* @return
*/
public int updateTcNetworkSupportUnit(TcNetworkSupportUnit tcNetworkSupportUnit);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkSupportUnitById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkSupportUnitByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkVolunteer;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcNetworkVolunteerMapper
{
/**
*
*
* @param id
* @return
*/
public TcNetworkVolunteer selectTcNetworkVolunteerById(Long id);
/**
*
*
* @param tcNetworkVolunteer
* @return
*/
public List<TcNetworkVolunteer> selectTcNetworkVolunteerList(TcNetworkVolunteer tcNetworkVolunteer);
/**
*
*
* @param tcNetworkVolunteer
* @return
*/
public int insertTcNetworkVolunteer(TcNetworkVolunteer tcNetworkVolunteer);
/**
*
*
* @param tcNetworkVolunteer
* @return
*/
public int updateTcNetworkVolunteer(TcNetworkVolunteer tcNetworkVolunteer);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkVolunteerById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkVolunteerByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcQinglangZhuanxiang;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcQinglangZhuanxiangMapper
{
/**
*
*
* @param id
* @return
*/
public TcQinglangZhuanxiang selectTcQinglangZhuanxiangById(Long id);
/**
*
*
* @param tcQinglangZhuanxiang
* @return
*/
public List<TcQinglangZhuanxiang> selectTcQinglangZhuanxiangList(TcQinglangZhuanxiang tcQinglangZhuanxiang);
/**
*
*
* @param tcQinglangZhuanxiang
* @return
*/
public int insertTcQinglangZhuanxiang(TcQinglangZhuanxiang tcQinglangZhuanxiang);
/**
*
*
* @param tcQinglangZhuanxiang
* @return
*/
public int updateTcQinglangZhuanxiang(TcQinglangZhuanxiang tcQinglangZhuanxiang);
/**
*
*
* @param id
* @return
*/
public int deleteTcQinglangZhuanxiangById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcQinglangZhuanxiangByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcSafetyDanger;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcSafetyDangerMapper
{
/**
*
*
* @param id
* @return
*/
public TcSafetyDanger selectTcSafetyDangerById(Long id);
/**
*
*
* @param tcSafetyDanger
* @return
*/
public List<TcSafetyDanger> selectTcSafetyDangerList(TcSafetyDanger tcSafetyDanger);
/**
*
*
* @param tcSafetyDanger
* @return
*/
public int insertTcSafetyDanger(TcSafetyDanger tcSafetyDanger);
/**
*
*
* @param tcSafetyDanger
* @return
*/
public int updateTcSafetyDanger(TcSafetyDanger tcSafetyDanger);
/**
*
*
* @param id
* @return
*/
public int deleteTcSafetyDangerById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcSafetyDangerByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcSafetyDetection;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcSafetyDetectionMapper
{
/**
*
*
* @param id
* @return
*/
public TcSafetyDetection selectTcSafetyDetectionById(Long id);
/**
*
*
* @param tcSafetyDetection
* @return
*/
public List<TcSafetyDetection> selectTcSafetyDetectionList(TcSafetyDetection tcSafetyDetection);
/**
*
*
* @param tcSafetyDetection
* @return
*/
public int insertTcSafetyDetection(TcSafetyDetection tcSafetyDetection);
/**
*
*
* @param tcSafetyDetection
* @return
*/
public int updateTcSafetyDetection(TcSafetyDetection tcSafetyDetection);
/**
*
*
* @param id
* @return
*/
public int deleteTcSafetyDetectionById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcSafetyDetectionByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcTown;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcTownMapper
{
/**
*
*
* @param id
* @return
*/
public TcTown selectTcTownById(Long id);
/**
*
*
* @param tcTown
* @return
*/
public List<TcTown> selectTcTownList(TcTown tcTown);
/**
*
*
* @param tcTown
* @return
*/
public int insertTcTown(TcTown tcTown);
/**
*
*
* @param tcTown
* @return
*/
public int updateTcTown(TcTown tcTown);
/**
*
*
* @param id
* @return
*/
public int deleteTcTownById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcTownByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcWorkDongtai;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcWorkDongtaiMapper
{
/**
*
*
* @param id
* @return
*/
public TcWorkDongtai selectTcWorkDongtaiById(Long id);
/**
*
*
* @param tcWorkDongtai
* @return
*/
public List<TcWorkDongtai> selectTcWorkDongtaiList(TcWorkDongtai tcWorkDongtai);
/**
*
*
* @param tcWorkDongtai
* @return
*/
public int insertTcWorkDongtai(TcWorkDongtai tcWorkDongtai);
/**
*
*
* @param tcWorkDongtai
* @return
*/
public int updateTcWorkDongtai(TcWorkDongtai tcWorkDongtai);
/**
*
*
* @param id
* @return
*/
public int deleteTcWorkDongtaiById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcWorkDongtaiByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcZhongdianDomain;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcZhongdianDomainMapper
{
/**
*
*
* @param id
* @return
*/
public TcZhongdianDomain selectTcZhongdianDomainById(Long id);
/**
*
*
* @param tcZhongdianDomain
* @return
*/
public List<TcZhongdianDomain> selectTcZhongdianDomainList(TcZhongdianDomain tcZhongdianDomain);
/**
*
*
* @param tcZhongdianDomain
* @return
*/
public int insertTcZhongdianDomain(TcZhongdianDomain tcZhongdianDomain);
/**
*
*
* @param tcZhongdianDomain
* @return
*/
public int updateTcZhongdianDomain(TcZhongdianDomain tcZhongdianDomain);
/**
*
*
* @param id
* @return
*/
public int deleteTcZhongdianDomainById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcZhongdianDomainByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcZhongdianEnterprise;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcZhongdianEnterpriseMapper
{
/**
*
*
* @param id
* @return
*/
public TcZhongdianEnterprise selectTcZhongdianEnterpriseById(Long id);
/**
*
*
* @param tcZhongdianEnterprise
* @return
*/
public List<TcZhongdianEnterprise> selectTcZhongdianEnterpriseList(TcZhongdianEnterprise tcZhongdianEnterprise);
/**
*
*
* @param tcZhongdianEnterprise
* @return
*/
public int insertTcZhongdianEnterprise(TcZhongdianEnterprise tcZhongdianEnterprise);
/**
*
*
* @param tcZhongdianEnterprise
* @return
*/
public int updateTcZhongdianEnterprise(TcZhongdianEnterprise tcZhongdianEnterprise);
/**
*
*
* @param id
* @return
*/
public int deleteTcZhongdianEnterpriseById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcZhongdianEnterpriseByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.mapper;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcZhongdianWork;
/**
* Mapper
*
* @author ruoyi
* @date 2023-08-10
*/
public interface TcZhongdianWorkMapper
{
/**
*
*
* @param id
* @return
*/
public TcZhongdianWork selectTcZhongdianWorkById(Long id);
/**
*
*
* @param tcZhongdianWork
* @return
*/
public List<TcZhongdianWork> selectTcZhongdianWorkList(TcZhongdianWork tcZhongdianWork);
/**
*
*
* @param tcZhongdianWork
* @return
*/
public int insertTcZhongdianWork(TcZhongdianWork tcZhongdianWork);
/**
*
*
* @param tcZhongdianWork
* @return
*/
public int updateTcZhongdianWork(TcZhongdianWork tcZhongdianWork);
/**
*
*
* @param id
* @return
*/
public int deleteTcZhongdianWorkById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteTcZhongdianWorkByIds(Long[] ids);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcCommentator;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcCommentatorService
{
/**
*
*
* @param id
* @return
*/
public TcCommentator selectTcCommentatorById(Long id);
/**
*
*
* @param tcCommentator
* @return
*/
public List<TcCommentator> selectTcCommentatorList(TcCommentator tcCommentator);
/**
*
*
* @param tcCommentator
* @return
*/
public int insertTcCommentator(TcCommentator tcCommentator);
/**
*
*
* @param tcCommentator
* @return
*/
public int updateTcCommentator(TcCommentator tcCommentator);
/**
*
*
* @param ids
* @return
*/
public int deleteTcCommentatorByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcCommentatorById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDataSource;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcDataSourceService
{
/**
*
*
* @param id
* @return
*/
public TcDataSource selectTcDataSourceById(Long id);
/**
*
*
* @param tcDataSource
* @return
*/
public List<TcDataSource> selectTcDataSourceList(TcDataSource tcDataSource);
/**
*
*
* @param tcDataSource
* @return
*/
public int insertTcDataSource(TcDataSource tcDataSource);
/**
*
*
* @param tcDataSource
* @return
*/
public int updateTcDataSource(TcDataSource tcDataSource);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDataSourceByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcDataSourceById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDengbaoSystem;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcDengbaoSystemService
{
/**
*
*
* @param id
* @return
*/
public TcDengbaoSystem selectTcDengbaoSystemById(Long id);
/**
*
*
* @param tcDengbaoSystem
* @return
*/
public List<TcDengbaoSystem> selectTcDengbaoSystemList(TcDengbaoSystem tcDengbaoSystem);
/**
*
*
* @param tcDengbaoSystem
* @return
*/
public int insertTcDengbaoSystem(TcDengbaoSystem tcDengbaoSystem);
/**
*
*
* @param tcDengbaoSystem
* @return
*/
public int updateTcDengbaoSystem(TcDengbaoSystem tcDengbaoSystem);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDengbaoSystemByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcDengbaoSystemById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcDengbaoUnit;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcDengbaoUnitService
{
/**
*
*
* @param id
* @return
*/
public TcDengbaoUnit selectTcDengbaoUnitById(Long id);
/**
*
*
* @param tcDengbaoUnit
* @return
*/
public List<TcDengbaoUnit> selectTcDengbaoUnitList(TcDengbaoUnit tcDengbaoUnit);
/**
*
*
* @param tcDengbaoUnit
* @return
*/
public int insertTcDengbaoUnit(TcDengbaoUnit tcDengbaoUnit);
/**
*
*
* @param tcDengbaoUnit
* @return
*/
public int updateTcDengbaoUnit(TcDengbaoUnit tcDengbaoUnit);
/**
*
*
* @param ids
* @return
*/
public int deleteTcDengbaoUnitByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcDengbaoUnitById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcExtworkSafetyadmin;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcExtworkSafetyadminService
{
/**
*
*
* @param id
* @return
*/
public TcExtworkSafetyadmin selectTcExtworkSafetyadminById(Long id);
/**
*
*
* @param tcExtworkSafetyadmin
* @return
*/
public List<TcExtworkSafetyadmin> selectTcExtworkSafetyadminList(TcExtworkSafetyadmin tcExtworkSafetyadmin);
/**
*
*
* @param tcExtworkSafetyadmin
* @return
*/
public int insertTcExtworkSafetyadmin(TcExtworkSafetyadmin tcExtworkSafetyadmin);
/**
*
*
* @param tcExtworkSafetyadmin
* @return
*/
public int updateTcExtworkSafetyadmin(TcExtworkSafetyadmin tcExtworkSafetyadmin);
/**
*
*
* @param ids
* @return
*/
public int deleteTcExtworkSafetyadminByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcExtworkSafetyadminById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcGovernmentWeb;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcGovernmentWebService
{
/**
*
*
* @param id
* @return
*/
public TcGovernmentWeb selectTcGovernmentWebById(Long id);
/**
*
*
* @param tcGovernmentWeb
* @return
*/
public List<TcGovernmentWeb> selectTcGovernmentWebList(TcGovernmentWeb tcGovernmentWeb);
/**
*
*
* @param tcGovernmentWeb
* @return
*/
public int insertTcGovernmentWeb(TcGovernmentWeb tcGovernmentWeb);
/**
*
*
* @param tcGovernmentWeb
* @return
*/
public int updateTcGovernmentWeb(TcGovernmentWeb tcGovernmentWeb);
/**
*
*
* @param ids
* @return
*/
public int deleteTcGovernmentWebByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcGovernmentWebById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcIdcUnit;
/**
* IDCService
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcIdcUnitService
{
/**
* IDC
*
* @param id IDC
* @return IDC
*/
public TcIdcUnit selectTcIdcUnitById(Long id);
/**
* IDC
*
* @param tcIdcUnit IDC
* @return IDC
*/
public List<TcIdcUnit> selectTcIdcUnitList(TcIdcUnit tcIdcUnit);
/**
* IDC
*
* @param tcIdcUnit IDC
* @return
*/
public int insertTcIdcUnit(TcIdcUnit tcIdcUnit);
/**
* IDC
*
* @param tcIdcUnit IDC
* @return
*/
public int updateTcIdcUnit(TcIdcUnit tcIdcUnit);
/**
* IDC
*
* @param ids IDC
* @return
*/
public int deleteTcIdcUnitByIds(Long[] ids);
/**
* IDC
*
* @param id IDC
* @return
*/
public int deleteTcIdcUnitById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkArticle;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcNetworkArticleService
{
/**
*
*
* @param id
* @return
*/
public TcNetworkArticle selectTcNetworkArticleById(Long id);
/**
*
*
* @param tcNetworkArticle
* @return
*/
public List<TcNetworkArticle> selectTcNetworkArticleList(TcNetworkArticle tcNetworkArticle);
/**
*
*
* @param tcNetworkArticle
* @return
*/
public int insertTcNetworkArticle(TcNetworkArticle tcNetworkArticle);
/**
*
*
* @param tcNetworkArticle
* @return
*/
public int updateTcNetworkArticle(TcNetworkArticle tcNetworkArticle);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkArticleByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkArticleById(Long id);
}

@ -0,0 +1,61 @@
package com.ruoyi.zongzhi.service;
import java.util.List;
import com.ruoyi.zongzhi.domain.TcNetworkEvaluate;
/**
* Service
*
* @author ruoyi
* @date 2023-08-10
*/
public interface ITcNetworkEvaluateService
{
/**
*
*
* @param id
* @return
*/
public TcNetworkEvaluate selectTcNetworkEvaluateById(Long id);
/**
*
*
* @param tcNetworkEvaluate
* @return
*/
public List<TcNetworkEvaluate> selectTcNetworkEvaluateList(TcNetworkEvaluate tcNetworkEvaluate);
/**
*
*
* @param tcNetworkEvaluate
* @return
*/
public int insertTcNetworkEvaluate(TcNetworkEvaluate tcNetworkEvaluate);
/**
*
*
* @param tcNetworkEvaluate
* @return
*/
public int updateTcNetworkEvaluate(TcNetworkEvaluate tcNetworkEvaluate);
/**
*
*
* @param ids
* @return
*/
public int deleteTcNetworkEvaluateByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteTcNetworkEvaluateById(Long id);
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save