This commit is contained in:
esacpe
2024-07-17 21:04:17 +08:00
commit 1fa3303972
1291 changed files with 92328 additions and 0 deletions

View File

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
<facet type="web" name="Web">
<configuration>
<webroots />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="common-config-starter" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.5.0" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:4.0.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.3.7" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.7" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.2.0" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.7" level="project" />
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.6" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.83" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:29.0-jre" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:failureaccess:1.0.1" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" level="project" />
<orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
<orderEntry type="library" name="Maven: org.checkerframework:checker-qual:2.11.1" level="project" />
<orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.3.4" level="project" />
<orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.3" level="project" />
<orderEntry type="module" module-name="common-base-starter" />
<orderEntry type="library" name="Maven: org.apache.velocity:velocity-engine-core:2.3" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.8.0" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.14" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.14" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.8.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.8.0" level="project" />
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.7.9" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.8.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.8.0" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.8.0" level="project" />
<orderEntry type="library" name="Maven: org.reflections:reflections:0.9.11" level="project" />
<orderEntry type="library" name="Maven: org.javassist:javassist:3.21.0-GA" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.8.0" level="project" />
<orderEntry type="library" name="Maven: com.github.caspar-chen:swagger-ui-layer:1.1.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.11.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.11.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.11.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.37" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.37" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.7.20" level="project" />
<orderEntry type="library" name="Maven: com.belerweb:pinyin4j:2.5.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.6" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.3.0" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.2" level="project" />
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.4.3" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.4.3" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.4.3" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.4.3" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.4.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
<orderEntry type="module" module-name="common-token-starter" />
<orderEntry type="library" name="Maven: com.alibaba:transmittable-thread-local:2.11.5" level="project" />
<orderEntry type="library" name="Maven: com.vividsolutions:jts:1.13" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.projectlombok:lombok:1.16.18" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-core:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-lang:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.26" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-cache:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-crypto-hash:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-crypto-core:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-crypto-cipher:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-config-core:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-config-ogdl:1.8.0" level="project" />
<orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.9.4" level="project" />
<orderEntry type="library" name="Maven: commons-collections:commons-collections:3.2.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-event:1.8.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-ehcache:1.8.0" level="project" />
<orderEntry type="library" name="Maven: net.sf.ehcache:ehcache-core:2.6.11" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-validation:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.3.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.13.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.13.3" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.30" level="project" />
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.2.8.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.26" level="project" />
<orderEntry type="library" name="Maven: org.glassfish:jakarta.el:3.0.3" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.1.5.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
<orderEntry type="library" name="Maven: com.github.penggle:kaptcha:2.3.2" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:3.1.0" level="project" />
<orderEntry type="library" name="Maven: com.jhlabs:filters:2.0.235-1" level="project" />
<orderEntry type="module" module-name="common-redis-starter" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.3.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.3.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.3.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.3.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.2.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.2.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.2.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.3.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.49.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.49.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.49.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.49.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.49.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.49.Final" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.3.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.3" level="project" />
<orderEntry type="library" name="Maven: com.auth0:java-jwt:3.8.1" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.9" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.12" level="project" />
<orderEntry type="library" name="Maven: io.minio:minio:8.0.3" level="project" />
<orderEntry type="library" name="Maven: com.carrotsearch.thirdparty:simple-xml-safe:2.7.1" level="project" />
<orderEntry type="library" name="Maven: com.squareup.okhttp3:okhttp:4.8.1" level="project" />
<orderEntry type="library" name="Maven: com.squareup.okio:okio:2.7.0" level="project" />
<orderEntry type="library" name="Maven: org.jetbrains.kotlin:kotlin-stdlib-common:1.3.70" level="project" />
<orderEntry type="library" name="Maven: org.jetbrains.kotlin:kotlin-stdlib:1.3.72" level="project" />
<orderEntry type="library" name="Maven: org.jetbrains:annotations:13.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.11.2" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.11.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.12" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.13" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
</component>
</module>

112
common-core-starter/pom.xml Normal file
View File

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>mosty-common</artifactId>
<groupId>com.mosty</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>common-core-starter</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<shiro.version>1.8.0</shiro.version>
<kaptcha.version>2.3.2</kaptcha.version>
</properties>
<dependencies>
<dependency>
<groupId>com.mosty</groupId>
<artifactId>common-config-starter</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.mosty</groupId>
<artifactId>common-token-starter</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.18</version>
<scope>provided</scope>
</dependency>
<!--Shiro核心框架 -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
</dependency>
<!-- Shiro使用EhCache缓存框架 -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-ehcache</artifactId>
</dependency>
<!-- 自定义验证注解 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<version>${spring-boot-dependencies.version}</version>
</dependency>
<!--验证码 -->
<dependency>
<groupId>com.github.penggle</groupId>
<artifactId>kaptcha</artifactId>
<version>${kaptcha.version}</version>
</dependency>
<dependency>
<groupId>com.mosty</groupId>
<artifactId>common-redis-starter</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.8.1</version>
</dependency>
<!-- minio文件服务 -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>8.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.12</version>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>mosty-nexus-releases</id>
<name>release version</name>
<url>http://47.108.232.77:8181/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>mosty-nexus-snapshots</id>
<name>snapshots version</name>
<url>http://47.108.232.77:8181/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,16 @@
package com.mosty.common.core;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
/**
*
* @author kevin
* @date 2022/2/3 7:28 PM
* @since 1.0.0
*/
@Configuration
@MapperScan("com.mosty.common.core.business.mapper")
public class CoreAutoConfiguration {
}

View File

@ -0,0 +1,107 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.core.business.entity.SysAppHomeconfig;
import com.mosty.common.core.business.entity.SysDept;
import com.mosty.common.core.business.entity.request.SysAppHomeconfigPage;
import com.mosty.common.core.business.entity.request.SysAppHomeconfigQuery;
import com.mosty.common.core.business.entity.vo.*;
import com.mosty.common.core.business.service.SysAppHomeconfigService;
import com.mosty.common.token.JwtSysUser;
import com.mosty.common.token.UserInfo;
import com.mosty.common.token.UserInfoManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
/**
* <p>
* app首页表 前端控制器
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Api(tags = "app首页接口")
@RestController
@AllArgsConstructor
@RequestMapping("/sysAppHomeconfig")
public class SysAppHomeconfigController {
private SysAppHomeconfigService sysAppHomeconfigService;
/**
* 添加首页应用
* @param configVO 部门
* @return 添加结果
*/
@PostMapping("addAppHome")
@JwtSysUser
@ApiOperation(value = "添加首页应用", httpMethod = "POST", response = Boolean.class)
@Log(title = "添加首页应用",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addApp(@RequestBody @Valid SysAppHomeconfigVO configVO,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigService.saveInfo(configVO, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改首页
* @param configVO 首页信息
* @return 修改结果
*/
@PostMapping("updateAppHome")
@JwtSysUser
@Log(title = "首页应用",businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改首页", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateAppHome(@RequestBody @Valid SysAppHomeconfigVO configVO, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigService.updateInfo(configVO, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除应用信息
* @param list 应用id
* @return 删除结果
*/
@Log(title = "应用功能",businessType = BusinessType.DELETE)
@PostMapping("deleteApp")
@JwtSysUser
@ApiOperation(value = "删除应用信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deleteApp(@RequestBody List<Long> list,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
// UserInfo userInfo = UserInfoManager.get();
sysAppHomeconfigService.delete(list, ipAddress, null);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询应用信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysAppHomeconfig>> selectPage(SysAppHomeconfigPage deptPage) {
IPage<SysAppHomeconfig> deptIPage = sysAppHomeconfigService.selectByPage(deptPage);
return ResponseResult.success(deptIPage);
}
@GetMapping("queryConfig")
@ApiOperation(value = "查询应用配置", httpMethod = "GET", response = SysDept.class)
public ResponseResult<SysAppHomeconfigRsVO> queryConfig(SysAppHomeconfigQuery configQuery) {
SysAppHomeconfigRsVO vo = sysAppHomeconfigService.queryConfig(configQuery);
return ResponseResult.success(vo);
}
}

View File

@ -0,0 +1,127 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.core.business.entity.SysAppHomeconfigPlate;
import com.mosty.common.core.business.entity.SysDept;
import com.mosty.common.core.business.entity.request.SysAppHomeconfigPlatePage;
import com.mosty.common.core.business.service.SysAppHomeconfigPlateService;
import com.mosty.common.token.JwtSysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
/**
* <p>
* app首页-板块表 前端控制器
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Api(tags = "app首页板块接口")
@RestController
@AllArgsConstructor
@RequestMapping("/sysAppHomeconfigPlate")
public class SysAppHomeconfigPlateController {
private SysAppHomeconfigPlateService sysAppHomeconfigPlateService;
/**
* 添加首页应用
* @param plate 部门
* @return 添加结果
*/
@PostMapping("addPlate")
@JwtSysUser
@ApiOperation(value = "添加首页应用板块", httpMethod = "POST", response = Boolean.class)
@Log(title = "添加首页应用板块",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addPlate(@RequestBody @Valid SysAppHomeconfigPlate plate,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateService.saveInfo(plate, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 添加首页应用
* @param plates 部门
* @return 添加结果
*/
@PostMapping("addBatch")
@JwtSysUser
@ApiOperation(value = "批量添加首页应用板块", httpMethod = "POST", response = Boolean.class)
@Log(title = "批量添加首页应用板块",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addPlateBatch(@RequestBody List<SysAppHomeconfigPlate> plates,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateService.saveInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改首页板块
* @param plate 首页板块信息
* @return 修改结果
*/
@PostMapping("updatePlate")
@JwtSysUser
@Log(title = "首页应用板块",businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改首页应用板块", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updatePlate(@RequestBody @Valid SysAppHomeconfigPlate plate,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateService.updateInfo(plate, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 批量修改首页应用板块
* @param plates 首页板块信息
* @return 修改结果
*/
@PostMapping("updateBatch")
@JwtSysUser
@Log(title = "批量修改首页应用板块",businessType = BusinessType.UPDATE)
@ApiOperation(value = "批量修改首页应用板块", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateBatch(@RequestBody List<SysAppHomeconfigPlate> plates, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateService.updateInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除应用板块信息
* @param list 应用id
* @return 删除结果
*/
@Log(title = "删除应用板块功能",businessType = BusinessType.DELETE)
@PostMapping("deletePlate")
@JwtSysUser
@ApiOperation(value = "删除应用信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deletePlate(@RequestBody List<Long> list,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
// UserInfo userInfo = UserInfoManager.get();
sysAppHomeconfigPlateService.delete(list, ipAddress, null);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询应用信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysAppHomeconfigPlate>> selectPage(SysAppHomeconfigPlatePage deptPage) {
IPage<SysAppHomeconfigPlate> deptIPage = sysAppHomeconfigPlateService.selectByPage(deptPage);
return ResponseResult.success(deptIPage);
}
}

View File

@ -0,0 +1,127 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.core.business.entity.SysAppHomeconfigPlateList;
import com.mosty.common.core.business.entity.SysDept;
import com.mosty.common.core.business.entity.request.SysAppHomeconfigPlateListPage;
import com.mosty.common.core.business.service.SysAppHomeconfigPlateListService;
import com.mosty.common.token.JwtSysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
/**
* <p>
* app首页配置-板块内容表 前端控制器
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Api(tags = "app板块内容接口")
@RestController
@AllArgsConstructor
@RequestMapping("/sysAppHomeconfigPlatelList")
public class SysAppHomeconfigPlateListController {
private SysAppHomeconfigPlateListService sysAppHomeconfigPlateListService;
/**
* 添加首页应用板块内容
* @param plate 部门
* @return 添加结果
*/
@PostMapping("addPlate")
@JwtSysUser
@ApiOperation(value = "添加首页应用板块内容", httpMethod = "POST", response = Boolean.class)
@Log(title = "添加首页应用板块",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addPlate(@RequestBody SysAppHomeconfigPlateList plate,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateListService.saveInfo(plate, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 添加首页应用板块内容
* @param plates 部门
* @return 添加结果
*/
@PostMapping("addBatch")
@JwtSysUser
@ApiOperation(value = "批量添加首页应用板块内容", httpMethod = "POST", response = Boolean.class)
@Log(title = "批量添加首页应用板块内容",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addPlateBatch(@RequestBody List<SysAppHomeconfigPlateList> plates,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateListService.saveInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改首页板块
* @param plate 首页板块内容信息
* @return 修改结果
*/
@PostMapping("updatePlate")
@JwtSysUser
@Log(title = "首页应用板块内容",businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改首页应用板块内容", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updatePlate(@RequestBody @Valid SysAppHomeconfigPlateList plate,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateListService.updateInfo(plate, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 批量修改首页应用板块内容
* @param plates 首页板块信息内容
* @return 修改结果
*/
@PostMapping("updateBatch")
@JwtSysUser
@Log(title = "批量修改首页应用板块内容",businessType = BusinessType.UPDATE)
@ApiOperation(value = "批量修改首页应用板块内容", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateBatch(@RequestBody List<SysAppHomeconfigPlateList> plates, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysAppHomeconfigPlateListService.updateInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除应用板块信息内容
* @param list 应用id
* @return 删除结果
*/
@Log(title = "删除应用板块内容功能",businessType = BusinessType.DELETE)
@PostMapping("deletePlate")
@JwtSysUser
@ApiOperation(value = "删除应用板块内容功能", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deletePlate(@RequestBody List<Long> list,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
// UserInfo userInfo = UserInfoManager.get();
sysAppHomeconfigPlateListService.delete(list, ipAddress, null);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询应用信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysAppHomeconfigPlateList>> selectPage(SysAppHomeconfigPlateListPage deptPage) {
IPage<SysAppHomeconfigPlateList> deptIPage = sysAppHomeconfigPlateListService.selectByPage(deptPage);
return ResponseResult.success(deptIPage);
}
}

View File

@ -0,0 +1,227 @@
package com.mosty.common.core.business.controller;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.google.common.collect.Lists;
import com.mosty.common.base.constant.enums.DeletedEnum;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.exception.Asserts;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.core.business.entity.SysDept;
import com.mosty.common.core.business.entity.vo.*;
import com.mosty.common.core.business.service.SysDeptService;
import com.mosty.common.token.JwtSysUser;
import com.mosty.common.token.UserInfo;
import com.mosty.common.token.UserInfoManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
/**
* <p>
* 部门表 前端控制器
* </p>
*
* @author kevin
* @since 2022-02-12
*/
@Slf4j
@SuppressWarnings("unused")
@RestController
@AllArgsConstructor
@RequestMapping("/sysDept")
@Api(tags = "部门信息接口")
public class SysDeptController {
private final SysDeptService sysDeptService;
@PostMapping("addSysDept")
@JwtSysUser
@ApiOperation(value = "添加部门", httpMethod = "POST", response = Boolean.class)
@Log(title = "部门功能-添加部门", businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addSysDept(@RequestBody @Valid AddDeptVO addDeptVO, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysDeptService.saveInfo(addDeptVO, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
@PostMapping("updateSysDept")
@JwtSysUser
@Log(title = "部门功能-修改部门", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改部门", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateSysDept(@RequestBody @Valid SysDeptVO sysDept, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysDeptService.updateInfo(sysDept, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
@Log(title = "部门功能-删除部门信息", businessType = BusinessType.DELETE)
@PostMapping("deleteSysDept")
@JwtSysUser
@ApiOperation(value = "删除部门信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deleteSysDept(@RequestBody DeleteDeptVO deleteDeptVO, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
UserInfo userInfo = UserInfoManager.get();
sysDeptService.delete(deleteDeptVO, ipAddress, userInfo);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询部门信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysDept>> selectPage(DeptPage deptPage) {
IPage<SysDept> deptIPage = sysDeptService.selectByPage(deptPage);
return ResponseResult.success(deptIPage);
}
@PostMapping("getChildDeptList")
@ApiOperation(value = "查询子部门集合", httpMethod = "POST", response = SysDeptVO.class)
public ResponseResult<List<SysDeptVO>> getChildDeptList(Long deptId) {
List<SysDept> list = sysDeptService.getChildDeptList(deptId);
List<SysDeptVO> resultList = Lists.newArrayList();
if (CollectionUtils.isNotEmpty(list)) {
resultList = BeanUtil.copyToList(resultList, SysDeptVO.class);
}
return ResponseResult.success(resultList);
}
@GetMapping("getChildDeptList")
@ApiOperation(value = "查询子部门集合", httpMethod = "POST", response = SysDeptVO.class)
public ResponseResult<SysDeptVO> getDeptByOrgCode(@RequestParam("orgCode") String orgCode) {
Asserts.check(StringUtils.isBlank(orgCode), "查询的组织机构编码不能为空!");
SysDept sysDept = sysDeptService.getDeptByOrgCode(orgCode);
Asserts.check(sysDept == null, "组织机构编码对应的部门不存在!");
SysDeptVO sysDeptVO = BeanUtil.copyProperties(sysDept, SysDeptVO.class);
return ResponseResult.success(sysDeptVO);
}
@JwtSysUser
@PostMapping("getRootDept")
@ApiOperation(value = "获取当前token对应的部门信息", httpMethod = "POST", response = SysDeptVO.class)
public ResponseResult<SysDeptVO> getRootDept(/*Long deptId*/) {
UserInfo userInfo = UserInfoManager.get();
SysDept sysDept = sysDeptService.getById(userInfo.getDeptId());
Asserts.check(sysDept == null || DeletedEnum.DELETED.code.equals(sysDept.getXtZxbz()),
"部门不存在,请重新登陆");
SysDeptVO sysDeptVO = BeanUtil.copyProperties(sysDept, SysDeptVO.class);
return ResponseResult.success(sysDeptVO);
}
@JwtSysUser
// @PostMapping("getAllChildDeptList")
@ApiOperation(value = "查询所有子部门树", httpMethod = "POST", response = SysDeptVO.class)
public ResponseResult<SysDeptVO> getAllChildDeptList(@RequestBody DeptTreeVO deptTreeVO) {
UserInfo userInfo = UserInfoManager.get();
SysDept sysDept = sysDeptService.getById(userInfo.getDeptId());
Asserts.check(sysDept == null || DeletedEnum.DELETED.code.equals(sysDept.getXtZxbz()),
"部门不存在,请求重新登陆");
SysDeptVO rootSysDeptVo = sysDeptService.getAllChildDeptList(sysDept, deptTreeVO);
return ResponseResult.success(rootSysDeptVo);
}
@GetMapping("selectUserPageByDept")
@ApiOperation(value = "分页查询部门下用户信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<UserDeptVO>> selectUserPageByDept(UserByDeptPage userByDeptPage) {
IPage<UserDeptVO> deptIPage = sysDeptService.selectUserPageByDept(userByDeptPage);
return ResponseResult.success(deptIPage);
}
@GetMapping("selectRolePageByDept")
@ApiOperation(value = "分页查询部门下角色信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<RoleDeptVO>> selectRolePageByDept(RoleByDeptPage roleByDeptPage) {
IPage<RoleDeptVO> deptIPage = sysDeptService.selectRolePageByDept(roleByDeptPage);
return ResponseResult.success(deptIPage);
}
@PostMapping("saveUserDeptInfo")
@JwtSysUser
@Log(title = "部门功能", businessType = BusinessType.GRANT)
@ApiOperation(value = "添加用户部门关联关系", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> saveUserDeptInfo(@RequestBody AddUserDeptVO addUserDeptVO) {
sysDeptService.saveUserDeptInfo(addUserDeptVO);
return ResponseResult.success(Boolean.TRUE);
}
@PostMapping("saveRoleDeptInfo")
@JwtSysUser
@Log(title = "部门功能", businessType = BusinessType.GRANT)
@ApiOperation(value = "添加角色部门关联关系", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> saveRoleDeptInfo(@RequestBody AddRoleDeptVO roleDeptVO) {
sysDeptService.saveRoleDeptInfo(roleDeptVO);
return ResponseResult.success(Boolean.TRUE);
}
@PostMapping("deleteUserDeptInfo")
@JwtSysUser
@Log(title = "部门功能", businessType = BusinessType.OTHER)
@ApiOperation(value = "删除用户部门关联关系", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deleteUserDeptInfo(@RequestBody DeleteUserDeptVO deleteUserDeptVO) {
sysDeptService.deleteUserDeptInfo(deleteUserDeptVO);
return ResponseResult.success(Boolean.TRUE);
}
@JwtSysUser
@GetMapping("selectDept")
@ApiOperation(value = "查询部门列表信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<List<SysDept>> selectDept(DeptQuery dto) {
return ResponseResult.success(sysDeptService.selectDept(dto));
}
// @PostMapping("deleteRoleDeptInfo")
// @JwtSysUser
// @Log(title = "部门功能", businessType = BusinessType.OTHER)
// @ApiOperation(value = "删除角色部门关联关系", httpMethod = "POST", response = Boolean.class)
// public ResponseResult<Boolean> deleteRoleDeptInfo(@RequestBody DeleteRoleDeptVO deleteRoleDeptVO) {
// sysDeptService.deleteRoleDeptInfo(deleteRoleDeptVO);
// return ResponseResult.success(Boolean.TRUE);
// }
//
// @JwtSysUser
// @GetMapping("selectNextPage")
// @ApiOperation(value = "根据部门编码分页查询当前及下级部门信息", httpMethod = "GET", response = SysDept.class)
// public ResponseResult<IPage<SysDept>> selectNextPage(DeptPage deptPage) {
// IPage<SysDept> deptIPage = sysDeptService.selectNextPage(deptPage);
// return ResponseResult.success(deptIPage);
// }
@GetMapping("getDeptList")
@ApiOperation(value = "根据部门编码分页查询当前及下级部门信息--第三方接口", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysDept>> getDeptList(DeptPage deptPage) {
IPage<SysDept> deptIPage = sysDeptService.getDeptList(deptPage);
return ResponseResult.success(deptIPage);
}
@GetMapping("deptSys")
@ApiOperation(value = "部门信息同步", httpMethod = "GET", response = Boolean.class)
public ResponseResult<Boolean> deptSys() {
Boolean bool = sysDeptService.deptSys();
return ResponseResult.success(bool);
}
@ApiOperation("查询部门下的所有子部门信息")
@GetMapping("getChildDept/{deptid}")
public ResponseResult<List<String>> getChildDept(@PathVariable("deptid") String deptid) {
return ResponseResult.success(this.sysDeptService.getChildDept(deptid));
}
@ApiOperation("查询部门下的所有子部门信息")
@GetMapping("getChildDeptByOrgCode/{orgcode}")
public ResponseResult<List<String>> getChildDeptByOrgCode(@PathVariable("orgcode") String orgcode) {
return ResponseResult.success(this.sysDeptService.getChildDeptByOrgCode(orgcode));
}
}

View File

@ -0,0 +1,75 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.entity.log.SysOperLog;
import com.mosty.common.config.Excel.ExcelUtil;
import com.mosty.common.core.business.entity.SysLogininfor;
import com.mosty.common.core.business.entity.request.LoginLogPage;
import com.mosty.common.core.business.entity.vo.DeleteListVO;
import com.mosty.common.core.business.service.SysLogininforService;
import com.mosty.common.token.JwtSysUser;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
@Slf4j
@SuppressWarnings("unused")
@RestController
@AllArgsConstructor
@RequestMapping("/sysLoginLog")
@Api(tags = "登录日志")
public class SysLogininforController {
private final SysLogininforService sysLogininforService;
@PostMapping("/list")
@JwtSysUser
@Log(title = "查询登录日志列表", businessType = BusinessType.DELETE)
public ResponseResult<IPage<SysLogininfor>> list(@RequestBody LoginLogPage loginLogPage) {
IPage<SysLogininfor> sysOperLogPage = sysLogininforService.selectByPage(loginLogPage);
return ResponseResult.success(sysOperLogPage);
}
@Log(title = "登录日志删除", businessType = BusinessType.OTHER)
@PostMapping("/remove")
public ResponseResult<Boolean> remove(@RequestBody DeleteListVO vo) {
sysLogininforService.deleteOperLogByIds(vo.getIds());
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("/detail/{id}")
public ResponseResult<SysLogininfor> detail(@PathVariable("id") Long id) {
SysLogininfor log = sysLogininforService.getOne(new LambdaQueryWrapper<SysLogininfor>()
.eq(SysLogininfor::getInfoId,id));
return ResponseResult.success(log);
}
@Log(title = "登录日志", businessType = BusinessType.CLEAN)
@PostMapping("/clean")
@ResponseBody
public ResponseResult<Boolean> clean() {
sysLogininforService.cleanOperLog();
return ResponseResult.success(Boolean.TRUE);
}
// @Log(title = "导出巡防力量", businessType = BusinessType.EXPORT)
// @PostMapping("/exportZY")
// @JwtSysUser
// public void export(HttpServletResponse response) {
// List<SysLogininfor> list = sysLogininforService.export();
// ExcelUtil<SysLogininfor> util = new ExcelUtil<
// >(SysLogininfor.class);
// util.exportExcel(response, list, "登录日志");
// }
}

View File

@ -0,0 +1,186 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.mosty.common.base.constant.enums.DeletedEnum;
import com.mosty.common.base.constant.enums.MenuTypeEnum;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.exception.Asserts;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.config.entity.vo.DeleteVO;
import com.mosty.common.core.business.entity.SysMenu;
import com.mosty.common.core.business.entity.vo.AddSysMenuVO;
import com.mosty.common.core.business.entity.vo.EditSysMenuVO;
import com.mosty.common.core.business.entity.vo.MenuPage;
import com.mosty.common.core.business.entity.vo.MenuQuery;
import com.mosty.common.core.business.service.SysMenuService;
import com.mosty.common.token.JwtSysUser;
import com.mosty.common.token.UserInfo;
import com.mosty.common.token.UserInfoManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.Date;
import java.util.List;
/**
* <p>
* 菜单表 前端控制器
* </p>
*
* @author kevin
* @since 2022-02-12
*/
@Slf4j
@RestController
@AllArgsConstructor
@SuppressWarnings("unused")
@RequestMapping("/sysMenu")
@Api(tags = "菜单信息接口")
public class SysMenuController {
private final SysMenuService sysMenuService;
/**
* 添加菜单
* @param addSysMenuVo 添加菜单请求
* @return 添加结果
*/
@JwtSysUser
@PostMapping("addSysMenu")
@Log(title = "菜单功能",businessType = BusinessType.INSERT)
@ApiOperation(value = "添加菜单", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> addSysMenu(@RequestBody @Valid AddSysMenuVO addSysMenuVo) {
MenuTypeEnum menuTypeEnum = MenuTypeEnum.valueOf(addSysMenuVo.getMenuType());
Asserts.check(menuTypeEnum == null, "菜单类型有误,请检查");
/* Asserts.check(menuTypeEnum == MenuTypeEnum.RESOURCE && StringUtils.isNotBlank(addSysMenuVo.getMenuUrl()),
"资源类型菜单不能配置url地址");*/
String menuCode = addSysMenuVo.getMenuCode();
QueryWrapper<SysMenu> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("menu_code", menuCode);
queryWrapper.eq("xt_zxbz", DeletedEnum.NATURE.code);
List<SysMenu> list = sysMenuService.list(queryWrapper);
Asserts.check(CollectionUtils.isNotEmpty(list), "菜单编码%s已存在请修改", menuCode);
SysMenu parentMenu = null;
if (addSysMenuVo.getParentId() != null) {
parentMenu = sysMenuService.getById(addSysMenuVo.getParentId());
Asserts.check(parentMenu == null || DeletedEnum.DELETED.code.equals(parentMenu.getXtZxbz()),
"父菜单不存在或已删除");
}
// 添加菜单信息
sysMenuService.addSysMenuInfo(addSysMenuVo, parentMenu);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改菜单
* @param editSysMenuVo 修改菜单请求
* @return 修改结果
*/
@JwtSysUser
@Log(title = "菜单功能",businessType = BusinessType.UPDATE)
@PostMapping("updateSysMenu")
@ApiOperation(value = "修改菜单", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateSysMenu(@RequestBody @Valid EditSysMenuVO editSysMenuVo) {
Asserts.check(editSysMenuVo.getId() == null, "主键id不能为空");
SysMenu oldSysMenu = sysMenuService.getBaseMapper().selectById(editSysMenuVo.getId());
Asserts.check(oldSysMenu == null, "主键为 %s 的菜单信息不存在", editSysMenuVo.getId());
String menuCode = editSysMenuVo.getMenuCode();
QueryWrapper<SysMenu> queryWrapper = new QueryWrapper<>();
queryWrapper.ne("id", editSysMenuVo.getId());
queryWrapper.eq("menu_code", menuCode);
queryWrapper.eq("xt_zxbz", DeletedEnum.NATURE.code);
List<SysMenu> list = sysMenuService.list(queryWrapper);
Asserts.check(CollectionUtils.isNotEmpty(list), "菜单编码%s已存在请修改", menuCode);
oldSysMenu.setMenuName(editSysMenuVo.getMenuName());
oldSysMenu.setMenuCode(editSysMenuVo.getMenuCode());
oldSysMenu.setMenuUrl(editSysMenuVo.getMenuUrl());
oldSysMenu.setOrderNo(editSysMenuVo.getOrderNo());
oldSysMenu.setShowMode(editSysMenuVo.getShowMode());
oldSysMenu.setBz(editSysMenuVo.getBz());
// 获取ip地址
String ipAddress = IpUtil.getIpAddress();
UserInfo userInfo = UserInfoManager.get();
Asserts.checkAuth(userInfo == null, "用户信息为空,请登陆");
oldSysMenu.setXtZhxgsj(new Date());
oldSysMenu.setXtZhxgrid(userInfo.getUserId().toString());
oldSysMenu.setXtZhxgrxm(userInfo.getUserName());
oldSysMenu.setXtZhxgrbmid(userInfo.getDeptId().toString());
oldSysMenu.setXtZhxgrbm(userInfo.getDeptName());
oldSysMenu.setXtZhxgip(ipAddress);
sysMenuService.getBaseMapper().updateById(oldSysMenu);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除菜单信息
* @param deleteVO 菜单id
* @return 删除结果
*/
@PostMapping("deleteSysMenu")
@JwtSysUser
@Log(title = "菜单功能",businessType = BusinessType.DELETE)
@ApiOperation(value = "删除菜单信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deleteSysMenu(@RequestBody DeleteVO deleteVO) {
SysMenu oldSysMenu = sysMenuService.getBaseMapper().selectById(deleteVO.getId());
Asserts.check(oldSysMenu == null, "主键为 %s 的岗位信息不存在", deleteVO.getId());
// 获取ip地址
String ipAddress = IpUtil.getIpAddress();
UserInfo userInfo = UserInfoManager.get();
Asserts.checkAuth(userInfo == null, "用户信息为空,请登陆");
oldSysMenu.setXtZhxgsj(new Date());
oldSysMenu.setXtZhxgrid(userInfo.getUserId().toString());
oldSysMenu.setXtZhxgrxm(userInfo.getUserName());
oldSysMenu.setXtZhxgrbmid(userInfo.getDeptId().toString());
oldSysMenu.setXtZhxgrbm(userInfo.getDeptName());
oldSysMenu.setXtZhxgip(ipAddress);
oldSysMenu.setXtZxbz(DeletedEnum.DELETED.code);
oldSysMenu.setXtZxyy(deleteVO.getZxyy());
sysMenuService.getBaseMapper().updateById(oldSysMenu);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询菜单信息", httpMethod = "GET", response = SysMenu.class)
public ResponseResult<IPage<SysMenu>> selectPage(MenuPage positionPage) {
IPage<SysMenu> positionIPage = sysMenuService.selectByPage(positionPage);
return ResponseResult.success(positionIPage);
}
@GetMapping("getMenuChild/{menuId}")
@ApiOperation(value = "根据菜单id查询菜单和子页面信息", httpMethod = "GET", response = SysMenu.class)
public ResponseResult<SysMenu> getMenuChild(@PathVariable("menuId") Long menuId) {
SysMenu menus= sysMenuService.getMenuChild(menuId);
return ResponseResult.success(menus);
}
@GetMapping("selectList")
@ApiOperation(value = "查询菜单信息树形", httpMethod = "GET", response = SysMenu.class)
public ResponseResult<List<SysMenu>> selectList(MenuQuery menuQuery) {
List<SysMenu> menus = sysMenuService.selectList(menuQuery);
return ResponseResult.success(menus);
}
}

View File

@ -0,0 +1,153 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.constant.enums.DeletedEnum;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.exception.Asserts;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.config.entity.vo.AddPositionVO;
import com.mosty.common.config.entity.vo.DeleteVO;
import com.mosty.common.config.entity.vo.EditPositionVO;
import com.mosty.common.core.business.entity.SysPosition;
import com.mosty.common.core.business.entity.vo.PositionPage;
import com.mosty.common.core.business.service.SysPositionService;
import com.mosty.common.token.JwtSysUser;
import com.mosty.common.token.UserInfo;
import com.mosty.common.token.UserInfoManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.Date;
/**
* <p>
* 岗位表 前端控制器
* </p>
*
* @author kevin
* @since 2022-02-12
*/
@Slf4j
@RestController
@AllArgsConstructor
@SuppressWarnings("unused")
@RequestMapping("/sysPosition")
@Api(tags = "岗位信息接口")
public class SysPositionController {
private final SysPositionService sysPositionService;
/**
* 添加岗位
* @param addPositionVO 添加岗位请求
* @return 添加结果
*/
@JwtSysUser
@PostMapping("addSysPosition")
@Log(title = "岗位功能",businessType = BusinessType.INSERT)
@ApiOperation(value = "添加岗位", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> addSysPosition(@RequestBody @Valid AddPositionVO addPositionVO) {
SysPosition position = new SysPosition();
position.setPostDesc(addPositionVO.getPostDesc());
position.setPostCode(addPositionVO.getPostCode());
position.setPostName(addPositionVO.getPostName());
position.setBz(addPositionVO.getBz());
UserInfo userInfo = UserInfoManager.get();
position.setXtZxbz(DeletedEnum.NATURE.code);
position.setXtCjsj(new Date());
position.setXtZhxgsj(new Date());
position.setXtZhxgrid(userInfo.getUserId().toString());
position.setXtZhxgrxm(userInfo.getUserName());
position.setXtZhxgrbmid(userInfo.getDeptId().toString());
position.setXtZhxgrbm(userInfo.getDeptName());
position.setXtLrsj(new Date());
position.setXtLrrid(userInfo.getUserId().toString());
position.setXtLrrxm(userInfo.getUserName());
position.setXtLrrbmid(userInfo.getDeptId().toString());
position.setXtLrrbm(userInfo.getDeptName());
// 获取ip地址
String ipAddress = IpUtil.getIpAddress();
position.setXtLrip(ipAddress);
position.setXtZhxgip(ipAddress);
sysPositionService.getBaseMapper().insert(position);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改岗位
* @param editPositionVO 修改岗位请求
* @return 修改结果
*/
@JwtSysUser
@PostMapping("updateSysPosition")
@Log(title = "岗位功能",businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改岗位", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateSysPosition(@RequestBody @Valid EditPositionVO editPositionVO) {
Asserts.check(editPositionVO.getId() == null, "主键id不能为空");
SysPosition oldSysPosition = sysPositionService.getBaseMapper().selectById(editPositionVO.getId());
Asserts.check(oldSysPosition == null, "主键为 %s 的岗位信息不存在", editPositionVO.getId());
// 获取ip地址
String ipAddress = IpUtil.getIpAddress();
oldSysPosition.setXtZhxgip(ipAddress);
sysPositionService.updateSysPost(oldSysPosition, editPositionVO);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除岗位信息
* @param deleteVO 岗位id
* @return 删除结果
*/
@PostMapping("deleteSysPosition")
@JwtSysUser
@Log(title = "岗位功能",businessType = BusinessType.DELETE)
@ApiOperation(value = "删除岗位信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deleteSysPosition(@RequestBody DeleteVO deleteVO) {
SysPosition oldSysPosition = sysPositionService.getBaseMapper().selectById(deleteVO.getId());
Asserts.check(oldSysPosition == null, "主键为 %s 的岗位信息不存在", deleteVO.getId());
oldSysPosition.setXtZxbz(DeletedEnum.DELETED.code);
oldSysPosition.setXtZxyy(deleteVO.getZxyy());
// 获取ip地址
String ipAddress = IpUtil.getIpAddress();
UserInfo userInfo = UserInfoManager.get();
Asserts.checkAuth(userInfo == null, "用户信息为空,请登陆");
oldSysPosition.setXtZhxgsj(new Date());
oldSysPosition.setXtZhxgrid(userInfo.getUserId().toString());
oldSysPosition.setXtZhxgrxm(userInfo.getUserName());
oldSysPosition.setXtZhxgrbmid(userInfo.getDeptId().toString());
oldSysPosition.setXtZhxgrbm(userInfo.getDeptName());
oldSysPosition.setXtZhxgip(ipAddress);
sysPositionService.getBaseMapper().updateById(oldSysPosition);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询岗位信息", httpMethod = "GET", response = SysPosition.class)
public ResponseResult<IPage<SysPosition>> selectPage(PositionPage positionPage) {
IPage<SysPosition> positionIPage = sysPositionService.selectByPage(positionPage);
return ResponseResult.success(positionIPage);
}
}

View File

@ -0,0 +1,281 @@
package com.mosty.common.core.business.controller;
import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mosty.common.base.constant.enums.DeletedEnum;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.entity.log.OperatorType;
import com.mosty.common.base.exception.Asserts;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.config.entity.vo.DeleteVO;
import com.mosty.common.core.business.entity.*;
import com.mosty.common.core.business.entity.vo.*;
import com.mosty.common.core.business.service.*;
import com.mosty.common.core.config.DefaultRoleConfig;
import com.mosty.common.token.JwtSysUser;
import com.mosty.common.token.UserInfo;
import com.mosty.common.token.UserInfoManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.Date;
import java.util.List;
/**
* <p>
* 角色表 前端控制器
* </p>
*
* @author kevin
* @since 2022-02-12
*/
@SuppressWarnings("unused")
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/sysRole")
@Api(tags = "角色信息接口")
public class SysRoleController {
private final SysUserService sysUserService;
private final SysRoleService sysRoleService;
private final SysDeptService sysDeptService;
private final SysUserRoleService sysUserRoleService;
private final SysRoleDeptService sysRoleDeptService;
private final DefaultRoleConfig defaultRoleConfig;
private final LoginService loginService;
@JwtSysUser
@PostMapping("addSysRole")
@Log(title = "角色功能--添加角色", businessType = BusinessType.INSERT)
@ApiOperation(value = "添加角色", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> addSysRole(@RequestBody @Valid AddRoleVO addRoleVo,
HttpServletRequest servletRequest) {
// 获取ip地址
String ipAddress = IpUtil.getIpAddress(servletRequest);
String roleCode = addRoleVo.getRoleCode();
QueryWrapper<SysRole> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("role_code", roleCode);
queryWrapper.eq("xt_zxbz", DeletedEnum.NATURE.code);
List<SysRole> list = sysRoleService.list(queryWrapper);
Asserts.check(CollectionUtils.isNotEmpty(list), "角色编码%s已存在请修改", roleCode);
sysRoleService.insertRole(addRoleVo, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
@JwtSysUser
@PostMapping("updateSysRole")
@Log(title = "角色功能--修改角色信息", businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改角色信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateSysRole(@RequestBody @Valid SysRoleVO sysRoleVO,
HttpServletRequest servletRequest) {
Asserts.check(sysRoleVO.getId() == null, "主键id不能为空");
SysRole oldSysRole = sysRoleService.getBaseMapper().selectById(sysRoleVO.getId());
Asserts.check(oldSysRole == null, "主键为 %s 的角色信息不存在", sysRoleVO.getId());
String roleCode = sysRoleVO.getRoleCode();
QueryWrapper<SysRole> queryWrapper = new QueryWrapper<>();
queryWrapper.ne("id", sysRoleVO.getId());
queryWrapper.eq("role_code", roleCode);
queryWrapper.eq("xt_zxbz", DeletedEnum.NATURE.code);
List<SysRole> list = sysRoleService.list(queryWrapper);
Asserts.check(CollectionUtils.isNotEmpty(list), "角色编码%s已存在请修改", roleCode);
// 获取ip地址
String ipAddress = IpUtil.getIpAddress(servletRequest);
UserInfo userInfo = UserInfoManager.get();
oldSysRole.setXtZhxgsj(new Date());
oldSysRole.setXtZhxgrid(userInfo.getUserId().toString());
oldSysRole.setXtZhxgrxm(userInfo.getUserName());
oldSysRole.setXtZhxgrbmid(userInfo.getDeptId().toString());
oldSysRole.setXtZhxgrbm(userInfo.getDeptName());
oldSysRole.setXtZhxgip(ipAddress);
oldSysRole.setRoleName(sysRoleVO.getRoleName());
oldSysRole.setRoleCode(sysRoleVO.getRoleCode());
oldSysRole.setRoleDesc(sysRoleVO.getRoleDesc());
oldSysRole.setBz(sysRoleVO.getBz());
oldSysRole.setOrderNo(sysRoleVO.getOrderNo());
oldSysRole.setDataPermissionLevel(sysRoleVO.getDataPermissionLevel());
sysRoleService.getBaseMapper().updateById(oldSysRole);
return ResponseResult.success(Boolean.TRUE);
}
@JwtSysUser
@PostMapping("deleteSysRole")
@Log(title = "角色功能--删除角色信息", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除角色信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deleteSysRole(@RequestBody DeleteVO deleteVO, HttpServletRequest servletRequest) {
SysRole oldSysRole = sysRoleService.getBaseMapper().selectById(deleteVO.getId());
Asserts.check(oldSysRole == null, "主键为 %s 的角色信息不存在", deleteVO.getId());
QueryWrapper<SysUserRole> countUserWrapper = new QueryWrapper<>();
countUserWrapper.eq("role_id", oldSysRole.getId());
Integer countUser = sysUserRoleService.getBaseMapper().selectCount(countUserWrapper);
Asserts.check(countUser > 0, "存在用户角色,请先删除!");
QueryWrapper<SysRoleDept> countDeptWrapper = new QueryWrapper<>();
countDeptWrapper.eq("role_id", oldSysRole.getId());
Integer countDept = sysRoleDeptService.getBaseMapper().selectCount(countDeptWrapper);
Asserts.check(countDept > 0, "存在部门角色,请先删除!");
// 默认角色不能进行删除
defaultRoleConfig.getDefaultRoleList().forEach(roleId ->
Asserts.check(oldSysRole.getId().equals(roleId), "默认角色不能进行删除!"));
oldSysRole.setXtZxbz(DeletedEnum.DELETED.code);
oldSysRole.setXtZxyy(deleteVO.getZxyy());
// 获取ip地址
String ipAddress = IpUtil.getIpAddress(servletRequest);
UserInfo userInfo = UserInfoManager.get();
oldSysRole.setXtZhxgsj(new Date());
oldSysRole.setXtZhxgrid(userInfo.getUserId().toString());
oldSysRole.setXtZhxgrxm(userInfo.getUserName());
oldSysRole.setXtZhxgrbmid(userInfo.getDeptId().toString());
oldSysRole.setXtZhxgrbm(userInfo.getDeptName());
oldSysRole.setXtZhxgip(ipAddress);
sysRoleService.getBaseMapper().updateById(oldSysRole);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectUnAccreditPage")
@ApiOperation(value = "分页查询未绑定当前用户的角色", httpMethod = "GET", response = SysRole.class)
public ResponseResult<IPage<SysRole>> selectUnAccreditPage(RolePage rolePage) {
IPage<SysRole> roleIPage = sysRoleService.selectUnAccreditPage(rolePage);
return ResponseResult.success(roleIPage);
}
@JwtSysUser
@GetMapping("selectPage")
@ApiOperation(value = "分页查询角色信息", httpMethod = "GET", response = SysRole.class)
public ResponseResult<IPage<SysRole>> selectPage(RolePage rolePage) {
IPage<SysRole> roleIPage = sysRoleService.selectByPage(rolePage);
return ResponseResult.success(roleIPage);
}
@JwtSysUser
@GetMapping("roleUserList")
@Log(title = "角色功能", businessType = BusinessType.GRANT)
@ApiOperation(value = "查询角色管理的用户【需要控制当前人的权限】", httpMethod = "GET", response = SysUserVO.class)
public ResponseResult<IPage<SysUserVO>> roleUserList(RoleUserPage roleUserPage) {
UserInfo userInfo = UserInfoManager.get();
SysDept sysDept = sysDeptService.getById(userInfo.getDeptId());
IPage<SysUserVO> userPage = sysUserRoleService.roleUserList(sysDept.getRootPath(), roleUserPage);
return ResponseResult.success(userPage);
}
@JwtSysUser
@PostMapping("grantRoleToUser")
@Log(title = "角色功能--为用户授予角色", businessType = BusinessType.GRANT)
@ApiOperation(value = "为用户授予角色", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> grantRoleToUser(@RequestBody UserRoleVO userRoleVo) {
UserInfo userInfo = UserInfoManager.get();
boolean save = sysUserRoleService.grantRoleToUser(userRoleVo);
return ResponseResult.success(save);
}
@PostMapping("grantUserToRole")
@Log(title = "角色功能--为角色授予用户", businessType = BusinessType.GRANT)
@ApiOperation(value = "为角色授予用户", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> grantUserToRole(@RequestBody RoleUserVO roleUserVO) {
boolean save = sysUserRoleService.grantUserToRole(roleUserVO);
return ResponseResult.success(save);
}
@JwtSysUser
@PostMapping("batchUnboundUserRole")
@Log(title = "角色功能--批量解绑用户角色", businessType = BusinessType.OTHER)
@ApiOperation(value = "批量解绑用户角色", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> batchUnboundUserRole(@RequestBody UnboundUserRoleVO unboundUserRoleVo) {
QueryWrapper<SysUserRole> queryWrapper = new QueryWrapper<>();
queryWrapper.and(wrapper -> wrapper.in("id", unboundUserRoleVo.getIds()));
boolean save = sysUserRoleService.remove(queryWrapper);
return ResponseResult.success(save);
}
@GetMapping("getUserRoleList/{userId}")
@ApiOperation(value = "查询用户角色列表", httpMethod = "GET", response = SysRoleVO.class)
public ResponseResult<List<SysRoleVO>> getUserRoleList(@PathVariable Long userId) {
List<SysRoleVO> userRoleList = sysRoleService.getUserRoleList(userId);
return ResponseResult.success(userRoleList);
}
@GetMapping("getRoleUserList")
@ApiOperation(value = "查询角色下用户列表", httpMethod = "GET", response = SysRoleVO.class)
public ResponseResult<IPage<SysUserVO>> getRoleUserList(GetUserRoleListVo vo) {
IPage<SysUserVO> deptIPage = sysRoleService.getRoleUserList(vo);
return ResponseResult.success(deptIPage);
}
@PostMapping("saveRoleMenuInfo")
@JwtSysUser
@Log(title = "角色功能--添加角色菜单关联关系", businessType = BusinessType.GRANT)
@ApiOperation(value = "添加角色菜单关联关系", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> saveRoleMenuInfo(@RequestBody AddRoleMenuVO roleMenuVO) {
log.info("添加角色菜单关联关系 roleMenuVO={}", JSON.toJSONString(roleMenuVO));
SysRole sysRole = sysRoleService.getById(roleMenuVO.getRoleId());
Asserts.check(sysRole == null || DeletedEnum.DELETED.code.equals(sysRole.getXtZxbz()),
"角色id不存在或已删除");
sysRoleService.saveRoleMenuInfo(roleMenuVO);
return ResponseResult.success(Boolean.TRUE);
}
@PostMapping("saveDataPermission")
@JwtSysUser
@Log(title = "角色功能", businessType = BusinessType.GRANT)
@ApiOperation(value = "添加数据权限", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> saveDataPermission(@RequestBody AddRoleDataPartitionVO addRoleDataPartitionVO, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysRoleService.saveDataPermission(addRoleDataPartitionVO, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 根据菜单标识查询数据权限
*
* @param menuUrl 菜单URL
* @return 删除结果
*/
@PostMapping("getDataPermission/{menuUrl}")
@ApiOperation(value = "根据菜单标识查询数据权限", httpMethod = "GET", response = Boolean.class)
public ResponseResult<DataPermissionVO> getDataPermission(@PathVariable("menuUrl") String menuUrl) {
DataPermissionVO dataPermissionVO = sysRoleService.getDataPermission(menuUrl);
return ResponseResult.success(dataPermissionVO);
}
@GetMapping("getRoleMenuIds/{roleId}")
@ApiOperation(value = "查询用户绑定的菜单ids", httpMethod = "GET", response = SysRoleVO.class)
public ResponseResult<List<Long>> getRoleMenuIds(@PathVariable Long roleId) {
List<Long> menuIds = sysRoleService.getRoleMenuIds(roleId);
return ResponseResult.success(menuIds);
}
}

View File

@ -0,0 +1,157 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.core.business.entity.SysDept;
import com.mosty.common.core.business.entity.SysUserAppHomeconfig;
import com.mosty.common.core.business.entity.request.SysAppHomeconfigPage;
import com.mosty.common.core.business.entity.request.SysUserAppHomeconfigPage;
import com.mosty.common.core.business.entity.request.SysUserAppHomeconfigQuery;
import com.mosty.common.core.business.entity.vo.SysAppHomeconfigRsVO;
import com.mosty.common.core.business.entity.vo.SysUserAppHomeconfigVo;
import com.mosty.common.core.business.entity.vo.SysUserHomeconfigVo;
import com.mosty.common.core.business.service.SysUserAppHomeconfigService;
import com.mosty.common.token.JwtSysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
/**
* <p>
* 用户app首页配置表 前端控制器
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Api(tags = "app用户首页接口")
@RestController
@AllArgsConstructor
@RequestMapping("/sysUserAppHomeconfig")
public class SysUserAppHomeconfigController {
private SysUserAppHomeconfigService sysUserAppHomeconfigService;
/**
* 添加用户首页应用
* @param config
* @return 添加结果
*/
@PostMapping("add")
@JwtSysUser
@ApiOperation(value = "添加首页应用", httpMethod = "POST", response = Boolean.class)
@Log(title = "添加首页应用板块",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> add(@RequestBody @Valid SysUserAppHomeconfig config,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigService.saveInfo(config, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 添加用户首页应用
* @param plates 部门
* @return 添加结果
*/
@PostMapping("addBatch")
@JwtSysUser
@ApiOperation(value = "批量添加首页应用板块", httpMethod = "POST", response = Boolean.class)
@Log(title = "批量添加首页应用板块",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addBatch(@RequestBody List<SysUserAppHomeconfig> plates,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigService.saveInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改用户首页应用
* @param config 修改用户首页应用信息
* @return 修改结果
*/
@PostMapping("update")
@JwtSysUser
@Log(title = "用户首页应用",businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改用户首页应用", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> update(@RequestBody @Valid SysUserAppHomeconfig config,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigService.updateInfo(config, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 批量修改用户首页应用
* @param plates 首页板块信息
* @return 修改结果
*/
@PostMapping("updateBatch")
@JwtSysUser
@Log(title = "批量修改用户首页应用",businessType = BusinessType.UPDATE)
@ApiOperation(value = "批量修改用户首页应用", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateBatch(@RequestBody List<SysUserAppHomeconfig> plates, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigService.updateInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除用户应用信息
* @param list 应用id
* @return 删除结果
*/
@Log(title = "删除用户应用功能",businessType = BusinessType.DELETE)
@PostMapping("deletePlate")
@JwtSysUser
@ApiOperation(value = "删除用户应用信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deletePlate(@RequestBody List<Long> list,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
// UserInfo userInfo = UserInfoManager.get();
sysUserAppHomeconfigService.delete(list, ipAddress, null);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询应用信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysUserAppHomeconfig>> selectPage(SysUserAppHomeconfigPage deptPage) {
IPage<SysUserAppHomeconfig> deptIPage = sysUserAppHomeconfigService.selectByPage(deptPage);
return ResponseResult.success(deptIPage);
}
@GetMapping("queryUserConfig")
@ApiOperation(value = "查询用户配置", httpMethod = "GET", response = SysDept.class)
public ResponseResult<List<SysUserAppHomeconfigVo>> queryUserConfig(SysUserAppHomeconfigQuery cofigQuery) {
List<SysUserAppHomeconfigVo> vos = sysUserAppHomeconfigService.queryUserConfig(cofigQuery);
return ResponseResult.success(vos);
}
/**
* 添加用户默认配置
* @param config
* @return 添加结果
*/
@PostMapping("addDefaultConfig")
@JwtSysUser
@ApiOperation(value = "添加用户默认配置", httpMethod = "POST", response = Boolean.class)
@Log(title = "添加用户默认配置",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addDefaultConfig(@RequestBody @Valid SysUserHomeconfigVo config,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigService.saveDefaultConfig(config, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
}

View File

@ -0,0 +1,130 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.core.business.entity.SysDept;
import com.mosty.common.core.business.entity.SysUserAppHomeconfig;
import com.mosty.common.core.business.entity.SysUserAppHomeconfigPlate;
import com.mosty.common.core.business.entity.request.SysUserAppHomeconfigPage;
import com.mosty.common.core.business.entity.request.SysUserAppHomeconfigPlatePage;
import com.mosty.common.core.business.mapper.SysUserAppHomeconfigPlateMapper;
import com.mosty.common.core.business.service.SysUserAppHomeconfigPlateService;
import com.mosty.common.token.JwtSysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
/**
* <p>
* 用户app首页配置-板块表 前端控制器
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Api(tags = "app用户首页板块接口")
@RestController
@AllArgsConstructor
@RequestMapping("/sysuserAppHomeconfigPlate")
public class SysUserAppHomeconfigPlateController {
private SysUserAppHomeconfigPlateService sysUserAppHomeconfigPlateService;
/**
* 添加用户首页应用板块
* @param config
* @return 添加结果
*/
@PostMapping("add")
@JwtSysUser
@ApiOperation(value = "添加用户首页应用板块", httpMethod = "POST", response = Boolean.class)
@Log(title = "添加首页应用板块",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> add(@RequestBody @Valid SysUserAppHomeconfigPlate config,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateService.saveInfo(config, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 添加用户首页应用
* @param plates 部门
* @return 添加结果
*/
@PostMapping("addBatch")
@JwtSysUser
@ApiOperation(value = "批量添加用户首页应用板块", httpMethod = "POST", response = Boolean.class)
@Log(title = "批量添加首页应用板块",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addBatch(@RequestBody List<SysUserAppHomeconfigPlate> plates,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateService.saveInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改用户首页应用
* @param plate 修改用户首页应用信息
* @return 修改结果
*/
@PostMapping("update")
@JwtSysUser
@Log(title = "首页应用板块",businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改用户首页应用板块", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> update(@RequestBody @Valid SysUserAppHomeconfigPlate plate,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateService.updateInfo(plate, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 批量修改用户首页应用板块
* @param plates 首页板块信息
* @return 修改结果
*/
@PostMapping("updateBatch")
@JwtSysUser
@Log(title = "批量修改用户首页应用板块",businessType = BusinessType.UPDATE)
@ApiOperation(value = "批量修改用户首页应用板块", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateBatch(@RequestBody List<SysUserAppHomeconfigPlate> plates, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateService.updateInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除应用板块信息
* @param list 应用id
* @return 删除结果
*/
@Log(title = "删除用户应用板块功能",businessType = BusinessType.DELETE)
@PostMapping("deletePlate")
@JwtSysUser
@ApiOperation(value = "删除用户应用板块信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deletePlate(@RequestBody List<Long> list,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
// UserInfo userInfo = UserInfoManager.get();
sysUserAppHomeconfigPlateService.delete(list, ipAddress, null);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询应用板块信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysUserAppHomeconfigPlate>> selectPage(SysUserAppHomeconfigPlatePage deptPage) {
IPage<SysUserAppHomeconfigPlate> deptIPage = sysUserAppHomeconfigPlateService.selectByPage(deptPage);
return ResponseResult.success(deptIPage);
}
}

View File

@ -0,0 +1,127 @@
package com.mosty.common.core.business.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.core.business.entity.SysDept;
import com.mosty.common.core.business.entity.SysUserAppHomeconfigPlateList;
import com.mosty.common.core.business.entity.request.SysUserAppHomeconfigPlateListPage;
import com.mosty.common.core.business.service.SysUserAppHomeconfigPlateListService;
import com.mosty.common.token.JwtSysUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
/**
* <p>
* 用户app首页配置-板块内容表 前端控制器
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Api(tags = "app用户首页板块内容接口")
@RestController
@AllArgsConstructor
@RequestMapping("/sysUserAppHomeconfigPlateList")
public class SysUserAppHomeconfigPlateListController {
private SysUserAppHomeconfigPlateListService sysUserAppHomeconfigPlateListService;
/**
* 添加用户首页应用板块内容
* @param config
* @return 添加结果
*/
@PostMapping("add")
@JwtSysUser
@ApiOperation(value = "添加用户首页应用板块内容", httpMethod = "POST", response = Boolean.class)
@Log(title = "添加首页应用板块内容",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> add(@RequestBody @Valid SysUserAppHomeconfigPlateList config,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateListService.saveInfo(config, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 添加用户首页应用内容
* @param plates
* @return 添加结果
*/
@PostMapping("addBatch")
@JwtSysUser
@ApiOperation(value = "批量添加用户首页应用板块内容", httpMethod = "POST", response = Boolean.class)
@Log(title = "批量添加首页应用板块内容",businessType = BusinessType.INSERT)
public ResponseResult<Boolean> addBatch(@RequestBody List<SysUserAppHomeconfigPlateList> plates,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateListService.saveInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 修改用户首页应用
* @param plate 修改用户首页应用信息
* @return 修改结果
*/
@PostMapping("update")
@JwtSysUser
@Log(title = "首页应用板块内容",businessType = BusinessType.UPDATE)
@ApiOperation(value = "修改用户首页应用板块内容", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> update(@RequestBody @Valid SysUserAppHomeconfigPlateList plate,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateListService.updateInfo(plate, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 批量修改用户首页应用板块
* @param plates 首页板块信息
* @return 修改结果
*/
@PostMapping("updateBatch")
@JwtSysUser
@Log(title = "批量修改用户首页应用板块内容",businessType = BusinessType.UPDATE)
@ApiOperation(value = "批量修改用户首页应用板块内容", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> updateBatch(@RequestBody List<SysUserAppHomeconfigPlateList> plates, HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserAppHomeconfigPlateListService.updateInfoBatch(plates, ipAddress);
return ResponseResult.success(Boolean.TRUE);
}
/**
* 删除应用板块信息
* @param list 应用id
* @return 删除结果
*/
@Log(title = "删除用户应用板块内容功能",businessType = BusinessType.DELETE)
@PostMapping("deletePlate")
@JwtSysUser
@ApiOperation(value = "删除用户应用板块内容信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deletePlate(@RequestBody List<Long> list,
HttpServletRequest servletRequest) {
String ipAddress = IpUtil.getIpAddress(servletRequest);
// UserInfo userInfo = UserInfoManager.get();
sysUserAppHomeconfigPlateListService.delete(list, ipAddress, null);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("selectPage")
@ApiOperation(value = "分页查询应用板块内容信息", httpMethod = "GET", response = SysDept.class)
public ResponseResult<IPage<SysUserAppHomeconfigPlateList>> selectPage(SysUserAppHomeconfigPlateListPage deptPage) {
IPage<SysUserAppHomeconfigPlateList> deptIPage = sysUserAppHomeconfigPlateListService.selectByPage(deptPage);
return ResponseResult.success(deptIPage);
}
}

View File

@ -0,0 +1,313 @@
package com.mosty.common.core.business.controller;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.base.constant.enums.ConfigKeyEnum;
import com.mosty.common.base.constant.enums.DeletedEnum;
import com.mosty.common.base.constant.enums.PasswordLevelEnum;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.base.entity.log.BusinessType;
import com.mosty.common.base.entity.log.Log;
import com.mosty.common.base.exception.Asserts;
import com.mosty.common.base.util.IpUtil;
import com.mosty.common.config.entity.SysConfig;
import com.mosty.common.config.entity.vo.DeleteVO;
import com.mosty.common.config.service.SysConfigService;
import com.mosty.common.core.business.entity.*;
import com.mosty.common.core.business.entity.request.SysUserEditPasswordRequest;
import com.mosty.common.core.business.entity.vo.*;
import com.mosty.common.core.business.mapper.SysUserDeptMapper;
import com.mosty.common.core.business.mapper.SysUserRoleMapper;
import com.mosty.common.core.business.mapper.YbmjMapper;
import com.mosty.common.core.business.service.*;
import com.mosty.common.redis.service.RedisService;
import com.mosty.common.token.JwtSysUser;
import com.mosty.common.token.UserInfo;
import com.mosty.common.token.UserInfoManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.util.List;
import java.util.Objects;
/**
* 用户控制类
*
* @author kevin
* @date 2022/2/12 10:17 PM
* @since 1.0.0
*/
@SuppressWarnings("unused")
@RestController
@AllArgsConstructor
@RequestMapping("/sysUser")
@Api(tags = "用户接口")
public class SysUserController {
private final SysUserService sysUserService;
private final SysDeptService sysDeptService;
private final SysPositionService sysPositionService;
private final SysConfigService sysConfigService;
private final SysUserDeptService sysUserDeptService;
private final SysUserRoleService sysUserRoleService;
private final RedisService redisService;
private final SysUserRoleMapper sysUserRoleMapper;
private final SysUserDeptMapper sysUserDeptMapper;
private final YbmjMapper ybmjMapper;
@JwtSysUser
@PostMapping("addUser")
@Log(title = "添加用户信息", businessType = BusinessType.INSERT)
@ApiOperation(value = "添加用户信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> addSysUser(@RequestBody @Valid AddSysUserVO sysUserVo,
HttpServletRequest servletRequest) {
/* QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("login_name", sysUserVo.getLoginName());
SysUser sysUser = sysUserService.getBaseMapper().selectOne(queryWrapper);
if (sysUser != null)
return ResponseResult.fail("登录账号重复!!");*/
if (sysUserService.getBaseMapper().selectCount(new LambdaQueryWrapper<SysUser>().eq(SysUser::getIdEntityCard, sysUserVo.getIdEntityCard())) > 0)
return ResponseResult.fail("身份证重复!!");
if (sysUserService.getBaseMapper().selectCount(new LambdaQueryWrapper<SysUser>().eq(SysUser::getInDustRialId, sysUserVo.getInDustRialId())) > 0)
return ResponseResult.fail("警号重复!!");
// 验证岗位信息并且设置岗位名称
SysPosition sysPosition = sysPositionService.getById(sysUserVo.getPositionId());
// if (sysPosition == null || sysPosition.getXtZxbz() != 0)
// return ResponseResult.fail("岗位 %s 不存在!");
sysUserVo.setPositionName(sysPosition != null ? sysPosition.getPostName() : "");
UserInfo userInfo = UserInfoManager.get();
// 获取ip地址
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserVo.setXtLrip(ipAddress);
sysUserVo.setXtZhxgrip(ipAddress);
// 保存用户信息
sysUserService.saveInfo(sysUserVo);
return ResponseResult.success(Boolean.TRUE);
}
@JwtSysUser
@PostMapping("addUserTbYb")
@Log(title = "同步宜宾人员", businessType = BusinessType.INSERT)
@ApiOperation(value = "同步宜宾人员", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> addUserTbYb() {
List<Ybmj> ybmjs = ybmjMapper.selectList(new QueryWrapper<>());
if (!CollectionUtils.isEmpty(ybmjs)) {
for (Ybmj ybmj : ybmjs) {
SysUser sysUser = sysUserService.getBaseMapper().selectOne(new QueryWrapper<SysUser>().eq("id_entity_card", ybmj.getSfzh()));
if (sysUser == null) {
AddSysUserVO sysUserVo = new AddSysUserVO();
sysUserVo.setSsbmdm(ybmj.getSsbmdm());
sysUserVo.setLoginName(ybmj.getXm());
sysUserVo.setPassword("E10ADC3949BA59ABBEcm9OiHRC56E057F20F883E");
sysUserVo.setUserName(ybmj.getXm());
sysUserVo.setUserType("00");
sysUserVo.setMobile(ybmj.getDh());
sysUserVo.setTelePhone(ybmj.getDh());
sysUserVo.setIdEntityCard(ybmj.getSfzh());
sysUserVo.setInDustRialId(ybmj.getJh());
//计算男女
int gender = Integer.parseInt(ybmj.getSfzh().substring(16, 17));
if (gender % 2 == 1) {
sysUserVo.setSex("0");
} else {
sysUserVo.setSex("1");
}
sysUserVo.setNation("01");
sysUserVo.setType("01");
sysUserVo.setIsVirtualUser("2");
sysUserVo.setSfrh("0");
UserInfo userInfo = UserInfoManager.get();
// 获取ip地址
// String ipAddress = IpUtil.getIpAddress(servletRequest);
// sysUserVo.setXtLrip(ipAddress);
// sysUserVo.setXtZhxgrip(ipAddress);
// 保存用户信息
sysUserService.saveInfo(sysUserVo);
ybmjMapper.deleteById(ybmj);
} else {
if (DeletedEnum.DELETED.code.equals(sysUser.getXtZxbz()))
return ResponseResult.fail("用户不存在!");
SysUserEditVO sysUserEditVo = new SysUserEditVO();
sysUserEditVo.setSsbmdm(ybmj.getSsbmdm());
sysUserEditVo.setLoginName(ybmj.getXm());
// sysUserEditVo.setPassword("E10ADC3949BA59ABBEcm9OiHRC56E057F20F883E");
sysUserEditVo.setUserName(ybmj.getXm());
sysUserEditVo.setUserType("01");
sysUserEditVo.setMobile(ybmj.getDh());
sysUserEditVo.setTelePhone(ybmj.getDh());
sysUserEditVo.setIdEntityCard(ybmj.getSfzh());
sysUserEditVo.setInDustRialId(ybmj.getJh());
//计算男女
int gender = Integer.parseInt(ybmj.getSfzh().substring(16, 17));
if (gender % 2 == 1) {
sysUserEditVo.setSex("1");
} else {
sysUserEditVo.setSex("2");
}
sysUserEditVo.setNation("01");
sysUserEditVo.setType("01");
sysUserEditVo.setIsVirtualUser("2");
sysUserEditVo.setSfrh("0");
sysUserEditVo.setId(sysUser.getId());
UserInfo userInfo = UserInfoManager.get();
sysUserService.editInfo(sysUserEditVo, sysUser);
ybmjMapper.deleteById(ybmj);
}
}
return ResponseResult.success(Boolean.TRUE);
}
return null;
}
@JwtSysUser
@PostMapping("editSysUser")
@Log(title = "用户功能--编辑用户信息", businessType = BusinessType.UPDATE)
@ApiOperation(value = "编辑用户信息", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> editSysUser(@RequestBody @Valid SysUserEditVO sysUserEditVo) {
Long id = sysUserEditVo.getId();
SysUser sysUser = sysUserService.getUserInfo(id);
if (sysUser == null || DeletedEnum.DELETED.code.equals(sysUser.getXtZxbz()))
return ResponseResult.fail("用户不存在!");
sysUserService.editInfo(sysUserEditVo, sysUser);
return ResponseResult.success(Boolean.TRUE);
}
@JwtSysUser
@PostMapping("editPassword")
@Log(title = "用户功能--编辑密码", businessType = BusinessType.UPDATE)
@ApiOperation(value = "编辑密码", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> editPassword(@RequestBody @Valid SysUserEditPasswordRequest sysUserEditPasswordRequest) {
sysUserService.editPassword(sysUserEditPasswordRequest);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("resetPassword")
@Log(title = "用户功能--重置密码", businessType = BusinessType.UPDATE)
@ApiOperation(value = "重置密码", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> resetPassword(@RequestParam("userId") Long userId) {
SysUser user = sysUserService.getUserInfo(userId);
Asserts.check(user == null || DeletedEnum.DELETED.code.equals(user.getXtZxbz()),
"用户不存在或已删除");
sysUserService.resetPassword(user);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("getUserInfo/{id}")
@JwtSysUser
@ApiOperation(value = "查询用户信息", httpMethod = "GET", response = SysUserInfoVO.class)
public ResponseResult<SysUserInfoVO> getUserInfo(@PathVariable("id") Long id) {
UserInfo user1 = UserInfoManager.get();
SysUser user = sysUserService.getUserInfo(id);
Asserts.check(user == null || DeletedEnum.DELETED.code.equals(user.getXtZxbz()),
"用户不存在或已删除");
List<Long> deptIds = sysUserDeptService.listByUserId(user.getId());
SysUserInfoVO sysUserInfoVO = BeanUtil.copyProperties(user, SysUserInfoVO.class);
if (!CollectionUtils.isEmpty(deptIds)) {
sysUserInfoVO.setDeptIds(deptIds);
SysDept dept = sysDeptService.getById(deptIds.get(0));
if (dept != null) {
sysUserInfoVO.setSsbm(dept.getOrgName());
sysUserInfoVO.setSsbmdm(dept.getOrgCode());
}
}
return ResponseResult.success(sysUserInfoVO);
}
@GetMapping("selectUnAccreditPage")
@ApiOperation(value = "分页查询未绑定当前角色的用户", httpMethod = "GET", response = SysRole.class)
public ResponseResult<IPage<SysUserVO>> selectUnAccreditPage(UserPage userPage) {
IPage<SysUserVO> roleIPage = sysUserService.selectUnAccreditPage(userPage);
return ResponseResult.success(roleIPage);
}
@GetMapping("selectPage")
@JwtSysUser
@ApiOperation(value = "分页查询用户信息", httpMethod = "GET", response = SysUserVO.class)
public ResponseResult<IPage<SysUserVO>> selectPage(UserPage userPage) {
IPage<SysUserVO> userVoPage = sysUserService.selectByPage(userPage);
return ResponseResult.success(userVoPage);
}
@GetMapping("getUserList")
@JwtSysUser
@ApiOperation(value = "根据条件查询用户信息", httpMethod = "GET", response = SysUserVO.class)
public ResponseResult<List<SysUserVO>> getUserList(GetUserPage dto) {
return ResponseResult.success(sysUserService.getUserList(dto));
}
@PostMapping("selectUserDeptPage")
@JwtSysUser
@ApiOperation(value = "查询用户和部门分页", httpMethod = "POST", response = SysRole.class)
public ResponseResult<IPage<SysUserDeptVO>> selectUserDeptPage(@RequestBody UserDeptPage userDeptPage) {
IPage<SysUserDeptVO> sysUserDeptVOIPage = sysUserService.selectUserDeptPage(userDeptPage);
return ResponseResult.success(sysUserDeptVOIPage);
}
@JwtSysUser
@GetMapping("getPasswordLevel")
@ApiOperation(value = "当前系统的密码等级", httpMethod = "GET", response = Integer.class)
public ResponseResult<Integer> getPasswordLevel() {
UserInfo userInfo = UserInfoManager.get();
SysConfig config = sysConfigService.getOneByKey(ConfigKeyEnum.PASSWORD_LEVEL);
if (Objects.isNull(config)) {
return ResponseResult.success(PasswordLevelEnum.PASSWORD_LEVEL_ONE.code);
}
return ResponseResult.success(Integer.valueOf(config.getPzz()));
}
@JwtSysUser
@PostMapping("deleteSysUser")
@Log(title = "删除用户", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除用户", httpMethod = "POST", response = Boolean.class)
public ResponseResult<Boolean> deleteSysRole(@RequestBody DeleteVO deleteVO, HttpServletRequest servletRequest) {
SysUser oldSysUser = sysUserService.getBaseMapper().selectById(deleteVO.getId());
if (oldSysUser == null)
return ResponseResult.fail("用户不存在或已删除");
// 获取ip地址
String ipAddress = IpUtil.getIpAddress(servletRequest);
sysUserService.delById(oldSysUser.getId());
// 删除关联角色
this.sysUserRoleMapper.delete(
new LambdaQueryWrapper<SysUserRole>()
.eq(SysUserRole::getUserId, oldSysUser.getId())
);
// 删除关联部门
this.sysUserDeptMapper.delete(
new LambdaQueryWrapper<SysUserDept>()
.eq(SysUserDept::getUserId, oldSysUser.getId())
);
return ResponseResult.success(Boolean.TRUE);
}
@GetMapping("userSys")
@ApiOperation(value = "用户信息同步", httpMethod = "GET", response = Boolean.class)
public ResponseResult<Boolean> userSys() {
Boolean bool = sysUserService.userSys();
return ResponseResult.success(bool);
}
}

View File

@ -0,0 +1,106 @@
package com.mosty.common.core.business.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Maps;
import com.mosty.common.base.domain.ResponseResult;
import com.mosty.common.core.business.entity.vo.LoginResponseVO;
import com.mosty.common.core.util.HttpClientUtil;
import com.mosty.common.core.util.RSAUtil;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.util.EntityUtils;
import org.springframework.web.bind.annotation.*;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Objects;
import static com.google.common.base.Charsets.UTF_8;
/**
* <p>
* 应用信息表 前端控制器
* </p>
*
* @author kevin
* @since 2022-04-21
*/
@RestController
@AllArgsConstructor
@RequestMapping("yjxx/token")
@Api(tags = "获取托尔思预警token")
@Slf4j
public class TokenController {
/**
* 获取预警token
*
* @param idCard 添加应用信息请求
* @return 添加结果
*/
@GetMapping("getToken")
public ResponseResult<LoginResponseVO> getToken(@RequestParam("idCard") String idCard) throws Exception {
String rsa = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCKtrYCRHk/++b/yZteGW5pSfKynGjfNZ9TkC/+v8SrAZ8Gb24lEbB0zUp/rXabNHfSY6X3z6tCCA7pCig0TQIQT5iIz1eBuMPWcY61U1sySqVANu4IxchLzaPmKamttz2GXKby94rVa71eTVZ2kC0Vi424PjfL7C/iBQsgvoPV8wIDAQAB";
String url = "https://80.35.1.27:7001/login/app?key=";
log.info("公钥:{}", rsa);
log.info("身份证号:{}", idCard);
String rsaStr = RSAUtil.encryptByPubKey(idCard, rsa);
String idCardRas = URLEncoder.encode(rsaStr, "UTF-8");
String urls = url + idCardRas;
HashMap<String, String> loginMap = Maps.newHashMap();
loginMap.put("Content-Type", "multipart/form-data");
loginMap.put("Authorization", "Basic eXE6YWRtaW4=");
loginMap.put("User-Agent", "trs");
HttpResponse response = HttpClientUtil.postRequest(urls, loginMap);
String body = EntityUtils.toString(response.getEntity(), UTF_8);
JSONObject jsonObject = JSONObject.parseObject(body);
String accessToken = jsonObject.getString("access_token");
log.info("获取到的access_token={}", accessToken);
if (response.getStatusLine().getStatusCode() != 200) {
log.warn("调用登陆服务异常{}", JSON.toJSONString(response));
throw new RuntimeException("POST调用异常 : " + response.getStatusLine().getStatusCode());
}
HashMap<String, String> cookieMap = Maps.newHashMap();
cookieMap.put("Authorization", "Bearer " + accessToken);
String getCookieUrl = "http://80.35.1.27:7000/dispatchWarning/yjxx/getYjxxList?page=2&pageSize=10&type=9&lev=0&datasource=&datetype=nolimit&startdate=&enddate=&bklx=0&emphasiscode=&searchType=1&otherinfo=&yjlx=0";
HttpResponse cookieResponse = HttpClientUtil.postRequest(getCookieUrl, cookieMap);
Header firstHeader = cookieResponse.getFirstHeader("Set-Cookie");
log.warn("调用cookie接口的 Http status = {}", response.getStatusLine().getStatusCode());
if (Objects.isNull(firstHeader)) {
log.warn("响应体cookie为空 ------{}", JSON.toJSONString(response.getAllHeaders()));
throw new RuntimeException("POST调用异常 : " + response.getStatusLine().getStatusCode());
}
log.info("获取到的cookie={}", firstHeader.getValue());
LoginResponseVO loginResponseVO = new LoginResponseVO();
loginResponseVO.setLoginResponseBody(body);
loginResponseVO.setLoginResponseCookie(firstHeader.getValue());
log.info("响应体 ------{}", JSON.toJSONString(loginResponseVO));
return ResponseResult.success(loginResponseVO);
}
public static void main(String[] args) {
try {
LoginResponseVO vo = new TokenController().getToken("510603198807207837").getData();
System.err.println(vo);
} catch (Exception e) {
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,88 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* app首页表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_app_homeconfig")
@ApiModel(value="SysAppHomeconfig对象", description="app首页表")
public class SysAppHomeconfig implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "首页名称,如:领导端")
private String homename;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,103 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* app首页-板块表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_app_homeconfig_plate")
@ApiModel(value="SysAppHomeconfigPlate对象", description="app首页-板块表")
public class SysAppHomeconfigPlate implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "首页ID")
private Long homeid;
@ApiModelProperty(value = "板块类型00-置顶按钮01-五情板块02-工作任务板块03-概况板块04-风险板块)")
private String bklx;
@ApiModelProperty(value = "板块名称")
private String bkmc;
@ApiModelProperty(value = "板块样式")
private String dyys;
@ApiModelProperty(value = "板块顺序")
private Integer bksx;
@ApiModelProperty(value = "跳转地址")
private String tzdz;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,100 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* app首页配置-板块内容表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_app_homeconfig_plate_list")
@ApiModel(value="SysAppHomeconfigPlateList对象", description="app首页配置-板块内容表")
public class SysAppHomeconfigPlateList implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "板块ID")
private Long plateId;
@ApiModelProperty(value = "内容名称")
private String nrmc;
@ApiModelProperty(value = "内容样式")
private String nrys;
@ApiModelProperty(value = "路由跳转地址")
private String tzdz;
@ApiModelProperty(value = "内容顺序")
private Integer nrsx;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,382 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mosty.common.core.business.entity.vo.SysDeptVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 部门表
* @TableName sys_dept
*/
@TableName(value ="sys_dept")
@Data
public class SysDept implements Serializable {
/**
* 部门id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 部门代码
*/
@TableField(value = "org_code")
private String orgCode;
/**
* 部门名称
*/
@TableField(value = "org_name")
private String orgName;
/**
* 根节点开始的id路径
*/
@TableField(value = "root_path")
private String rootPath;
/**
* 部门类型
*/
@TableField(value = "org_type")
private String orgType;
/**
* 部门等级
*/
@TableField(value = "org_level")
private String orgLevel;
/**
* 部门业务类型
*/
@TableField(value = "org_biz_type")
private String orgBizType;
/**
* 部门顺序号
*/
@TableField(value = "org_no")
private String orgNo;
/**
* 上级部门主键
*/
@TableField(value = "parent_id")
private Long parentId;
/**
* 部门名称拼音首字母
*/
@TableField(value = "bmpyszm")
private String bmpyszm;
/**
* 部门简称
*/
@TableField(value = "org_jc")
private String orgJc;
/**
* 部门全称
*/
@TableField(value = "org_qc")
private String orgQc;
/**
* 部门地址
*/
@TableField(value = "address")
private String address;
/**
* 部门电话
*/
@TableField(value = "link_tel")
private String linkTel;
/**
* 部门联系人
*/
@TableField(value = "link_man")
private String linkMan;
/**
* 部门联系人电话
*/
@TableField(value = "link_man_tel")
private String linkManTel;
/**
* 部门主页
*/
@TableField(value = "web_url")
private String webUrl;
/**
* 部门邮箱
*/
@TableField(value = "email")
private String email;
/**
* 部门所属行政区划
*/
@TableField(value = "xzqh")
private String xzqh;
/**
* 备注
*/
@TableField(value = "bz")
private String bz;
/**
* 注销标志0正常 1.注销
*/
@TableField(value = "xt_zxbz")
private Integer xtZxbz;
/**
* 注销原因
*/
@TableField(value = "xt_zxyy")
private String xtZxyy;
/**
* 采集时间
*/
@TableField(value = "xt_cjsj")
private Date xtCjsj;
/**
* 录入时间
*/
@TableField(value = "xt_lrsj")
private Date xtLrsj;
/**
* 录入人姓名
*/
@TableField(value = "xt_lrrxm")
private String xtLrrxm;
/**
* 录入人id
*/
@TableField(value = "xt_lrrid")
private Long xtLrrid;
/**
* 录入人部门
*/
@TableField(value = "xt_lrrbm")
private String xtLrrbm;
/**
* 录入人部门id
*/
@TableField(value = "xt_lrrbmid")
private String xtLrrbmid;
/**
* 录入人部门id
*/
@TableField(value = "xt_lrip")
private String xtLrip;
/**
* 最后修改时间
*/
@TableField(value = "xt_zhxgsj")
private Date xtZhxgsj;
/**
* 最后修改人姓名
*/
@TableField(value = "xt_zhxgrxm")
private String xtZhxgrxm;
/**
* 最后修改人id
*/
@TableField(value = "xt_zhxgid")
private Long xtZhxgid;
/**
* 最后修改人部门
*/
@TableField(value = "xt_zhxgrbm")
private String xtZhxgrbm;
/**
* 最后修改人部门id
*/
@TableField(value = "xt_zhxgrbmid")
private Long xtZhxgrbmid;
/**
* 最后修改人ip
*/
@TableField(value = "xt_zhxgrip")
private String xtZhxgrip;
/**
* 子部门集合
*/
@ApiModelProperty(value = "子部门集合")
@TableField(exist = false)
private List<SysDept> childDeptList;
/**
* 是否包含下级
*/
@ApiModelProperty(value = "是否包含下级")
@TableField(exist = false)
private boolean hasChildren;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysDept other = (SysDept) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getOrgCode() == null ? other.getOrgCode() == null : this.getOrgCode().equals(other.getOrgCode()))
&& (this.getOrgName() == null ? other.getOrgName() == null : this.getOrgName().equals(other.getOrgName()))
&& (this.getOrgType() == null ? other.getOrgType() == null : this.getOrgType().equals(other.getOrgType()))
&& (this.getOrgLevel() == null ? other.getOrgLevel() == null : this.getOrgLevel().equals(other.getOrgLevel()))
&& (this.getOrgBizType() == null ? other.getOrgBizType() == null : this.getOrgBizType().equals(other.getOrgBizType()))
&& (this.getOrgNo() == null ? other.getOrgNo() == null : this.getOrgNo().equals(other.getOrgNo()))
&& (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
&& (this.getBmpyszm() == null ? other.getBmpyszm() == null : this.getBmpyszm().equals(other.getBmpyszm()))
&& (this.getOrgJc() == null ? other.getOrgJc() == null : this.getOrgJc().equals(other.getOrgJc()))
&& (this.getOrgQc() == null ? other.getOrgQc() == null : this.getOrgQc().equals(other.getOrgQc()))
&& (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
&& (this.getLinkTel() == null ? other.getLinkTel() == null : this.getLinkTel().equals(other.getLinkTel()))
&& (this.getLinkMan() == null ? other.getLinkMan() == null : this.getLinkMan().equals(other.getLinkMan()))
&& (this.getLinkManTel() == null ? other.getLinkManTel() == null : this.getLinkManTel().equals(other.getLinkManTel()))
&& (this.getWebUrl() == null ? other.getWebUrl() == null : this.getWebUrl().equals(other.getWebUrl()))
&& (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
&& (this.getXzqh() == null ? other.getXzqh() == null : this.getXzqh().equals(other.getXzqh()))
&& (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))
&& (this.getXtZxbz() == null ? other.getXtZxbz() == null : this.getXtZxbz().equals(other.getXtZxbz()))
&& (this.getXtZxyy() == null ? other.getXtZxyy() == null : this.getXtZxyy().equals(other.getXtZxyy()))
&& (this.getXtCjsj() == null ? other.getXtCjsj() == null : this.getXtCjsj().equals(other.getXtCjsj()))
&& (this.getXtLrsj() == null ? other.getXtLrsj() == null : this.getXtLrsj().equals(other.getXtLrsj()))
&& (this.getXtLrrxm() == null ? other.getXtLrrxm() == null : this.getXtLrrxm().equals(other.getXtLrrxm()))
&& (this.getXtLrrid() == null ? other.getXtLrrid() == null : this.getXtLrrid().equals(other.getXtLrrid()))
&& (this.getXtLrrbm() == null ? other.getXtLrrbm() == null : this.getXtLrrbm().equals(other.getXtLrrbm()))
&& (this.getXtLrrbmid() == null ? other.getXtLrrbmid() == null : this.getXtLrrbmid().equals(other.getXtLrrbmid()))
&& (this.getXtLrip() == null ? other.getXtLrip() == null : this.getXtLrip().equals(other.getXtLrip()))
&& (this.getXtZhxgsj() == null ? other.getXtZhxgsj() == null : this.getXtZhxgsj().equals(other.getXtZhxgsj()))
&& (this.getXtZhxgrxm() == null ? other.getXtZhxgrxm() == null : this.getXtZhxgrxm().equals(other.getXtZhxgrxm()))
&& (this.getXtZhxgid() == null ? other.getXtZhxgid() == null : this.getXtZhxgid().equals(other.getXtZhxgid()))
&& (this.getXtZhxgrbm() == null ? other.getXtZhxgrbm() == null : this.getXtZhxgrbm().equals(other.getXtZhxgrbm()))
&& (this.getXtZhxgrbmid() == null ? other.getXtZhxgrbmid() == null : this.getXtZhxgrbmid().equals(other.getXtZhxgrbmid()))
&& (this.getXtZhxgrip() == null ? other.getXtZhxgrip() == null : this.getXtZhxgrip().equals(other.getXtZhxgrip()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getOrgCode() == null) ? 0 : getOrgCode().hashCode());
result = prime * result + ((getOrgName() == null) ? 0 : getOrgName().hashCode());
result = prime * result + ((getOrgType() == null) ? 0 : getOrgType().hashCode());
result = prime * result + ((getOrgLevel() == null) ? 0 : getOrgLevel().hashCode());
result = prime * result + ((getOrgBizType() == null) ? 0 : getOrgBizType().hashCode());
result = prime * result + ((getOrgNo() == null) ? 0 : getOrgNo().hashCode());
result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
result = prime * result + ((getBmpyszm() == null) ? 0 : getBmpyszm().hashCode());
result = prime * result + ((getOrgJc() == null) ? 0 : getOrgJc().hashCode());
result = prime * result + ((getOrgQc() == null) ? 0 : getOrgQc().hashCode());
result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
result = prime * result + ((getLinkTel() == null) ? 0 : getLinkTel().hashCode());
result = prime * result + ((getLinkMan() == null) ? 0 : getLinkMan().hashCode());
result = prime * result + ((getLinkManTel() == null) ? 0 : getLinkManTel().hashCode());
result = prime * result + ((getWebUrl() == null) ? 0 : getWebUrl().hashCode());
result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
result = prime * result + ((getXzqh() == null) ? 0 : getXzqh().hashCode());
result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
result = prime * result + ((getXtZxbz() == null) ? 0 : getXtZxbz().hashCode());
result = prime * result + ((getXtZxyy() == null) ? 0 : getXtZxyy().hashCode());
result = prime * result + ((getXtCjsj() == null) ? 0 : getXtCjsj().hashCode());
result = prime * result + ((getXtLrsj() == null) ? 0 : getXtLrsj().hashCode());
result = prime * result + ((getXtLrrxm() == null) ? 0 : getXtLrrxm().hashCode());
result = prime * result + ((getXtLrrid() == null) ? 0 : getXtLrrid().hashCode());
result = prime * result + ((getXtLrrbm() == null) ? 0 : getXtLrrbm().hashCode());
result = prime * result + ((getXtLrrbmid() == null) ? 0 : getXtLrrbmid().hashCode());
result = prime * result + ((getXtLrip() == null) ? 0 : getXtLrip().hashCode());
result = prime * result + ((getXtZhxgsj() == null) ? 0 : getXtZhxgsj().hashCode());
result = prime * result + ((getXtZhxgrxm() == null) ? 0 : getXtZhxgrxm().hashCode());
result = prime * result + ((getXtZhxgid() == null) ? 0 : getXtZhxgid().hashCode());
result = prime * result + ((getXtZhxgrbm() == null) ? 0 : getXtZhxgrbm().hashCode());
result = prime * result + ((getXtZhxgrbmid() == null) ? 0 : getXtZhxgrbmid().hashCode());
result = prime * result + ((getXtZhxgrip() == null) ? 0 : getXtZhxgrip().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", orgCode=").append(orgCode);
sb.append(", orgName=").append(orgName);
sb.append(", orgType=").append(orgType);
sb.append(", orgLevel=").append(orgLevel);
sb.append(", orgBizType=").append(orgBizType);
sb.append(", orgNo=").append(orgNo);
sb.append(", parentId=").append(parentId);
sb.append(", bmpyszm=").append(bmpyszm);
sb.append(", orgJc=").append(orgJc);
sb.append(", orgQc=").append(orgQc);
sb.append(", address=").append(address);
sb.append(", linkTel=").append(linkTel);
sb.append(", linkMan=").append(linkMan);
sb.append(", linkManTel=").append(linkManTel);
sb.append(", webUrl=").append(webUrl);
sb.append(", email=").append(email);
sb.append(", xzqh=").append(xzqh);
sb.append(", bz=").append(bz);
sb.append(", xtZxbz=").append(xtZxbz);
sb.append(", xtZxyy=").append(xtZxyy);
sb.append(", xtCjsj=").append(xtCjsj);
sb.append(", xtLrsj=").append(xtLrsj);
sb.append(", xtLrrxm=").append(xtLrrxm);
sb.append(", xtLrrid=").append(xtLrrid);
sb.append(", xtLrrbm=").append(xtLrrbm);
sb.append(", xtLrrbmid=").append(xtLrrbmid);
sb.append(", xtLrip=").append(xtLrip);
sb.append(", xtZhxgsj=").append(xtZhxgsj);
sb.append(", xtZhxgrxm=").append(xtZhxgrxm);
sb.append(", xtZhxgid=").append(xtZhxgid);
sb.append(", xtZhxgrbm=").append(xtZhxgrbm);
sb.append(", xtZhxgrbmid=").append(xtZhxgrbmid);
sb.append(", xtZhxgrip=").append(xtZhxgrip);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -0,0 +1,110 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mosty.common.base.entity.log.Excel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.apache.poi.ss.usermodel.IndexedColors;
import java.io.Serializable;
import java.time.LocalDateTime;
@TableName(value = "mosty_base.sys_logininfor")
@Data
public class SysLogininfor implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "info_id", type = IdType.AUTO)
@ApiModelProperty("访问ID")
private Long infoId;
@TableField(value = "user_id")
@ApiModelProperty("人员ID")
private String userId;
@TableField(value = "sfzh")
@ApiModelProperty("身份证号")
@Excel(name = "身份证号")
private String sfzh;
@TableField(value = "user_name")
@ApiModelProperty("用户账号")
@Excel(name = "用户账号")
private String userName;
@TableField(value = "ipaddr")
@ApiModelProperty("登录IP地址")
@Excel(name = "用户账号")
private String ipaddr;
@TableField(value = "type")
@ApiModelProperty("登录方式 01.app登录 02.pc端登录")
private String type;
@TableField(value = "status")
@ApiModelProperty("登录状态0成功 1失败")
private String status;
@TableField(value = "msg")
@ApiModelProperty("提示信息")
@Excel(name = "登录状态")
private String msg;
@TableField(value = "browser")
@ApiModelProperty("浏览器类型")
@Excel(name = "浏览器类型")
private String browser;
@TableField(value = "os")
@ApiModelProperty("操作系统")
@Excel(name = "操作系统")
private String os;
@TableField(value = "access_time")
@ApiModelProperty("访问时间")
@Excel(name = "访问时间")
private LocalDateTime accessTime;
@ApiModelProperty(value = "所属部门id")
@TableField(value = "ssbmid")
private String ssbmid;
@ApiModelProperty(value = "所属部门")
@TableField(value = "ssbm")
@Excel(name = "所属部门")
private String ssbm;
@ApiModelProperty(value = "所属部门代码")
@TableField(value = "ssbmdm")
@Excel(name = "所属部门代码")
private String ssbmdm;
@ApiModelProperty(value = "所属县公安局")
@TableField(value = "ssxgaj")
private String ssxgaj;
@ApiModelProperty(value = "所属县公安局id")
@TableField(value = "ssxgajid")
private String ssxgajid;
@ApiModelProperty(value = "所属县公安局代码")
@TableField(value = "ssxgajdm")
private String ssxgajdm;
@ApiModelProperty(value = "所属市公安局id")
@TableField(value = "sssgajid")
private String sssgajid;
@ApiModelProperty(value = "所属市公安局")
@TableField(value = "sssgaj")
private String sssgaj;
@ApiModelProperty(value = "所属市公安局代码")
@TableField(value = "sssgajdm")
private String sssgajdm;
}

View File

@ -0,0 +1,114 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* <p>
* 菜单表
* </p>
*
* @author kevin
* @since 2022-02-12
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_menu")
@ApiModel(value="SysMenu对象", description="菜单表")
public class SysMenu implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "父菜单id")
private Long parentId;
@ApiModelProperty(value = "父菜单路径,使用逗号间隔")
private String parentPath;
@ApiModelProperty(value = "菜单名称")
private String menuName;
@ApiModelProperty(value = "菜单编码")
private String menuCode;
@ApiModelProperty(value = "菜单地址")
private String menuUrl;
@ApiModelProperty(value = "菜单类型1、菜单 2、资源")
private Integer menuType;
@ApiModelProperty(value = "排序号")
private Integer orderNo;
@ApiModelProperty(value = "是否展示1、展示 2、不展示")
private Integer showMode;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
@ApiModelProperty(value = "子菜单集合")
@TableField(exist = false)
private List<SysMenu> sysMenuList;
}

View File

@ -0,0 +1,114 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* OSS云存储表
* </p>
*
* @author zengbo
* @since 2022-08-31
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_oss")
@ApiModel(value="SysOss对象", description="OSS云存储表")
public class SysOss implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "云存储主键")
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
private String md5;
@ApiModelProperty(value = "文件名")
private String fileName;
@ApiModelProperty(value = "原名")
private String originalName;
@ApiModelProperty(value = "文件后缀名")
private String fileSuffix;
@ApiModelProperty(value = "URL地址")
private String url;
@ApiModelProperty(value = "数据来源(业务表名)")
private String sjlybm;
@ApiModelProperty(value = "业务ID")
private String ywid;
@ApiModelProperty(value = "添加顺序")
private Integer tjsx;
@ApiModelProperty(value = "图片类型0-缩略图1-大图")
private String tplx;
@ApiModelProperty(value = "服务商")
private String service;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private String xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,94 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* 岗位表
* </p>
*
* @author kevin
* @since 2022-02-12
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_position")
@ApiModel(value="SysPosition对象", description="岗位表")
public class SysPosition implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "岗位编码")
private String postCode;
@ApiModelProperty(value = "岗位名称")
private String postName;
@ApiModelProperty(value = "岗位描述")
private String postDesc;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,269 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 角色表
* @TableName sys_role
*/
@TableName(value ="mosty_base.sys_role")
@Data
public class SysRole implements Serializable {
/**
* 主键id
*/
@ApiModelProperty(value = "角色ID")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 角色名称
*/
@ApiModelProperty(value = "角色名称")
@TableField(value = "role_name")
private String roleName;
/**
* 角色编码
*/
@ApiModelProperty(value = "角色编码")
@TableField(value = "role_code")
private String roleCode;
/**
* 角色描述
*/
@ApiModelProperty(value = "角色描述")
@TableField(value = "role_desc")
private String roleDesc;
/**
* 排序号
*/
@ApiModelProperty(value = "排序号")
@TableField(value = "order_no")
private Integer orderNo;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
@TableField(value = "bz")
private String bz;
/**
* 采集时间
*/
@ApiModelProperty(value = "采集时间")
@TableField(value = "xt_cjsj")
private Date xtCjsj;
/**
* 录入时间
*/
@ApiModelProperty(value = "录入时间")
@TableField(value = "xt_lrsj")
private Date xtLrsj;
/**
* 录入人姓名
*/
@ApiModelProperty(value = "录入人姓名")
@TableField(value = "xt_lrrxm")
private String xtLrrxm;
/**
* 录入人ID
*/
@ApiModelProperty(value = "录入人ID")
@TableField(value = "xt_lrrid")
private String xtLrrid;
/**
* 录入人部门
*/
@ApiModelProperty(value = "录入人部门")
@TableField(value = "xt_lrrbm")
private String xtLrrbm;
/**
* 录入人部门ID
*/
@ApiModelProperty(value = "录入人部门ID")
@TableField(value = "xt_lrrbmid")
private String xtLrrbmid;
/**
* 录入IP
*/
@ApiModelProperty(value = "录入IP")
@TableField(value = "xt_lrip")
private String xtLrip;
/**
* 最后修改时间
*/
@ApiModelProperty(value = "最后修改时间")
@TableField(value = "xt_zhxgsj")
private Date xtZhxgsj;
/**
* 最后修改人姓名
*/
@ApiModelProperty(value = "最后修改人姓名")
@TableField(value = "xt_zhxgrxm")
private String xtZhxgrxm;
/**
* 最后修改人ID
*/
@ApiModelProperty(value = "最后修改人ID")
@TableField(value = "xt_zhxgrid")
private String xtZhxgrid;
/**
* 最后修改人部门
*/
@ApiModelProperty(value = "最后修改人部门")
@TableField(value = "xt_zhxgrbm")
private String xtZhxgrbm;
/**
* 最后修改人部门ID
*/
@ApiModelProperty(value = "最后修改人部门ID")
@TableField(value = "xt_zhxgrbmid")
private String xtZhxgrbmid;
/**
* 最后修改IP
*/
@ApiModelProperty(value = "最后修改IP")
@TableField(value = "xt_zhxgip")
private String xtZhxgip;
/**
* 注销标志0正常 1.注销
*/
@ApiModelProperty(value = "注销标志0正常 1.注销")
@TableField(value = "xt_zxbz")
private Integer xtZxbz;
/**
* 注销原因
*/
@ApiModelProperty(value = "注销原因")
@TableField(value = "xt_zxyy")
private String xtZxyy;
/**
* 数据权限等级
*/
@ApiModelProperty(value = "数据权限等级")
@TableField(value = "data_permission_level")
private String dataPermissionLevel;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysRole other = (SysRole) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getRoleName() == null ? other.getRoleName() == null : this.getRoleName().equals(other.getRoleName()))
&& (this.getRoleDesc() == null ? other.getRoleDesc() == null : this.getRoleDesc().equals(other.getRoleDesc()))
&& (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
&& (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))
&& (this.getXtCjsj() == null ? other.getXtCjsj() == null : this.getXtCjsj().equals(other.getXtCjsj()))
&& (this.getXtLrsj() == null ? other.getXtLrsj() == null : this.getXtLrsj().equals(other.getXtLrsj()))
&& (this.getXtLrrxm() == null ? other.getXtLrrxm() == null : this.getXtLrrxm().equals(other.getXtLrrxm()))
&& (this.getXtLrrid() == null ? other.getXtLrrid() == null : this.getXtLrrid().equals(other.getXtLrrid()))
&& (this.getXtLrrbm() == null ? other.getXtLrrbm() == null : this.getXtLrrbm().equals(other.getXtLrrbm()))
&& (this.getXtLrrbmid() == null ? other.getXtLrrbmid() == null : this.getXtLrrbmid().equals(other.getXtLrrbmid()))
&& (this.getXtLrip() == null ? other.getXtLrip() == null : this.getXtLrip().equals(other.getXtLrip()))
&& (this.getXtZhxgsj() == null ? other.getXtZhxgsj() == null : this.getXtZhxgsj().equals(other.getXtZhxgsj()))
&& (this.getXtZhxgrxm() == null ? other.getXtZhxgrxm() == null : this.getXtZhxgrxm().equals(other.getXtZhxgrxm()))
&& (this.getXtZhxgrid() == null ? other.getXtZhxgrid() == null : this.getXtZhxgrid().equals(other.getXtZhxgrid()))
&& (this.getXtZhxgrbm() == null ? other.getXtZhxgrbm() == null : this.getXtZhxgrbm().equals(other.getXtZhxgrbm()))
&& (this.getXtZhxgrbmid() == null ? other.getXtZhxgrbmid() == null : this.getXtZhxgrbmid().equals(other.getXtZhxgrbmid()))
&& (this.getXtZhxgip() == null ? other.getXtZhxgip() == null : this.getXtZhxgip().equals(other.getXtZhxgip()))
&& (this.getXtZxbz() == null ? other.getXtZxbz() == null : this.getXtZxbz().equals(other.getXtZxbz()))
&& (this.getXtZxyy() == null ? other.getXtZxyy() == null : this.getXtZxyy().equals(other.getXtZxyy()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getRoleName() == null) ? 0 : getRoleName().hashCode());
result = prime * result + ((getRoleDesc() == null) ? 0 : getRoleDesc().hashCode());
result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
result = prime * result + ((getXtCjsj() == null) ? 0 : getXtCjsj().hashCode());
result = prime * result + ((getXtLrsj() == null) ? 0 : getXtLrsj().hashCode());
result = prime * result + ((getXtLrrxm() == null) ? 0 : getXtLrrxm().hashCode());
result = prime * result + ((getXtLrrid() == null) ? 0 : getXtLrrid().hashCode());
result = prime * result + ((getXtLrrbm() == null) ? 0 : getXtLrrbm().hashCode());
result = prime * result + ((getXtLrrbmid() == null) ? 0 : getXtLrrbmid().hashCode());
result = prime * result + ((getXtLrip() == null) ? 0 : getXtLrip().hashCode());
result = prime * result + ((getXtZhxgsj() == null) ? 0 : getXtZhxgsj().hashCode());
result = prime * result + ((getXtZhxgrxm() == null) ? 0 : getXtZhxgrxm().hashCode());
result = prime * result + ((getXtZhxgrid() == null) ? 0 : getXtZhxgrid().hashCode());
result = prime * result + ((getXtZhxgrbm() == null) ? 0 : getXtZhxgrbm().hashCode());
result = prime * result + ((getXtZhxgrbmid() == null) ? 0 : getXtZhxgrbmid().hashCode());
result = prime * result + ((getXtZhxgip() == null) ? 0 : getXtZhxgip().hashCode());
result = prime * result + ((getXtZxbz() == null) ? 0 : getXtZxbz().hashCode());
result = prime * result + ((getXtZxyy() == null) ? 0 : getXtZxyy().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", roleName=").append(roleName);
sb.append(", roleDesc=").append(roleDesc);
sb.append(", orderNo=").append(orderNo);
sb.append(", bz=").append(bz);
sb.append(", xtCjsj=").append(xtCjsj);
sb.append(", xtLrsj=").append(xtLrsj);
sb.append(", xtLrrxm=").append(xtLrrxm);
sb.append(", xtLrrid=").append(xtLrrid);
sb.append(", xtLrrbm=").append(xtLrrbm);
sb.append(", xtLrrbmid=").append(xtLrrbmid);
sb.append(", xtLrip=").append(xtLrip);
sb.append(", xtZhxgsj=").append(xtZhxgsj);
sb.append(", xtZhxgrxm=").append(xtZhxgrxm);
sb.append(", xtZhxgrid=").append(xtZhxgrid);
sb.append(", xtZhxgrbm=").append(xtZhxgrbm);
sb.append(", xtZhxgrbmid=").append(xtZhxgrbmid);
sb.append(", xtZhxgip=").append(xtZhxgip);
sb.append(", xtZxbz=").append(xtZxbz);
sb.append(", xtZxyy=").append(xtZxyy);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -0,0 +1,79 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
* 角色和部门关联表
* @TableName sys_role_dept
*/
@TableName(value ="mosty_base.sys_role_dept")
@Data
public class SysRoleDept implements Serializable {
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 角色ID
*/
@TableField(value = "role_id")
private Long roleId;
/**
* 部门ID
*/
@TableField(value = "dept_id")
private Long deptId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysRoleDept other = (SysRoleDept) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
&& (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", roleId=").append(roleId);
sb.append(", deptId=").append(deptId);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -0,0 +1,79 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
* 角色和菜单关联表
* @TableName sys_role_menu
*/
@TableName(value ="mosty_base.sys_role_menu")
@Data
public class SysRoleMenu implements Serializable {
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 角色ID
*/
@TableField(value = "role_id")
private Long roleId;
/**
* 菜单ID
*/
@TableField(value = "menu_id")
private Long menuId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysRoleMenu other = (SysRoleMenu) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
&& (this.getMenuId() == null ? other.getMenuId() == null : this.getMenuId().equals(other.getMenuId()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
result = prime * result + ((getMenuId() == null) ? 0 : getMenuId().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", roleId=").append(roleId);
sb.append(", menuId=").append(menuId);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -0,0 +1,332 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 用户信息表
* @TableName sys_user
*/
@Data
@TableName(value ="mosty_base.sys_user")
public class SysUser implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "用户ID")
private Long id;
@TableField(value = "manager_org_id")
@ApiModelProperty(value = "管理部门ID")
private Long managerOrgId;
@TableField(value = "manager_org_name")
@ApiModelProperty(value = "管理部门名称")
private String managerOrgName;
@TableField(value = "position_id")
@ApiModelProperty(value = "岗位ID")
private Long positionId;
@TableField(value = "position_name")
@ApiModelProperty(value = "岗位名称")
private String positionName;
@TableField(value = "is_virtual_user")
@ApiModelProperty(value = "是否虚拟用户1、是 2、不是")
private String isVirtualUser;
@TableField(value = "login_name")
@ApiModelProperty(value = "登录账号")
private String loginName;
@TableField(value = "password")
@ApiModelProperty(value = "密码")
private String password;
@TableField(value = "user_name")
@ApiModelProperty(value = "用户昵称")
private String userName;
@TableField(value = "user_type")
@ApiModelProperty(value = "用户类型00系统用户 01注册用户")
private String userType;
@TableField(value = "email")
@ApiModelProperty(value = "用户邮箱")
private String email;
@TableField(value = "mobile")
@ApiModelProperty(value = "移动电话")
private String mobile;
@TableField(value = "tele_phone")
@ApiModelProperty(value = "电话号码")
private String telePhone;
@TableField(value = "id_entity_card")
@ApiModelProperty(value = "身份证号")
private String idEntityCard;
@TableField(value = "in_dust_rial_id")
@ApiModelProperty(value = "行业号码(如:警号)")
private String inDustRialId;
@TableField(value = "sex")
@ApiModelProperty(value = "用户性别0男 1女 2未知")
private String sex;
@TableField(value = "nation")
@ApiModelProperty(value = "民族")
private String nation;
@TableField(value = "politic")
@ApiModelProperty(value = "政治面貌")
private String politic;
@TableField(value = "marital")
@ApiModelProperty(value = "婚姻状态")
private String marital;
@TableField(value = "type")
@ApiModelProperty(value = "人员类别")
private String type;
@TableField(value = "type_name")
@ApiModelProperty(value = "人员类别中文")
private String typeName;
@TableField(value = "whcd")
@ApiModelProperty(value = "文化程度")
private String whcd;
@TableField(value = "bz")
@ApiModelProperty(value = "备注")
private String bz;
@TableField(value = "birthday")
@ApiModelProperty(value = "出生日期")
private String birthday;
@TableField(value = "begin_time")
@ApiModelProperty(value = " 用户有效开始时间,默认为当前日期(用户可改)")
private Date beginTime;
@TableField(value = "end_time")
@ApiModelProperty(value = " 用户有效结束时间,默认空")
private Date endTime;
@TableField(value = "salt")
@ApiModelProperty(value = "盐加密")
private String salt;
@TableField(value = "xzcs")
@ApiModelProperty(value = "选择次数")
private Integer xzcs;
@TableField(value = "xt_zxbz")
private Integer xtZxbz;
@TableField(value = "xt_zxyz")
private String xtZxyz;
@TableField(value = "xt_cjsj")
private Date xtCjsj;
@TableField(value = "xt_lrsj")
private Date xtLrsj;
@TableField(value = "xt_lrrxm")
private String xtLrrxm;
@TableField(value = "xt_lrrid")
private Long xtLrrid;
@TableField(value = "xt_lrrbm")
private String xtLrrbm;
@TableField(value = "xt_lrrbmid")
private String xtLrrbmid;
@TableField(value = "xt_lrip")
private String xtLrip;
@TableField(value = "xt_zhxgsj")
private Date xtZhxgsj;
@TableField(value = "xt_zhxgrxm")
private String xtZhxgrxm;
@TableField(value = "xt_zhxgid")
private Long xtZhxgid;
@TableField(value = "xt_zhxgrbm")
private String xtZhxgrbm;
@TableField(value = "xt_zhxgrbmid")
private Long xtZhxgrbmid;
@TableField(value = "xt_zhxgrip")
private String xtZhxgrip;
@TableField(value = "sfrh")
private String sfrh;
@TableField(value = "mk")
private String mk;
/** 用户头像 */
@TableField(value = "avatar")
@ApiModelProperty(value = "头像")
private String avatar;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysUser other = (SysUser) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getManagerOrgId() == null ? other.getManagerOrgId() == null : this.getManagerOrgId().equals(other.getManagerOrgId()))
&& (this.getManagerOrgName() == null ? other.getManagerOrgName() == null : this.getManagerOrgName().equals(other.getManagerOrgName()))
&& (this.getPositionId() == null ? other.getPositionId() == null : this.getPositionId().equals(other.getPositionId()))
&& (this.getPositionName() == null ? other.getPositionName() == null : this.getPositionName().equals(other.getPositionName()))
&& (this.getLoginName() == null ? other.getLoginName() == null : this.getLoginName().equals(other.getLoginName()))
&& (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
&& (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
&& (this.getUserType() == null ? other.getUserType() == null : this.getUserType().equals(other.getUserType()))
&& (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
&& (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
&& (this.getTelePhone() == null ? other.getTelePhone() == null : this.getTelePhone().equals(other.getTelePhone()))
&& (this.getIdEntityCard() == null ? other.getIdEntityCard() == null : this.getIdEntityCard().equals(other.getIdEntityCard()))
&& (this.getInDustRialId() == null ? other.getInDustRialId() == null : this.getInDustRialId().equals(other.getInDustRialId()))
&& (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
&& (this.getNation() == null ? other.getNation() == null : this.getNation().equals(other.getNation()))
&& (this.getWhcd() == null ? other.getWhcd() == null : this.getWhcd().equals(other.getWhcd()))
&& (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()))
&& (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
&& (this.getBeginTime() == null ? other.getBeginTime() == null : this.getBeginTime().equals(other.getBeginTime()))
&& (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
&& (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()))
&& (this.getXtZxbz() == null ? other.getXtZxbz() == null : this.getXtZxbz().equals(other.getXtZxbz()))
&& (this.getXtZxyz() == null ? other.getXtZxyz() == null : this.getXtZxyz().equals(other.getXtZxyz()))
&& (this.getXtCjsj() == null ? other.getXtCjsj() == null : this.getXtCjsj().equals(other.getXtCjsj()))
&& (this.getXtLrsj() == null ? other.getXtLrsj() == null : this.getXtLrsj().equals(other.getXtLrsj()))
&& (this.getXtLrrxm() == null ? other.getXtLrrxm() == null : this.getXtLrrxm().equals(other.getXtLrrxm()))
&& (this.getXtLrrid() == null ? other.getXtLrrid() == null : this.getXtLrrid().equals(other.getXtLrrid()))
&& (this.getXtLrrbm() == null ? other.getXtLrrbm() == null : this.getXtLrrbm().equals(other.getXtLrrbm()))
&& (this.getXtLrrbmid() == null ? other.getXtLrrbmid() == null : this.getXtLrrbmid().equals(other.getXtLrrbmid()))
&& (this.getXtLrip() == null ? other.getXtLrip() == null : this.getXtLrip().equals(other.getXtLrip()))
&& (this.getXtZhxgsj() == null ? other.getXtZhxgsj() == null : this.getXtZhxgsj().equals(other.getXtZhxgsj()))
&& (this.getXtZhxgrxm() == null ? other.getXtZhxgrxm() == null : this.getXtZhxgrxm().equals(other.getXtZhxgrxm()))
&& (this.getXtZhxgid() == null ? other.getXtZhxgid() == null : this.getXtZhxgid().equals(other.getXtZhxgid()))
&& (this.getXtZhxgrbm() == null ? other.getXtZhxgrbm() == null : this.getXtZhxgrbm().equals(other.getXtZhxgrbm()))
&& (this.getXtZhxgrbmid() == null ? other.getXtZhxgrbmid() == null : this.getXtZhxgrbmid().equals(other.getXtZhxgrbmid()))
&& (this.getXtZhxgrip() == null ? other.getXtZhxgrip() == null : this.getXtZhxgrip().equals(other.getXtZhxgrip()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getManagerOrgId() == null) ? 0 : getManagerOrgId().hashCode());
result = prime * result + ((getManagerOrgName() == null) ? 0 : getManagerOrgName().hashCode());
result = prime * result + ((getPositionId() == null) ? 0 : getPositionId().hashCode());
result = prime * result + ((getPositionName() == null) ? 0 : getPositionName().hashCode());
result = prime * result + ((getLoginName() == null) ? 0 : getLoginName().hashCode());
result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
result = prime * result + ((getUserType() == null) ? 0 : getUserType().hashCode());
result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
result = prime * result + ((getTelePhone() == null) ? 0 : getTelePhone().hashCode());
result = prime * result + ((getIdEntityCard() == null) ? 0 : getIdEntityCard().hashCode());
result = prime * result + ((getInDustRialId() == null) ? 0 : getInDustRialId().hashCode());
result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
result = prime * result + ((getNation() == null) ? 0 : getNation().hashCode());
result = prime * result + ((getWhcd() == null) ? 0 : getWhcd().hashCode());
result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
result = prime * result + ((getBeginTime() == null) ? 0 : getBeginTime().hashCode());
result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
result = prime * result + ((getXtZxbz() == null) ? 0 : getXtZxbz().hashCode());
result = prime * result + ((getXtZxyz() == null) ? 0 : getXtZxyz().hashCode());
result = prime * result + ((getXtCjsj() == null) ? 0 : getXtCjsj().hashCode());
result = prime * result + ((getXtLrsj() == null) ? 0 : getXtLrsj().hashCode());
result = prime * result + ((getXtLrrxm() == null) ? 0 : getXtLrrxm().hashCode());
result = prime * result + ((getXtLrrid() == null) ? 0 : getXtLrrid().hashCode());
result = prime * result + ((getXtLrrbm() == null) ? 0 : getXtLrrbm().hashCode());
result = prime * result + ((getXtLrrbmid() == null) ? 0 : getXtLrrbmid().hashCode());
result = prime * result + ((getXtLrip() == null) ? 0 : getXtLrip().hashCode());
result = prime * result + ((getXtZhxgsj() == null) ? 0 : getXtZhxgsj().hashCode());
result = prime * result + ((getXtZhxgrxm() == null) ? 0 : getXtZhxgrxm().hashCode());
result = prime * result + ((getXtZhxgid() == null) ? 0 : getXtZhxgid().hashCode());
result = prime * result + ((getXtZhxgrbm() == null) ? 0 : getXtZhxgrbm().hashCode());
result = prime * result + ((getXtZhxgrbmid() == null) ? 0 : getXtZhxgrbmid().hashCode());
result = prime * result + ((getXtZhxgrip() == null) ? 0 : getXtZhxgrip().hashCode());
return result;
}
@Override
public String toString() {
return getClass().getSimpleName() +
" [" +
"Hash = " + hashCode() +
", id=" + id +
", managerOrgId=" + managerOrgId +
", managerOrgName=" + managerOrgName +
", positionId=" + positionId +
", positionName=" + positionName +
", loginName=" + loginName +
", password=" + password +
", userName=" + userName +
", userType=" + userType +
", email=" + email +
", mobile=" + mobile +
", telePhone=" + telePhone +
", idEntityCard=" + idEntityCard +
", inDustRialId=" + inDustRialId +
", sex=" + sex +
", nation=" + nation +
", whcd=" + whcd +
", bz=" + bz +
", birthday=" + birthday +
", beginTime=" + beginTime +
", endTime=" + endTime +
", salt=" + salt +
", xtZxbz=" + xtZxbz +
", xtZxyz=" + xtZxyz +
", xtCjsj=" + xtCjsj +
", xtLrsj=" + xtLrsj +
", xtLrrxm=" + xtLrrxm +
", xtLrrid=" + xtLrrid +
", xtLrrbm=" + xtLrrbm +
", xtLrrbmid=" + xtLrrbmid +
", xtLrip=" + xtLrip +
", xtZhxgsj=" + xtZhxgsj +
", xtZhxgrxm=" + xtZhxgrxm +
", xtZhxgid=" + xtZhxgid +
", xtZhxgrbm=" + xtZhxgrbm +
", xtZhxgrbmid=" + xtZhxgrbmid +
", xtZhxgrip=" + xtZhxgrip +
", serialVersionUID=" + serialVersionUID +
"]";
}
}

View File

@ -0,0 +1,109 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* 用户app首页配置表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_user_app_homeconfig")
@ApiModel(value="SysUserAppHomeconfig对象", description="用户app首页配置表")
public class SysUserAppHomeconfig implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "首页id")
private Long homeid;
@ApiModelProperty(value = "首页名称")
private String homename;
@ApiModelProperty(value = "用户id")
private Long userId;
@ApiModelProperty(value = "用户身份证号")
private String userSfzh;
@ApiModelProperty(value = "用户姓名")
private String userXm;
@ApiModelProperty(value = "配置时间")
private Date pzsj;
@ApiModelProperty(value = "配置板块数")
private Integer pzbks;
@ApiModelProperty(value = "色调01-蓝色02-白色")
private String sd;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,103 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* 用户app首页配置-板块表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_user_app_homeconfig_plate")
@ApiModel(value="SysUserAppHomeconfigPlate对象", description="用户app首页配置-板块表")
public class SysUserAppHomeconfigPlate implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "配置id")
private Long pzId;
@ApiModelProperty(value = "板块id")
private Long plateId;
@ApiModelProperty(value = "板块类型00-置顶按钮01-五情板块02-工作任务板块03-概况板块04-风险板块)")
private String bklx;
@ApiModelProperty(value = "板块名称")
private String bkmc;
@ApiModelProperty(value = "板块内容数")
private Integer bknrs;
@ApiModelProperty(value = "板块顺序")
private Integer bksx;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,103 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* 用户app首页配置-板块内容表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mosty_base.sys_user_app_homeconfig_plate_list")
@ApiModel(value="SysUserAppHomeconfigPlateList对象", description="用户app首页配置-板块内容表")
public class SysUserAppHomeconfigPlateList implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "配置id")
private Long pzId;
@ApiModelProperty(value = "配置板块ID")
private Long pzPlateId;
@ApiModelProperty(value = "内容ID")
private Long plateListId;
@ApiModelProperty(value = "内容名称")
private String nrmc;
@ApiModelProperty(value = "板块顺序")
private Integer bksx;
@ApiModelProperty(value = "路由跳转地址")
private String tzdz;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,90 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* 用户和部门关联表
* @TableName sys_user_dept
*/
@Data
@TableName(value ="mosty_base.sys_user_dept")
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class SysUserDept implements Serializable {
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 用户ID
*/
@TableField(value = "user_id")
private Long userId;
/**
* 部门id
*/
@TableField(value = "dept_id")
private Long deptId;
public SysUserDept(Long userId, Long deptId) {
this.userId = userId;
this.deptId = deptId;
}
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysUserDept other = (SysUserDept) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getDeptId() == null ? other.getDeptId() == null : this.getDeptId().equals(other.getDeptId()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getDeptId() == null) ? 0 : getDeptId().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", deptId=").append(deptId);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -0,0 +1,88 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 用户和角色关联表
* @TableName sys_user_role
*/
@TableName(value ="mosty_base.sys_user_role")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserRole implements Serializable {
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 用户ID
*/
@TableField(value = "user_id")
private Long userId;
/**
* 角色ID
*/
@TableField(value = "role_id")
private Long roleId;
public SysUserRole(Long userId, Long roleId) {
this.userId = userId;
this.roleId = roleId;
}
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysUserRole other = (SysUserRole) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", roleId=").append(roleId);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

View File

@ -0,0 +1,183 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
/**
* 巡防力量表;
*
* @author : Lhh
* @date : 2022-6-4
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "巡防力量表", description = "")
@TableName("mosty_base.tb_jcgl_xfll")
public class TbJcglXfll implements Serializable, Cloneable {
private static final long serialVersionUID = 6556387960466677177L;
@ApiModelProperty(name = "警员管理表标识ID", notes = "", hidden = true)
@TableId(type = IdType.ASSIGN_UUID)
private String id;
@ApiModelProperty(value = "人员ID民警对应sys_user表中的ID辅警为null", notes = "")
private String ryid;
@ApiModelProperty(name = "警员分类", notes = "01、民警02、辅警")
private String fl;
@ApiModelProperty(name = "警员类型", notes = "01、社区民警02、治安民警03、刑侦民警04、内勤民警05、巡逻民警")
private String lx;
@ApiModelProperty(name = "姓名", notes = "")
private String xm;
@ApiModelProperty(name = "性别代码", notes = "")
private String xbdm;
@ApiModelProperty(name = "身份证号", notes = "")
private String sfzh;
@ApiModelProperty(name = "警号", notes = "")
private String jh;
@ApiModelProperty(name = "警衔", notes = "")
private String jx;
@ApiModelProperty(name = "政治面貌", notes = "")
private String zzmm;
@ApiModelProperty(name = "婚姻状况", notes = "0、未婚1、已婚2、离异")
private String hyzk;
@ApiModelProperty(name = "入职时间", notes = "")
private Date rzsj;
@ApiModelProperty(name = "出生日期", notes = "")
private Date csrq;
@ApiModelProperty(name = "民族编码", notes = "")
private String mzdm;
@ApiModelProperty(name = "文化程度", notes = "")
private String whcddm;
@ApiModelProperty(name = "籍贯", notes = "")
private String jgdm;
@ApiModelProperty(name = "家庭住址", notes = "")
private String jtzz;
@ApiModelProperty(name = "联系电话", notes = "")
private String lxdh;
@ApiModelProperty(name = "电子邮箱", notes = "")
private String dzyx;
@ApiModelProperty(name = "巡防力量图片")
private String tp;
@ApiModelProperty(value = "所属部门id")
private String ssbmid;
@ApiModelProperty(value = "所属部门")
private String ssbm;
@ApiModelProperty(value = "所属部门代码")
private String ssbmdm;
@ApiModelProperty(value = "所属县公安局")
private String ssxgaj;
@ApiModelProperty(value = "所属县公安局id")
private String ssxgajid;
@ApiModelProperty(value = "所属县公安局代码")
private String ssxgajdm;
@ApiModelProperty(value = "所属市公安局id")
private String sssgajid;
@ApiModelProperty(value = "所属市公安局")
private String sssgaj;
@ApiModelProperty(value = "所属市公安局代码")
private String sssgajdm;
@ApiModelProperty(value = "数据来源1、PC2、手机端",name = "xtSjly")
private String xtSjly;
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "数据状态0、注销1、正常-1、封存",name = "xtSjzt")
private String xtSjzt;
@TableLogic
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "删除标识0、未删除1、已删除",name = "xtScbz")
private String xtScbz;
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "创建IP",name = "xtCjip")
private String xtCjip;
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "创建时间",name = "xtCjsj")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
private Timestamp xtCjsj;
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "创建人ID",name = "xtCjrId")
private String xtCjrId;
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "创建人名称",name = "xtCjr")
private String xtCjr;
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "创建部门代码",name = "xtCjbmdm")
private String xtCjbmdm;
@TableField(fill = FieldFill.INSERT)
@ApiModelProperty(value = "创建部门名称",name = "xtCjbmmc")
private String xtCjbmmc;
@TableField(fill = FieldFill.UPDATE)
@ApiModelProperty(value = "最后更新IP",name = "xtZhgxip")
private String xtZhgxip;
@TableField(fill = FieldFill.UPDATE)
@ApiModelProperty(value = "最后更新时间",name = "xtZhgxsj")
private Timestamp xtZhgxsj;
@TableField(fill = FieldFill.UPDATE)
@ApiModelProperty(value = "最后更新人ID",name = "xtZhgxrid")
private String xtZhgxrid;
@TableField(fill = FieldFill.UPDATE)
@ApiModelProperty(value = "最后更新人名称",name = "xtZhgxr")
private String xtZhgxr;
@TableField(fill = FieldFill.UPDATE)
@ApiModelProperty(value = "最后更新部门代码",name = "xtZhgxbmdm")
private String xtZhgxbmdm;
@TableField(fill = FieldFill.UPDATE)
@ApiModelProperty(value = "最后更新部门名称",name = "xtZhgxbm")
private String xtZhgxbm;
@ApiModelProperty(value = "备注",name = "bz")
private String bz;
}

View File

@ -0,0 +1,51 @@
package com.mosty.common.core.business.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 用户信息表
*
* @TableName sys_user
*/
@Data
@TableName(value = "mosty_base.ybmj")
public class Ybmj implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "用户ID")
private String id;
@TableField(value = "xm")
@ApiModelProperty(value = "姓名")
private String xm;
@TableField(value = "jh")
@ApiModelProperty(value = "警号")
private String jh;
@TableField(value = "dh")
@ApiModelProperty(value = "电话")
private String dh;
@TableField(value = "ssbmdm")
@ApiModelProperty(value = "所属部门代码")
private String ssbmdm;
@TableField(value = "ssbm")
@ApiModelProperty(value = "所属部门")
private String ssbm;
@TableField(value = "sfzh")
@ApiModelProperty(value = "身份证")
private String sfzh;
}

View File

@ -0,0 +1,20 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class LoginLogPage extends Page {
@ApiModelProperty(value = "登录账号")
private String userName;
@ApiModelProperty(value = "登录状态")
private Integer status;
}

View File

@ -0,0 +1,34 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* <p>
* app首页表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@Accessors(chain = true)
@ApiModel(value="SysAppHomeconfig对象", description="app首页表")
public class SysAppHomeconfigPage extends Page {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "首页ID")
private Long id;
@ApiModelProperty(value = "首页名称,如:领导端")
private String homename;
}

View File

@ -0,0 +1,37 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* app首页配置-板块内容表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@Accessors(chain = true)
@ApiModel(value="app首页配置-板块内容", description="app首页配置-板块内容")
public class SysAppHomeconfigPlateListPage extends Page {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "板块ID")
private Long plateId;
@ApiModelProperty(value = "内容名称")
private String nrmc;
}

View File

@ -0,0 +1,42 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* app首页-板块表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_app_homeconfig_plate")
@ApiModel(value="SysAppHomeconfigPlate对象", description="app首页-板块表")
public class SysAppHomeconfigPlatePage extends Page {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "首页ID")
private Long homeid;
@ApiModelProperty(value = "板块类型00-置顶按钮01-五情板块02-工作任务板块03-概况板块04-风险板块)")
private String bklx;
@ApiModelProperty(value = "板块名称")
private String bkmc;
}

View File

@ -0,0 +1,30 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* <p>
* app首页表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@Accessors(chain = true)
@ApiModel(value="SysAppHomeconfigQuery对象", description="app首页表")
public class SysAppHomeconfigQuery {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "首页ID")
private Long id;
@ApiModelProperty(value = "首页名称,如:领导端")
private String homename;
}

View File

@ -0,0 +1,36 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* <p>
* app首页表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@Accessors(chain = true)
@ApiModel(value="SysUserAppHomeconfig对象", description="用户app首页配置表")
public class SysUserAppHomeconfigPage extends Page {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "首页id")
private Long homeid;
@ApiModelProperty(value = "首页名称")
private String homename;
@ApiModelProperty(value = "用户id")
private Long userId;
@ApiModelProperty(value = "用户身份证号")
private String userSfzh;
}

View File

@ -0,0 +1,36 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* <p>
* app首页配置-板块内容表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@Accessors(chain = true)
@ApiModel(value="app首页配置-板块内容", description="app首页配置-板块内容")
public class SysUserAppHomeconfigPlateListPage extends Page {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "配置id")
private Long pzId;
@ApiModelProperty(value = "配置板块ID")
private Long pzPlateId;
@ApiModelProperty(value = "内容ID")
private Long plateListId;
@ApiModelProperty(value = "内容名称")
private String nrmc;
}

View File

@ -0,0 +1,39 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* app首页-板块表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysAppHomeconfigPlate对象", description="app首页-板块表")
public class SysUserAppHomeconfigPlatePage extends Page {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "配置id")
private Long pzId;
@ApiModelProperty(value = "板块id")
private Long plateId;
@ApiModelProperty(value = "板块类型00-置顶按钮01-五情板块02-工作任务板块03-概况板块04-风险板块)")
private String bklx;
@ApiModelProperty(value = "板块名称")
private String bkmc;
}

View File

@ -0,0 +1,36 @@
package com.mosty.common.core.business.entity.request;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* <p>
* app首页表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@Accessors(chain = true)
@ApiModel(value="SysUserAppHomeconfig对象", description="用户app首页配置表")
public class SysUserAppHomeconfigQuery {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "首页id")
private Long homeid;
@ApiModelProperty(value = "首页名称")
private String homename;
@ApiModelProperty(value = "用户id")
private Long userId;
@ApiModelProperty(value = "用户身份证号")
private String userSfzh;
}

View File

@ -0,0 +1,20 @@
package com.mosty.common.core.business.entity.request;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author liyan
*/
@Data
public class SysUserEditPasswordRequest {
@ApiModelProperty(value = "用户ID")
private Long id;
@ApiModelProperty(value = "旧密码")
private String oldPassword;
@ApiModelProperty(value = "新密码")
private String password;
}

View File

@ -0,0 +1,81 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
@Accessors(chain = true)
public class AddDeptVO {
@ApiModelProperty("部门id")
private Long id;
@ApiModelProperty("部门代码")
@NotBlank(message = "部门代码不能为空!")
private String orgCode;
@ApiModelProperty("部门名称")
@NotBlank(message = "部门名称不能为空!")
private String orgName;
@ApiModelProperty("部门类型")
@NotNull(message = "部门类型不能为空!")
private String orgType;
@ApiModelProperty("部门等级")
@NotNull(message = "部门等级不能为空!")
private String orgLevel;
@ApiModelProperty("部门业务类型")
@NotNull(message = "部门业务类型不能为空!")
private String orgBizType;
@ApiModelProperty("部门顺序号")
private String orgNo;
@ApiModelProperty("上级部门主键")
private Long parentId;
@ApiModelProperty("部门名称拼音首字母")
private String bmpyszm;
@ApiModelProperty("部门简称")
private String orgJc;
@ApiModelProperty("部门全称")
@NotBlank(message = "部门全称不能为空!")
private String orgQc;
@ApiModelProperty("部门地址")
@NotBlank(message = "部门地址不能为空!")
private String address;
@ApiModelProperty("部门电话")
@NotBlank(message = "部门电话不能为空!")
private String linkTel;
@ApiModelProperty("部门联系人")
private String linkMan;
@ApiModelProperty("部门联系人电话")
private String linkManTel;
@ApiModelProperty("部门主页")
private String webUrl;
@ApiModelProperty("部门邮箱")
private String email;
@ApiModelProperty("部门所属行政区划")
private String xzqh;
@ApiModelProperty("备注")
private String bz;
}

View File

@ -0,0 +1,36 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.List;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class AddRoleDataPartitionVO extends Page {
/**
* 角色id
*/
@ApiModelProperty("角色id")
private Long id;
/**
* 数据权限等级
*/
@ApiModelProperty("数据权限等级")
private String dataPermissionLevel;
}

View File

@ -0,0 +1,37 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class AddRoleDeptVO {
/**
* 部门id
*/
@NotNull(message = "部门id不能为空")
@ApiModelProperty("部门id")
private Long deptId;
/**
* 角色ids
*/
@NotEmpty(message = "角色集合不能为空")
@ApiModelProperty("角色ids")
private List<Long> roleIds;
}

View File

@ -0,0 +1,29 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class AddRoleMenuVO {
@ApiModelProperty("角色id")
@NotNull(message = "角色id不能为空")
private Long roleId;
@ApiModelProperty("菜单ids, 菜单可以为空表示解绑,才能删除角色")
private List<Long> menuIds;
}

View File

@ -0,0 +1,60 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* 新增角色对象
* @author kevin
* @date 2022/2/18 10:40 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class AddRoleVO {
/**
* 角色名称
*/
@NotEmpty(message = "角色名称不能为空")
@ApiModelProperty("角色名称")
private String roleName;
/**
* 角色编码
*/
@NotEmpty(message = "角色编码不能为空")
@ApiModelProperty("角色编码")
private String roleCode;
/**
* 角色描述
*/
@ApiModelProperty("角色描述")
private String roleDesc;
/**
* 排序号
*/
@NotNull(message = "排序号不能为空")
@ApiModelProperty("排序号")
private Integer orderNo;
/**
* 备注
*/
@ApiModelProperty("备注")
private String bz;
/**
* 数据权限等级
*/
@ApiModelProperty("数据权限等级")
private String dataPermissionLevel;
}

View File

@ -0,0 +1,55 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* 添加系统菜单
* @author kevin
* @date 2022/2/22 12:51 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class AddSysMenuVO {
@ApiModelProperty(value = "父菜单id")
private Long parentId;
@NotEmpty(message = "菜单名称不能为空")
@ApiModelProperty(value = "菜单名称")
private String menuName;
@NotEmpty(message = "菜单编码不能为空")
@ApiModelProperty(value = "菜单编码")
private String menuCode;
@ApiModelProperty(value = "菜单地址")
private String menuUrl;
/**
* 菜单类型
* @see com.mosty.common.base.constant.enums.MenuTypeEnum
*/
@NotNull(message = "菜单类型不能为空")
@ApiModelProperty(value = "菜单类型1、菜单组 2、菜单 3、页面 4、资源")
private Integer menuType;
@NotNull(message = "排序号不能为空")
@ApiModelProperty(value = "排序号")
private Integer orderNo;
@ApiModelProperty(value = "是否展示1、展示 2、不展示")
private Integer showMode;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "按钮标识")
private String buttonResource;
}

View File

@ -0,0 +1,278 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 添加用户信息请求对象
* @author kevin
* @date 2022/2/16 10:11 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class AddSysUserVO implements Serializable {
/**
* 序列化标识
*/
private static final long serialVersionUID = 5407773316739763410L;
/**
* 部门ids
*/
// @NotEmpty(message = "部门ids不能为空")
// @ApiModelProperty(value = "部门ids")
// private List<Long> deptIds;
@ApiModelProperty(value = "所属部门代码")
private String ssbmdm;
/**
* 管理部门ID
*/
@ApiModelProperty(value = "管理部门ID")
private Long managerOrgId;
/**
* 管理部门名称
*/
@ApiModelProperty(value = "管理部门名称")
private String managerOrgName;
/**
* 岗位ID
*/
// @NotNull(message = "岗位id不能为空")
@ApiModelProperty(value = "岗位ID")
private Long positionId;
/**
* 岗位名称
*/
@ApiModelProperty(value = "岗位名称")
private String positionName;
/**
* 登录账号
*/
@ApiModelProperty(value = "登录账号")
// @NotEmpty(message ="登录账号不能为空")
private String loginName;
/**
* 密码
*/
@ApiModelProperty(value = "密码")
// @NotEmpty(message = "密码不能为空")
private String password;
/**
* 用户昵称
*/
@ApiModelProperty(value = "用户昵称")
private String userName;
/**
* 用户类型00系统用户 01注册用户
*/
@ApiModelProperty(value = "用户类型00系统用户默认 01注册用户")
private String userType;
/**
* 用户邮箱
*/
@ApiModelProperty(value = "用户邮箱")
private String email;
/**
* 移动电话
*/
@ApiModelProperty(value = "移动电话")
private String mobile;
/**
* 电话号码
*/
@ApiModelProperty(value = "电话号码")
private String telePhone;
/**
* 身份证号
*/
@ApiModelProperty(value = "id_entity_card")
private String idEntityCard;
/**
* 行业号码(如:警号)
*/
@ApiModelProperty(value = "行业号码(如:警号)")
private String inDustRialId;
/**
* 用户性别0男 1女 2未知
*/
@ApiModelProperty(value = "用户性别0男 1女 2未知")
private String sex;
/**
* 民族
*/
@ApiModelProperty(value = "民族")
private String nation;
/**
* 政治面貌
*/
@ApiModelProperty(value = "政治面貌")
private String politic;
/**
* 婚姻状态
*/
@ApiModelProperty(value = "婚姻状态")
private String marital;
/**
* 人员类别
*/
@ApiModelProperty(value = "人员类别")
private String type;
/**
* 文化程度
*/
@ApiModelProperty(value = "文化程度")
private String whcd;
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String bz;
/**
* 出生日期
*/
@ApiModelProperty(value = "出生日期")
private String birthday;
/**
* 用户有效开始时间,默认为当前日期(用户可改)
*/
@ApiModelProperty(value = " 用户有效开始时间,默认为当前日期(用户可改)")
private Date beginTime;
/**
* 用户有效结束时间,默认空
*/
@ApiModelProperty(value = " 用户有效结束时间,默认空")
private Date endTime;
/**
* 是否虚拟用户1、是 2、不是
*/
@ApiModelProperty(value = "是否虚拟用户1、是 2、不是")
private String isVirtualUser;
/**
* 采集时间
*/
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
/**
* 录入时间
*/
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
/**
* 录入人姓名
*/
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
/**
* 录入人id
*/
@ApiModelProperty(value = "录入人id")
private Long xtLrrid;
/**
* 录入人部门
*/
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
/**
* 录入人部门id
*/
@ApiModelProperty(value = "录入人部门id")
private String xtLrrbmid;
/**
* 录入人部门id
*/
@ApiModelProperty(value = "录入人部门id")
private String xtLrip;
/**
* 最后修改时间
*/
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
/**
* 最后修改人姓名
*/
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
/**
* 最后修改人id
*/
@ApiModelProperty(value = "最后修改人id")
private Long xtZhxgid;
/**
* 最后修改人部门
*/
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
/**
* 最后修改人部门id
*/
@ApiModelProperty(value = "最后修改人部门id")
private Long xtZhxgrbmid;
/**
* 最后修改人ip
*/
@ApiModelProperty(value = "最后修改人ip")
private String xtZhxgrip;
/**
* token登陆
*/
@ApiModelProperty(value = "token登陆")
private String token;
@ApiModelProperty(value = "是否融合 0否 1是")
private String sfrh;
@ApiModelProperty(value = "模块")
private String mk;
}

View File

@ -0,0 +1,33 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class AddUserDeptVO extends Page {
/**
* 部门id
*/
@ApiModelProperty("部门id")
private Long deptId;
/**
* 用户id
*/
@ApiModelProperty("用户id")
private Long userId;
}

View File

@ -0,0 +1,18 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
@Data
@Accessors(chain = true)
public class Base64Str {
@ApiModelProperty(value = "base64字符串")
private String base64;
@ApiModelProperty(value = "文件后缀 png mp4")
private String suffix;
}

View File

@ -0,0 +1,18 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.List;
@Data
@Accessors(chain = true)
public class DataPermissionVO {
@ApiModelProperty(value = "数据权限等级")
private String permissionLevel;
@ApiModelProperty(value = "数据权限对应得部门ids")
private List<Long> deptIds;
}

View File

@ -0,0 +1,23 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
@Accessors(chain = true)
public class DeleteDeptVO {
/**
* 部门id
*/
@ApiModelProperty("部门id")
@NotNull(message = "部门id不能为空")
private Long id;
@ApiModelProperty("注销原因")
@NotBlank(message = "注销原因不能为空")
private String xtZxyy;
}

View File

@ -0,0 +1,19 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.List;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DeleteListVO", description="DeleteList批量")
public class DeleteListVO {
/**
* ID集合
*/
private List<Long> ids;
}

View File

@ -0,0 +1,33 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class DeleteRoleDeptVO extends Page {
/**
* 部门id
*/
@ApiModelProperty("部门id")
private Long deptId;
/**
* 角色ids
*/
@ApiModelProperty("角色ids")
private String roleIds;
}

View File

@ -0,0 +1,33 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class DeleteUserDeptVO extends Page {
/**
* 部门id
*/
@ApiModelProperty("部门id")
private Long deptId;
/**
* 用户id
*/
@ApiModelProperty("用户id")
private String userIds;
}

View File

@ -0,0 +1,32 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mosty.common.core.business.entity.SysDept;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 分页查询部门信息
*
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class DeptPage extends Page<SysDept> {
// 部门名称
private String deptName;
// 部门编码
private String orgCode;
// 部门编码ids
private String ids;
// 是否需要权限 1.不需要权限
private String isAll;
}

View File

@ -0,0 +1,25 @@
package com.mosty.common.core.business.entity.vo;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 分页查询部门信息
*
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class DeptQuery {
// 部门名称
private String deptname;
// 部门编码
private String deptcode;
// 部门父级编码
private Integer parentid;
}

View File

@ -0,0 +1,20 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 组织结构树搜索请求
* @author kevin
* @date 2022/3/27 11:44 AM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class DeptTreeVO {
@ApiModelProperty("搜索关键词")
private String keyword;
}

View File

@ -0,0 +1,56 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author dw
* @since 2022/8/1
* 返回的组织机构对象,包含所属部门 所属分县局 所属地市州
**/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "DeptVo 对象", description = "返回的组织机构对象,包含所属部门 所属分县局 所属地市州")
public class DeptVo implements Serializable, Cloneable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("所属部门ID")
private String deptid;
@ApiModelProperty("所属部门代码")
private String deptcode;
@ApiModelProperty("所属部门名称")
private String deptname;
@ApiModelProperty("部门类型")
private String orgType;
@ApiModelProperty("部门等级")
private String orgLevel;
@ApiModelProperty("所属分县局id")
private String fxjid;
@ApiModelProperty("所属分县局代码")
private String fxjcode;
@ApiModelProperty("所属分现局名称")
private String fxjname;
@ApiModelProperty("所属地市州id")
private String dszid;
@ApiModelProperty("所属地市州代码")
private String dszcode;
@ApiModelProperty("所属地市州名称")
private String dszname;
}

View File

@ -0,0 +1,48 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
* 修改系统菜单
* @author kevin
* @date 2022/2/22 12:51 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class EditSysMenuVO {
@NotNull(message = "菜单id不能为空")
@ApiModelProperty(value = "菜单id")
private Long id;
@NotEmpty(message = "菜单名称不能为空")
@ApiModelProperty(value = "菜单名称")
private String menuName;
@NotEmpty(message = "菜单编码不能为空")
@ApiModelProperty(value = "菜单编码")
private String menuCode;
@ApiModelProperty(value = "菜单地址")
private String menuUrl;
@NotNull(message = "排序号不能为空")
@ApiModelProperty(value = "排序号")
private Integer orderNo;
@ApiModelProperty(value = "是否展示1、展示 2、不展示")
private Integer showMode;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "按钮标识")
private String buttonResource;
}

View File

@ -0,0 +1,24 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 用户分页展示
* @author dw
* @date 2022/2/17 10:04 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class GetUserPage {
@ApiModelProperty("查询方式 1.本部门 2.所有部门")
private String type;
@ApiModelProperty("搜索关键字")
private String keyword;
}

View File

@ -0,0 +1,24 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
@Data
@Accessors(chain = true)
public class GetUserRoleListVo implements Serializable {
@ApiModelProperty("角色id")
@NotNull(message = "角色id不能为空")
private Long roleId;
@ApiModelProperty("菜单ids")
private String userName;
@ApiModelProperty("手机号")
private String phone;
}

View File

@ -0,0 +1,23 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* 登陆返回信息
* @author kevin
* @date 2022/5/25 4:19 下午
* @since 1.0.0
*/
@Data
@Api(tags = "登陆返回body和cookie")
public class LoginResponseVO {
@ApiModelProperty("登陆返回的body")
private String loginResponseBody;
@ApiModelProperty("登陆返回的Set-Cookie键值对")
private String loginResponseCookie;
}

View File

@ -0,0 +1,29 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 分页查询菜单信息
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class MenuPage extends Page {
/**
* 菜单名称
*/
private String menuName;
// /**
// * 岗位状态 -1全部、0正常 2、删除弃用
// */
// private Integer positionStatus;
}

View File

@ -0,0 +1,28 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 分页查询菜单信息
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class MenuQuery {
/**
* 菜单名称
*/
private String menuName;
// /**
// * 岗位状态 -1全部、0正常 2、删除弃用
// */
// private Integer positionStatus;
}

View File

@ -0,0 +1,34 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 分页查询岗位信息
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class PositionPage extends Page {
/**
* 岗位编码
*/
private String positionCode;
/**
* 岗位名称
*/
private String positionName;
// /**
// * 岗位状态 -1全部、0正常 2、删除弃用
// */
// private Integer positionStatus;
}

View File

@ -0,0 +1,33 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 分页查询部门信息
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class RoleByDeptPage extends Page {
/**
* 部门名称
*/
@ApiModelProperty(value = "部门id")
private Long deptId;
/**
* 角色id
*/
@ApiModelProperty(value = "角色id")
private Long roleId;
}

View File

@ -0,0 +1,64 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class RoleDeptVO implements Serializable {
/**
* 部门id
*/
@ApiModelProperty("关联关系id")
private Long id;
/**
* 部门id
*/
@ApiModelProperty("部门id")
private Long deptId;
/**
* 用户id
*/
@ApiModelProperty("角色id")
private Long roleId;
/**
* 角色名称
*/
@ApiModelProperty("角色名称")
private String roleName;
/**
* 角色描述
*/
@ApiModelProperty("角色描述")
private String roleDesc;
@ApiModelProperty("注销标志")
private Integer xtZxbz;
/**
* 录入时间
*/
@ApiModelProperty("录入时间")
private Date xtLrsj;
}

View File

@ -0,0 +1,29 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 分页查询角色信息
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class RolePage extends Page {
/**
* 角色名称
*/
private String roleName;
/**
* 用户id
*/
private String userId;
}

View File

@ -0,0 +1,38 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 角色关联的用户信息分页查询请求
* @author kevin
* @date 2022/2/20 11:24 AM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class RoleUserPage extends Page {
/**
* 登陆名称
*/
@ApiModelProperty("登陆名称")
private String loginName;
/**
* 手机号码
*/
@ApiModelProperty("手机号码")
private String phone;
/**
* 角色id
*/
@ApiModelProperty("角色id")
private Long roleId;
}

View File

@ -0,0 +1,31 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* 用户和角色关联关系
*/
@Data
@Accessors(chain = true)
public class RoleUserVO implements Serializable {
private static final long serialVersionUID = 3289683012945300862L;
@NotEmpty(message = "角色id不能为空")
@NotNull(message = "用户id不能为空")
@ApiModelProperty(value = "用户ID")
private List<Long> userIds;
@NotEmpty(message = "角色id不能为空")
@ApiModelProperty(value = "用户IDS")
private Long roleId;
}

View File

@ -0,0 +1,108 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mosty.common.core.business.entity.SysAppHomeconfigPlateList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* <p>
* app首页-板块表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_app_homeconfig_plate")
@ApiModel(value="SysAppHomeconfigPlate对象", description="app首页-板块表")
public class SysAppHomeconfigPlateVo implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "首页ID")
private Long homeid;
@ApiModelProperty(value = "板块类型00-置顶按钮01-五情板块02-工作任务板块03-概况板块04-风险板块)")
private String bklx;
@ApiModelProperty(value = "板块名称")
private String bkmc;
@ApiModelProperty(value = "板块样式")
private String dyys;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "板块顺序")
private Integer bksx;
@ApiModelProperty(value = "跳转地址")
private String tzdz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
@ApiModelProperty(value = "板块内容集合")
List<SysAppHomeconfigPlateList> plateList;
}

View File

@ -0,0 +1,92 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mosty.common.core.business.entity.SysAppHomeconfigPlateList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* <p>
* app首页表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_app_homeconfig")
@ApiModel(value="SysAppHomeconfig对象", description="app首页表")
public class SysAppHomeconfigRsVO implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "首页名称,如:领导端")
private String homename;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
@ApiModelProperty(value = "板块集合")
List<SysAppHomeconfigPlateVo> plateList;
}

View File

@ -0,0 +1,88 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* app首页表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_app_homeconfig")
@ApiModel(value="SysAppHomeconfig对象", description="app首页表")
public class SysAppHomeconfigVO implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "首页名称,如:领导端")
private String homename;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
}

View File

@ -0,0 +1,176 @@
package com.mosty.common.core.business.entity.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Objects;
/**
* 部门信息
* @author kevin
* @date 2022/2/17 8:48 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class SysDeptVO {
/**
* 子部门集合
*/
@ApiModelProperty(value = "子部门集合")
private List<SysDeptVO> childDeptList;
/**
* 部门id
*/
@ApiModelProperty("部门id")
private Long id;
/**
* 部门代码
*/
@ApiModelProperty("部门代码")
@NotBlank(message = "部门代码不能为空!")
private String orgCode;
/**
* 部门名称
*/
@ApiModelProperty("部门名称")
@NotBlank(message = "部门名称不能为空!")
private String orgName;
/**
* 部门类型
*/
@ApiModelProperty("部门类型")
@NotNull(message = "部门类型不能为空!")
private String orgType;
/**
* 部门等级
*/
@ApiModelProperty("部门等级")
@NotNull(message = "部门等级不能为空!")
private String orgLevel;
/**
* 部门业务类型
*/
@ApiModelProperty("部门业务类型")
@NotNull(message = "部门业务类型不能为空!")
private String orgBizType;
/**
* 部门顺序号
*/
@ApiModelProperty("部门顺序号")
@NotNull(message = "部门顺序号不能为空!")
private String orgNo;
/**
* 上级部门主键
*/
@ApiModelProperty("上级部门主键")
// @NotNull(message = "上级部门主键不能为空!")
private Long parentId;
/**
* 部门名称拼音首字母
*/
@ApiModelProperty("部门名称拼音首字母")
private String bmpyszm;
/**
* 部门简称
*/
@ApiModelProperty("部门简称")
@NotBlank(message = "部门简称不能为空!")
private String orgJc;
/**
* 部门全称
*/
@ApiModelProperty("部门全称")
@NotBlank(message = "部门全称不能为空!")
private String orgQc;
/**
* 部门地址
*/
@ApiModelProperty("部门地址")
@NotBlank(message = "部门地址不能为空!")
private String address;
/**
* 部门电话
*/
@ApiModelProperty("部门电话")
@NotBlank(message = "部门电话不能为空!")
private String linkTel;
/**
* 部门联系人
*/
@ApiModelProperty("部门联系人")
@NotBlank(message = "部门联系人不能为空!")
private String linkMan;
/**
* 部门联系人电话
*/
@ApiModelProperty("部门联系人电话")
@NotBlank(message = "部门联系人电话不能为空!")
private String linkManTel;
/**
* 部门主页
*/
@ApiModelProperty("部门主页")
private String webUrl;
/**
* 部门邮箱
*/
@ApiModelProperty("部门邮箱")
private String email;
/**
* 部门所属行政区划
*/
@ApiModelProperty("部门所属行政区划")
@NotBlank(message = "部门所属行政区划电话不能为空!")
private String xzqh;
/**
* 备注
*/
@ApiModelProperty("备注")
private String bz;
/**
* 根目录地址
*/
@JsonInclude
private String rootPath;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SysDeptVO sysDeptVO = (SysDeptVO) o;
return Objects.equals(childDeptList, sysDeptVO.childDeptList) && Objects.equals(id, sysDeptVO.id) && Objects.equals(orgCode, sysDeptVO.orgCode) && Objects.equals(orgName, sysDeptVO.orgName) && Objects.equals(orgLevel, sysDeptVO.orgLevel) && Objects.equals(parentId, sysDeptVO.parentId) && Objects.equals(bmpyszm, sysDeptVO.bmpyszm) && Objects.equals(rootPath, sysDeptVO.rootPath);
}
@Override
public int hashCode() {
return Objects.hash(childDeptList, id, orgCode, orgName, orgLevel, parentId, bmpyszm, rootPath);
}
}

View File

@ -0,0 +1,62 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
/**
* 角色列表
* @author kevin
* @date 2022/2/18 9:41 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class SysRoleVO implements Serializable {
/**
* 主键id
*/
@ApiModelProperty("角色id")
private Long id;
/**
* 角色名称
*/
@ApiModelProperty("角色名称")
private String roleName;
/**
* 角色编码
*/
@NotEmpty(message = "角色编码不能为空")
@ApiModelProperty("角色编码")
private String roleCode;
/**
* 角色描述
*/
@ApiModelProperty("角色描述")
private String roleDesc;
/**
* 排序号
*/
@ApiModelProperty("排序号")
private Integer orderNo;
/**
* 备注
*/
@ApiModelProperty("备注")
private String bz;
/**
* 数据权限等级
*/
@ApiModelProperty("数据权限等级")
private String dataPermissionLevel;
}

View File

@ -0,0 +1,107 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mosty.common.core.business.entity.SysUserAppHomeconfigPlateList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* <p>
* 用户app首页配置-板块表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user_app_homeconfig_plate")
@ApiModel(value="SysUserAppHomeconfigPlate对象", description="用户app首页配置-板块表")
public class SysUserAppHomeconfigPlateVo implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "配置id")
private Long pzId;
@ApiModelProperty(value = "板块id")
private Long plateId;
@ApiModelProperty(value = "板块类型00-置顶按钮01-五情板块02-工作任务板块03-概况板块04-风险板块)")
private String bklx;
@ApiModelProperty(value = "板块名称")
private String bkmc;
@ApiModelProperty(value = "板块内容数")
private Integer bknrs;
@ApiModelProperty(value = "板块顺序")
private Integer bksx;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
@ApiModelProperty(value = "用户板块内容集合")
List<SysUserAppHomeconfigPlateList> plateList;
}

View File

@ -0,0 +1,112 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* <p>
* 用户app首页配置表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user_app_homeconfig")
@ApiModel(value="SysUserAppHomeconfig对象", description="用户app首页配置表")
public class SysUserAppHomeconfigVo implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "主键id")
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@ApiModelProperty(value = "首页id")
private Long homeid;
@ApiModelProperty(value = "首页名称")
private String homename;
@ApiModelProperty(value = "用户id")
private Long userId;
@ApiModelProperty(value = "用户身份证号")
private String userSfzh;
@ApiModelProperty(value = "用户姓名")
private String userXm;
@ApiModelProperty(value = "配置时间")
private Date pzsj;
@ApiModelProperty(value = "配置板块数")
private Integer pzbks;
@ApiModelProperty(value = "色调01-蓝色02-白色")
private String sd;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人ID")
private String xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门ID")
private String xtLrrbmid;
@ApiModelProperty(value = "录入IP")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人ID")
private String xtZhxgrid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门ID")
private String xtZhxgrbmid;
@ApiModelProperty(value = "最后修改IP")
private String xtZhxgip;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyy;
@ApiModelProperty(value = "用户板块集合")
List<SysUserAppHomeconfigPlateVo> plates;
}

View File

@ -0,0 +1,90 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 用户信息视图
*
* @author kevin
* @date 2022/2/17 10:08 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class SysUserDeptVO {
@ApiModelProperty(value = "用户ID")
private Long id;
@ApiModelProperty(value = "岗位ID")
private Long positionId;
@ApiModelProperty(value = "岗位名称")
private String positionName;
@ApiModelProperty(value = "登录账号")
private String loginName;
@ApiModelProperty(value = "用户昵称")
private String userName;
@ApiModelProperty(value = "移动电话")
private String mobile;
@ApiModelProperty(value = "电话号码")
private String telePhone;
@ApiModelProperty(value = "用户性别0男 1女 2未知")
private String sex;
@ApiModelProperty(value = "民族")
private String nation;
@ApiModelProperty(value = "政治面貌")
private String politic;
@ApiModelProperty(value = "婚姻状态")
private String marital;
@ApiModelProperty(value = "人员类别")
private String type;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "部门id")
private Long deptId;
@ApiModelProperty(value = "部门名称")
private String deptName;
@ApiModelProperty(value = "证件号码")
private String idEntityCard;
@ApiModelProperty(value = "文化程度")
private String whcd;
@ApiModelProperty(value = "文化程度")
private String hylb;
@ApiModelProperty(value = "行业号")
private String inDustRialId;
@ApiModelProperty(value = "是否虚拟用户")
private String isVirtualUser;
@ApiModelProperty(value = "是否在线 SYS_SF 0.否 1.是")
private boolean sfzx;
@ApiModelProperty(value = "是否融合")
private String sfrh;
@ApiModelProperty(value = "是否融合")
private String mk;
}

View File

@ -0,0 +1,97 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
@Data
@Accessors(chain = true)
public class SysUserEditVO {
@NotEmpty(message = "用户绑定的部门不能为空")
@ApiModelProperty(value = "用户绑定的部门id集合")
private List<Long> deptIds;
@ApiModelProperty(value = "所属部门代码")
private String ssbmdm;
@NotNull(message = "用户id不能为空")
@ApiModelProperty(value = "用户ID")
private Long id;
// @NotNull(message = "岗位id不能为空")
@ApiModelProperty(value = "岗位ID")
private Long positionId;
@ApiModelProperty(value = "登录账号")
private String loginName;
@ApiModelProperty(value = "岗位名称")
private String positionName;
@ApiModelProperty(value = "用户昵称")
private String userName;
@ApiModelProperty(value = "用户邮箱")
private String email;
@ApiModelProperty(value = "移动电话")
private String mobile;
@ApiModelProperty(value = "行业号码(如:警号)")
private String inDustRialId;
@ApiModelProperty(value = "用户类型00系统用户 01注册用户")
private String userType;
@ApiModelProperty(value = "电话号码")
private String telePhone;
@ApiModelProperty(value = "是否虚拟用户1、是 2、不是")
private String isVirtualUser;
@ApiModelProperty(value = "用户性别0男 1女 2未知")
private String sex;
@ApiModelProperty(value = "民族")
private String nation;
@ApiModelProperty(value = "政治面貌")
private String politic;
@ApiModelProperty(value = "婚姻状态")
private String marital;
@ApiModelProperty(value = "人员类别")
private String type;
@ApiModelProperty(value = "文化程度")
private String whcd;
@ApiModelProperty(value = "身份证号")
private String idEntityCard;
@ApiModelProperty(value = "出生日期")
private String birthday;
@ApiModelProperty(value = "用户有效开始时间,默认为当前日期(用户可改)")
private Date beginTime;
@ApiModelProperty(value = "用户有效结束时间,默认空")
private Date endTime;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "是否融合 0否 1是")
private String sfrh;
@ApiModelProperty(value = "模块")
private String mk;
}

View File

@ -0,0 +1,50 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* 用户app首页配置表
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user_app_homeconfig")
@ApiModel(value="SysUserAppHomeconfig对象", description="用户app首页配置表")
public class SysUserHomeconfigVo implements Serializable {
private static final long serialVersionUID=1L;
@ApiModelProperty(value = "首页id")
private Long homeid;
@ApiModelProperty(value = "首页名称")
private String homename;
@ApiModelProperty(value = "用户id")
private Long userId;
@ApiModelProperty(value = "用户身份证号")
private String userSfzh;
@ApiModelProperty(value = "用户姓名")
private String userXm;
@ApiModelProperty(value = "色调01-蓝色02-白色")
private String sd;
}

View File

@ -0,0 +1,158 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mosty.common.base.autoconfig.Desensitization;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;
/**
* 用户信息视图
* @author kevin
* @date 2022/2/17 10:08 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class SysUserInfoVO {
@ApiModelProperty(value = "用户ID")
private Long id;
@ApiModelProperty(value = "部门Ids")
private List<Long> deptIds;
@ApiModelProperty(value = "所属部门代码")
private String ssbmdm;
@ApiModelProperty(value = "所属部门")
private String ssbm;
@ApiModelProperty(value = "管理部门ID")
private Long managerOrgId;
@ApiModelProperty(value = "管理部门名称")
private String managerOrgName;
@ApiModelProperty(value = "岗位ID")
private Long positionId;
@ApiModelProperty(value = "岗位名称")
private String positionName;
@ApiModelProperty(value = "是否虚拟用户1、是 2、不是")
private String isVirtualUser;
@ApiModelProperty(value = "登录账号")
private String loginName;
@ApiModelProperty(value = "用户昵称")
private String userName;
@ApiModelProperty(value = "用户类型00系统用户 01注册用户")
private String userType;
@ApiModelProperty(value = "用户邮箱")
private String email;
@ApiModelProperty(value = "移动电话")
private String mobile;
@ApiModelProperty(value = "电话号码")
private String telePhone;
@ApiModelProperty(value = "身份证号")
private String idEntityCard;
@ApiModelProperty(value = "行业号码(如:警号)")
private String inDustRialId;
@ApiModelProperty(value = "用户性别0男 1女 2未知")
private String sex;
@ApiModelProperty(value = "民族")
private String nation;
@ApiModelProperty(value = "政治面貌")
private String politic;
@ApiModelProperty(value = "婚姻状态")
private String marital;
@ApiModelProperty(value = "人员类别")
private String type;
@ApiModelProperty(value = "文化程度")
private String whcd;
@ApiModelProperty(value = "备注")
private String bz;
@ApiModelProperty(value = "出生日期")
private String birthday;
@ApiModelProperty(value = "用户有效开始时间,默认为当前日期(用户可改)")
private Date beginTime;
@ApiModelProperty(value = "用户有效结束时间,默认空")
private Date endTime;
@ApiModelProperty(value = "注销标志0正常 1.注销")
private Integer xtZxbz;
@ApiModelProperty(value = "注销原因")
private String xtZxyz;
@ApiModelProperty(value = "采集时间")
private Date xtCjsj;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "录入人姓名")
private String xtLrrxm;
@ApiModelProperty(value = "录入人id")
private Long xtLrrid;
@ApiModelProperty(value = "录入人部门")
private String xtLrrbm;
@ApiModelProperty(value = "录入人部门id")
private String xtLrrbmid;
@ApiModelProperty(value = "录入人部门id")
private String xtLrip;
@ApiModelProperty(value = "最后修改时间")
private Date xtZhxgsj;
@ApiModelProperty(value = "最后修改人姓名")
private String xtZhxgrxm;
@ApiModelProperty(value = "最后修改人id")
private Long xtZhxgid;
@ApiModelProperty(value = "最后修改人部门")
private String xtZhxgrbm;
@ApiModelProperty(value = "最后修改人部门id")
private Long xtZhxgrbmid;
@ApiModelProperty(value = "最后修改人ip")
private String xtZhxgrip;
@ApiModelProperty(value = "是否融合")
private String sfrh;
@ApiModelProperty(value = "模块")
private String mk;
}

View File

@ -0,0 +1,74 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mosty.common.base.autoconfig.Desensitization;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
/**
* 用户信息视图
* @author kevin
* @date 2022/2/17 10:08 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class SysUserVO {
@ApiModelProperty(value = "用户ID")
private Long id;
@ApiModelProperty(value = "岗位ID")
private Long positionId;
@ApiModelProperty(value = "岗位名称")
private String positionName;
@ApiModelProperty(value = "登录账号")
private String loginName;
@ApiModelProperty(value = "用户昵称")
private String userName;
@ApiModelProperty(value = "移动电话")
private String mobile;
@ApiModelProperty(value = "电话号码")
private String telePhone;
@ApiModelProperty(value = "用户性别0男 1女 2未知")
private String sex;
@ApiModelProperty(value = "录入时间")
private Date xtLrsj;
@ApiModelProperty(value = "行业类别")
private String inDustRialId;
@ApiModelProperty(value = "身份证号")
private String idEntityCard;
@ApiModelProperty(value = "部门id")
private Long deptId;
@ApiModelProperty(value = "部门编码")
private String deptCode;
@ApiModelProperty(value = "部门名称")
private String deptName;
@ApiModelProperty(value = "部门简称称")
private String deptJc;
@ApiModelProperty(value = "是否融合")
private String sfrh;
@ApiModelProperty(value = "是否融合")
private String mk;
}

View File

@ -0,0 +1,26 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* 用户和角色关联关系
*/
@Data
@Accessors(chain = true)
public class UnboundUserRoleVO implements Serializable {
private static final long serialVersionUID = 3289683012945300862L;
@NotEmpty(message = "关联关系ids")
@ApiModelProperty(value = "关联关系ids")
private List<Long> ids;
}

View File

@ -0,0 +1,33 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 分页查询部门信息
* @author kevin
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserByDeptPage extends Page {
/**
* 部门名称
*/
@ApiModelProperty(value = "部门id")
private Long deptId;
/**
* 用户id
*/
@ApiModelProperty(value = "用户id")
private Long userId;
}

View File

@ -0,0 +1,43 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.List;
/**
* 用户部门分页展示
* @author kevin
* @date 2022/6/5 2:36 下午
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserDeptPage extends Page {
@ApiModelProperty("登陆名称")
private String loginName;
@ApiModelProperty("电话号码")
private String phone;
@ApiModelProperty("部门名称")
private String deptName;
@ApiModelProperty("部门Id")
private String deptId;
@ApiModelProperty("orgcode")
private String orgcode;
@ApiModelProperty("ssbmdm")
private String ssbmdm;
@ApiModelProperty("部门id集合")
private List<String> deptList;
}

View File

@ -0,0 +1,61 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* 添加 部门 用户关联关系
* @author liyan
* @date 2022/2/9 8:53 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
public class UserDeptVO implements Serializable {
/**
* 部门id
*/
@ApiModelProperty("关联关系id")
private Long id;
/**
* 部门id
*/
@ApiModelProperty("部门id")
private Long deptId;
/**
* 用户id
*/
@ApiModelProperty("用户id")
private Long userId;
/**
* 用户昵称
*/
@ApiModelProperty("用户昵称")
private String userName;
/**
* 登录账号
*/
@ApiModelProperty("登录账号")
private String loginName;
@ApiModelProperty("注销标志")
private Integer xtZxbz;
/**
* 录入时间
*/
@ApiModelProperty("录入时间")
private Date xtLrsj;
}

View File

@ -0,0 +1,44 @@
package com.mosty.common.core.business.entity.vo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mosty.common.core.business.entity.SysUser;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 用户分页展示
* @author kevin
* @date 2022/2/17 10:04 PM
* @since 1.0.0
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class UserPage extends Page<SysUser> {
@ApiModelProperty("部门id左边组织机构树选中的部门id")
private String deptId;
@ApiModelProperty("登陆名称")
private String loginName;
@ApiModelProperty("电话号码")
private String phone;
@ApiModelProperty("角色id")
private Long roleId;
@ApiModelProperty("orgcode")
private String orgcode;
@ApiModelProperty("是否包含下级")
private String isChild;
@ApiModelProperty("身份证")
private String idEntityCard;
@ApiModelProperty("行业号码(如:警号)")
private String inDustRialId;
}

View File

@ -0,0 +1,31 @@
package com.mosty.common.core.business.entity.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* 用户和角色关联关系
*/
@Data
@Accessors(chain = true)
public class UserRoleVO implements Serializable {
private static final long serialVersionUID = 3289683012945300862L;
@NotNull(message = "用户id不能为空")
@ApiModelProperty(value = "用户ID")
private Long userId;
@NotEmpty(message = "角色id不能为空")
@ApiModelProperty(value = "用户IDS")
private List<Long> roleIds;
}

View File

@ -0,0 +1,19 @@
package com.mosty.common.core.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mosty.common.core.business.entity.SysAppHomeconfig;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* app首页表 Mapper 接口
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
public interface SysAppHomeconfigMapper extends BaseMapper<SysAppHomeconfig> {
}

View File

@ -0,0 +1,23 @@
package com.mosty.common.core.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mosty.common.core.business.entity.SysAppHomeconfigPlateList;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* app首页配置-板块内容表 Mapper 接口
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
public interface SysAppHomeconfigPlateListMapper extends BaseMapper<SysAppHomeconfigPlateList> {
/**
* 根据首页ID删除
* @param plateId
*/
void deleteByPlateId(@Param("plateId") Long plateId);
}

View File

@ -0,0 +1,23 @@
package com.mosty.common.core.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mosty.common.core.business.entity.SysAppHomeconfigPlate;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* app首页-板块表 Mapper 接口
* </p>
*
* @author zengbo
* @since 2022-08-18
*/
public interface SysAppHomeconfigPlateMapper extends BaseMapper<SysAppHomeconfigPlate> {
/**
* 根据首页ID删除
* @param homeid
*/
void deleteByHomeid(@Param("homeid") Long homeid);
}

View File

@ -0,0 +1,47 @@
package com.mosty.common.core.business.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mosty.common.core.business.entity.SysDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mosty.common.core.business.entity.SysRole;
import com.mosty.common.core.business.entity.SysUser;
import com.mosty.common.core.business.entity.vo.RoleByDeptPage;
import com.mosty.common.core.business.entity.vo.RoleDeptVO;
import com.mosty.common.core.business.entity.vo.UserByDeptPage;
import com.mosty.common.core.business.entity.vo.UserDeptVO;
import com.mosty.common.core.login.dto.DeptDTO;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author li
* @description 针对表【sys_dept(部门表)】的数据库操作Mapper
* @createDate 2022-02-12 16:52:58
* @Entity generator.domain.SysDept
*/
public interface SysDeptMapper extends BaseMapper<SysDept> {
@ApiOperation("查询用户关联的部门id集合")
List<DeptDTO> selectUserDeptList(@Param("userId") Long userId);
@ApiOperation("分页查询部门下用户信息")
IPage<UserDeptVO> selectUserPageByDept(@Param("param") UserByDeptPage userByDeptPage);
@ApiOperation("分页查询部门下角色信息")
IPage<RoleDeptVO> selectRolePageByDept(@Param("param") RoleByDeptPage roleByDeptPage);
@ApiOperation("查询用户的所属部门")
SysDept getDeptByUserId(Long id);
@ApiOperation("查询下级部门")
List<SysDept> getDeptListByParentId(@Param("parentid") Integer parentid, @Param("deptname") String deptname);
@ApiOperation("查询下级部门")
List<SysDept> getDeptListByOrgcode(@Param("deptCode") String deptCode, @Param("deptname") String deptname);
}

View File

@ -0,0 +1,26 @@
package com.mosty.common.core.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mosty.common.core.business.entity.SysLogininfor;
/**
* @author li
* @description 针对表【sys_logininfor(系统访问记录)】的数据库操作Mapper
* @createDate 2022-03-20 15:01:16
*/
public interface SysLogininforMapper extends BaseMapper<SysLogininfor> {
/**
* 删除日志
* @param toStrArray
*/
void deleteOperLogByIds(String[] toStrArray);
/**
* 清空日志
*/
void cleanOperLog();
}

View File

@ -0,0 +1,16 @@
package com.mosty.common.core.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mosty.common.core.business.entity.SysMenu;
/**
* <p>
* 菜单表 Mapper 接口
* </p>
*
* @author kevin
* @since 2022-02-12
*/
public interface SysMenuMapper extends BaseMapper<SysMenu> {
}

View File

@ -0,0 +1,16 @@
package com.mosty.common.core.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mosty.common.core.business.entity.SysOss;
/**
* <p>
* OSS云存储表 Mapper 接口
* </p>
*
* @author zengbo
* @since 2022-08-31
*/
public interface SysOssMapper extends BaseMapper<SysOss> {
}

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