Pre Merge pull request !65 from 安卫国/master
This commit is contained in:
commit
821d3ef494
21
pom.xml
21
pom.xml
|
|
@ -22,6 +22,8 @@
|
||||||
<spring-cloud-alibaba.version>2.2.5.RELEASE</spring-cloud-alibaba.version>
|
<spring-cloud-alibaba.version>2.2.5.RELEASE</spring-cloud-alibaba.version>
|
||||||
<spring-boot-admin.version>2.3.1</spring-boot-admin.version>
|
<spring-boot-admin.version>2.3.1</spring-boot-admin.version>
|
||||||
<spring-boot.mybatis>2.1.4</spring-boot.mybatis>
|
<spring-boot.mybatis>2.1.4</spring-boot.mybatis>
|
||||||
|
<spring-boot.mybatisplus>3.4.3</spring-boot.mybatisplus>
|
||||||
|
<spring-boot.mavenplugin.version>2.3.0.RELEASE</spring-boot.mavenplugin.version>
|
||||||
<swagger.fox.version>2.9.2</swagger.fox.version>
|
<swagger.fox.version>2.9.2</swagger.fox.version>
|
||||||
<swagger.core.version>1.5.24</swagger.core.version>
|
<swagger.core.version>1.5.24</swagger.core.version>
|
||||||
<tobato.version>1.26.5</tobato.version>
|
<tobato.version>1.26.5</tobato.version>
|
||||||
|
|
@ -36,6 +38,7 @@
|
||||||
<minio.version>8.0.3</minio.version>
|
<minio.version>8.0.3</minio.version>
|
||||||
<poi.version>4.1.2</poi.version>
|
<poi.version>4.1.2</poi.version>
|
||||||
<common-pool.version>2.6.2</common-pool.version>
|
<common-pool.version>2.6.2</common-pool.version>
|
||||||
|
<lombok.version>1.18.20</lombok.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- 依赖声明 -->
|
<!-- 依赖声明 -->
|
||||||
|
|
@ -84,10 +87,15 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Mybatis 依赖配置 -->
|
<!-- Mybatis 依赖配置 -->
|
||||||
|
<!-- <dependency>-->
|
||||||
|
<!-- <groupId>org.mybatis.spring.boot</groupId>-->
|
||||||
|
<!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
|
||||||
|
<!-- <version>${spring-boot.mybatis}</version>-->
|
||||||
|
<!-- </dependency>-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mybatis.spring.boot</groupId>
|
<groupId>com.baomidou</groupId>
|
||||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
<version>${spring-boot.mybatis}</version>
|
<version>${spring-boot.mybatisplus}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Swagger 依赖配置 -->
|
<!-- Swagger 依赖配置 -->
|
||||||
|
|
@ -157,6 +165,13 @@
|
||||||
<version>${fastjson.version}</version>
|
<version>${fastjson.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- lombok -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>${lombok.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- 公共资源池 -->
|
<!-- 公共资源池 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM java:8-jdk
|
||||||
|
|
||||||
|
#作者
|
||||||
|
MAINTAINER awg
|
||||||
|
|
||||||
|
#系统编码和时区
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# 复制jar文件到镜像内,名字改为app.jar
|
||||||
|
ADD /target/*.jar app.jar
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Xmx32M -Xms32M"
|
||||||
|
|
||||||
|
# 启动容器时的进程
|
||||||
|
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
|
||||||
|
|
||||||
|
# 暴露接口
|
||||||
|
EXPOSE 9200
|
||||||
|
|
@ -65,6 +65,13 @@
|
||||||
<artifactId>fastjson</artifactId>
|
<artifactId>fastjson</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- lombok -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- Apache Lang3 -->
|
<!-- Apache Lang3 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM java:8-jdk
|
||||||
|
|
||||||
|
#作者
|
||||||
|
MAINTAINER awg
|
||||||
|
|
||||||
|
#系统编码和时区
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# 复制jar文件到镜像内,名字改为app.jar
|
||||||
|
ADD /target/*.jar app.jar
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Xmx64M -Xms64M"
|
||||||
|
|
||||||
|
# 启动容器时的进程
|
||||||
|
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
|
||||||
|
|
||||||
|
# 暴露接口
|
||||||
|
EXPOSE 8080
|
||||||
|
|
@ -90,6 +90,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.mavenplugin.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM java:8-jdk
|
||||||
|
|
||||||
|
#作者
|
||||||
|
MAINTAINER awg
|
||||||
|
|
||||||
|
#系统编码和时区
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# 复制jar文件到镜像内,名字改为app.jar
|
||||||
|
ADD /target/*.jar app.jar
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Xmx32M -Xms32M"
|
||||||
|
|
||||||
|
# 启动容器时的进程
|
||||||
|
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
|
||||||
|
|
||||||
|
# 暴露接口
|
||||||
|
EXPOSE 9300
|
||||||
|
|
@ -74,6 +74,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.mavenplugin.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM java:8-jdk
|
||||||
|
|
||||||
|
#作者
|
||||||
|
MAINTAINER awg
|
||||||
|
|
||||||
|
#系统编码和时区
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# 复制jar文件到镜像内,名字改为app.jar
|
||||||
|
ADD /target/*.jar app.jar
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Xmx64M -Xms64M"
|
||||||
|
|
||||||
|
# 启动容器时的进程
|
||||||
|
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
|
||||||
|
|
||||||
|
# 暴露接口
|
||||||
|
EXPOSE 9202
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM java:8-jdk
|
||||||
|
|
||||||
|
#作者
|
||||||
|
MAINTAINER awg
|
||||||
|
|
||||||
|
#系统编码和时区
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# 复制jar文件到镜像内,名字改为app.jar
|
||||||
|
ADD /target/*.jar app.jar
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Xmx64M -Xms64M"
|
||||||
|
|
||||||
|
# 启动容器时的进程
|
||||||
|
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
|
||||||
|
|
||||||
|
# 暴露接口
|
||||||
|
EXPOSE 9203
|
||||||
|
|
@ -66,6 +66,12 @@
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Mybatis-plus -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- RuoYi Common Log -->
|
<!-- RuoYi Common Log -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ruoyi</groupId>
|
<groupId>com.ruoyi</groupId>
|
||||||
|
|
@ -86,6 +92,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.mavenplugin.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,15 @@ package com.ruoyi.job.domain;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
|
@ -19,141 +26,127 @@ import com.ruoyi.job.util.CronUtils;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysJob extends BaseEntity implements Serializable
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_job")
|
||||||
|
public class SysJob implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 任务ID */
|
/**
|
||||||
|
* 任务ID
|
||||||
|
*/
|
||||||
@Excel(name = "任务序号", cellType = ColumnType.NUMERIC)
|
@Excel(name = "任务序号", cellType = ColumnType.NUMERIC)
|
||||||
|
@TableId(value = "job_id", type = IdType.AUTO)
|
||||||
private Long jobId;
|
private Long jobId;
|
||||||
|
|
||||||
/** 任务名称 */
|
/**
|
||||||
|
* 任务名称
|
||||||
|
*/
|
||||||
@Excel(name = "任务名称")
|
@Excel(name = "任务名称")
|
||||||
|
@NotBlank(message = "任务名称不能为空")
|
||||||
|
@Size(min = 0, max = 64, message = "任务名称不能超过64个字符")
|
||||||
private String jobName;
|
private String jobName;
|
||||||
|
|
||||||
/** 任务组名 */
|
/**
|
||||||
|
* 任务组名
|
||||||
|
*/
|
||||||
@Excel(name = "任务组名")
|
@Excel(name = "任务组名")
|
||||||
private String jobGroup;
|
private String jobGroup;
|
||||||
|
|
||||||
/** 调用目标字符串 */
|
/**
|
||||||
|
* 调用目标字符串
|
||||||
|
*/
|
||||||
@Excel(name = "调用目标字符串")
|
@Excel(name = "调用目标字符串")
|
||||||
|
@NotBlank(message = "调用目标字符串不能为空")
|
||||||
|
@Size(min = 0, max = 500, message = "调用目标字符串长度不能超过500个字符")
|
||||||
private String invokeTarget;
|
private String invokeTarget;
|
||||||
|
|
||||||
/** cron执行表达式 */
|
/**
|
||||||
|
* cron执行表达式
|
||||||
|
*/
|
||||||
@Excel(name = "执行表达式 ")
|
@Excel(name = "执行表达式 ")
|
||||||
|
@NotBlank(message = "Cron执行表达式不能为空")
|
||||||
|
@Size(min = 0, max = 255, message = "Cron执行表达式不能超过255个字符")
|
||||||
private String cronExpression;
|
private String cronExpression;
|
||||||
|
|
||||||
/** cron计划策略 */
|
/**
|
||||||
|
* cron计划策略
|
||||||
|
*/
|
||||||
@Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
|
@Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行")
|
||||||
private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT;
|
private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT;
|
||||||
|
|
||||||
/** 是否并发执行(0允许 1禁止) */
|
/**
|
||||||
|
* 是否并发执行(0允许 1禁止)
|
||||||
|
*/
|
||||||
@Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止")
|
@Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止")
|
||||||
private String concurrent;
|
private String concurrent;
|
||||||
|
|
||||||
/** 任务状态(0正常 1暂停) */
|
/**
|
||||||
|
* 任务状态(0正常 1暂停)
|
||||||
|
*/
|
||||||
@Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停")
|
@Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
public Long getJobId()
|
/**
|
||||||
{
|
* 下次执行时间
|
||||||
return jobId;
|
*/
|
||||||
}
|
private Date nextValidTime;
|
||||||
|
|
||||||
public void setJobId(Long jobId)
|
|
||||||
{
|
|
||||||
this.jobId = jobId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotBlank(message = "任务名称不能为空")
|
|
||||||
@Size(min = 0, max = 64, message = "任务名称不能超过64个字符")
|
|
||||||
public String getJobName()
|
|
||||||
{
|
|
||||||
return jobName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJobName(String jobName)
|
|
||||||
{
|
|
||||||
this.jobName = jobName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getJobGroup()
|
|
||||||
{
|
|
||||||
return jobGroup;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJobGroup(String jobGroup)
|
|
||||||
{
|
|
||||||
this.jobGroup = jobGroup;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotBlank(message = "调用目标字符串不能为空")
|
|
||||||
@Size(min = 0, max = 500, message = "调用目标字符串长度不能超过500个字符")
|
|
||||||
public String getInvokeTarget()
|
|
||||||
{
|
|
||||||
return invokeTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setInvokeTarget(String invokeTarget)
|
|
||||||
{
|
|
||||||
this.invokeTarget = invokeTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotBlank(message = "Cron执行表达式不能为空")
|
|
||||||
@Size(min = 0, max = 255, message = "Cron执行表达式不能超过255个字符")
|
|
||||||
public String getCronExpression()
|
|
||||||
{
|
|
||||||
return cronExpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCronExpression(String cronExpression)
|
|
||||||
{
|
|
||||||
this.cronExpression = cronExpression;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
public Date getNextValidTime()
|
public Date getNextValidTime() {
|
||||||
{
|
if (StringUtils.isNotEmpty(cronExpression)) {
|
||||||
if (StringUtils.isNotEmpty(cronExpression))
|
|
||||||
{
|
|
||||||
return CronUtils.getNextExecution(cronExpression);
|
return CronUtils.getNextExecution(cronExpression);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMisfirePolicy()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return misfirePolicy;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setMisfirePolicy(String misfirePolicy)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.misfirePolicy = misfirePolicy;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
public String getConcurrent()
|
/**
|
||||||
{
|
* 更新者
|
||||||
return concurrent;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
public void setConcurrent(String concurrent)
|
/**
|
||||||
{
|
* 更新时间
|
||||||
this.concurrent = concurrent;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
public String getStatus()
|
/**
|
||||||
{
|
* 备注
|
||||||
return status;
|
*/
|
||||||
}
|
private String remark;
|
||||||
|
|
||||||
public void setStatus(String status)
|
/**
|
||||||
{
|
* 搜索值
|
||||||
this.status = status;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求参数
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Map<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("jobId", getJobId())
|
.append("jobId", getJobId())
|
||||||
.append("jobName", getJobName())
|
.append("jobName", getJobName())
|
||||||
.append("jobGroup", getJobGroup())
|
.append("jobGroup", getJobGroup())
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,15 @@
|
||||||
package com.ruoyi.job.domain;
|
package com.ruoyi.job.domain;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
|
@ -11,137 +20,113 @@ import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysJobLog extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_job_log")
|
||||||
|
public class SysJobLog implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** ID */
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
@Excel(name = "日志序号")
|
@Excel(name = "日志序号")
|
||||||
|
@TableId(value = "job_log_id", type = IdType.AUTO)
|
||||||
private Long jobLogId;
|
private Long jobLogId;
|
||||||
|
|
||||||
/** 任务名称 */
|
/**
|
||||||
|
* 任务名称
|
||||||
|
*/
|
||||||
@Excel(name = "任务名称")
|
@Excel(name = "任务名称")
|
||||||
private String jobName;
|
private String jobName;
|
||||||
|
|
||||||
/** 任务组名 */
|
/**
|
||||||
|
* 任务组名
|
||||||
|
*/
|
||||||
@Excel(name = "任务组名")
|
@Excel(name = "任务组名")
|
||||||
private String jobGroup;
|
private String jobGroup;
|
||||||
|
|
||||||
/** 调用目标字符串 */
|
/**
|
||||||
|
* 调用目标字符串
|
||||||
|
*/
|
||||||
@Excel(name = "调用目标字符串")
|
@Excel(name = "调用目标字符串")
|
||||||
private String invokeTarget;
|
private String invokeTarget;
|
||||||
|
|
||||||
/** 日志信息 */
|
/**
|
||||||
|
* 日志信息
|
||||||
|
*/
|
||||||
@Excel(name = "日志信息")
|
@Excel(name = "日志信息")
|
||||||
private String jobMessage;
|
private String jobMessage;
|
||||||
|
|
||||||
/** 执行状态(0正常 1失败) */
|
/**
|
||||||
|
* 执行状态(0正常 1失败)
|
||||||
|
*/
|
||||||
@Excel(name = "执行状态", readConverterExp = "0=正常,1=失败")
|
@Excel(name = "执行状态", readConverterExp = "0=正常,1=失败")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/** 异常信息 */
|
/**
|
||||||
|
* 异常信息
|
||||||
|
*/
|
||||||
@Excel(name = "异常信息")
|
@Excel(name = "异常信息")
|
||||||
private String exceptionInfo;
|
private String exceptionInfo;
|
||||||
|
|
||||||
/** 开始时间 */
|
/**
|
||||||
|
* 开始时间
|
||||||
|
*/
|
||||||
private Date startTime;
|
private Date startTime;
|
||||||
|
|
||||||
/** 停止时间 */
|
/**
|
||||||
|
* 停止时间
|
||||||
|
*/
|
||||||
private Date stopTime;
|
private Date stopTime;
|
||||||
|
|
||||||
public Long getJobLogId()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return jobLogId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setJobLogId(Long jobLogId)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.jobLogId = jobLogId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
public String getJobName()
|
/**
|
||||||
{
|
* 更新者
|
||||||
return jobName;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
public void setJobName(String jobName)
|
/**
|
||||||
{
|
* 更新时间
|
||||||
this.jobName = jobName;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
public String getJobGroup()
|
/**
|
||||||
{
|
* 备注
|
||||||
return jobGroup;
|
*/
|
||||||
}
|
private String remark;
|
||||||
|
|
||||||
public void setJobGroup(String jobGroup)
|
/**
|
||||||
{
|
* 搜索值
|
||||||
this.jobGroup = jobGroup;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
public String getInvokeTarget()
|
/**
|
||||||
{
|
* 请求参数
|
||||||
return invokeTarget;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private Map<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
public void setInvokeTarget(String invokeTarget)
|
|
||||||
{
|
|
||||||
this.invokeTarget = invokeTarget;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getJobMessage()
|
|
||||||
{
|
|
||||||
return jobMessage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJobMessage(String jobMessage)
|
|
||||||
{
|
|
||||||
this.jobMessage = jobMessage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getExceptionInfo()
|
|
||||||
{
|
|
||||||
return exceptionInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setExceptionInfo(String exceptionInfo)
|
|
||||||
{
|
|
||||||
this.exceptionInfo = exceptionInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getStartTime()
|
|
||||||
{
|
|
||||||
return startTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStartTime(Date startTime)
|
|
||||||
{
|
|
||||||
this.startTime = startTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getStopTime()
|
|
||||||
{
|
|
||||||
return stopTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStopTime(Date stopTime)
|
|
||||||
{
|
|
||||||
this.stopTime = stopTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("jobLogId", getJobLogId())
|
.append("jobLogId", getJobLogId())
|
||||||
.append("jobName", getJobName())
|
.append("jobName", getJobName())
|
||||||
.append("jobGroup", getJobGroup())
|
.append("jobGroup", getJobGroup())
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
package com.ruoyi.job.mapper;
|
package com.ruoyi.job.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.ruoyi.job.domain.SysJobLog;
|
import com.ruoyi.job.domain.SysJobLog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -8,7 +10,7 @@ import com.ruoyi.job.domain.SysJobLog;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysJobLogMapper
|
public interface SysJobLogMapper extends BaseMapper<SysJobLog>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 获取quartz调度器日志的计划任务
|
* 获取quartz调度器日志的计划任务
|
||||||
|
|
@ -16,14 +18,14 @@ public interface SysJobLogMapper
|
||||||
* @param jobLog 调度日志信息
|
* @param jobLog 调度日志信息
|
||||||
* @return 调度任务日志集合
|
* @return 调度任务日志集合
|
||||||
*/
|
*/
|
||||||
public List<SysJobLog> selectJobLogList(SysJobLog jobLog);
|
List<SysJobLog> selectJobLogList(SysJobLog jobLog);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有调度任务日志
|
* 查询所有调度任务日志
|
||||||
*
|
*
|
||||||
* @return 调度任务日志列表
|
* @return 调度任务日志列表
|
||||||
*/
|
*/
|
||||||
public List<SysJobLog> selectJobLogAll();
|
List<SysJobLog> selectJobLogAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过调度任务日志ID查询调度信息
|
* 通过调度任务日志ID查询调度信息
|
||||||
|
|
@ -31,7 +33,7 @@ public interface SysJobLogMapper
|
||||||
* @param jobLogId 调度任务日志ID
|
* @param jobLogId 调度任务日志ID
|
||||||
* @return 调度任务日志对象信息
|
* @return 调度任务日志对象信息
|
||||||
*/
|
*/
|
||||||
public SysJobLog selectJobLogById(Long jobLogId);
|
SysJobLog selectJobLogById(Long jobLogId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增任务日志
|
* 新增任务日志
|
||||||
|
|
@ -39,7 +41,7 @@ public interface SysJobLogMapper
|
||||||
* @param jobLog 调度日志信息
|
* @param jobLog 调度日志信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertJobLog(SysJobLog jobLog);
|
int insertJobLog(SysJobLog jobLog);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除调度日志信息
|
* 批量删除调度日志信息
|
||||||
|
|
@ -47,7 +49,7 @@ public interface SysJobLogMapper
|
||||||
* @param logIds 需要删除的数据ID
|
* @param logIds 需要删除的数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteJobLogByIds(Long[] logIds);
|
int deleteJobLogByIds(Long[] logIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除任务日志
|
* 删除任务日志
|
||||||
|
|
@ -55,10 +57,10 @@ public interface SysJobLogMapper
|
||||||
* @param jobId 调度日志ID
|
* @param jobId 调度日志ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteJobLogById(Long jobId);
|
int deleteJobLogById(Long jobId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 清空任务日志
|
* 清空任务日志
|
||||||
*/
|
*/
|
||||||
public void cleanJobLog();
|
void cleanJobLog();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
package com.ruoyi.job.mapper;
|
package com.ruoyi.job.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.ruoyi.job.domain.SysJob;
|
import com.ruoyi.job.domain.SysJob;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -8,7 +10,7 @@ import com.ruoyi.job.domain.SysJob;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysJobMapper
|
public interface SysJobMapper extends BaseMapper<SysJob>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询调度任务日志集合
|
* 查询调度任务日志集合
|
||||||
|
|
@ -16,14 +18,14 @@ public interface SysJobMapper
|
||||||
* @param job 调度信息
|
* @param job 调度信息
|
||||||
* @return 操作日志集合
|
* @return 操作日志集合
|
||||||
*/
|
*/
|
||||||
public List<SysJob> selectJobList(SysJob job);
|
List<SysJob> selectJobList(SysJob job);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有调度任务
|
* 查询所有调度任务
|
||||||
*
|
*
|
||||||
* @return 调度任务列表
|
* @return 调度任务列表
|
||||||
*/
|
*/
|
||||||
public List<SysJob> selectJobAll();
|
List<SysJob> selectJobAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过调度ID查询调度任务信息
|
* 通过调度ID查询调度任务信息
|
||||||
|
|
@ -31,7 +33,7 @@ public interface SysJobMapper
|
||||||
* @param jobId 调度ID
|
* @param jobId 调度ID
|
||||||
* @return 角色对象信息
|
* @return 角色对象信息
|
||||||
*/
|
*/
|
||||||
public SysJob selectJobById(Long jobId);
|
SysJob selectJobById(Long jobId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过调度ID删除调度任务信息
|
* 通过调度ID删除调度任务信息
|
||||||
|
|
@ -39,7 +41,7 @@ public interface SysJobMapper
|
||||||
* @param jobId 调度ID
|
* @param jobId 调度ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteJobById(Long jobId);
|
int deleteJobById(Long jobId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除调度任务信息
|
* 批量删除调度任务信息
|
||||||
|
|
@ -47,7 +49,7 @@ public interface SysJobMapper
|
||||||
* @param ids 需要删除的数据ID
|
* @param ids 需要删除的数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteJobByIds(Long[] ids);
|
int deleteJobByIds(Long[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改调度任务信息
|
* 修改调度任务信息
|
||||||
|
|
@ -55,7 +57,7 @@ public interface SysJobMapper
|
||||||
* @param job 调度任务信息
|
* @param job 调度任务信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateJob(SysJob job);
|
int updateJob(SysJob job);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增调度任务信息
|
* 新增调度任务信息
|
||||||
|
|
@ -63,5 +65,5 @@ public interface SysJobMapper
|
||||||
* @param job 调度任务信息
|
* @param job 调度任务信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertJob(SysJob job);
|
int insertJob(SysJob job);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,23 +4,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.job.mapper.SysJobLogMapper">
|
<mapper namespace="com.ruoyi.job.mapper.SysJobLogMapper">
|
||||||
|
|
||||||
<resultMap type="SysJobLog" id="SysJobLogResult">
|
|
||||||
<id property="jobLogId" column="job_log_id" />
|
|
||||||
<result property="jobName" column="job_name" />
|
|
||||||
<result property="jobGroup" column="job_group" />
|
|
||||||
<result property="invokeTarget" column="invoke_target" />
|
|
||||||
<result property="jobMessage" column="job_message" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="exceptionInfo" column="exception_info" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectJobLogVo">
|
<sql id="selectJobLogVo">
|
||||||
select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time
|
select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time
|
||||||
from sys_job_log
|
from sys_job_log
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
|
<select id="selectJobLogList" parameterType="SysJobLog" resultType="SysJobLog">
|
||||||
<include refid="selectJobLogVo"/>
|
<include refid="selectJobLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="jobName != null and jobName != ''">
|
<if test="jobName != null and jobName != ''">
|
||||||
|
|
@ -44,11 +33,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectJobLogAll" resultMap="SysJobLogResult">
|
<select id="selectJobLogAll" resultType="SysJobLog">
|
||||||
<include refid="selectJobLogVo"/>
|
<include refid="selectJobLogVo"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectJobLogById" parameterType="Long" resultMap="SysJobLogResult">
|
<select id="selectJobLogById" parameterType="Long" resultType="SysJobLog">
|
||||||
<include refid="selectJobLogVo"/>
|
<include refid="selectJobLogVo"/>
|
||||||
where job_log_id = #{jobLogId}
|
where job_log_id = #{jobLogId}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,28 +4,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.job.mapper.SysJobMapper">
|
<mapper namespace="com.ruoyi.job.mapper.SysJobMapper">
|
||||||
|
|
||||||
<resultMap type="SysJob" id="SysJobResult">
|
|
||||||
<id property="jobId" column="job_id" />
|
|
||||||
<result property="jobName" column="job_name" />
|
|
||||||
<result property="jobGroup" column="job_group" />
|
|
||||||
<result property="invokeTarget" column="invoke_target" />
|
|
||||||
<result property="cronExpression" column="cron_expression" />
|
|
||||||
<result property="misfirePolicy" column="misfire_policy" />
|
|
||||||
<result property="concurrent" column="concurrent" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectJobVo">
|
<sql id="selectJobVo">
|
||||||
select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark
|
select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark
|
||||||
from sys_job
|
from sys_job
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
|
<select id="selectJobList" parameterType="SysJob" resultType="SysJob">
|
||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="jobName != null and jobName != ''">
|
<if test="jobName != null and jobName != ''">
|
||||||
|
|
@ -43,11 +27,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectJobAll" resultMap="SysJobResult">
|
<select id="selectJobAll" resultType="SysJob">
|
||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectJobById" parameterType="Long" resultMap="SysJobResult">
|
<select id="selectJobById" parameterType="Long" resultType="SysJob">
|
||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
where job_id = #{jobId}
|
where job_id = #{jobId}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM java:8-jdk
|
||||||
|
|
||||||
|
#作者
|
||||||
|
MAINTAINER awg
|
||||||
|
|
||||||
|
#系统编码和时区
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# 复制jar文件到镜像内,名字改为app.jar
|
||||||
|
ADD /target/*.jar app.jar
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Xmx64M -Xms64M"
|
||||||
|
|
||||||
|
# 启动容器时的进程
|
||||||
|
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
|
||||||
|
|
||||||
|
# 暴露接口
|
||||||
|
EXPOSE 9201
|
||||||
|
|
@ -48,6 +48,12 @@
|
||||||
<version>${swagger.fox.version}</version>
|
<version>${swagger.fox.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Mybatis-plus -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.baomidou</groupId>
|
||||||
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- Mysql Connector -->
|
<!-- Mysql Connector -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
|
|
@ -86,6 +92,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.mavenplugin.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
|
||||||
|
|
@ -2,100 +2,118 @@ package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
||||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参数配置表 sys_config
|
* 参数配置表 sys_config
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysConfig extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_config")
|
||||||
|
public class SysConfig implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 参数主键 */
|
/**
|
||||||
|
* 参数主键
|
||||||
|
*/
|
||||||
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
|
@Excel(name = "参数主键", cellType = ColumnType.NUMERIC)
|
||||||
|
@TableId(value = "config_id", type = IdType.AUTO)
|
||||||
private Long configId;
|
private Long configId;
|
||||||
|
|
||||||
/** 参数名称 */
|
/**
|
||||||
|
* 参数名称
|
||||||
|
*/
|
||||||
@Excel(name = "参数名称")
|
@Excel(name = "参数名称")
|
||||||
|
@NotBlank(message = "参数名称不能为空")
|
||||||
|
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
|
||||||
private String configName;
|
private String configName;
|
||||||
|
|
||||||
/** 参数键名 */
|
/**
|
||||||
|
* 参数键名
|
||||||
|
*/
|
||||||
@Excel(name = "参数键名")
|
@Excel(name = "参数键名")
|
||||||
|
@NotBlank(message = "参数键名长度不能为空")
|
||||||
|
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
|
||||||
private String configKey;
|
private String configKey;
|
||||||
|
|
||||||
/** 参数键值 */
|
/**
|
||||||
|
* 参数键值
|
||||||
|
*/
|
||||||
@Excel(name = "参数键值")
|
@Excel(name = "参数键值")
|
||||||
|
@NotBlank(message = "参数键值不能为空")
|
||||||
|
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
|
||||||
private String configValue;
|
private String configValue;
|
||||||
|
|
||||||
/** 系统内置(Y是 N否) */
|
/**
|
||||||
|
* 系统内置(Y是 N否)
|
||||||
|
*/
|
||||||
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
|
@Excel(name = "系统内置", readConverterExp = "Y=是,N=否")
|
||||||
private String configType;
|
private String configType;
|
||||||
|
|
||||||
public Long getConfigId()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return configId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setConfigId(Long configId)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.configId = configId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
@NotBlank(message = "参数名称不能为空")
|
/**
|
||||||
@Size(min = 0, max = 100, message = "参数名称不能超过100个字符")
|
* 更新者
|
||||||
public String getConfigName()
|
*/
|
||||||
{
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
return configName;
|
private String updateBy;
|
||||||
}
|
|
||||||
|
|
||||||
public void setConfigName(String configName)
|
/**
|
||||||
{
|
* 更新时间
|
||||||
this.configName = configName;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
@NotBlank(message = "参数键名长度不能为空")
|
/**
|
||||||
@Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符")
|
* 备注
|
||||||
public String getConfigKey()
|
*/
|
||||||
{
|
private String remark;
|
||||||
return configKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setConfigKey(String configKey)
|
/**
|
||||||
{
|
* 搜索值
|
||||||
this.configKey = configKey;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
@NotBlank(message = "参数键值不能为空")
|
/**
|
||||||
@Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符")
|
* 请求参数
|
||||||
public String getConfigValue()
|
*/
|
||||||
{
|
@TableField(exist = false)
|
||||||
return configValue;
|
private Map<String, Object> params = new HashMap<>();
|
||||||
}
|
|
||||||
|
|
||||||
public void setConfigValue(String configValue)
|
|
||||||
{
|
|
||||||
this.configValue = configValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getConfigType()
|
|
||||||
{
|
|
||||||
return configType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setConfigType(String configType)
|
|
||||||
{
|
|
||||||
this.configType = configType;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("configId", getConfigId())
|
.append("configId", getConfigId())
|
||||||
.append("configName", getConfigName())
|
.append("configName", getConfigName())
|
||||||
.append("configKey", getConfigKey())
|
.append("configKey", getConfigKey())
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@ package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
|
@ -9,154 +15,129 @@ import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
||||||
import com.ruoyi.common.core.constant.UserConstants;
|
import com.ruoyi.common.core.constant.UserConstants;
|
||||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 字典数据表 sys_dict_data
|
* 字典数据表 sys_dict_data
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysDictData extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_dict_data")
|
||||||
|
public class SysDictData implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 字典编码 */
|
/**
|
||||||
|
* 字典编码
|
||||||
|
*/
|
||||||
@Excel(name = "字典编码", cellType = ColumnType.NUMERIC)
|
@Excel(name = "字典编码", cellType = ColumnType.NUMERIC)
|
||||||
|
@TableId(value = "dict_code", type = IdType.AUTO)
|
||||||
private Long dictCode;
|
private Long dictCode;
|
||||||
|
|
||||||
/** 字典排序 */
|
/**
|
||||||
|
* 字典排序
|
||||||
|
*/
|
||||||
@Excel(name = "字典排序", cellType = ColumnType.NUMERIC)
|
@Excel(name = "字典排序", cellType = ColumnType.NUMERIC)
|
||||||
private Long dictSort;
|
private Long dictSort;
|
||||||
|
|
||||||
/** 字典标签 */
|
/**
|
||||||
|
* 字典标签
|
||||||
|
*/
|
||||||
@Excel(name = "字典标签")
|
@Excel(name = "字典标签")
|
||||||
|
@NotBlank(message = "字典标签不能为空")
|
||||||
|
@Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符")
|
||||||
private String dictLabel;
|
private String dictLabel;
|
||||||
|
|
||||||
/** 字典键值 */
|
/**
|
||||||
|
* 字典键值
|
||||||
|
*/
|
||||||
@Excel(name = "字典键值")
|
@Excel(name = "字典键值")
|
||||||
|
@NotBlank(message = "字典键值不能为空")
|
||||||
|
@Size(min = 0, max = 100, message = "字典键值长度不能超过100个字符")
|
||||||
private String dictValue;
|
private String dictValue;
|
||||||
|
|
||||||
/** 字典类型 */
|
/**
|
||||||
|
* 字典类型
|
||||||
|
*/
|
||||||
@Excel(name = "字典类型")
|
@Excel(name = "字典类型")
|
||||||
|
@NotBlank(message = "字典类型不能为空")
|
||||||
|
@Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符")
|
||||||
private String dictType;
|
private String dictType;
|
||||||
|
|
||||||
/** 样式属性(其他样式扩展) */
|
/**
|
||||||
|
* 样式属性(其他样式扩展)
|
||||||
|
*/
|
||||||
|
@Size(min = 0, max = 100, message = "样式属性长度不能超过100个字符")
|
||||||
private String cssClass;
|
private String cssClass;
|
||||||
|
|
||||||
/** 表格字典样式 */
|
/**
|
||||||
|
* 表格字典样式
|
||||||
|
*/
|
||||||
private String listClass;
|
private String listClass;
|
||||||
|
|
||||||
/** 是否默认(Y是 N否) */
|
/**
|
||||||
|
* 是否默认(Y是 N否)
|
||||||
|
*/
|
||||||
@Excel(name = "是否默认", readConverterExp = "Y=是,N=否")
|
@Excel(name = "是否默认", readConverterExp = "Y=是,N=否")
|
||||||
private String isDefault;
|
private String isDefault;
|
||||||
|
|
||||||
/** 状态(0正常 1停用) */
|
/**
|
||||||
|
* 状态(0正常 1停用)
|
||||||
|
*/
|
||||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
public Long getDictCode()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return dictCode;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setDictCode(Long dictCode)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.dictCode = dictCode;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
public Long getDictSort()
|
/**
|
||||||
{
|
* 更新者
|
||||||
return dictSort;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
public void setDictSort(Long dictSort)
|
/**
|
||||||
{
|
* 更新时间
|
||||||
this.dictSort = dictSort;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
@NotBlank(message = "字典标签不能为空")
|
/**
|
||||||
@Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符")
|
* 备注
|
||||||
public String getDictLabel()
|
*/
|
||||||
{
|
private String remark;
|
||||||
return dictLabel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDictLabel(String dictLabel)
|
/**
|
||||||
{
|
* 搜索值
|
||||||
this.dictLabel = dictLabel;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
@NotBlank(message = "字典键值不能为空")
|
/**
|
||||||
@Size(min = 0, max = 100, message = "字典键值长度不能超过100个字符")
|
* 请求参数
|
||||||
public String getDictValue()
|
*/
|
||||||
{
|
@TableField(exist = false)
|
||||||
return dictValue;
|
private Map<String, Object> params = new HashMap<>();
|
||||||
}
|
|
||||||
|
|
||||||
public void setDictValue(String dictValue)
|
|
||||||
{
|
|
||||||
this.dictValue = dictValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotBlank(message = "字典类型不能为空")
|
|
||||||
@Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符")
|
|
||||||
public String getDictType()
|
|
||||||
{
|
|
||||||
return dictType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDictType(String dictType)
|
|
||||||
{
|
|
||||||
this.dictType = dictType;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Size(min = 0, max = 100, message = "样式属性长度不能超过100个字符")
|
|
||||||
public String getCssClass()
|
|
||||||
{
|
|
||||||
return cssClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCssClass(String cssClass)
|
|
||||||
{
|
|
||||||
this.cssClass = cssClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getListClass()
|
|
||||||
{
|
|
||||||
return listClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setListClass(String listClass)
|
|
||||||
{
|
|
||||||
this.listClass = listClass;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean getDefault()
|
|
||||||
{
|
|
||||||
return UserConstants.YES.equals(this.isDefault) ? true : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getIsDefault()
|
|
||||||
{
|
|
||||||
return isDefault;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIsDefault(String isDefault)
|
|
||||||
{
|
|
||||||
this.isDefault = isDefault;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("dictCode", getDictCode())
|
.append("dictCode", getDictCode())
|
||||||
.append("dictSort", getDictSort())
|
.append("dictSort", getDictSort())
|
||||||
.append("dictLabel", getDictLabel())
|
.append("dictLabel", getDictLabel())
|
||||||
|
|
|
||||||
|
|
@ -2,84 +2,110 @@ package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
||||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 字典类型表 sys_dict_type
|
* 字典类型表 sys_dict_type
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysDictType extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_dict_type")
|
||||||
|
public class SysDictType implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 字典主键 */
|
/**
|
||||||
|
* 字典主键
|
||||||
|
*/
|
||||||
@Excel(name = "字典主键", cellType = ColumnType.NUMERIC)
|
@Excel(name = "字典主键", cellType = ColumnType.NUMERIC)
|
||||||
|
@TableId(value = "dict_id", type = IdType.AUTO)
|
||||||
private Long dictId;
|
private Long dictId;
|
||||||
|
|
||||||
/** 字典名称 */
|
/**
|
||||||
|
* 字典名称
|
||||||
|
*/
|
||||||
@Excel(name = "字典名称")
|
@Excel(name = "字典名称")
|
||||||
|
@NotBlank(message = "字典名称不能为空")
|
||||||
|
@Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符")
|
||||||
private String dictName;
|
private String dictName;
|
||||||
|
|
||||||
/** 字典类型 */
|
/**
|
||||||
|
* 字典类型
|
||||||
|
*/
|
||||||
@Excel(name = "字典类型")
|
@Excel(name = "字典类型")
|
||||||
|
@NotBlank(message = "字典类型不能为空")
|
||||||
|
@Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符")
|
||||||
private String dictType;
|
private String dictType;
|
||||||
|
|
||||||
/** 状态(0正常 1停用) */
|
/**
|
||||||
|
* 状态(0正常 1停用)
|
||||||
|
*/
|
||||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
public Long getDictId()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return dictId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setDictId(Long dictId)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.dictId = dictId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
@NotBlank(message = "字典名称不能为空")
|
/**
|
||||||
@Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符")
|
* 更新者
|
||||||
public String getDictName()
|
*/
|
||||||
{
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
return dictName;
|
private String updateBy;
|
||||||
}
|
|
||||||
|
|
||||||
public void setDictName(String dictName)
|
/**
|
||||||
{
|
* 更新时间
|
||||||
this.dictName = dictName;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
@NotBlank(message = "字典类型不能为空")
|
/**
|
||||||
@Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符")
|
* 备注
|
||||||
public String getDictType()
|
*/
|
||||||
{
|
private String remark;
|
||||||
return dictType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDictType(String dictType)
|
/**
|
||||||
{
|
* 搜索值
|
||||||
this.dictType = dictType;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
public String getStatus()
|
/**
|
||||||
{
|
* 请求参数
|
||||||
return status;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private Map<String, Object> params = new HashMap<>();
|
||||||
public void setStatus(String status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("dictId", getDictId())
|
.append("dictId", getDictId())
|
||||||
.append("dictName", getDictName())
|
.append("dictName", getDictName())
|
||||||
.append("dictType", getDictType())
|
.append("dictType", getDictType())
|
||||||
|
|
|
||||||
|
|
@ -1,102 +1,110 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
||||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统访问记录表 sys_logininfor
|
* 系统访问记录表 sys_logininfor
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysLogininfor extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_logininfor")
|
||||||
|
public class SysLogininfor implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** ID */
|
/**
|
||||||
|
* ID
|
||||||
|
*/
|
||||||
@Excel(name = "序号", cellType = ColumnType.NUMERIC)
|
@Excel(name = "序号", cellType = ColumnType.NUMERIC)
|
||||||
|
@TableId(value = "info_id", type = IdType.AUTO)
|
||||||
private Long infoId;
|
private Long infoId;
|
||||||
|
|
||||||
/** 用户账号 */
|
/**
|
||||||
|
* 用户账号
|
||||||
|
*/
|
||||||
@Excel(name = "用户账号")
|
@Excel(name = "用户账号")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
/** 状态 0成功 1失败 */
|
/**
|
||||||
|
* 状态 0成功 1失败
|
||||||
|
*/
|
||||||
@Excel(name = "状态", readConverterExp = "0=成功,1=失败")
|
@Excel(name = "状态", readConverterExp = "0=成功,1=失败")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/** 地址 */
|
/**
|
||||||
|
* 地址
|
||||||
|
*/
|
||||||
@Excel(name = "地址")
|
@Excel(name = "地址")
|
||||||
private String ipaddr;
|
private String ipaddr;
|
||||||
|
|
||||||
/** 描述 */
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
@Excel(name = "描述")
|
@Excel(name = "描述")
|
||||||
private String msg;
|
private String msg;
|
||||||
|
|
||||||
/** 访问时间 */
|
/**
|
||||||
|
* 访问时间
|
||||||
|
*/
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date accessTime;
|
private Date accessTime;
|
||||||
|
|
||||||
public Long getInfoId()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return infoId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setInfoId(Long infoId)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.infoId = infoId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
public String getUserName()
|
/**
|
||||||
{
|
* 更新者
|
||||||
return userName;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
public void setUserName(String userName)
|
/**
|
||||||
{
|
* 更新时间
|
||||||
this.userName = userName;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
public String getStatus()
|
/**
|
||||||
{
|
* 备注
|
||||||
return status;
|
*/
|
||||||
}
|
private String remark;
|
||||||
|
|
||||||
public void setStatus(String status)
|
/**
|
||||||
{
|
* 搜索值
|
||||||
this.status = status;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
public String getIpaddr()
|
/**
|
||||||
{
|
* 请求参数
|
||||||
return ipaddr;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private Map<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
public void setIpaddr(String ipaddr)
|
|
||||||
{
|
|
||||||
this.ipaddr = ipaddr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMsg()
|
|
||||||
{
|
|
||||||
return msg;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMsg(String msg)
|
|
||||||
{
|
|
||||||
this.msg = msg;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getAccessTime()
|
|
||||||
{
|
|
||||||
return accessTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAccessTime(Date accessTime)
|
|
||||||
{
|
|
||||||
this.accessTime = accessTime;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,9 +1,15 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.io.Serializable;
|
||||||
import java.util.List;
|
import java.util.*;
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
|
@ -14,215 +20,142 @@ import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysMenu extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_menu")
|
||||||
|
public class SysMenu implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 菜单ID */
|
/**
|
||||||
|
* 菜单ID
|
||||||
|
*/
|
||||||
|
@TableId(value = "menu_id", type = IdType.AUTO)
|
||||||
private Long menuId;
|
private Long menuId;
|
||||||
|
|
||||||
/** 菜单名称 */
|
/**
|
||||||
private String menuName;
|
* 菜单名称
|
||||||
|
*/
|
||||||
/** 父菜单名称 */
|
|
||||||
private String parentName;
|
|
||||||
|
|
||||||
/** 父菜单ID */
|
|
||||||
private Long parentId;
|
|
||||||
|
|
||||||
/** 显示顺序 */
|
|
||||||
private String orderNum;
|
|
||||||
|
|
||||||
/** 路由地址 */
|
|
||||||
private String path;
|
|
||||||
|
|
||||||
/** 组件路径 */
|
|
||||||
private String component;
|
|
||||||
|
|
||||||
/** 是否为外链(0是 1否) */
|
|
||||||
private String isFrame;
|
|
||||||
|
|
||||||
/** 是否缓存(0缓存 1不缓存) */
|
|
||||||
private String isCache;
|
|
||||||
|
|
||||||
/** 类型(M目录 C菜单 F按钮) */
|
|
||||||
private String menuType;
|
|
||||||
|
|
||||||
/** 显示状态(0显示 1隐藏) */
|
|
||||||
private String visible;
|
|
||||||
|
|
||||||
/** 菜单状态(0显示 1隐藏) */
|
|
||||||
private String status;
|
|
||||||
|
|
||||||
/** 权限字符串 */
|
|
||||||
private String perms;
|
|
||||||
|
|
||||||
/** 菜单图标 */
|
|
||||||
private String icon;
|
|
||||||
|
|
||||||
/** 子菜单 */
|
|
||||||
private List<SysMenu> children = new ArrayList<SysMenu>();
|
|
||||||
|
|
||||||
public Long getMenuId()
|
|
||||||
{
|
|
||||||
return menuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMenuId(Long menuId)
|
|
||||||
{
|
|
||||||
this.menuId = menuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotBlank(message = "菜单名称不能为空")
|
@NotBlank(message = "菜单名称不能为空")
|
||||||
@Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符")
|
@Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符")
|
||||||
public String getMenuName()
|
private String menuName;
|
||||||
{
|
|
||||||
return menuName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMenuName(String menuName)
|
/**
|
||||||
{
|
* 父菜单名称
|
||||||
this.menuName = menuName;
|
*/
|
||||||
}
|
private String parentName;
|
||||||
|
|
||||||
public String getParentName()
|
/**
|
||||||
{
|
* 父菜单ID
|
||||||
return parentName;
|
*/
|
||||||
}
|
private Long parentId;
|
||||||
|
|
||||||
public void setParentName(String parentName)
|
|
||||||
{
|
|
||||||
this.parentName = parentName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getParentId()
|
|
||||||
{
|
|
||||||
return parentId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParentId(Long parentId)
|
|
||||||
{
|
|
||||||
this.parentId = parentId;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 显示顺序
|
||||||
|
*/
|
||||||
@NotBlank(message = "显示顺序不能为空")
|
@NotBlank(message = "显示顺序不能为空")
|
||||||
public String getOrderNum()
|
private String orderNum;
|
||||||
{
|
|
||||||
return orderNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOrderNum(String orderNum)
|
|
||||||
{
|
|
||||||
this.orderNum = orderNum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 路由地址
|
||||||
|
*/
|
||||||
@Size(min = 0, max = 200, message = "路由地址不能超过200个字符")
|
@Size(min = 0, max = 200, message = "路由地址不能超过200个字符")
|
||||||
public String getPath()
|
private String path;
|
||||||
{
|
|
||||||
return path;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPath(String path)
|
|
||||||
{
|
|
||||||
this.path = path;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组件路径
|
||||||
|
*/
|
||||||
@Size(min = 0, max = 200, message = "组件路径不能超过255个字符")
|
@Size(min = 0, max = 200, message = "组件路径不能超过255个字符")
|
||||||
public String getComponent()
|
private String component;
|
||||||
{
|
|
||||||
return component;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setComponent(String component)
|
/**
|
||||||
{
|
* 是否为外链(0是 1否)
|
||||||
this.component = component;
|
*/
|
||||||
}
|
private String isFrame;
|
||||||
|
|
||||||
public String getIsFrame()
|
/**
|
||||||
{
|
* 是否缓存(0缓存 1不缓存)
|
||||||
return isFrame;
|
*/
|
||||||
}
|
private String isCache;
|
||||||
|
|
||||||
public void setIsFrame(String isFrame)
|
|
||||||
{
|
|
||||||
this.isFrame = isFrame;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getIsCache()
|
|
||||||
{
|
|
||||||
return isCache;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIsCache(String isCache)
|
|
||||||
{
|
|
||||||
this.isCache = isCache;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型(M目录 C菜单 F按钮)
|
||||||
|
*/
|
||||||
@NotBlank(message = "菜单类型不能为空")
|
@NotBlank(message = "菜单类型不能为空")
|
||||||
public String getMenuType()
|
private String menuType;
|
||||||
{
|
|
||||||
return menuType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMenuType(String menuType)
|
/**
|
||||||
{
|
* 显示状态(0显示 1隐藏)
|
||||||
this.menuType = menuType;
|
*/
|
||||||
}
|
private String visible;
|
||||||
|
|
||||||
public String getVisible()
|
/**
|
||||||
{
|
* 菜单状态(0显示 1隐藏)
|
||||||
return visible;
|
*/
|
||||||
}
|
private String status;
|
||||||
|
|
||||||
public void setVisible(String visible)
|
|
||||||
{
|
|
||||||
this.visible = visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 权限字符串
|
||||||
|
*/
|
||||||
@Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符")
|
@Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符")
|
||||||
public String getPerms()
|
private String perms;
|
||||||
{
|
|
||||||
return perms;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPerms(String perms)
|
/**
|
||||||
{
|
* 菜单图标
|
||||||
this.perms = perms;
|
*/
|
||||||
}
|
private String icon;
|
||||||
|
|
||||||
public String getIcon()
|
/**
|
||||||
{
|
* 子菜单
|
||||||
return icon;
|
*/
|
||||||
}
|
private List<SysMenu> children = new ArrayList<SysMenu>();
|
||||||
|
|
||||||
public void setIcon(String icon)
|
/**
|
||||||
{
|
* 创建者
|
||||||
this.icon = icon;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public List<SysMenu> getChildren()
|
/**
|
||||||
{
|
* 创建时间
|
||||||
return children;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
public void setChildren(List<SysMenu> children)
|
/**
|
||||||
{
|
* 更新者
|
||||||
this.children = children;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搜索值
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求参数
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Map<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("menuId", getMenuId())
|
.append("menuId", getMenuId())
|
||||||
.append("menuName", getMenuName())
|
.append("menuName", getMenuName())
|
||||||
.append("parentId", getParentId())
|
.append("parentId", getParentId())
|
||||||
|
|
|
||||||
|
|
@ -2,90 +2,108 @@ package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通知公告表 sys_notice
|
* 通知公告表 sys_notice
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysNotice extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_notice")
|
||||||
|
public class SysNotice implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 公告ID */
|
/**
|
||||||
|
* 公告ID
|
||||||
|
*/
|
||||||
|
@TableId(value = "notice_id", type = IdType.AUTO)
|
||||||
private Long noticeId;
|
private Long noticeId;
|
||||||
|
|
||||||
/** 公告标题 */
|
/**
|
||||||
private String noticeTitle;
|
* 公告标题
|
||||||
|
*/
|
||||||
/** 公告类型(1通知 2公告) */
|
|
||||||
private String noticeType;
|
|
||||||
|
|
||||||
/** 公告内容 */
|
|
||||||
private String noticeContent;
|
|
||||||
|
|
||||||
/** 公告状态(0正常 1关闭) */
|
|
||||||
private String status;
|
|
||||||
|
|
||||||
public Long getNoticeId()
|
|
||||||
{
|
|
||||||
return noticeId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoticeId(Long noticeId)
|
|
||||||
{
|
|
||||||
this.noticeId = noticeId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoticeTitle(String noticeTitle)
|
|
||||||
{
|
|
||||||
this.noticeTitle = noticeTitle;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotBlank(message = "公告标题不能为空")
|
@NotBlank(message = "公告标题不能为空")
|
||||||
@Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
|
@Size(min = 0, max = 50, message = "公告标题不能超过50个字符")
|
||||||
public String getNoticeTitle()
|
private String noticeTitle;
|
||||||
{
|
|
||||||
return noticeTitle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoticeType(String noticeType)
|
/**
|
||||||
{
|
* 公告类型(1通知 2公告)
|
||||||
this.noticeType = noticeType;
|
*/
|
||||||
}
|
private String noticeType;
|
||||||
|
|
||||||
public String getNoticeType()
|
/**
|
||||||
{
|
* 公告内容
|
||||||
return noticeType;
|
*/
|
||||||
}
|
private String noticeContent;
|
||||||
|
|
||||||
public void setNoticeContent(String noticeContent)
|
/**
|
||||||
{
|
* 公告状态(0正常 1关闭)
|
||||||
this.noticeContent = noticeContent;
|
*/
|
||||||
}
|
private String status;
|
||||||
|
|
||||||
public String getNoticeContent()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return noticeContent;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setStatus(String status)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.status = status;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
public String getStatus()
|
/**
|
||||||
{
|
* 更新者
|
||||||
return status;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新时间
|
||||||
|
*/
|
||||||
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搜索值
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求参数
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Map<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("noticeId", getNoticeId())
|
.append("noticeId", getNoticeId())
|
||||||
.append("noticeTitle", getNoticeTitle())
|
.append("noticeTitle", getNoticeTitle())
|
||||||
.append("noticeType", getNoticeType())
|
.append("noticeType", getNoticeType())
|
||||||
|
|
|
||||||
|
|
@ -2,112 +2,122 @@ package com.ruoyi.system.domain;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
import com.ruoyi.common.core.annotation.Excel.ColumnType;
|
||||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 岗位表 sys_post
|
* 岗位表 sys_post
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysPost extends BaseEntity
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_notice")
|
||||||
|
public class SysPost implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 岗位序号 */
|
/**
|
||||||
|
* 岗位序号
|
||||||
|
*/
|
||||||
@Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
|
@Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
|
||||||
|
@TableId(value = "post_id", type = IdType.AUTO)
|
||||||
private Long postId;
|
private Long postId;
|
||||||
|
|
||||||
/** 岗位编码 */
|
/**
|
||||||
|
* 岗位编码
|
||||||
|
*/
|
||||||
@Excel(name = "岗位编码")
|
@Excel(name = "岗位编码")
|
||||||
|
@NotBlank(message = "岗位编码不能为空")
|
||||||
|
@Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
|
||||||
private String postCode;
|
private String postCode;
|
||||||
|
|
||||||
/** 岗位名称 */
|
/**
|
||||||
|
* 岗位名称
|
||||||
|
*/
|
||||||
@Excel(name = "岗位名称")
|
@Excel(name = "岗位名称")
|
||||||
|
@NotBlank(message = "岗位名称不能为空")
|
||||||
|
@Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
|
||||||
private String postName;
|
private String postName;
|
||||||
|
|
||||||
/** 岗位排序 */
|
/**
|
||||||
|
* 岗位排序
|
||||||
|
*/
|
||||||
@Excel(name = "岗位排序")
|
@Excel(name = "岗位排序")
|
||||||
|
@NotBlank(message = "显示顺序不能为空")
|
||||||
private String postSort;
|
private String postSort;
|
||||||
|
|
||||||
/** 状态(0正常 1停用) */
|
/**
|
||||||
|
* 状态(0正常 1停用)
|
||||||
|
*/
|
||||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
/** 用户是否存在此岗位标识 默认不存在 */
|
/**
|
||||||
|
* 用户是否存在此岗位标识 默认不存在
|
||||||
|
*/
|
||||||
private boolean flag = false;
|
private boolean flag = false;
|
||||||
|
|
||||||
public Long getPostId()
|
/**
|
||||||
{
|
* 创建者
|
||||||
return postId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
public void setPostId(Long postId)
|
/**
|
||||||
{
|
* 创建时间
|
||||||
this.postId = postId;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
@NotBlank(message = "岗位编码不能为空")
|
/**
|
||||||
@Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符")
|
* 更新者
|
||||||
public String getPostCode()
|
*/
|
||||||
{
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
return postCode;
|
private String updateBy;
|
||||||
}
|
|
||||||
|
|
||||||
public void setPostCode(String postCode)
|
/**
|
||||||
{
|
* 更新时间
|
||||||
this.postCode = postCode;
|
*/
|
||||||
}
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
@NotBlank(message = "岗位名称不能为空")
|
/**
|
||||||
@Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符")
|
* 备注
|
||||||
public String getPostName()
|
*/
|
||||||
{
|
private String remark;
|
||||||
return postName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPostName(String postName)
|
/**
|
||||||
{
|
* 搜索值
|
||||||
this.postName = postName;
|
*/
|
||||||
}
|
@TableField(exist = false)
|
||||||
|
private String searchValue;
|
||||||
|
|
||||||
@NotBlank(message = "显示顺序不能为空")
|
/**
|
||||||
public String getPostSort()
|
* 请求参数
|
||||||
{
|
*/
|
||||||
return postSort;
|
@TableField(exist = false)
|
||||||
}
|
private Map<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
public void setPostSort(String postSort)
|
|
||||||
{
|
|
||||||
this.postSort = postSort;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatus(String status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isFlag()
|
|
||||||
{
|
|
||||||
return flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFlag(boolean flag)
|
|
||||||
{
|
|
||||||
this.flag = flag;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("postId", getPostId())
|
.append("postId", getPostId())
|
||||||
.append("postCode", getPostCode())
|
.append("postCode", getPostCode())
|
||||||
.append("postName", getPostName())
|
.append("postName", getPostName())
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,42 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色和部门关联 sys_role_dept
|
* 角色和部门关联 sys_role_dept
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class SysRoleDept
|
@Data
|
||||||
{
|
@NoArgsConstructor
|
||||||
/** 角色ID */
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_role_dept")
|
||||||
|
public class SysRoleDept {
|
||||||
|
/**
|
||||||
|
* 角色ID
|
||||||
|
*/
|
||||||
private Long roleId;
|
private Long roleId;
|
||||||
|
|
||||||
/** 部门ID */
|
/**
|
||||||
|
* 部门ID
|
||||||
|
*/
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
|
||||||
public Long getRoleId()
|
|
||||||
{
|
|
||||||
return roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRoleId(Long roleId)
|
|
||||||
{
|
|
||||||
this.roleId = roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDeptId()
|
|
||||||
{
|
|
||||||
return deptId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDeptId(Long deptId)
|
|
||||||
{
|
|
||||||
this.deptId = deptId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||||
.append("roleId", getRoleId())
|
.append("roleId", getRoleId())
|
||||||
.append("deptId", getDeptId())
|
.append("deptId", getDeptId())
|
||||||
.toString();
|
.toString();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
|
@ -8,6 +12,10 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_role_menu")
|
||||||
public class SysRoleMenu
|
public class SysRoleMenu
|
||||||
{
|
{
|
||||||
/** 角色ID */
|
/** 角色ID */
|
||||||
|
|
@ -16,26 +24,6 @@ public class SysRoleMenu
|
||||||
/** 菜单ID */
|
/** 菜单ID */
|
||||||
private Long menuId;
|
private Long menuId;
|
||||||
|
|
||||||
public Long getRoleId()
|
|
||||||
{
|
|
||||||
return roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRoleId(Long roleId)
|
|
||||||
{
|
|
||||||
this.roleId = roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getMenuId()
|
|
||||||
{
|
|
||||||
return menuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMenuId(Long menuId)
|
|
||||||
{
|
|
||||||
this.menuId = menuId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,17 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当前在线会话
|
* 当前在线会话
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
public class SysUserOnline
|
public class SysUserOnline
|
||||||
{
|
{
|
||||||
/** 会话编号 */
|
/** 会话编号 */
|
||||||
|
|
@ -27,74 +34,4 @@ public class SysUserOnline
|
||||||
|
|
||||||
/** 登录时间 */
|
/** 登录时间 */
|
||||||
private Long loginTime;
|
private Long loginTime;
|
||||||
|
|
||||||
public String getTokenId()
|
|
||||||
{
|
|
||||||
return tokenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTokenId(String tokenId)
|
|
||||||
{
|
|
||||||
this.tokenId = tokenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUserName()
|
|
||||||
{
|
|
||||||
return userName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUserName(String userName)
|
|
||||||
{
|
|
||||||
this.userName = userName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getIpaddr()
|
|
||||||
{
|
|
||||||
return ipaddr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIpaddr(String ipaddr)
|
|
||||||
{
|
|
||||||
this.ipaddr = ipaddr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLoginLocation()
|
|
||||||
{
|
|
||||||
return loginLocation;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLoginLocation(String loginLocation)
|
|
||||||
{
|
|
||||||
this.loginLocation = loginLocation;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getBrowser()
|
|
||||||
{
|
|
||||||
return browser;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBrowser(String browser)
|
|
||||||
{
|
|
||||||
this.browser = browser;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOs()
|
|
||||||
{
|
|
||||||
return os;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOs(String os)
|
|
||||||
{
|
|
||||||
this.os = os;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getLoginTime()
|
|
||||||
{
|
|
||||||
return loginTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLoginTime(Long loginTime)
|
|
||||||
{
|
|
||||||
this.loginTime = loginTime;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
|
@ -8,6 +12,10 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_user_post")
|
||||||
public class SysUserPost
|
public class SysUserPost
|
||||||
{
|
{
|
||||||
/** 用户ID */
|
/** 用户ID */
|
||||||
|
|
@ -16,26 +24,6 @@ public class SysUserPost
|
||||||
/** 岗位ID */
|
/** 岗位ID */
|
||||||
private Long postId;
|
private Long postId;
|
||||||
|
|
||||||
public Long getUserId()
|
|
||||||
{
|
|
||||||
return userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUserId(Long userId)
|
|
||||||
{
|
|
||||||
this.userId = userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getPostId()
|
|
||||||
{
|
|
||||||
return postId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPostId(Long postId)
|
|
||||||
{
|
|
||||||
this.postId = postId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
package com.ruoyi.system.domain;
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
|
@ -8,6 +12,10 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("sys_user_role")
|
||||||
public class SysUserRole
|
public class SysUserRole
|
||||||
{
|
{
|
||||||
/** 用户ID */
|
/** 用户ID */
|
||||||
|
|
@ -16,26 +24,6 @@ public class SysUserRole
|
||||||
/** 角色ID */
|
/** 角色ID */
|
||||||
private Long roleId;
|
private Long roleId;
|
||||||
|
|
||||||
public Long getUserId()
|
|
||||||
{
|
|
||||||
return userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUserId(Long userId)
|
|
||||||
{
|
|
||||||
this.userId = userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getRoleId()
|
|
||||||
{
|
|
||||||
return roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRoleId(Long roleId)
|
|
||||||
{
|
|
||||||
this.roleId = roleId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
package com.ruoyi.system.domain.vo;
|
package com.ruoyi.system.domain.vo;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 路由显示信息
|
* 路由显示信息
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
public class MetaVo
|
public class MetaVo
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
@ -38,34 +41,4 @@ public class MetaVo
|
||||||
this.icon = icon;
|
this.icon = icon;
|
||||||
this.noCache = noCache;
|
this.noCache = noCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isNoCache()
|
|
||||||
{
|
|
||||||
return noCache;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoCache(boolean noCache)
|
|
||||||
{
|
|
||||||
this.noCache = noCache;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTitle()
|
|
||||||
{
|
|
||||||
return title;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTitle(String title)
|
|
||||||
{
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getIcon()
|
|
||||||
{
|
|
||||||
return icon;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIcon(String icon)
|
|
||||||
{
|
|
||||||
this.icon = icon;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
package com.ruoyi.system.domain.vo;
|
package com.ruoyi.system.domain.vo;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -8,6 +10,7 @@ import java.util.List;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||||
public class RouterVo
|
public class RouterVo
|
||||||
{
|
{
|
||||||
|
|
@ -50,84 +53,4 @@ public class RouterVo
|
||||||
* 子路由
|
* 子路由
|
||||||
*/
|
*/
|
||||||
private List<RouterVo> children;
|
private List<RouterVo> children;
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPath()
|
|
||||||
{
|
|
||||||
return path;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPath(String path)
|
|
||||||
{
|
|
||||||
this.path = path;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean getHidden()
|
|
||||||
{
|
|
||||||
return hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHidden(boolean hidden)
|
|
||||||
{
|
|
||||||
this.hidden = hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRedirect()
|
|
||||||
{
|
|
||||||
return redirect;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRedirect(String redirect)
|
|
||||||
{
|
|
||||||
this.redirect = redirect;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getComponent()
|
|
||||||
{
|
|
||||||
return component;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setComponent(String component)
|
|
||||||
{
|
|
||||||
this.component = component;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getAlwaysShow()
|
|
||||||
{
|
|
||||||
return alwaysShow;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAlwaysShow(Boolean alwaysShow)
|
|
||||||
{
|
|
||||||
this.alwaysShow = alwaysShow;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MetaVo getMeta()
|
|
||||||
{
|
|
||||||
return meta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMeta(MetaVo meta)
|
|
||||||
{
|
|
||||||
this.meta = meta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<RouterVo> getChildren()
|
|
||||||
{
|
|
||||||
return children;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChildren(List<RouterVo> children)
|
|
||||||
{
|
|
||||||
this.children = children;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,14 @@ import java.util.stream.Collectors;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.ruoyi.system.api.domain.SysDept;
|
import com.ruoyi.system.api.domain.SysDept;
|
||||||
import com.ruoyi.system.domain.SysMenu;
|
import com.ruoyi.system.domain.SysMenu;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Treeselect树结构实体类
|
* Treeselect树结构实体类
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
public class TreeSelect implements Serializable
|
public class TreeSelect implements Serializable
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
@ -44,34 +46,4 @@ public class TreeSelect implements Serializable
|
||||||
this.label = menu.getMenuName();
|
this.label = menu.getMenuName();
|
||||||
this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getId()
|
|
||||||
{
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Long id)
|
|
||||||
{
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLabel()
|
|
||||||
{
|
|
||||||
return label;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLabel(String label)
|
|
||||||
{
|
|
||||||
this.label = label;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<TreeSelect> getChildren()
|
|
||||||
{
|
|
||||||
return children;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChildren(List<TreeSelect> children)
|
|
||||||
{
|
|
||||||
this.children = children;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.ruoyi.system.domain.SysConfig;
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9,7 +10,7 @@ import com.ruoyi.system.domain.SysConfig;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysConfigMapper
|
public interface SysConfigMapper extends BaseMapper<SysConfig>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询参数配置信息
|
* 查询参数配置信息
|
||||||
|
|
@ -17,7 +18,7 @@ public interface SysConfigMapper
|
||||||
* @param config 参数配置信息
|
* @param config 参数配置信息
|
||||||
* @return 参数配置信息
|
* @return 参数配置信息
|
||||||
*/
|
*/
|
||||||
public SysConfig selectConfig(SysConfig config);
|
SysConfig selectConfig(SysConfig config);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询参数配置列表
|
* 查询参数配置列表
|
||||||
|
|
@ -25,7 +26,7 @@ public interface SysConfigMapper
|
||||||
* @param config 参数配置信息
|
* @param config 参数配置信息
|
||||||
* @return 参数配置集合
|
* @return 参数配置集合
|
||||||
*/
|
*/
|
||||||
public List<SysConfig> selectConfigList(SysConfig config);
|
List<SysConfig> selectConfigList(SysConfig config);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据键名查询参数配置信息
|
* 根据键名查询参数配置信息
|
||||||
|
|
@ -33,7 +34,7 @@ public interface SysConfigMapper
|
||||||
* @param configKey 参数键名
|
* @param configKey 参数键名
|
||||||
* @return 参数配置信息
|
* @return 参数配置信息
|
||||||
*/
|
*/
|
||||||
public SysConfig checkConfigKeyUnique(String configKey);
|
SysConfig checkConfigKeyUnique(String configKey);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增参数配置
|
* 新增参数配置
|
||||||
|
|
@ -41,7 +42,7 @@ public interface SysConfigMapper
|
||||||
* @param config 参数配置信息
|
* @param config 参数配置信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertConfig(SysConfig config);
|
int insertConfig(SysConfig config);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改参数配置
|
* 修改参数配置
|
||||||
|
|
@ -49,7 +50,7 @@ public interface SysConfigMapper
|
||||||
* @param config 参数配置信息
|
* @param config 参数配置信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateConfig(SysConfig config);
|
int updateConfig(SysConfig config);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除参数配置
|
* 删除参数配置
|
||||||
|
|
@ -57,7 +58,7 @@ public interface SysConfigMapper
|
||||||
* @param configId 参数ID
|
* @param configId 参数ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteConfigById(Long configId);
|
int deleteConfigById(Long configId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除参数信息
|
* 批量删除参数信息
|
||||||
|
|
@ -65,5 +66,5 @@ public interface SysConfigMapper
|
||||||
* @param configIds 需要删除的参数ID
|
* @param configIds 需要删除的参数ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteConfigByIds(Long[] configIds);
|
int deleteConfigByIds(Long[] configIds);
|
||||||
}
|
}
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import com.ruoyi.system.api.domain.SysDept;
|
import com.ruoyi.system.api.domain.SysDept;
|
||||||
|
|
@ -11,7 +13,7 @@ import com.ruoyi.system.api.domain.SysDept;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysDeptMapper
|
public interface SysDeptMapper extends BaseMapper<SysDept>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询部门管理数据
|
* 查询部门管理数据
|
||||||
|
|
@ -19,7 +21,7 @@ public interface SysDeptMapper
|
||||||
* @param dept 部门信息
|
* @param dept 部门信息
|
||||||
* @return 部门信息集合
|
* @return 部门信息集合
|
||||||
*/
|
*/
|
||||||
public List<SysDept> selectDeptList(SysDept dept);
|
List<SysDept> selectDeptList(SysDept dept);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据角色ID查询部门树信息
|
* 根据角色ID查询部门树信息
|
||||||
|
|
@ -28,7 +30,7 @@ public interface SysDeptMapper
|
||||||
* @param deptCheckStrictly 部门树选择项是否关联显示
|
* @param deptCheckStrictly 部门树选择项是否关联显示
|
||||||
* @return 选中部门列表
|
* @return 选中部门列表
|
||||||
*/
|
*/
|
||||||
public List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
|
List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据部门ID查询信息
|
* 根据部门ID查询信息
|
||||||
|
|
@ -36,7 +38,7 @@ public interface SysDeptMapper
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @return 部门信息
|
* @return 部门信息
|
||||||
*/
|
*/
|
||||||
public SysDept selectDeptById(Long deptId);
|
SysDept selectDeptById(Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据ID查询所有子部门
|
* 根据ID查询所有子部门
|
||||||
|
|
@ -44,7 +46,7 @@ public interface SysDeptMapper
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @return 部门列表
|
* @return 部门列表
|
||||||
*/
|
*/
|
||||||
public List<SysDept> selectChildrenDeptById(Long deptId);
|
List<SysDept> selectChildrenDeptById(Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据ID查询所有子部门(正常状态)
|
* 根据ID查询所有子部门(正常状态)
|
||||||
|
|
@ -52,7 +54,7 @@ public interface SysDeptMapper
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @return 子部门数
|
* @return 子部门数
|
||||||
*/
|
*/
|
||||||
public int selectNormalChildrenDeptById(Long deptId);
|
int selectNormalChildrenDeptById(Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否存在子节点
|
* 是否存在子节点
|
||||||
|
|
@ -60,7 +62,7 @@ public interface SysDeptMapper
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int hasChildByDeptId(Long deptId);
|
int hasChildByDeptId(Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询部门是否存在用户
|
* 查询部门是否存在用户
|
||||||
|
|
@ -68,7 +70,7 @@ public interface SysDeptMapper
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int checkDeptExistUser(Long deptId);
|
int checkDeptExistUser(Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验部门名称是否唯一
|
* 校验部门名称是否唯一
|
||||||
|
|
@ -77,7 +79,7 @@ public interface SysDeptMapper
|
||||||
* @param parentId 父部门ID
|
* @param parentId 父部门ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
|
SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增部门信息
|
* 新增部门信息
|
||||||
|
|
@ -85,7 +87,7 @@ public interface SysDeptMapper
|
||||||
* @param dept 部门信息
|
* @param dept 部门信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertDept(SysDept dept);
|
int insertDept(SysDept dept);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改部门信息
|
* 修改部门信息
|
||||||
|
|
@ -93,14 +95,14 @@ public interface SysDeptMapper
|
||||||
* @param dept 部门信息
|
* @param dept 部门信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateDept(SysDept dept);
|
int updateDept(SysDept dept);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改所在部门的父级部门状态
|
* 修改所在部门的父级部门状态
|
||||||
*
|
*
|
||||||
* @param dept 部门
|
* @param dept 部门
|
||||||
*/
|
*/
|
||||||
public void updateDeptStatus(SysDept dept);
|
void updateDeptStatus(SysDept dept);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改子元素关系
|
* 修改子元素关系
|
||||||
|
|
@ -108,7 +110,7 @@ public interface SysDeptMapper
|
||||||
* @param depts 子元素
|
* @param depts 子元素
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateDeptChildren(@Param("depts") List<SysDept> depts);
|
int updateDeptChildren(@Param("depts") List<SysDept> depts);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除部门管理信息
|
* 删除部门管理信息
|
||||||
|
|
@ -116,5 +118,5 @@ public interface SysDeptMapper
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDeptById(Long deptId);
|
int deleteDeptById(Long deptId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import com.ruoyi.system.domain.SysDictData;
|
import com.ruoyi.system.domain.SysDictData;
|
||||||
|
|
@ -11,7 +13,7 @@ import com.ruoyi.system.domain.SysDictData;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysDictDataMapper
|
public interface SysDictDataMapper extends BaseMapper<SysDictData>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 根据条件分页查询字典数据
|
* 根据条件分页查询字典数据
|
||||||
|
|
@ -19,7 +21,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictData 字典数据信息
|
* @param dictData 字典数据信息
|
||||||
* @return 字典数据集合信息
|
* @return 字典数据集合信息
|
||||||
*/
|
*/
|
||||||
public List<SysDictData> selectDictDataList(SysDictData dictData);
|
List<SysDictData> selectDictDataList(SysDictData dictData);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据字典类型查询字典数据
|
* 根据字典类型查询字典数据
|
||||||
|
|
@ -27,7 +29,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictType 字典类型
|
* @param dictType 字典类型
|
||||||
* @return 字典数据集合信息
|
* @return 字典数据集合信息
|
||||||
*/
|
*/
|
||||||
public List<SysDictData> selectDictDataByType(String dictType);
|
List<SysDictData> selectDictDataByType(String dictType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据字典类型和字典键值查询字典数据信息
|
* 根据字典类型和字典键值查询字典数据信息
|
||||||
|
|
@ -36,7 +38,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictValue 字典键值
|
* @param dictValue 字典键值
|
||||||
* @return 字典标签
|
* @return 字典标签
|
||||||
*/
|
*/
|
||||||
public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
|
String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据字典数据ID查询信息
|
* 根据字典数据ID查询信息
|
||||||
|
|
@ -44,7 +46,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictCode 字典数据ID
|
* @param dictCode 字典数据ID
|
||||||
* @return 字典数据
|
* @return 字典数据
|
||||||
*/
|
*/
|
||||||
public SysDictData selectDictDataById(Long dictCode);
|
SysDictData selectDictDataById(Long dictCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询字典数据
|
* 查询字典数据
|
||||||
|
|
@ -52,7 +54,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictType 字典类型
|
* @param dictType 字典类型
|
||||||
* @return 字典数据
|
* @return 字典数据
|
||||||
*/
|
*/
|
||||||
public int countDictDataByType(String dictType);
|
int countDictDataByType(String dictType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过字典ID删除字典数据信息
|
* 通过字典ID删除字典数据信息
|
||||||
|
|
@ -60,7 +62,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictCode 字典数据ID
|
* @param dictCode 字典数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDictDataById(Long dictCode);
|
int deleteDictDataById(Long dictCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除字典数据信息
|
* 批量删除字典数据信息
|
||||||
|
|
@ -68,7 +70,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictCodes 需要删除的字典数据ID
|
* @param dictCodes 需要删除的字典数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDictDataByIds(Long[] dictCodes);
|
int deleteDictDataByIds(Long[] dictCodes);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增字典数据信息
|
* 新增字典数据信息
|
||||||
|
|
@ -76,7 +78,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictData 字典数据信息
|
* @param dictData 字典数据信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertDictData(SysDictData dictData);
|
int insertDictData(SysDictData dictData);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改字典数据信息
|
* 修改字典数据信息
|
||||||
|
|
@ -84,7 +86,7 @@ public interface SysDictDataMapper
|
||||||
* @param dictData 字典数据信息
|
* @param dictData 字典数据信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateDictData(SysDictData dictData);
|
int updateDictData(SysDictData dictData);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 同步修改字典类型
|
* 同步修改字典类型
|
||||||
|
|
@ -93,5 +95,5 @@ public interface SysDictDataMapper
|
||||||
* @param newDictType 新旧字典类型
|
* @param newDictType 新旧字典类型
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
|
int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
import com.ruoyi.system.domain.SysDictType;
|
import com.ruoyi.system.domain.SysDictType;
|
||||||
|
|
@ -12,7 +14,7 @@ import com.ruoyi.system.domain.SysDictType;
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface SysDictTypeMapper
|
public interface SysDictTypeMapper extends BaseMapper<SysDictType>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 根据条件分页查询字典类型
|
* 根据条件分页查询字典类型
|
||||||
|
|
@ -20,14 +22,14 @@ public interface SysDictTypeMapper
|
||||||
* @param dictType 字典类型信息
|
* @param dictType 字典类型信息
|
||||||
* @return 字典类型集合信息
|
* @return 字典类型集合信息
|
||||||
*/
|
*/
|
||||||
public List<SysDictType> selectDictTypeList(SysDictType dictType);
|
List<SysDictType> selectDictTypeList(SysDictType dictType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据所有字典类型
|
* 根据所有字典类型
|
||||||
*
|
*
|
||||||
* @return 字典类型集合信息
|
* @return 字典类型集合信息
|
||||||
*/
|
*/
|
||||||
public List<SysDictType> selectDictTypeAll();
|
List<SysDictType> selectDictTypeAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据字典类型ID查询信息
|
* 根据字典类型ID查询信息
|
||||||
|
|
@ -35,7 +37,7 @@ public interface SysDictTypeMapper
|
||||||
* @param dictId 字典类型ID
|
* @param dictId 字典类型ID
|
||||||
* @return 字典类型
|
* @return 字典类型
|
||||||
*/
|
*/
|
||||||
public SysDictType selectDictTypeById(Long dictId);
|
SysDictType selectDictTypeById(Long dictId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据字典类型查询信息
|
* 根据字典类型查询信息
|
||||||
|
|
@ -43,7 +45,7 @@ public interface SysDictTypeMapper
|
||||||
* @param dictType 字典类型
|
* @param dictType 字典类型
|
||||||
* @return 字典类型
|
* @return 字典类型
|
||||||
*/
|
*/
|
||||||
public SysDictType selectDictTypeByType(String dictType);
|
SysDictType selectDictTypeByType(String dictType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过字典ID删除字典信息
|
* 通过字典ID删除字典信息
|
||||||
|
|
@ -51,7 +53,7 @@ public interface SysDictTypeMapper
|
||||||
* @param dictId 字典ID
|
* @param dictId 字典ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDictTypeById(Long dictId);
|
int deleteDictTypeById(Long dictId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除字典类型信息
|
* 批量删除字典类型信息
|
||||||
|
|
@ -59,7 +61,7 @@ public interface SysDictTypeMapper
|
||||||
* @param dictIds 需要删除的字典ID
|
* @param dictIds 需要删除的字典ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteDictTypeByIds(Long[] dictIds);
|
int deleteDictTypeByIds(Long[] dictIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增字典类型信息
|
* 新增字典类型信息
|
||||||
|
|
@ -67,7 +69,7 @@ public interface SysDictTypeMapper
|
||||||
* @param dictType 字典类型信息
|
* @param dictType 字典类型信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertDictType(SysDictType dictType);
|
int insertDictType(SysDictType dictType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改字典类型信息
|
* 修改字典类型信息
|
||||||
|
|
@ -75,7 +77,7 @@ public interface SysDictTypeMapper
|
||||||
* @param dictType 字典类型信息
|
* @param dictType 字典类型信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateDictType(SysDictType dictType);
|
int updateDictType(SysDictType dictType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验字典类型称是否唯一
|
* 校验字典类型称是否唯一
|
||||||
|
|
@ -83,5 +85,5 @@ public interface SysDictTypeMapper
|
||||||
* @param dictType 字典类型
|
* @param dictType 字典类型
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public SysDictType checkDictTypeUnique(String dictType);
|
SysDictType checkDictTypeUnique(String dictType);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
package com.ruoyi.system.mapper;
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import com.ruoyi.system.domain.SysLogininfor;
|
import com.ruoyi.system.domain.SysLogininfor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -8,14 +11,14 @@ import com.ruoyi.system.domain.SysLogininfor;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysLogininforMapper
|
public interface SysLogininforMapper extends BaseMapper<SysLogininfor>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 新增系统登录日志
|
* 新增系统登录日志
|
||||||
*
|
*
|
||||||
* @param logininfor 访问日志对象
|
* @param logininfor 访问日志对象
|
||||||
*/
|
*/
|
||||||
public int insertLogininfor(SysLogininfor logininfor);
|
int insertLogininfor(SysLogininfor logininfor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询系统登录日志集合
|
* 查询系统登录日志集合
|
||||||
|
|
@ -23,7 +26,7 @@ public interface SysLogininforMapper
|
||||||
* @param logininfor 访问日志对象
|
* @param logininfor 访问日志对象
|
||||||
* @return 登录记录集合
|
* @return 登录记录集合
|
||||||
*/
|
*/
|
||||||
public List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
|
List<SysLogininfor> selectLogininforList(SysLogininfor logininfor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除系统登录日志
|
* 批量删除系统登录日志
|
||||||
|
|
@ -31,12 +34,12 @@ public interface SysLogininforMapper
|
||||||
* @param infoIds 需要删除的登录日志ID
|
* @param infoIds 需要删除的登录日志ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteLogininforByIds(Long[] infoIds);
|
int deleteLogininforByIds(Long[] infoIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 清空系统登录日志
|
* 清空系统登录日志
|
||||||
*
|
*
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int cleanLogininfor();
|
int cleanLogininfor();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import com.ruoyi.system.domain.SysMenu;
|
import com.ruoyi.system.domain.SysMenu;
|
||||||
|
|
@ -11,7 +13,7 @@ import com.ruoyi.system.domain.SysMenu;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysMenuMapper
|
public interface SysMenuMapper extends BaseMapper<SysMenu>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询系统菜单列表
|
* 查询系统菜单列表
|
||||||
|
|
@ -19,14 +21,14 @@ public interface SysMenuMapper
|
||||||
* @param menu 菜单信息
|
* @param menu 菜单信息
|
||||||
* @return 菜单列表
|
* @return 菜单列表
|
||||||
*/
|
*/
|
||||||
public List<SysMenu> selectMenuList(SysMenu menu);
|
List<SysMenu> selectMenuList(SysMenu menu);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户所有权限
|
* 根据用户所有权限
|
||||||
*
|
*
|
||||||
* @return 权限列表
|
* @return 权限列表
|
||||||
*/
|
*/
|
||||||
public List<String> selectMenuPerms();
|
List<String> selectMenuPerms();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户查询系统菜单列表
|
* 根据用户查询系统菜单列表
|
||||||
|
|
@ -34,7 +36,7 @@ public interface SysMenuMapper
|
||||||
* @param menu 菜单信息
|
* @param menu 菜单信息
|
||||||
* @return 菜单列表
|
* @return 菜单列表
|
||||||
*/
|
*/
|
||||||
public List<SysMenu> selectMenuListByUserId(SysMenu menu);
|
List<SysMenu> selectMenuListByUserId(SysMenu menu);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户ID查询权限
|
* 根据用户ID查询权限
|
||||||
|
|
@ -42,14 +44,14 @@ public interface SysMenuMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 权限列表
|
* @return 权限列表
|
||||||
*/
|
*/
|
||||||
public List<String> selectMenuPermsByUserId(Long userId);
|
List<String> selectMenuPermsByUserId(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户ID查询菜单
|
* 根据用户ID查询菜单
|
||||||
*
|
*
|
||||||
* @return 菜单列表
|
* @return 菜单列表
|
||||||
*/
|
*/
|
||||||
public List<SysMenu> selectMenuTreeAll();
|
List<SysMenu> selectMenuTreeAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户ID查询菜单
|
* 根据用户ID查询菜单
|
||||||
|
|
@ -57,7 +59,7 @@ public interface SysMenuMapper
|
||||||
* @param username 用户ID
|
* @param username 用户ID
|
||||||
* @return 菜单列表
|
* @return 菜单列表
|
||||||
*/
|
*/
|
||||||
public List<SysMenu> selectMenuTreeByUserId(Long userId);
|
List<SysMenu> selectMenuTreeByUserId(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据角色ID查询菜单树信息
|
* 根据角色ID查询菜单树信息
|
||||||
|
|
@ -66,7 +68,7 @@ public interface SysMenuMapper
|
||||||
* @param menuCheckStrictly 菜单树选择项是否关联显示
|
* @param menuCheckStrictly 菜单树选择项是否关联显示
|
||||||
* @return 选中菜单列表
|
* @return 选中菜单列表
|
||||||
*/
|
*/
|
||||||
public List<Integer> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
|
List<Integer> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据菜单ID查询信息
|
* 根据菜单ID查询信息
|
||||||
|
|
@ -74,7 +76,7 @@ public interface SysMenuMapper
|
||||||
* @param menuId 菜单ID
|
* @param menuId 菜单ID
|
||||||
* @return 菜单信息
|
* @return 菜单信息
|
||||||
*/
|
*/
|
||||||
public SysMenu selectMenuById(Long menuId);
|
SysMenu selectMenuById(Long menuId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否存在菜单子节点
|
* 是否存在菜单子节点
|
||||||
|
|
@ -82,7 +84,7 @@ public interface SysMenuMapper
|
||||||
* @param menuId 菜单ID
|
* @param menuId 菜单ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int hasChildByMenuId(Long menuId);
|
int hasChildByMenuId(Long menuId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增菜单信息
|
* 新增菜单信息
|
||||||
|
|
@ -90,7 +92,7 @@ public interface SysMenuMapper
|
||||||
* @param menu 菜单信息
|
* @param menu 菜单信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertMenu(SysMenu menu);
|
int insertMenu(SysMenu menu);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改菜单信息
|
* 修改菜单信息
|
||||||
|
|
@ -98,7 +100,7 @@ public interface SysMenuMapper
|
||||||
* @param menu 菜单信息
|
* @param menu 菜单信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateMenu(SysMenu menu);
|
int updateMenu(SysMenu menu);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除菜单管理信息
|
* 删除菜单管理信息
|
||||||
|
|
@ -106,7 +108,7 @@ public interface SysMenuMapper
|
||||||
* @param menuId 菜单ID
|
* @param menuId 菜单ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteMenuById(Long menuId);
|
int deleteMenuById(Long menuId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验菜单名称是否唯一
|
* 校验菜单名称是否唯一
|
||||||
|
|
@ -115,5 +117,5 @@ public interface SysMenuMapper
|
||||||
* @param parentId 父菜单ID
|
* @param parentId 父菜单ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
|
SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import com.ruoyi.system.domain.SysNotice;
|
import com.ruoyi.system.domain.SysNotice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9,7 +11,7 @@ import com.ruoyi.system.domain.SysNotice;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysNoticeMapper
|
public interface SysNoticeMapper extends BaseMapper<SysNotice>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询公告信息
|
* 查询公告信息
|
||||||
|
|
@ -17,7 +19,7 @@ public interface SysNoticeMapper
|
||||||
* @param noticeId 公告ID
|
* @param noticeId 公告ID
|
||||||
* @return 公告信息
|
* @return 公告信息
|
||||||
*/
|
*/
|
||||||
public SysNotice selectNoticeById(Long noticeId);
|
SysNotice selectNoticeById(Long noticeId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询公告列表
|
* 查询公告列表
|
||||||
|
|
@ -25,7 +27,7 @@ public interface SysNoticeMapper
|
||||||
* @param notice 公告信息
|
* @param notice 公告信息
|
||||||
* @return 公告集合
|
* @return 公告集合
|
||||||
*/
|
*/
|
||||||
public List<SysNotice> selectNoticeList(SysNotice notice);
|
List<SysNotice> selectNoticeList(SysNotice notice);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增公告
|
* 新增公告
|
||||||
|
|
@ -33,7 +35,7 @@ public interface SysNoticeMapper
|
||||||
* @param notice 公告信息
|
* @param notice 公告信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertNotice(SysNotice notice);
|
int insertNotice(SysNotice notice);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改公告
|
* 修改公告
|
||||||
|
|
@ -41,7 +43,7 @@ public interface SysNoticeMapper
|
||||||
* @param notice 公告信息
|
* @param notice 公告信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateNotice(SysNotice notice);
|
int updateNotice(SysNotice notice);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除公告
|
* 批量删除公告
|
||||||
|
|
@ -49,7 +51,7 @@ public interface SysNoticeMapper
|
||||||
* @param noticeId 公告ID
|
* @param noticeId 公告ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteNoticeById(Long noticeId);
|
int deleteNoticeById(Long noticeId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除公告信息
|
* 批量删除公告信息
|
||||||
|
|
@ -57,5 +59,5 @@ public interface SysNoticeMapper
|
||||||
* @param noticeIds 需要删除的公告ID
|
* @param noticeIds 需要删除的公告ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteNoticeByIds(Long[] noticeIds);
|
int deleteNoticeByIds(Long[] noticeIds);
|
||||||
}
|
}
|
||||||
|
|
@ -2,21 +2,23 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.ruoyi.system.api.domain.SysOperLog;
|
import com.ruoyi.system.api.domain.SysOperLog;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 操作日志 数据层
|
* 操作日志 数据层
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysOperLogMapper
|
public interface SysOperLogMapper extends BaseMapper<SysOperLog>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 新增操作日志
|
* 新增操作日志
|
||||||
*
|
*
|
||||||
* @param operLog 操作日志对象
|
* @param operLog 操作日志对象
|
||||||
*/
|
*/
|
||||||
public int insertOperlog(SysOperLog operLog);
|
int insertOperlog(SysOperLog operLog);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询系统操作日志集合
|
* 查询系统操作日志集合
|
||||||
|
|
@ -24,7 +26,7 @@ public interface SysOperLogMapper
|
||||||
* @param operLog 操作日志对象
|
* @param operLog 操作日志对象
|
||||||
* @return 操作日志集合
|
* @return 操作日志集合
|
||||||
*/
|
*/
|
||||||
public List<SysOperLog> selectOperLogList(SysOperLog operLog);
|
List<SysOperLog> selectOperLogList(SysOperLog operLog);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除系统操作日志
|
* 批量删除系统操作日志
|
||||||
|
|
@ -32,7 +34,7 @@ public interface SysOperLogMapper
|
||||||
* @param operIds 需要删除的操作日志ID
|
* @param operIds 需要删除的操作日志ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteOperLogByIds(Long[] operIds);
|
int deleteOperLogByIds(Long[] operIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询操作日志详细
|
* 查询操作日志详细
|
||||||
|
|
@ -40,10 +42,10 @@ public interface SysOperLogMapper
|
||||||
* @param operId 操作ID
|
* @param operId 操作ID
|
||||||
* @return 操作日志对象
|
* @return 操作日志对象
|
||||||
*/
|
*/
|
||||||
public SysOperLog selectOperLogById(Long operId);
|
SysOperLog selectOperLogById(Long operId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 清空操作日志
|
* 清空操作日志
|
||||||
*/
|
*/
|
||||||
public void cleanOperLog();
|
void cleanOperLog();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import com.ruoyi.system.domain.SysPost;
|
import com.ruoyi.system.domain.SysPost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9,7 +11,7 @@ import com.ruoyi.system.domain.SysPost;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysPostMapper
|
public interface SysPostMapper extends BaseMapper<SysPost>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询岗位数据集合
|
* 查询岗位数据集合
|
||||||
|
|
@ -17,14 +19,14 @@ public interface SysPostMapper
|
||||||
* @param post 岗位信息
|
* @param post 岗位信息
|
||||||
* @return 岗位数据集合
|
* @return 岗位数据集合
|
||||||
*/
|
*/
|
||||||
public List<SysPost> selectPostList(SysPost post);
|
List<SysPost> selectPostList(SysPost post);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有岗位
|
* 查询所有岗位
|
||||||
*
|
*
|
||||||
* @return 岗位列表
|
* @return 岗位列表
|
||||||
*/
|
*/
|
||||||
public List<SysPost> selectPostAll();
|
List<SysPost> selectPostAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过岗位ID查询岗位信息
|
* 通过岗位ID查询岗位信息
|
||||||
|
|
@ -32,7 +34,7 @@ public interface SysPostMapper
|
||||||
* @param postId 岗位ID
|
* @param postId 岗位ID
|
||||||
* @return 角色对象信息
|
* @return 角色对象信息
|
||||||
*/
|
*/
|
||||||
public SysPost selectPostById(Long postId);
|
SysPost selectPostById(Long postId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户ID获取岗位选择框列表
|
* 根据用户ID获取岗位选择框列表
|
||||||
|
|
@ -40,7 +42,7 @@ public interface SysPostMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 选中岗位ID列表
|
* @return 选中岗位ID列表
|
||||||
*/
|
*/
|
||||||
public List<Integer> selectPostListByUserId(Long userId);
|
List<Integer> selectPostListByUserId(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询用户所属岗位组
|
* 查询用户所属岗位组
|
||||||
|
|
@ -48,7 +50,7 @@ public interface SysPostMapper
|
||||||
* @param userName 用户名
|
* @param userName 用户名
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public List<SysPost> selectPostsByUserName(String userName);
|
List<SysPost> selectPostsByUserName(String userName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除岗位信息
|
* 删除岗位信息
|
||||||
|
|
@ -56,7 +58,7 @@ public interface SysPostMapper
|
||||||
* @param postId 岗位ID
|
* @param postId 岗位ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deletePostById(Long postId);
|
int deletePostById(Long postId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除岗位信息
|
* 批量删除岗位信息
|
||||||
|
|
@ -64,7 +66,7 @@ public interface SysPostMapper
|
||||||
* @param postIds 需要删除的岗位ID
|
* @param postIds 需要删除的岗位ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deletePostByIds(Long[] postIds);
|
int deletePostByIds(Long[] postIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改岗位信息
|
* 修改岗位信息
|
||||||
|
|
@ -72,7 +74,7 @@ public interface SysPostMapper
|
||||||
* @param post 岗位信息
|
* @param post 岗位信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updatePost(SysPost post);
|
int updatePost(SysPost post);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增岗位信息
|
* 新增岗位信息
|
||||||
|
|
@ -80,7 +82,7 @@ public interface SysPostMapper
|
||||||
* @param post 岗位信息
|
* @param post 岗位信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertPost(SysPost post);
|
int insertPost(SysPost post);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验岗位名称
|
* 校验岗位名称
|
||||||
|
|
@ -88,7 +90,7 @@ public interface SysPostMapper
|
||||||
* @param postName 岗位名称
|
* @param postName 岗位名称
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public SysPost checkPostNameUnique(String postName);
|
SysPost checkPostNameUnique(String postName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验岗位编码
|
* 校验岗位编码
|
||||||
|
|
@ -96,5 +98,5 @@ public interface SysPostMapper
|
||||||
* @param postCode 岗位编码
|
* @param postCode 岗位编码
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public SysPost checkPostCodeUnique(String postCode);
|
SysPost checkPostCodeUnique(String postCode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import com.ruoyi.system.domain.SysRoleDept;
|
import com.ruoyi.system.domain.SysRoleDept;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9,7 +11,7 @@ import com.ruoyi.system.domain.SysRoleDept;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysRoleDeptMapper
|
public interface SysRoleDeptMapper extends BaseMapper<SysRoleDept>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 通过角色ID删除角色和部门关联
|
* 通过角色ID删除角色和部门关联
|
||||||
|
|
@ -17,7 +19,7 @@ public interface SysRoleDeptMapper
|
||||||
* @param roleId 角色ID
|
* @param roleId 角色ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteRoleDeptByRoleId(Long roleId);
|
int deleteRoleDeptByRoleId(Long roleId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除角色部门关联信息
|
* 批量删除角色部门关联信息
|
||||||
|
|
@ -25,7 +27,7 @@ public interface SysRoleDeptMapper
|
||||||
* @param ids 需要删除的数据ID
|
* @param ids 需要删除的数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteRoleDept(Long[] ids);
|
int deleteRoleDept(Long[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询部门使用数量
|
* 查询部门使用数量
|
||||||
|
|
@ -33,7 +35,7 @@ public interface SysRoleDeptMapper
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int selectCountRoleDeptByDeptId(Long deptId);
|
int selectCountRoleDeptByDeptId(Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量新增角色部门信息
|
* 批量新增角色部门信息
|
||||||
|
|
@ -41,5 +43,5 @@ public interface SysRoleDeptMapper
|
||||||
* @param roleDeptList 角色部门列表
|
* @param roleDeptList 角色部门列表
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int batchRoleDept(List<SysRoleDept> roleDeptList);
|
int batchRoleDept(List<SysRoleDept> roleDeptList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,16 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.ruoyi.system.api.domain.SysRole;
|
import com.ruoyi.system.api.domain.SysRole;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色表 数据层
|
* 角色表 数据层
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysRoleMapper
|
public interface SysRoleMapper extends BaseMapper<SysRole>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 根据条件分页查询角色数据
|
* 根据条件分页查询角色数据
|
||||||
|
|
@ -17,7 +19,7 @@ public interface SysRoleMapper
|
||||||
* @param role 角色信息
|
* @param role 角色信息
|
||||||
* @return 角色数据集合信息
|
* @return 角色数据集合信息
|
||||||
*/
|
*/
|
||||||
public List<SysRole> selectRoleList(SysRole role);
|
List<SysRole> selectRoleList(SysRole role);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户ID查询角色
|
* 根据用户ID查询角色
|
||||||
|
|
@ -25,14 +27,14 @@ public interface SysRoleMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 角色列表
|
* @return 角色列表
|
||||||
*/
|
*/
|
||||||
public List<SysRole> selectRolePermissionByUserId(Long userId);
|
List<SysRole> selectRolePermissionByUserId(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询所有角色
|
* 查询所有角色
|
||||||
*
|
*
|
||||||
* @return 角色列表
|
* @return 角色列表
|
||||||
*/
|
*/
|
||||||
public List<SysRole> selectRoleAll();
|
List<SysRole> selectRoleAll();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户ID获取角色选择框列表
|
* 根据用户ID获取角色选择框列表
|
||||||
|
|
@ -40,7 +42,7 @@ public interface SysRoleMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 选中角色ID列表
|
* @return 选中角色ID列表
|
||||||
*/
|
*/
|
||||||
public List<Integer> selectRoleListByUserId(Long userId);
|
List<Integer> selectRoleListByUserId(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过角色ID查询角色
|
* 通过角色ID查询角色
|
||||||
|
|
@ -48,7 +50,7 @@ public interface SysRoleMapper
|
||||||
* @param roleId 角色ID
|
* @param roleId 角色ID
|
||||||
* @return 角色对象信息
|
* @return 角色对象信息
|
||||||
*/
|
*/
|
||||||
public SysRole selectRoleById(Long roleId);
|
SysRole selectRoleById(Long roleId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户ID查询角色
|
* 根据用户ID查询角色
|
||||||
|
|
@ -56,7 +58,7 @@ public interface SysRoleMapper
|
||||||
* @param userName 用户名
|
* @param userName 用户名
|
||||||
* @return 角色列表
|
* @return 角色列表
|
||||||
*/
|
*/
|
||||||
public List<SysRole> selectRolesByUserName(String userName);
|
List<SysRole> selectRolesByUserName(String userName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验角色名称是否唯一
|
* 校验角色名称是否唯一
|
||||||
|
|
@ -64,7 +66,7 @@ public interface SysRoleMapper
|
||||||
* @param roleName 角色名称
|
* @param roleName 角色名称
|
||||||
* @return 角色信息
|
* @return 角色信息
|
||||||
*/
|
*/
|
||||||
public SysRole checkRoleNameUnique(String roleName);
|
SysRole checkRoleNameUnique(String roleName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验角色权限是否唯一
|
* 校验角色权限是否唯一
|
||||||
|
|
@ -72,7 +74,7 @@ public interface SysRoleMapper
|
||||||
* @param roleKey 角色权限
|
* @param roleKey 角色权限
|
||||||
* @return 角色信息
|
* @return 角色信息
|
||||||
*/
|
*/
|
||||||
public SysRole checkRoleKeyUnique(String roleKey);
|
SysRole checkRoleKeyUnique(String roleKey);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改角色信息
|
* 修改角色信息
|
||||||
|
|
@ -80,7 +82,7 @@ public interface SysRoleMapper
|
||||||
* @param role 角色信息
|
* @param role 角色信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateRole(SysRole role);
|
int updateRole(SysRole role);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增角色信息
|
* 新增角色信息
|
||||||
|
|
@ -88,7 +90,7 @@ public interface SysRoleMapper
|
||||||
* @param role 角色信息
|
* @param role 角色信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertRole(SysRole role);
|
int insertRole(SysRole role);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过角色ID删除角色
|
* 通过角色ID删除角色
|
||||||
|
|
@ -96,7 +98,7 @@ public interface SysRoleMapper
|
||||||
* @param roleId 角色ID
|
* @param roleId 角色ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteRoleById(Long roleId);
|
int deleteRoleById(Long roleId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除角色信息
|
* 批量删除角色信息
|
||||||
|
|
@ -104,5 +106,5 @@ public interface SysRoleMapper
|
||||||
* @param roleIds 需要删除的角色ID
|
* @param roleIds 需要删除的角色ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteRoleByIds(Long[] roleIds);
|
int deleteRoleByIds(Long[] roleIds);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import com.ruoyi.system.domain.SysRoleMenu;
|
import com.ruoyi.system.domain.SysRoleMenu;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9,7 +11,7 @@ import com.ruoyi.system.domain.SysRoleMenu;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysRoleMenuMapper
|
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询菜单使用数量
|
* 查询菜单使用数量
|
||||||
|
|
@ -17,7 +19,7 @@ public interface SysRoleMenuMapper
|
||||||
* @param menuId 菜单ID
|
* @param menuId 菜单ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int checkMenuExistRole(Long menuId);
|
int checkMenuExistRole(Long menuId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过角色ID删除角色和菜单关联
|
* 通过角色ID删除角色和菜单关联
|
||||||
|
|
@ -25,7 +27,7 @@ public interface SysRoleMenuMapper
|
||||||
* @param roleId 角色ID
|
* @param roleId 角色ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteRoleMenuByRoleId(Long roleId);
|
int deleteRoleMenuByRoleId(Long roleId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除角色菜单关联信息
|
* 批量删除角色菜单关联信息
|
||||||
|
|
@ -33,7 +35,7 @@ public interface SysRoleMenuMapper
|
||||||
* @param ids 需要删除的数据ID
|
* @param ids 需要删除的数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteRoleMenu(Long[] ids);
|
int deleteRoleMenu(Long[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量新增角色菜单信息
|
* 批量新增角色菜单信息
|
||||||
|
|
@ -41,5 +43,5 @@ public interface SysRoleMenuMapper
|
||||||
* @param roleMenuList 角色菜单列表
|
* @param roleMenuList 角色菜单列表
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int batchRoleMenu(List<SysRoleMenu> roleMenuList);
|
int batchRoleMenu(List<SysRoleMenu> roleMenuList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import com.ruoyi.system.api.domain.SysUser;
|
import com.ruoyi.system.api.domain.SysUser;
|
||||||
|
|
@ -11,7 +13,7 @@ import com.ruoyi.system.api.domain.SysUser;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysUserMapper
|
public interface SysUserMapper extends BaseMapper<SysUser>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 根据条件分页查询用户列表
|
* 根据条件分页查询用户列表
|
||||||
|
|
@ -19,7 +21,7 @@ public interface SysUserMapper
|
||||||
* @param sysUser 用户信息
|
* @param sysUser 用户信息
|
||||||
* @return 用户信息集合信息
|
* @return 用户信息集合信息
|
||||||
*/
|
*/
|
||||||
public List<SysUser> selectUserList(SysUser sysUser);
|
List<SysUser> selectUserList(SysUser sysUser);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过用户名查询用户
|
* 通过用户名查询用户
|
||||||
|
|
@ -27,7 +29,7 @@ public interface SysUserMapper
|
||||||
* @param userName 用户名
|
* @param userName 用户名
|
||||||
* @return 用户对象信息
|
* @return 用户对象信息
|
||||||
*/
|
*/
|
||||||
public SysUser selectUserByUserName(String userName);
|
SysUser selectUserByUserName(String userName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过用户ID查询用户
|
* 通过用户ID查询用户
|
||||||
|
|
@ -35,7 +37,7 @@ public interface SysUserMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 用户对象信息
|
* @return 用户对象信息
|
||||||
*/
|
*/
|
||||||
public SysUser selectUserById(Long userId);
|
SysUser selectUserById(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增用户信息
|
* 新增用户信息
|
||||||
|
|
@ -43,7 +45,7 @@ public interface SysUserMapper
|
||||||
* @param user 用户信息
|
* @param user 用户信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int insertUser(SysUser user);
|
int insertUser(SysUser user);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改用户信息
|
* 修改用户信息
|
||||||
|
|
@ -51,7 +53,7 @@ public interface SysUserMapper
|
||||||
* @param user 用户信息
|
* @param user 用户信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateUser(SysUser user);
|
int updateUser(SysUser user);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改用户头像
|
* 修改用户头像
|
||||||
|
|
@ -60,7 +62,7 @@ public interface SysUserMapper
|
||||||
* @param avatar 头像地址
|
* @param avatar 头像地址
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar);
|
int updateUserAvatar(@Param("userName") String userName, @Param("avatar") String avatar);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置用户密码
|
* 重置用户密码
|
||||||
|
|
@ -69,7 +71,7 @@ public interface SysUserMapper
|
||||||
* @param password 密码
|
* @param password 密码
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int resetUserPwd(@Param("userName") String userName, @Param("password") String password);
|
int resetUserPwd(@Param("userName") String userName, @Param("password") String password);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过用户ID删除用户
|
* 通过用户ID删除用户
|
||||||
|
|
@ -77,7 +79,7 @@ public interface SysUserMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserById(Long userId);
|
int deleteUserById(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除用户信息
|
* 批量删除用户信息
|
||||||
|
|
@ -85,7 +87,7 @@ public interface SysUserMapper
|
||||||
* @param userIds 需要删除的用户ID
|
* @param userIds 需要删除的用户ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserByIds(Long[] userIds);
|
int deleteUserByIds(Long[] userIds);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验用户名称是否唯一
|
* 校验用户名称是否唯一
|
||||||
|
|
@ -93,7 +95,7 @@ public interface SysUserMapper
|
||||||
* @param userName 用户名称
|
* @param userName 用户名称
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int checkUserNameUnique(String userName);
|
int checkUserNameUnique(String userName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验手机号码是否唯一
|
* 校验手机号码是否唯一
|
||||||
|
|
@ -101,7 +103,7 @@ public interface SysUserMapper
|
||||||
* @param phonenumber 手机号码
|
* @param phonenumber 手机号码
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public SysUser checkPhoneUnique(String phonenumber);
|
SysUser checkPhoneUnique(String phonenumber);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验email是否唯一
|
* 校验email是否唯一
|
||||||
|
|
@ -109,5 +111,5 @@ public interface SysUserMapper
|
||||||
* @param email 用户邮箱
|
* @param email 用户邮箱
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public SysUser checkEmailUnique(String email);
|
SysUser checkEmailUnique(String email);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import com.ruoyi.system.domain.SysUserPost;
|
import com.ruoyi.system.domain.SysUserPost;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9,7 +11,7 @@ import com.ruoyi.system.domain.SysUserPost;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysUserPostMapper
|
public interface SysUserPostMapper extends BaseMapper<SysUserPost>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 通过用户ID删除用户和岗位关联
|
* 通过用户ID删除用户和岗位关联
|
||||||
|
|
@ -17,7 +19,7 @@ public interface SysUserPostMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserPostByUserId(Long userId);
|
int deleteUserPostByUserId(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过岗位ID查询岗位使用数量
|
* 通过岗位ID查询岗位使用数量
|
||||||
|
|
@ -25,7 +27,7 @@ public interface SysUserPostMapper
|
||||||
* @param postId 岗位ID
|
* @param postId 岗位ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int countUserPostById(Long postId);
|
int countUserPostById(Long postId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除用户和岗位关联
|
* 批量删除用户和岗位关联
|
||||||
|
|
@ -33,7 +35,7 @@ public interface SysUserPostMapper
|
||||||
* @param ids 需要删除的数据ID
|
* @param ids 需要删除的数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserPost(Long[] ids);
|
int deleteUserPost(Long[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量新增用户岗位信息
|
* 批量新增用户岗位信息
|
||||||
|
|
@ -41,5 +43,5 @@ public interface SysUserPostMapper
|
||||||
* @param userPostList 用户角色列表
|
* @param userPostList 用户角色列表
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int batchUserPost(List<SysUserPost> userPostList);
|
int batchUserPost(List<SysUserPost> userPostList);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@ package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.ruoyi.system.domain.SysConfig;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import com.ruoyi.system.domain.SysUserRole;
|
import com.ruoyi.system.domain.SysUserRole;
|
||||||
|
|
@ -11,7 +13,7 @@ import com.ruoyi.system.domain.SysUserRole;
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public interface SysUserRoleMapper
|
public interface SysUserRoleMapper extends BaseMapper<SysUserRole>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 通过用户ID删除用户和角色关联
|
* 通过用户ID删除用户和角色关联
|
||||||
|
|
@ -19,7 +21,7 @@ public interface SysUserRoleMapper
|
||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserRoleByUserId(Long userId);
|
int deleteUserRoleByUserId(Long userId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除用户和角色关联
|
* 批量删除用户和角色关联
|
||||||
|
|
@ -27,7 +29,7 @@ public interface SysUserRoleMapper
|
||||||
* @param ids 需要删除的数据ID
|
* @param ids 需要删除的数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserRole(Long[] ids);
|
int deleteUserRole(Long[] ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过角色ID查询角色使用数量
|
* 通过角色ID查询角色使用数量
|
||||||
|
|
@ -35,7 +37,7 @@ public interface SysUserRoleMapper
|
||||||
* @param roleId 角色ID
|
* @param roleId 角色ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int countUserRoleByRoleId(Long roleId);
|
int countUserRoleByRoleId(Long roleId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量新增用户角色信息
|
* 批量新增用户角色信息
|
||||||
|
|
@ -43,7 +45,7 @@ public interface SysUserRoleMapper
|
||||||
* @param userRoleList 用户角色列表
|
* @param userRoleList 用户角色列表
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int batchUserRole(List<SysUserRole> userRoleList);
|
int batchUserRole(List<SysUserRole> userRoleList);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除用户和角色关联信息
|
* 删除用户和角色关联信息
|
||||||
|
|
@ -51,7 +53,7 @@ public interface SysUserRoleMapper
|
||||||
* @param userRole 用户和角色关联信息
|
* @param userRole 用户和角色关联信息
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserRoleInfo(SysUserRole userRole);
|
int deleteUserRoleInfo(SysUserRole userRole);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量取消授权用户角色
|
* 批量取消授权用户角色
|
||||||
|
|
@ -60,5 +62,5 @@ public interface SysUserRoleMapper
|
||||||
* @param userIds 需要删除的用户数据ID
|
* @param userIds 需要删除的用户数据ID
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
|
int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,18 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysConfigMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysConfigMapper">
|
||||||
|
|
||||||
<resultMap type="SysConfig" id="SysConfigResult">
|
|
||||||
<id property="configId" column="config_id" />
|
|
||||||
<result property="configName" column="config_name" />
|
|
||||||
<result property="configKey" column="config_key" />
|
|
||||||
<result property="configValue" column="config_value" />
|
|
||||||
<result property="configType" column="config_type" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectConfigVo">
|
<sql id="selectConfigVo">
|
||||||
select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark
|
select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark
|
||||||
from sys_config
|
from sys_config
|
||||||
|
|
@ -33,12 +21,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectConfig" parameterType="SysConfig" resultMap="SysConfigResult">
|
<select id="selectConfig" parameterType="SysConfig" resultType="SysConfig">
|
||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
<include refid="sqlwhereSearch"/>
|
<include refid="sqlwhereSearch"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectConfigList" parameterType="SysConfig" resultMap="SysConfigResult">
|
<select id="selectConfigList" parameterType="SysConfig" resultType="SysConfig">
|
||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="configName != null and configName != ''">
|
<if test="configName != null and configName != ''">
|
||||||
|
|
@ -59,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult">
|
<select id="checkConfigKeyUnique" parameterType="String" resultType="SysConfig">
|
||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
where config_key = #{configKey} limit 1
|
where config_key = #{configKey} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,30 +4,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
|
||||||
|
|
||||||
<resultMap type="SysDept" id="SysDeptResult">
|
|
||||||
<id property="deptId" column="dept_id" />
|
|
||||||
<result property="parentId" column="parent_id" />
|
|
||||||
<result property="ancestors" column="ancestors" />
|
|
||||||
<result property="deptName" column="dept_name" />
|
|
||||||
<result property="orderNum" column="order_num" />
|
|
||||||
<result property="leader" column="leader" />
|
|
||||||
<result property="phone" column="phone" />
|
|
||||||
<result property="email" column="email" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="delFlag" column="del_flag" />
|
|
||||||
<result property="parentName" column="parent_name" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectDeptVo">
|
<sql id="selectDeptVo">
|
||||||
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
||||||
from sys_dept d
|
from sys_dept d
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">
|
<select id="selectDeptList" parameterType="SysDept" resultType="SysDept">
|
||||||
<include refid="selectDeptVo"/>
|
<include refid="selectDeptVo"/>
|
||||||
where d.del_flag = '0'
|
where d.del_flag = '0'
|
||||||
<if test="parentId != null and parentId != 0">
|
<if test="parentId != null and parentId != 0">
|
||||||
|
|
@ -55,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
order by d.parent_id, d.order_num
|
order by d.parent_id, d.order_num
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
<select id="selectDeptById" parameterType="Long" resultType="SysDept">
|
||||||
<include refid="selectDeptVo"/>
|
<include refid="selectDeptVo"/>
|
||||||
where dept_id = #{deptId}
|
where dept_id = #{deptId}
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -69,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where del_flag = '0' and parent_id = #{deptId}
|
where del_flag = '0' and parent_id = #{deptId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">
|
<select id="selectChildrenDeptById" parameterType="Long" resultType="SysDept">
|
||||||
select * from sys_dept where find_in_set(#{deptId}, ancestors)
|
select * from sys_dept where find_in_set(#{deptId}, ancestors)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -77,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
|
select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkDeptNameUnique" resultMap="SysDeptResult">
|
<select id="checkDeptNameUnique" resultType="SysDept">
|
||||||
<include refid="selectDeptVo"/>
|
<include refid="selectDeptVo"/>
|
||||||
where dept_name=#{deptName} and parent_id = #{parentId} limit 1
|
where dept_name=#{deptName} and parent_id = #{parentId} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,28 +4,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysDictDataMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysDictDataMapper">
|
||||||
|
|
||||||
<resultMap type="SysDictData" id="SysDictDataResult">
|
|
||||||
<id property="dictCode" column="dict_code" />
|
|
||||||
<result property="dictSort" column="dict_sort" />
|
|
||||||
<result property="dictLabel" column="dict_label" />
|
|
||||||
<result property="dictValue" column="dict_value" />
|
|
||||||
<result property="dictType" column="dict_type" />
|
|
||||||
<result property="cssClass" column="css_class" />
|
|
||||||
<result property="listClass" column="list_class" />
|
|
||||||
<result property="isDefault" column="is_default" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectDictDataVo">
|
<sql id="selectDictDataVo">
|
||||||
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
|
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark
|
||||||
from sys_dict_data
|
from sys_dict_data
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDictDataList" parameterType="SysDictData" resultMap="SysDictDataResult">
|
<select id="selectDictDataList" parameterType="SysDictData" resultType="SysDictData">
|
||||||
<include refid="selectDictDataVo"/>
|
<include refid="selectDictDataVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="dictType != null and dictType != ''">
|
<if test="dictType != null and dictType != ''">
|
||||||
|
|
@ -41,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
order by dict_sort asc
|
order by dict_sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictDataByType" parameterType="SysDictData" resultMap="SysDictDataResult">
|
<select id="selectDictDataByType" parameterType="SysDictData" resultType="SysDictData">
|
||||||
<include refid="selectDictDataVo"/>
|
<include refid="selectDictDataVo"/>
|
||||||
where status = '0' and dict_type = #{dictType} order by dict_sort asc
|
where status = '0' and dict_type = #{dictType} order by dict_sort asc
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -51,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where dict_type = #{dictType} and dict_value = #{dictValue}
|
where dict_type = #{dictType} and dict_value = #{dictValue}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictDataById" parameterType="Long" resultMap="SysDictDataResult">
|
<select id="selectDictDataById" parameterType="Long" resultType="SysDictData">
|
||||||
<include refid="selectDictDataVo"/>
|
<include refid="selectDictDataVo"/>
|
||||||
where dict_code = #{dictCode}
|
where dict_code = #{dictCode}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,23 +4,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysDictTypeMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysDictTypeMapper">
|
||||||
|
|
||||||
<resultMap type="SysDictType" id="SysDictTypeResult">
|
|
||||||
<id property="dictId" column="dict_id" />
|
|
||||||
<result property="dictName" column="dict_name" />
|
|
||||||
<result property="dictType" column="dict_type" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectDictTypeVo">
|
<sql id="selectDictTypeVo">
|
||||||
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
|
select dict_id, dict_name, dict_type, status, create_by, create_time, remark
|
||||||
from sys_dict_type
|
from sys_dict_type
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDictTypeList" parameterType="SysDictType" resultMap="SysDictTypeResult">
|
<select id="selectDictTypeList" parameterType="SysDictType" resultType="SysDictType">
|
||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="dictName != null and dictName != ''">
|
<if test="dictName != null and dictName != ''">
|
||||||
|
|
@ -41,21 +30,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictTypeAll" resultMap="SysDictTypeResult">
|
<select id="selectDictTypeAll" resultType="SysDictType">
|
||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictTypeById" parameterType="Long" resultMap="SysDictTypeResult">
|
<select id="selectDictTypeById" parameterType="Long" resultType="SysDictType">
|
||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
where dict_id = #{dictId}
|
where dict_id = #{dictId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectDictTypeByType" parameterType="String" resultMap="SysDictTypeResult">
|
<select id="selectDictTypeByType" parameterType="String" resultType="SysDictType">
|
||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
where dict_type = #{dictType}
|
where dict_type = #{dictType}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkDictTypeUnique" parameterType="String" resultMap="SysDictTypeResult">
|
<select id="checkDictTypeUnique" parameterType="String" resultType="SysDictType">
|
||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
where dict_type = #{dictType} limit 1
|
where dict_type = #{dictType} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,21 +4,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysLogininforMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysLogininforMapper">
|
||||||
|
|
||||||
<resultMap type="SysLogininfor" id="SysLogininforResult">
|
|
||||||
<id property="infoId" column="info_id" />
|
|
||||||
<result property="userName" column="user_name" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="ipaddr" column="ipaddr" />
|
|
||||||
<result property="msg" column="msg" />
|
|
||||||
<result property="accessTime" column="access_time" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<insert id="insertLogininfor" parameterType="SysLogininfor">
|
<insert id="insertLogininfor" parameterType="SysLogininfor">
|
||||||
insert into sys_logininfor (user_name, status, ipaddr, msg, access_time)
|
insert into sys_logininfor (user_name, status, ipaddr, msg, access_time)
|
||||||
values (#{userName}, #{status}, #{ipaddr}, #{msg}, sysdate())
|
values (#{userName}, #{status}, #{ipaddr}, #{msg}, sysdate())
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult">
|
<select id="selectLogininforList" parameterType="SysLogininfor" resultType="SysLogininfor">
|
||||||
select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor
|
select info_id, user_name, ipaddr, status, msg, access_time from sys_logininfor
|
||||||
<where>
|
<where>
|
||||||
<if test="ipaddr != null and ipaddr != ''">
|
<if test="ipaddr != null and ipaddr != ''">
|
||||||
|
|
|
||||||
|
|
@ -4,34 +4,12 @@
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysMenuMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysMenuMapper">
|
||||||
|
|
||||||
<resultMap type="SysMenu" id="SysMenuResult">
|
|
||||||
<id property="menuId" column="menu_id" />
|
|
||||||
<result property="menuName" column="menu_name" />
|
|
||||||
<result property="parentName" column="parent_name" />
|
|
||||||
<result property="parentId" column="parent_id" />
|
|
||||||
<result property="orderNum" column="order_num" />
|
|
||||||
<result property="path" column="path" />
|
|
||||||
<result property="component" column="component" />
|
|
||||||
<result property="isFrame" column="is_frame" />
|
|
||||||
<result property="isCache" column="is_cache" />
|
|
||||||
<result property="menuType" column="menu_type" />
|
|
||||||
<result property="visible" column="visible" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="perms" column="perms" />
|
|
||||||
<result property="icon" column="icon" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectMenuVo">
|
<sql id="selectMenuVo">
|
||||||
select menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
|
select menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
|
||||||
from sys_menu
|
from sys_menu
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectMenuList" parameterType="SysMenu" resultMap="SysMenuResult">
|
<select id="selectMenuList" parameterType="SysMenu" resultType="SysMenu">
|
||||||
<include refid="selectMenuVo"/>
|
<include refid="selectMenuVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="menuName != null and menuName != ''">
|
<if test="menuName != null and menuName != ''">
|
||||||
|
|
@ -47,13 +25,13 @@
|
||||||
order by parent_id, order_num
|
order by parent_id, order_num
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMenuTreeAll" resultMap="SysMenuResult">
|
<select id="selectMenuTreeAll" resultType="SysMenu">
|
||||||
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
||||||
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
|
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
|
||||||
order by m.parent_id, m.order_num
|
order by m.parent_id, m.order_num
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
|
<select id="selectMenuListByUserId" parameterType="SysMenu" resultType="SysMenu">
|
||||||
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
||||||
from sys_menu m
|
from sys_menu m
|
||||||
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
||||||
|
|
@ -72,7 +50,7 @@
|
||||||
order by m.parent_id, m.order_num
|
order by m.parent_id, m.order_num
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult">
|
<select id="selectMenuTreeByUserId" parameterType="Long" resultType="SysMenu">
|
||||||
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
||||||
from sys_menu m
|
from sys_menu m
|
||||||
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
||||||
|
|
@ -110,7 +88,7 @@
|
||||||
where m.status = '0' and r.status = '0' and ur.user_id = #{userId}
|
where m.status = '0' and r.status = '0' and ur.user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMenuById" parameterType="Long" resultMap="SysMenuResult">
|
<select id="selectMenuById" parameterType="Long" resultType="SysMenu">
|
||||||
<include refid="selectMenuVo"/>
|
<include refid="selectMenuVo"/>
|
||||||
where menu_id = #{menuId}
|
where menu_id = #{menuId}
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -119,7 +97,7 @@
|
||||||
select count(1) from sys_menu where parent_id = #{menuId}
|
select count(1) from sys_menu where parent_id = #{menuId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkMenuNameUnique" parameterType="SysMenu" resultMap="SysMenuResult">
|
<select id="checkMenuNameUnique" parameterType="SysMenu" resultType="SysMenu">
|
||||||
<include refid="selectMenuVo"/>
|
<include refid="selectMenuVo"/>
|
||||||
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
|
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,30 +4,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysNoticeMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysNoticeMapper">
|
||||||
|
|
||||||
<resultMap type="SysNotice" id="SysNoticeResult">
|
|
||||||
<result property="noticeId" column="notice_id" />
|
|
||||||
<result property="noticeTitle" column="notice_title" />
|
|
||||||
<result property="noticeType" column="notice_type" />
|
|
||||||
<result property="noticeContent" column="notice_content" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectNoticeVo">
|
<sql id="selectNoticeVo">
|
||||||
select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
|
select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark
|
||||||
from sys_notice
|
from sys_notice
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectNoticeById" parameterType="Long" resultMap="SysNoticeResult">
|
<select id="selectNoticeById" parameterType="Long" resultType="SysNotice">
|
||||||
<include refid="selectNoticeVo"/>
|
<include refid="selectNoticeVo"/>
|
||||||
where notice_id = #{noticeId}
|
where notice_id = #{noticeId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
|
<select id="selectNoticeList" parameterType="SysNotice" resultType="SysNotice">
|
||||||
<include refid="selectNoticeVo"/>
|
<include refid="selectNoticeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="noticeTitle != null and noticeTitle != ''">
|
<if test="noticeTitle != null and noticeTitle != ''">
|
||||||
|
|
|
||||||
|
|
@ -4,24 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysOperLogMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysOperLogMapper">
|
||||||
|
|
||||||
<resultMap type="SysOperLog" id="SysOperLogResult">
|
|
||||||
<id property="operId" column="oper_id" />
|
|
||||||
<result property="title" column="title" />
|
|
||||||
<result property="businessType" column="business_type" />
|
|
||||||
<result property="method" column="method" />
|
|
||||||
<result property="requestMethod" column="request_method" />
|
|
||||||
<result property="operatorType" column="operator_type" />
|
|
||||||
<result property="operName" column="oper_name" />
|
|
||||||
<result property="deptName" column="dept_name" />
|
|
||||||
<result property="operUrl" column="oper_url" />
|
|
||||||
<result property="operIp" column="oper_ip" />
|
|
||||||
<result property="operParam" column="oper_param" />
|
|
||||||
<result property="jsonResult" column="json_result" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="errorMsg" column="error_msg" />
|
|
||||||
<result property="operTime" column="oper_time" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectOperLogVo">
|
<sql id="selectOperLogVo">
|
||||||
select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_param, json_result, status, error_msg, oper_time
|
select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_param, json_result, status, error_msg, oper_time
|
||||||
from sys_oper_log
|
from sys_oper_log
|
||||||
|
|
@ -32,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, sysdate())
|
values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, sysdate())
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult">
|
<select id="selectOperLogList" parameterType="SysOperLog" resultType="SysOperLog">
|
||||||
<include refid="selectOperLogVo"/>
|
<include refid="selectOperLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="title != null and title != ''">
|
<if test="title != null and title != ''">
|
||||||
|
|
@ -70,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="selectOperLogById" parameterType="Long" resultMap="SysOperLogResult">
|
<select id="selectOperLogById" parameterType="Long" resultType="SysOperLog">
|
||||||
<include refid="selectOperLogVo"/>
|
<include refid="selectOperLogVo"/>
|
||||||
where oper_id = #{operId}
|
where oper_id = #{operId}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,25 +4,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysPostMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysPostMapper">
|
||||||
|
|
||||||
<resultMap type="SysPost" id="SysPostResult">
|
|
||||||
<id property="postId" column="post_id" />
|
|
||||||
<result property="postCode" column="post_code" />
|
|
||||||
<result property="postName" column="post_name" />
|
|
||||||
<result property="postSort" column="post_sort" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectPostVo">
|
<sql id="selectPostVo">
|
||||||
select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark
|
select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark
|
||||||
from sys_post
|
from sys_post
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectPostList" parameterType="SysPost" resultMap="SysPostResult">
|
<select id="selectPostList" parameterType="SysPost" resultType="SysPost">
|
||||||
<include refid="selectPostVo"/>
|
<include refid="selectPostVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="postCode != null and postCode != ''">
|
<if test="postCode != null and postCode != ''">
|
||||||
|
|
@ -37,11 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectPostAll" resultMap="SysPostResult">
|
<select id="selectPostAll" resultType="SysPost">
|
||||||
<include refid="selectPostVo"/>
|
<include refid="selectPostVo"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectPostById" parameterType="Long" resultMap="SysPostResult">
|
<select id="selectPostById" parameterType="Long" resultType="SysPost">
|
||||||
<include refid="selectPostVo"/>
|
<include refid="selectPostVo"/>
|
||||||
where post_id = #{postId}
|
where post_id = #{postId}
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -54,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where u.user_id = #{userId}
|
where u.user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult">
|
<select id="selectPostsByUserName" parameterType="String" resultType="SysPost">
|
||||||
select p.post_id, p.post_name, p.post_code
|
select p.post_id, p.post_name, p.post_code
|
||||||
from sys_post p
|
from sys_post p
|
||||||
left join sys_user_post up on up.post_id = p.post_id
|
left join sys_user_post up on up.post_id = p.post_id
|
||||||
|
|
@ -62,12 +49,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where u.user_name = #{userName}
|
where u.user_name = #{userName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkPostNameUnique" parameterType="String" resultMap="SysPostResult">
|
<select id="checkPostNameUnique" parameterType="String" resultType="SysPost">
|
||||||
<include refid="selectPostVo"/>
|
<include refid="selectPostVo"/>
|
||||||
where post_name=#{postName} limit 1
|
where post_name=#{postName} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkPostCodeUnique" parameterType="String" resultMap="SysPostResult">
|
<select id="checkPostCodeUnique" parameterType="String" resultType="SysPost">
|
||||||
<include refid="selectPostVo"/>
|
<include refid="selectPostVo"/>
|
||||||
where post_code=#{postCode} limit 1
|
where post_code=#{postCode} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysRoleDeptMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysRoleDeptMapper">
|
||||||
|
|
||||||
<resultMap type="SysRoleDept" id="SysRoleDeptResult">
|
|
||||||
<result property="roleId" column="role_id" />
|
|
||||||
<result property="deptId" column="dept_id" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<delete id="deleteRoleDeptByRoleId" parameterType="Long">
|
<delete id="deleteRoleDeptByRoleId" parameterType="Long">
|
||||||
delete from sys_role_dept where role_id=#{roleId}
|
delete from sys_role_dept where role_id=#{roleId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
|
||||||
|
|
@ -4,23 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysRoleMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysRoleMapper">
|
||||||
|
|
||||||
<resultMap type="SysRole" id="SysRoleResult">
|
|
||||||
<id property="roleId" column="role_id" />
|
|
||||||
<result property="roleName" column="role_name" />
|
|
||||||
<result property="roleKey" column="role_key" />
|
|
||||||
<result property="roleSort" column="role_sort" />
|
|
||||||
<result property="dataScope" column="data_scope" />
|
|
||||||
<result property="menuCheckStrictly" column="menu_check_strictly" />
|
|
||||||
<result property="deptCheckStrictly" column="dept_check_strictly" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="delFlag" column="del_flag" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectRoleVo">
|
<sql id="selectRoleVo">
|
||||||
select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
|
select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
|
||||||
r.status, r.del_flag, r.create_time, r.remark
|
r.status, r.del_flag, r.create_time, r.remark
|
||||||
|
|
@ -30,7 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join sys_dept d on u.dept_id = d.dept_id
|
left join sys_dept d on u.dept_id = d.dept_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectRoleList" parameterType="SysRole" resultMap="SysRoleResult">
|
<select id="selectRoleList" parameterType="SysRole" resultType="SysRole">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
where r.del_flag = '0'
|
where r.del_flag = '0'
|
||||||
<if test="roleName != null and roleName != ''">
|
<if test="roleName != null and roleName != ''">
|
||||||
|
|
@ -53,12 +36,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
order by r.role_sort
|
order by r.role_sort
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectRolePermissionByUserId" parameterType="Long" resultMap="SysRoleResult">
|
<select id="selectRolePermissionByUserId" parameterType="Long" resultType="SysRole">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
WHERE r.del_flag = '0' and ur.user_id = #{userId}
|
WHERE r.del_flag = '0' and ur.user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectRoleAll" resultMap="SysRoleResult">
|
<select id="selectRoleAll" resultType="SysRole">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -70,22 +53,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where u.user_id = #{userId}
|
where u.user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectRoleById" parameterType="Long" resultMap="SysRoleResult">
|
<select id="selectRoleById" parameterType="Long" resultType="SysRole">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
where r.role_id = #{roleId}
|
where r.role_id = #{roleId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectRolesByUserName" parameterType="String" resultMap="SysRoleResult">
|
<select id="selectRolesByUserName" parameterType="String" resultType="SysRole">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
WHERE r.del_flag = '0' and u.user_name = #{userName}
|
WHERE r.del_flag = '0' and u.user_name = #{userName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleResult">
|
<select id="checkRoleNameUnique" parameterType="String" resultType="SysRole">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
where r.role_name=#{roleName} limit 1
|
where r.role_name=#{roleName} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleResult">
|
<select id="checkRoleKeyUnique" parameterType="String" resultType="SysRole">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
where r.role_key=#{roleKey} limit 1
|
where r.role_key=#{roleKey} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysRoleMenuMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysRoleMenuMapper">
|
||||||
|
|
||||||
<resultMap type="SysRoleMenu" id="SysRoleMenuResult">
|
|
||||||
<result property="roleId" column="role_id" />
|
|
||||||
<result property="menuId" column="menu_id" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<select id="checkMenuExistRole" resultType="Integer">
|
<select id="checkMenuExistRole" resultType="Integer">
|
||||||
select count(1) from sys_role_menu where menu_id = #{menuId}
|
select count(1) from sys_role_menu where menu_id = #{menuId}
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -4,47 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysUserMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysUserMapper">
|
||||||
|
|
||||||
<resultMap type="SysUser" id="SysUserResult">
|
|
||||||
<id property="userId" column="user_id" />
|
|
||||||
<result property="deptId" column="dept_id" />
|
|
||||||
<result property="userName" column="user_name" />
|
|
||||||
<result property="nickName" column="nick_name" />
|
|
||||||
<result property="email" column="email" />
|
|
||||||
<result property="phonenumber" column="phonenumber" />
|
|
||||||
<result property="sex" column="sex" />
|
|
||||||
<result property="avatar" column="avatar" />
|
|
||||||
<result property="password" column="password" />
|
|
||||||
<result property="status" column="status" />
|
|
||||||
<result property="delFlag" column="del_flag" />
|
|
||||||
<result property="loginIp" column="login_ip" />
|
|
||||||
<result property="loginDate" column="login_date" />
|
|
||||||
<result property="createBy" column="create_by" />
|
|
||||||
<result property="createTime" column="create_time" />
|
|
||||||
<result property="updateBy" column="update_by" />
|
|
||||||
<result property="updateTime" column="update_time" />
|
|
||||||
<result property="remark" column="remark" />
|
|
||||||
<association property="dept" column="dept_id" javaType="SysDept" resultMap="deptResult" />
|
|
||||||
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<resultMap id="deptResult" type="SysDept">
|
|
||||||
<id property="deptId" column="dept_id" />
|
|
||||||
<result property="parentId" column="parent_id" />
|
|
||||||
<result property="deptName" column="dept_name" />
|
|
||||||
<result property="orderNum" column="order_num" />
|
|
||||||
<result property="leader" column="leader" />
|
|
||||||
<result property="status" column="dept_status" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<resultMap id="RoleResult" type="SysRole">
|
|
||||||
<id property="roleId" column="role_id" />
|
|
||||||
<result property="roleName" column="role_name" />
|
|
||||||
<result property="roleKey" column="role_key" />
|
|
||||||
<result property="roleSort" column="role_sort" />
|
|
||||||
<result property="dataScope" column="data_scope" />
|
|
||||||
<result property="status" column="role_status" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<sql id="selectUserVo">
|
<sql id="selectUserVo">
|
||||||
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
|
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
|
||||||
d.dept_id, d.parent_id, d.dept_name, d.order_num, d.leader, d.status as dept_status,
|
d.dept_id, d.parent_id, d.dept_name, d.order_num, d.leader, d.status as dept_status,
|
||||||
|
|
@ -55,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join sys_role r on r.role_id = ur.role_id
|
left join sys_role r on r.role_id = ur.role_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
|
<select id="selectUserList" parameterType="SysUser" resultType="SysUser">
|
||||||
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
|
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
|
||||||
left join sys_dept d on u.dept_id = d.dept_id
|
left join sys_dept d on u.dept_id = d.dept_id
|
||||||
where u.del_flag = '0'
|
where u.del_flag = '0'
|
||||||
|
|
@ -81,12 +40,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
${params.dataScope}
|
${params.dataScope}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">
|
<select id="selectUserByUserName" parameterType="String" resultType="SysUser">
|
||||||
<include refid="selectUserVo"/>
|
<include refid="selectUserVo"/>
|
||||||
where u.user_name = #{userName}
|
where u.user_name = #{userName}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
|
<select id="selectUserById" parameterType="Long" resultType="SysUser">
|
||||||
<include refid="selectUserVo"/>
|
<include refid="selectUserVo"/>
|
||||||
where u.user_id = #{userId}
|
where u.user_id = #{userId}
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -95,11 +54,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select count(1) from sys_user where user_name = #{userName} limit 1
|
select count(1) from sys_user where user_name = #{userName} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
|
<select id="checkPhoneUnique" parameterType="String" resultType="SysUser">
|
||||||
select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} limit 1
|
select user_id, phonenumber from sys_user where phonenumber = #{phonenumber} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
|
<select id="checkEmailUnique" parameterType="String" resultType="SysUser">
|
||||||
select user_id, email from sys_user where email = #{email} limit 1
|
select user_id, email from sys_user where email = #{email} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysUserPostMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysUserPostMapper">
|
||||||
|
|
||||||
<resultMap type="SysUserPost" id="SysUserPostResult">
|
|
||||||
<result property="userId" column="user_id" />
|
|
||||||
<result property="postId" column="post_id" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<delete id="deleteUserPostByUserId" parameterType="Long">
|
<delete id="deleteUserPostByUserId" parameterType="Long">
|
||||||
delete from sys_user_post where user_id=#{userId}
|
delete from sys_user_post where user_id=#{userId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.ruoyi.system.mapper.SysUserRoleMapper">
|
<mapper namespace="com.ruoyi.system.mapper.SysUserRoleMapper">
|
||||||
|
|
||||||
<resultMap type="SysUserRole" id="SysUserRoleResult">
|
|
||||||
<result property="userId" column="user_id" />
|
|
||||||
<result property="roleId" column="role_id" />
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<delete id="deleteUserRoleByUserId" parameterType="Long">
|
<delete id="deleteUserRoleByUserId" parameterType="Long">
|
||||||
delete from sys_user_role where user_id=#{userId}
|
delete from sys_user_role where user_id=#{userId}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@
|
||||||
"js-beautify": "1.13.0",
|
"js-beautify": "1.13.0",
|
||||||
"js-cookie": "2.2.1",
|
"js-cookie": "2.2.1",
|
||||||
"jsencrypt": "3.0.0-rc.1",
|
"jsencrypt": "3.0.0-rc.1",
|
||||||
|
"node-sass": "^4.14.1",
|
||||||
"nprogress": "0.2.0",
|
"nprogress": "0.2.0",
|
||||||
"quill": "1.3.7",
|
"quill": "1.3.7",
|
||||||
"screenfull": "5.0.2",
|
"screenfull": "5.0.2",
|
||||||
|
|
@ -70,7 +71,6 @@
|
||||||
"eslint-plugin-vue": "7.2.0",
|
"eslint-plugin-vue": "7.2.0",
|
||||||
"lint-staged": "10.5.3",
|
"lint-staged": "10.5.3",
|
||||||
"runjs": "4.4.2",
|
"runjs": "4.4.2",
|
||||||
"sass": "1.32.0",
|
|
||||||
"sass-loader": "10.1.0",
|
"sass-loader": "10.1.0",
|
||||||
"script-ext-html-webpack-plugin": "2.1.5",
|
"script-ext-html-webpack-plugin": "2.1.5",
|
||||||
"svg-sprite-loader": "5.1.1",
|
"svg-sprite-loader": "5.1.1",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
FROM java:8-jdk
|
||||||
|
|
||||||
|
#作者
|
||||||
|
MAINTAINER awg
|
||||||
|
|
||||||
|
#系统编码和时区
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# 复制jar文件到镜像内,名字改为app.jar
|
||||||
|
ADD /target/*.jar app.jar
|
||||||
|
|
||||||
|
ENV JAVA_OPTS="-Xmx32M -Xms32M"
|
||||||
|
|
||||||
|
# 启动容器时的进程
|
||||||
|
ENTRYPOINT java ${JAVA_OPTS} -jar /app.jar
|
||||||
|
|
||||||
|
# 暴露接口
|
||||||
|
EXPOSE 9100
|
||||||
|
|
@ -61,6 +61,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<version>${spring-boot.mavenplugin.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ insert into config_info(id, data_id, group_id, content, md5, gmt_create, gmt_mod
|
||||||
(2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','spring:\r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n cloud:\r\n gateway:\r\n discovery:\r\n locator:\r\n lowerCaseServiceId: true\r\n enabled: true\r\n routes:\r\n # 认证中心\r\n - id: ruoyi-auth\r\n uri: lb://ruoyi-auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n # 验证码处理\r\n - CacheRequestFilter\r\n - ValidateCodeFilter\r\n - StripPrefix=1\r\n # 代码生成\r\n - id: ruoyi-gen\r\n uri: lb://ruoyi-gen\r\n predicates:\r\n - Path=/code/**\r\n filters:\r\n - StripPrefix=1\r\n # 定时任务\r\n - id: ruoyi-job\r\n uri: lb://ruoyi-job\r\n predicates:\r\n - Path=/schedule/**\r\n filters:\r\n - StripPrefix=1\r\n # 系统模块\r\n - id: ruoyi-system\r\n uri: lb://ruoyi-system\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - StripPrefix=1\r\n # 文件服务\r\n - id: ruoyi-file\r\n uri: lb://ruoyi-file\r\n predicates:\r\n - Path=/file/**\r\n filters:\r\n - StripPrefix=1\r\n\r\n# 不校验白名单\r\nignore:\r\n whites:\r\n - /auth/logout\r\n - /auth/login\r\n - /*/v2/api-docs\r\n - /csrf\r\n','ef4a58daf989827334b3aac1c9d68392','2020-05-14 14:17:55','2020-11-18 17:53:23',NULL,'0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','null'),
|
(2,'ruoyi-gateway-dev.yml','DEFAULT_GROUP','spring:\r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n cloud:\r\n gateway:\r\n discovery:\r\n locator:\r\n lowerCaseServiceId: true\r\n enabled: true\r\n routes:\r\n # 认证中心\r\n - id: ruoyi-auth\r\n uri: lb://ruoyi-auth\r\n predicates:\r\n - Path=/auth/**\r\n filters:\r\n # 验证码处理\r\n - CacheRequestFilter\r\n - ValidateCodeFilter\r\n - StripPrefix=1\r\n # 代码生成\r\n - id: ruoyi-gen\r\n uri: lb://ruoyi-gen\r\n predicates:\r\n - Path=/code/**\r\n filters:\r\n - StripPrefix=1\r\n # 定时任务\r\n - id: ruoyi-job\r\n uri: lb://ruoyi-job\r\n predicates:\r\n - Path=/schedule/**\r\n filters:\r\n - StripPrefix=1\r\n # 系统模块\r\n - id: ruoyi-system\r\n uri: lb://ruoyi-system\r\n predicates:\r\n - Path=/system/**\r\n filters:\r\n - StripPrefix=1\r\n # 文件服务\r\n - id: ruoyi-file\r\n uri: lb://ruoyi-file\r\n predicates:\r\n - Path=/file/**\r\n filters:\r\n - StripPrefix=1\r\n\r\n# 不校验白名单\r\nignore:\r\n whites:\r\n - /auth/logout\r\n - /auth/login\r\n - /*/v2/api-docs\r\n - /csrf\r\n','ef4a58daf989827334b3aac1c9d68392','2020-05-14 14:17:55','2020-11-18 17:53:23',NULL,'0:0:0:0:0:0:0:1','','','网关模块','null','null','yaml','null'),
|
||||||
(3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','spring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n','b7354e1eb62c2d846d44a796d9ec6930','2020-11-20 00:00:00','2021-02-28 21:06:58',NULL,'0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','null'),
|
(3,'ruoyi-auth-dev.yml','DEFAULT_GROUP','spring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n','b7354e1eb62c2d846d44a796d9ec6930','2020-11-20 00:00:00','2021-02-28 21:06:58',NULL,'0:0:0:0:0:0:0:1','','','认证中心','null','null','yaml','null'),
|
||||||
(4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# spring\r\nspring: \r\n security:\r\n user:\r\n name: ruoyi\r\n password: 123456\r\n boot:\r\n admin:\r\n ui:\r\n title: 若依服务状态监控\r\n','d8997d0707a2fd5d9fc4e8409da38129','2020-11-20 00:00:00','2020-12-21 16:28:07',NULL,'0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','null'),
|
(4,'ruoyi-monitor-dev.yml','DEFAULT_GROUP','# spring\r\nspring: \r\n security:\r\n user:\r\n name: ruoyi\r\n password: 123456\r\n boot:\r\n admin:\r\n ui:\r\n title: 若依服务状态监控\r\n','d8997d0707a2fd5d9fc4e8409da38129','2020-11-20 00:00:00','2020-12-21 16:28:07',NULL,'0:0:0:0:0:0:0:1','','','监控中心','null','null','yaml','null'),
|
||||||
(5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource:\r\n druid:\r\n stat-view-servlet:\r\n enabled: true\r\n loginUsername: admin\r\n loginPassword: 123456\r\n dynamic:\r\n druid:\r\n initial-size: 5\r\n min-idle: 5\r\n maxActive: 20\r\n maxWait: 60000\r\n timeBetweenEvictionRunsMillis: 60000\r\n minEvictableIdleTimeMillis: 300000\r\n validationQuery: SELECT 1 FROM DUAL\r\n testWhileIdle: true\r\n testOnBorrow: false\r\n testOnReturn: false\r\n poolPreparedStatements: true\r\n maxPoolPreparedStatementPerConnectionSize: 20\r\n filters: stat,slf4j\r\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\r\n datasource:\r\n # 主库数据源\r\n master:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n # 从库数据源\r\n # slave:\r\n # username: \r\n # password: \r\n # url: \r\n # driver-class-name: \r\n # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭\r\n\r\n# seata配置\r\nseata:\r\n # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启\r\n enabled: false\r\n # Seata 应用编号,默认为 ${spring.application.name}\r\n application-id: ${spring.application.name}\r\n # Seata 事务组编号,用于 TC 集群名\r\n tx-service-group: ${spring.application.name}-group\r\n # 关闭自动代理\r\n enable-auto-data-source-proxy: false\r\n # 服务配置项\r\n service:\r\n # 虚拟组和分组的映射\r\n vgroup-mapping:\r\n ruoyi-system-group: default\r\n config:\r\n type: nacos\r\n nacos:\r\n serverAddr: 127.0.0.1:8848\r\n group: SEATA_GROUP\r\n namespace:\r\n registry:\r\n type: nacos\r\n nacos:\r\n application: seata-server\r\n server-addr: 127.0.0.1:8848\r\n namespace:\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.system\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 系统模块接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip','ac8913dee679e65bb7d482df5f267d4e','2020-11-20 00:00:00','2021-01-27 10:42:25',NULL,'0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','null'),
|
(5,'ruoyi-system-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring:\r\n #排除DruidDataSourceAutoConfigure\r\n autoconfigure:\r\n exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure\r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource:\r\n druid:\r\n stat-view-servlet:\r\n enabled: true\r\n loginUsername: admin\r\n loginPassword: 123456\r\n dynamic:\r\n druid:\r\n initial-size: 5\r\n min-idle: 5\r\n maxActive: 20\r\n maxWait: 60000\r\n timeBetweenEvictionRunsMillis: 60000\r\n minEvictableIdleTimeMillis: 300000\r\n validationQuery: SELECT 1 FROM DUAL\r\n testWhileIdle: true\r\n testOnBorrow: false\r\n testOnReturn: false\r\n poolPreparedStatements: true\r\n maxPoolPreparedStatementPerConnectionSize: 20\r\n filters: stat,slf4j\r\n connectionProperties: druid.stat.mergeSql\\=true;druid.stat.slowSqlMillis\\=5000\r\n datasource:\r\n # 主库数据源\r\n master:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n # 从库数据源\r\n # slave:\r\n # username: \r\n # password: \r\n # url: \r\n # driver-class-name: \r\n # seata: true # 开启seata代理,开启后默认每个数据源都代理,如果某个不需要代理可单独关闭\r\n\r\n# seata配置\r\nseata:\r\n # 默认关闭,如需启用spring.datasource.dynami.seata需要同时开启\r\n enabled: false\r\n # Seata 应用编号,默认为 ${spring.application.name}\r\n application-id: ${spring.application.name}\r\n # Seata 事务组编号,用于 TC 集群名\r\n tx-service-group: ${spring.application.name}-group\r\n # 关闭自动代理\r\n enable-auto-data-source-proxy: false\r\n # 服务配置项\r\n service:\r\n # 虚拟组和分组的映射\r\n vgroup-mapping:\r\n ruoyi-system-group: default\r\n config:\r\n type: nacos\r\n nacos:\r\n serverAddr: 127.0.0.1:8848\r\n group: SEATA_GROUP\r\n namespace:\r\n registry:\r\n type: nacos\r\n nacos:\r\n application: seata-server\r\n server-addr: 127.0.0.1:8848\r\n namespace:\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.system\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 系统模块接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip','ac8913dee679e65bb7d482df5f267d4e','2020-11-20 00:00:00','2021-01-27 10:42:25',NULL,'0:0:0:0:0:0:0:1','','','系统模块','null','null','yaml','null'),
|
||||||
(6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource: \r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.gen.domain\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 代码生成接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip\r\n\r\n# 代码生成\r\ngen: \r\n # 作者\r\n author: ruoyi\r\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\r\n packageName: com.ruoyi.system\r\n # 自动去除表前缀,默认是false\r\n autoRemovePre: false\r\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\r\n tablePrefix: sys_\r\n','8c79f64a4cca9b821a03dc8b27a2d8eb','2020-11-20 00:00:00','2021-01-26 10:36:45',NULL,'0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','null'),
|
(6,'ruoyi-gen-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource: \r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.gen.domain\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 代码生成接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip\r\n\r\n# 代码生成\r\ngen: \r\n # 作者\r\n author: ruoyi\r\n # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool\r\n packageName: com.ruoyi.system\r\n # 自动去除表前缀,默认是false\r\n autoRemovePre: false\r\n # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)\r\n tablePrefix: sys_\r\n','8c79f64a4cca9b821a03dc8b27a2d8eb','2020-11-20 00:00:00','2021-01-26 10:36:45',NULL,'0:0:0:0:0:0:0:1','','','代码生成','null','null','yaml','null'),
|
||||||
(7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.job.domain\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 定时任务接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip\r\n','d6dfade9a2c93c463ae857cd503cb172','2020-11-20 00:00:00','2021-01-26 10:36:04',NULL,'0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','null'),
|
(7,'ruoyi-job-dev.yml','DEFAULT_GROUP','# spring配置\r\nspring: \r\n redis:\r\n host: localhost\r\n port: 6379\r\n password: \r\n datasource:\r\n driver-class-name: com.mysql.cj.jdbc.Driver\r\n url: jdbc:mysql://localhost:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8\r\n username: root\r\n password: password\r\n\r\n# mybatis配置\r\nmybatis:\r\n # 搜索指定包别名\r\n typeAliasesPackage: com.ruoyi.job.domain\r\n # 配置mapper的扫描,找到所有的mapper.xml映射文件\r\n mapperLocations: classpath:mapper/**/*.xml\r\n\r\n# swagger配置\r\nswagger:\r\n title: 定时任务接口文档\r\n license: Powered By ruoyi\r\n licenseUrl: https://ruoyi.vip\r\n','d6dfade9a2c93c463ae857cd503cb172','2020-11-20 00:00:00','2021-01-26 10:36:04',NULL,'0:0:0:0:0:0:0:1','','','定时任务','null','null','yaml','null'),
|
||||||
(8,'ruoyi-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml','null'),
|
(8,'ruoyi-file-dev.yml','DEFAULT_GROUP','# 本地文件上传 \r\nfile:\r\n domain: http://127.0.0.1:9300\r\n path: D:/ruoyi/uploadPath\r\n prefix: /statics\r\n\r\n# FastDFS配置\r\nfdfs:\r\n domain: http://8.129.231.12\r\n soTimeout: 3000\r\n connectTimeout: 2000\r\n trackerList: 8.129.231.12:22122\r\n\r\n# Minio配置\r\nminio:\r\n url: http://8.129.231.12:9000\r\n accessKey: minioadmin\r\n secretKey: minioadmin\r\n bucketName: test','5382b93f3d8059d6068c0501fdd41195','2020-11-20 00:00:00','2020-12-21 21:01:59',NULL,'0:0:0:0:0:0:0:1','','','文件服务','null','null','yaml','null'),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue