pull/28/MERGE
RuoYi 2018-10-03 23:11:09 +08:00
parent c85f36fa1f
commit 5e5c21e14f
139 changed files with 339 additions and 263 deletions

View File

@ -5,7 +5,7 @@
<groupId>com.ruoyi</groupId> <groupId>com.ruoyi</groupId>
<artifactId>RuoYi</artifactId> <artifactId>RuoYi</artifactId>
<version>2.4.0</version> <version>3.0.0</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>RuoYi</name> <name>RuoYi</name>
@ -14,7 +14,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version> <version>2.0.5.RELEASE</version>
<relativePath /> <relativePath />
</parent> </parent>

View File

@ -15,5 +15,4 @@ public class RuoYiServletInitializer extends SpringBootServletInitializer
{ {
return application.sources(RuoYiApplication.class); return application.sources(RuoYiApplication.class);
} }
} }

View File

@ -61,5 +61,4 @@ public class Constants
* "desc" "asc". * "desc" "asc".
*/ */
public static String IS_ASC = "isAsc"; public static String IS_ASC = "isAsc";
} }

View File

@ -7,7 +7,6 @@ package com.ruoyi.common.constant;
*/ */
public interface ScheduleConstants public interface ScheduleConstants
{ {
public static final String TASK_CLASS_NAME = "__TASK_CLASS_NAME__"; public static final String TASK_CLASS_NAME = "__TASK_CLASS_NAME__";
public static final String TASK_PROPERTIES = "__TASK_PROPERTIES__"; public static final String TASK_PROPERTIES = "__TASK_PROPERTIES__";
@ -47,5 +46,4 @@ public interface ScheduleConstants
return value; return value;
} }
} }
} }

View File

@ -61,5 +61,4 @@ public interface ShiroConstants
* *
*/ */
public static final String CAPTCHA_ERROR = "captchaError"; public static final String CAPTCHA_ERROR = "captchaError";
} }

View File

@ -7,7 +7,6 @@ package com.ruoyi.common.constant;
*/ */
public class UserConstants public class UserConstants
{ {
/** 正常状态 */ /** 正常状态 */
public static final String NORMAL = "0"; public static final String NORMAL = "0";
@ -88,5 +87,4 @@ public class UserConstants
* *
*/ */
public static final String EMAIL_PATTERN = "^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?"; public static final String EMAIL_PATTERN = "^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?";
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.common.utils.MessageUtils;
*/ */
public class BaseException extends RuntimeException public class BaseException extends RuntimeException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**

View File

@ -9,7 +9,6 @@ import org.apache.commons.fileupload.FileUploadException;
*/ */
public class FileNameLengthLimitExceededException extends FileUploadException public class FileNameLengthLimitExceededException extends FileUploadException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private int length; private int length;
private int maxLength; private int maxLength;
@ -37,5 +36,4 @@ public class FileNameLengthLimitExceededException extends FileUploadException
{ {
return maxLength; return maxLength;
} }
} }

View File

@ -10,7 +10,6 @@ import org.apache.commons.fileupload.FileUploadException;
*/ */
public class InvalidExtensionException extends FileUploadException public class InvalidExtensionException extends FileUploadException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private String[] allowedExtension; private String[] allowedExtension;
@ -69,5 +68,4 @@ public class InvalidExtensionException extends FileUploadException
super(allowedExtension, extension, filename); super(allowedExtension, extension, filename);
} }
} }
} }

View File

@ -31,5 +31,4 @@ public class TaskException extends Exception
{ {
TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE
} }
} }

View File

@ -7,7 +7,6 @@ package com.ruoyi.common.exception.user;
*/ */
public class RoleBlockedException extends UserException public class RoleBlockedException extends UserException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public RoleBlockedException(String reason) public RoleBlockedException(String reason)

View File

@ -7,7 +7,6 @@ package com.ruoyi.common.exception.user;
*/ */
public class UserDeleteException extends UserException public class UserDeleteException extends UserException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public UserDeleteException() public UserDeleteException()

View File

@ -9,7 +9,6 @@ import com.ruoyi.common.exception.base.BaseException;
*/ */
public class UserException extends BaseException public class UserException extends BaseException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public UserException(String code, Object[] args) public UserException(String code, Object[] args)

View File

@ -7,7 +7,6 @@ package com.ruoyi.common.exception.user;
*/ */
public class UserNotExistsException extends UserException public class UserNotExistsException extends UserException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public UserNotExistsException() public UserNotExistsException()

View File

@ -7,7 +7,6 @@ package com.ruoyi.common.exception.user;
*/ */
public class UserPasswordNotMatchException extends UserException public class UserPasswordNotMatchException extends UserException
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public UserPasswordNotMatchException() public UserPasswordNotMatchException()

View File

@ -84,5 +84,4 @@ public class CharsetKit
{ {
return Charset.defaultCharset().name(); return Charset.defaultCharset().name();
} }
} }

View File

@ -998,5 +998,4 @@ public class Convert
return head + s.replaceAll("(零.)*零元", "元").replaceFirst("(零.)+", "").replaceAll("(零.)+", "零").replaceAll("^整$", return head + s.replaceAll("(零.)*零元", "元").replaceFirst("(零.)+", "").replaceAll("(零.)+", "零").replaceAll("^整$",
"零元整"); "零元整");
} }
} }

View File

@ -9,7 +9,6 @@ import com.ruoyi.common.utils.StringUtils;
*/ */
public class StrFormatter public class StrFormatter
{ {
public static final String EMPTY_JSON = "{}"; public static final String EMPTY_JSON = "{}";
public static final char C_BACKSLASH = '\\'; public static final char C_BACKSLASH = '\\';
public static final char C_DELIM_START = '{'; public static final char C_DELIM_START = '{';
@ -91,5 +90,4 @@ public class StrFormatter
return sbuf.toString(); return sbuf.toString();
} }
} }

View File

@ -96,5 +96,4 @@ public class DateUtils
Date now = new Date(); Date now = new Date();
return DateFormatUtils.format(now, "yyyyMMdd"); return DateFormatUtils.format(now, "yyyyMMdd");
} }
} }

View File

@ -16,7 +16,6 @@ import java.util.Map;
*/ */
public class LogUtils public class LogUtils
{ {
public static final Logger ERROR_LOG = LoggerFactory.getLogger("sys-error"); public static final Logger ERROR_LOG = LoggerFactory.getLogger("sys-error");
public static final Logger ACCESS_LOG = LoggerFactory.getLogger("sys-access"); public static final Logger ACCESS_LOG = LoggerFactory.getLogger("sys-access");
@ -132,5 +131,4 @@ public class LogUtils
{ {
return ERROR_LOG; return ERROR_LOG;
} }
} }

View File

@ -63,5 +63,4 @@ public class Md5Utils
return s; return s;
} }
} }
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.common.utils.spring.SpringUtils;
*/ */
public class MessageUtils public class MessageUtils
{ {
/** /**
* spring messageSource * spring messageSource
* *
@ -23,5 +22,4 @@ public class MessageUtils
MessageSource messageSource = SpringUtils.getBean(MessageSource.class); MessageSource messageSource = SpringUtils.getBean(MessageSource.class);
return messageSource.getMessage(code, args, null); return messageSource.getMessage(code, args, null);
} }
} }

View File

@ -12,7 +12,6 @@ import com.ruoyi.project.system.menu.domain.Menu;
*/ */
public class TreeUtils public class TreeUtils
{ {
/** /**
* ID * ID
* *

View File

@ -15,7 +15,6 @@ import com.ruoyi.framework.config.RuoYiConfig;
*/ */
public class FileUploadUtils public class FileUploadUtils
{ {
/** /**
* 50M * 50M
*/ */
@ -159,5 +158,4 @@ public class FileUploadUtils
throw new FileSizeLimitExceededException("not allowed upload upload", size, DEFAULT_MAX_SIZE); throw new FileSizeLimitExceededException("not allowed upload upload", size, DEFAULT_MAX_SIZE);
} }
} }
} }

View File

@ -13,7 +13,6 @@ import java.io.OutputStream;
*/ */
public class FileUtils public class FileUtils
{ {
/** /**
* byte * byte
* *
@ -87,5 +86,4 @@ public class FileUtils
} }
return flag; return flag;
} }
} }

View File

@ -26,7 +26,6 @@ import org.slf4j.LoggerFactory;
*/ */
public class HttpUtils public class HttpUtils
{ {
private static final Logger log = LoggerFactory.getLogger(HttpUtils.class); private static final Logger log = LoggerFactory.getLogger(HttpUtils.class);
/** /**
@ -246,5 +245,4 @@ public class HttpUtils
return true; return true;
} }
} }
} }

View File

@ -480,5 +480,4 @@ public class ExcelUtil<T>
} }
return downloadPath; return downloadPath;
} }
} }

View File

@ -18,7 +18,6 @@ import com.ruoyi.project.system.user.domain.User;
*/ */
public class ShiroUtils public class ShiroUtils
{ {
public static Subject getSubjct() public static Subject getSubjct()
{ {
return SecurityUtils.getSubject(); return SecurityUtils.getSubject();

View File

@ -98,5 +98,4 @@ public final class SpringUtils implements BeanFactoryPostProcessor
{ {
return beanFactory.getAliases(name); return beanFactory.getAliases(name);
} }
} }

View File

@ -94,5 +94,4 @@ public class XssFilter implements Filter
{ {
} }
} }

View File

@ -12,7 +12,6 @@ import org.jsoup.safety.Whitelist;
*/ */
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
{ {
/** /**
* @param request * @param request
*/ */

View File

@ -16,6 +16,8 @@ import java.lang.annotation.Target;
@Documented @Documented
public @interface DataScope public @interface DataScope
{ {
/** 表的别名 */ /**
*
*/
String tableAlias() default ""; String tableAlias() default "";
} }

View File

@ -30,5 +30,4 @@ public @interface Log
/** 是否保存请求的参数 */ /** 是否保存请求的参数 */
boolean isSaveRequestData() default true; boolean isSaveRequestData() default true;
} }

View File

@ -67,5 +67,4 @@ public class GenConfig
return "GenConfig [getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString() return "GenConfig [getClass()=" + getClass() + ", hashCode()=" + hashCode() + ", toString()=" + super.toString()
+ "]"; + "]";
} }
} }

View File

@ -17,7 +17,6 @@ import org.springframework.web.servlet.i18n.SessionLocaleResolver;
@Configuration @Configuration
public class I18nConfig implements WebMvcConfigurer public class I18nConfig implements WebMvcConfigurer
{ {
@Bean @Bean
public LocaleResolver localeResolver() public LocaleResolver localeResolver()
{ {

View File

@ -10,7 +10,6 @@ import com.google.code.kaptcha.text.impl.DefaultTextCreator;
*/ */
public class KaptchaTextCreator extends DefaultTextCreator public class KaptchaTextCreator extends DefaultTextCreator
{ {
private static final String[] CNUMBERS = "0,1,2,3,4,5,6,7,8,9,10".split(","); private static final String[] CNUMBERS = "0,1,2,3,4,5,6,7,8,9,10".split(",");
@Override @Override
@ -73,5 +72,4 @@ public class KaptchaTextCreator extends DefaultTextCreator
suChinese.append("=?@" + result); suChinese.append("=?@" + result);
return suChinese.toString(); return suChinese.toString();
} }
} }

View File

@ -82,5 +82,4 @@ public class RuoYiConfig
{ {
return profile + "download/"; return profile + "download/";
} }
} }

View File

@ -15,7 +15,6 @@ import java.util.Properties;
@Configuration @Configuration
public class ScheduleConfig public class ScheduleConfig
{ {
@Bean @Bean
public SchedulerFactoryBean schedulerFactoryBean(DataSource dataSource) public SchedulerFactoryBean schedulerFactoryBean(DataSource dataSource)
{ {

View File

@ -23,5 +23,4 @@ public class DynamicDataSource extends AbstractRoutingDataSource
{ {
return DynamicDataSourceContextHolder.getDateSoureType(); return DynamicDataSourceContextHolder.getDateSoureType();
} }
} }

View File

@ -42,5 +42,4 @@ public class DynamicDataSourceContextHolder
{ {
CONTEXT_HOLDER.remove(); CONTEXT_HOLDER.remove();
} }
} }

View File

@ -140,5 +140,4 @@ public class UserRealm extends AuthorizingRealm
{ {
this.clearCachedAuthorizationInfo(SecurityUtils.getSubject().getPrincipals()); this.clearCachedAuthorizationInfo(SecurityUtils.getSubject().getPrincipals());
} }
} }

View File

@ -133,5 +133,4 @@ public class LoginService
user.setLoginDate(DateUtils.getNowDate()); user.setLoginDate(DateUtils.getNowDate());
userService.updateUserInfo(user); userService.updateUserInfo(user);
} }
} }

View File

@ -24,7 +24,6 @@ import com.ruoyi.project.system.user.domain.User;
@Component @Component
public class PasswordService public class PasswordService
{ {
@Autowired @Autowired
private CacheManager cacheManager; private CacheManager cacheManager;

View File

@ -83,5 +83,4 @@ public class LogoutFilter extends org.apache.shiro.web.filter.authc.LogoutFilter
} }
return super.getRedirectUrl(request, response, subject); return super.getRedirectUrl(request, response, subject);
} }
} }

View File

@ -16,7 +16,6 @@ import com.ruoyi.common.utils.security.ShiroUtils;
*/ */
public class CaptchaValidateFilter extends AccessControlFilter public class CaptchaValidateFilter extends AccessControlFilter
{ {
/** /**
* *
*/ */

View File

@ -22,7 +22,6 @@ import com.ruoyi.project.system.user.domain.User;
*/ */
public class OnlineSessionFilter extends AccessControlFilter public class OnlineSessionFilter extends AccessControlFilter
{ {
/** /**
* 退 * 退
*/ */
@ -92,5 +91,4 @@ public class OnlineSessionFilter extends AccessControlFilter
{ {
WebUtils.issueRedirect(request, response, loginUrl); WebUtils.issueRedirect(request, response, loginUrl);
} }
} }

View File

@ -70,6 +70,5 @@ public class CommonController
filename = URLEncoder.encode(filename, "utf-8"); filename = URLEncoder.encode(filename, "utf-8");
} }
return filename; return filename;
} }
} }

View File

@ -1,5 +1,7 @@
package com.ruoyi.project.monitor.job.domain; package com.ruoyi.project.monitor.job.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable; import java.io.Serializable;
import com.ruoyi.common.constant.ScheduleConstants; import com.ruoyi.common.constant.ScheduleConstants;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
@ -127,10 +129,21 @@ public class Job extends BaseEntity implements Serializable
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "Job [jobId=" + jobId + ", jobName=" + jobName + ", jobGroup=" + jobGroup + ", methodName=" + methodName .append("jobId", getJobId())
+ ", methodParams=" + methodParams + ", cronExpression=" + cronExpression + ", status=" + status + "]"; .append("jobName", getJobName())
.append("jobGroup", getJobGroup())
.append("methodName", getMethodName())
.append("methodParams", getMethodParams())
.append("cronExpression", getCronExpression())
.append("misfirePolicy", getMisfirePolicy())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }

View File

@ -1,10 +1,12 @@
package com.ruoyi.project.monitor.job.domain; package com.ruoyi.project.monitor.job.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
/** /**
* sys_job_log * sys_job_log
* *
* @author ruoyi * @author ruoyi
*/ */
@ -125,11 +127,17 @@ public class JobLog extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "JobLog [jobLogId=" + jobLogId + ", jobName=" + jobName + ", jobGroup=" + jobGroup + ", methodName=" .append("jobLogId", getJobLogId())
+ methodName + ", methodParams=" + methodParams + ", jobMessage=" + jobMessage + ", status=" + status .append("jobName", getJobName())
+ ", exceptionInfo=" + exceptionInfo + "]"; .append("jobGroup", getJobGroup())
.append("methodName", getMethodName())
.append("methodParams", getMethodParams())
.append("jobMessage", getJobMessage())
.append("status", getStatus())
.append("exceptionInfo", getExceptionInfo())
.append("createTime", getCreateTime())
.toString();
} }
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.monitor.job.domain.JobLog;
*/ */
public interface JobLogMapper public interface JobLogMapper
{ {
/** /**
* quartz * quartz
* *
@ -55,5 +54,4 @@ public interface JobLogMapper
* *
*/ */
public void cleanJobLog(); public void cleanJobLog();
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.monitor.job.domain.Job;
*/ */
public interface JobMapper public interface JobMapper
{ {
/** /**
* *
* *
@ -65,5 +64,4 @@ public interface JobMapper
* @return * @return
*/ */
public int insertJob(Job job); public int insertJob(Job job);
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.monitor.job.domain.JobLog;
*/ */
public interface IJobLogService public interface IJobLogService
{ {
/** /**
* quartz * quartz
* *
@ -54,5 +53,4 @@ public interface IJobLogService
* *
*/ */
public void cleanJobLog(); public void cleanJobLog();
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.monitor.job.domain.Job;
*/ */
public interface IJobService public interface IJobService
{ {
/** /**
* quartz * quartz
* *
@ -90,5 +89,4 @@ public interface IJobService
* @return * @return
*/ */
public int updateJobCron(Job job); public int updateJobCron(Job job);
} }

View File

@ -15,7 +15,6 @@ import com.ruoyi.project.monitor.job.mapper.JobLogMapper;
@Service @Service
public class JobLogServiceImpl implements IJobLogService public class JobLogServiceImpl implements IJobLogService
{ {
@Autowired @Autowired
private JobLogMapper jobLogMapper; private JobLogMapper jobLogMapper;
@ -85,5 +84,4 @@ public class JobLogServiceImpl implements IJobLogService
{ {
jobLogMapper.cleanJobLog(); jobLogMapper.cleanJobLog();
} }
} }

View File

@ -208,5 +208,4 @@ public class JobServiceImpl implements IJobService
} }
return rows; return rows;
} }
} }

View File

@ -10,7 +10,6 @@ import org.springframework.stereotype.Component;
@Component("ryTask") @Component("ryTask")
public class RyTask public class RyTask
{ {
public void ryParams(String params) public void ryParams(String params)
{ {
System.out.println("执行有参方法:" + params); System.out.println("执行有参方法:" + params);
@ -20,5 +19,4 @@ public class RyTask
{ {
System.out.println("执行无参方法"); System.out.println("执行无参方法");
} }
} }

View File

@ -53,5 +53,4 @@ public class ScheduleRunnable implements Runnable
e.printStackTrace(); e.printStackTrace();
} }
} }
} }

View File

@ -218,8 +218,7 @@ public class ScheduleUtils
case ScheduleConstants.MISFIRE_DO_NOTHING: case ScheduleConstants.MISFIRE_DO_NOTHING:
return cb.withMisfireHandlingInstructionDoNothing(); return cb.withMisfireHandlingInstructionDoNothing();
default: default:
throw new TaskException("The task misfire policy '" + job.getMisfirePolicy() throw new TaskException("The task misfire policy '" + job.getMisfirePolicy() + "' cannot be used in cron schedule tasks", Code.CONFIG_ERROR);
+ "' cannot be used in cron schedule tasks", Code.CONFIG_ERROR);
} }
} }
} }

View File

@ -1,41 +1,52 @@
package com.ruoyi.project.monitor.logininfor.domain; package com.ruoyi.project.monitor.logininfor.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date; import java.util.Date;
/** /**
* 访 sys_logininfor * 访 sys_logininfor
* *
* @author ruoyi * @author ruoyi
*/ */
public class Logininfor extends BaseEntity public class Logininfor extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** ID */ /** ID */
@Excel(name = "序号") @Excel(name = "序号")
private Long infoId; private Long infoId;
/** 用户账号 */ /** 用户账号 */
@Excel(name = "用户账号") @Excel(name = "用户账号")
private String loginName; private String loginName;
/** 登录状态 0成功 1失败 */ /** 登录状态 0成功 1失败 */
@Excel(name = "登录状态") @Excel(name = "登录状态")
private String status; private String status;
/** 登录IP地址 */ /** 登录IP地址 */
@Excel(name = "登录地址") @Excel(name = "登录地址")
private String ipaddr; private String ipaddr;
/** 登录地点 */ /** 登录地点 */
@Excel(name = "登录地点") @Excel(name = "登录地点")
private String loginLocation; private String loginLocation;
/** 浏览器类型 */ /** 浏览器类型 */
@Excel(name = "浏览器") @Excel(name = "浏览器")
private String browser; private String browser;
/** 操作系统 */ /** 操作系统 */
@Excel(name = "操作系统 ") @Excel(name = "操作系统 ")
private String os; private String os;
/** 提示消息 */ /** 提示消息 */
@Excel(name = "提示消息") @Excel(name = "提示消息")
private String msg; private String msg;
/** 访问时间 */ /** 访问时间 */
@Excel(name = "访问时间") @Excel(name = "访问时间")
private Date loginTime; private Date loginTime;
@ -131,11 +142,17 @@ public class Logininfor extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "Logininfor [infoId=" + infoId + ", loginName=" + loginName + ", status=" + status + ", ipaddr=" + ipaddr .append("infoId", getInfoId())
+ ",loginLocation=" + loginLocation + ", browser=" + browser + ", os=" + os + ", msg=" + msg .append("loginName", getLoginName())
+ ", loginTime=" + loginTime + "]"; .append("ipaddr", getIpaddr())
.append("loginLocation", getLoginLocation())
.append("browser", getBrowser())
.append("os", getOs())
.append("status", getStatus())
.append("msg", getMsg())
.append("loginTime", getLoginTime())
.toString();
} }
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.monitor.logininfor.domain.Logininfor;
*/ */
public interface ILogininforService public interface ILogininforService
{ {
/** /**
* *
* *

View File

@ -15,7 +15,6 @@ import com.ruoyi.project.monitor.logininfor.mapper.LogininforMapper;
@Service @Service
public class LogininforServiceImpl implements ILogininforService public class LogininforServiceImpl implements ILogininforService
{ {
@Autowired @Autowired
private LogininforMapper logininforMapper; private LogininforMapper logininforMapper;

View File

@ -108,5 +108,4 @@ public class UserOnlineController extends BaseController
userOnlineService.saveOnline(online); userOnlineService.saveOnline(online);
return success(); return success();
} }
} }

View File

@ -9,7 +9,6 @@ import org.apache.shiro.session.mgt.SimpleSession;
*/ */
public class OnlineSession extends SimpleSession public class OnlineSession extends SimpleSession
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 用户ID */ /** 用户ID */
@ -151,5 +150,4 @@ public class OnlineSession extends SimpleSession
return info; return info;
} }
} }
} }

View File

@ -1,6 +1,8 @@
package com.ruoyi.project.monitor.online.domain; package com.ruoyi.project.monitor.online.domain;
import java.util.Date; import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.monitor.online.domain.OnlineSession.OnlineStatus; import com.ruoyi.project.monitor.online.domain.OnlineSession.OnlineStatus;
@ -12,6 +14,7 @@ import com.ruoyi.project.monitor.online.domain.OnlineSession.OnlineStatus;
public class UserOnline extends BaseEntity public class UserOnline extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 用户会话id */ /** 用户会话id */
private String sessionId; private String sessionId;
@ -169,12 +172,19 @@ public class UserOnline extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "UserOnline [sessionId=" + sessionId + ", deptName=" + deptName + ", loginName=" + loginName .append("sessionId", getSessionId())
+ ", ipaddr=" + ipaddr + ", browser=" + browser + ", os=" + os + ", startTimestamp=" + startTimestamp .append("loginName", getLoginName())
+ ", lastAccessTime=" + lastAccessTime + ", expireTime=" + expireTime + ", status=" + status .append("deptName", getDeptName())
+ ", session=" + session + "]"; .append("ipaddr", getIpaddr())
.append("loginLocation", getLoginLocation())
.append("browser", getBrowser())
.append("os", getOs())
.append("status", getStatus())
.append("startTimestamp", getStartTimestamp())
.append("lastAccessTime", getLastAccessTime())
.append("expireTime", getExpireTime())
.toString();
} }
} }

View File

@ -1,11 +1,13 @@
package com.ruoyi.project.monitor.operlog.domain; package com.ruoyi.project.monitor.operlog.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date; import java.util.Date;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
/** /**
* oper_log * oper_log
* *
* @author ruoyi * @author ruoyi
*/ */
@ -210,12 +212,22 @@ public class OperLog extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "OperLog [operId=" + operId + ", title=" + title + ", businessType=" + businessType + ", method=" .append("operId", getOperId())
+ method + ", operatorType=" + operatorType + ", operName=" + operName + ", deptName=" + deptName .append("title", getTitle())
+ ", operUrl=" + operUrl + ", operIp=" + operIp + ", operLocation=" + operLocation + ", operParam=" .append("businessType", getBusinessType())
+ operParam + ", status=" + status + ", errorMsg=" + errorMsg + ", operTime=" + operTime + "]"; .append("method", getMethod())
.append("operatorType", getOperatorType())
.append("operName", getOperName())
.append("deptName", getDeptName())
.append("operUrl", getOperUrl())
.append("operIp", getOperIp())
.append("operLocation", getOperLocation())
.append("operParam", getOperParam())
.append("status", getStatus())
.append("errorMsg", getErrorMsg())
.append("operTime", getOperTime())
.toString();
} }
} }

View File

@ -128,5 +128,4 @@ public class ConfigController extends BaseController
{ {
return configService.checkConfigKeyUnique(config); return configService.checkConfigKeyUnique(config);
} }
} }

View File

@ -1,5 +1,7 @@
package com.ruoyi.project.system.config.domain; package com.ruoyi.project.system.config.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
@ -83,10 +85,18 @@ public class Config extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "Config [configId=" + configId + ", configName=" + configName + ", configKey=" + configKey .append("configId", getConfigId())
+ ", configValue=" + configValue + ", configType=" + configType + "]"; .append("configName", getConfigName())
.append("configKey", getConfigKey())
.append("configValue", getConfigValue())
.append("configType", getConfigType())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }

View File

@ -57,5 +57,4 @@ public interface ConfigMapper
* @return * @return
*/ */
public int deleteConfigByIds(String[] configIds); public int deleteConfigByIds(String[] configIds);
} }

View File

@ -117,5 +117,4 @@ public class ConfigServiceImpl implements IConfigService
} }
return UserConstants.CONFIG_KEY_UNIQUE; return UserConstants.CONFIG_KEY_UNIQUE;
} }
} }

View File

@ -10,7 +10,6 @@ import java.util.List;
*/ */
public interface IConfigService public interface IConfigService
{ {
/** /**
* *
* *
@ -66,5 +65,4 @@ public interface IConfigService
* @return * @return
*/ */
public String checkConfigKeyUnique(Config config); public String checkConfigKeyUnique(Config config);
} }

View File

@ -1,9 +1,11 @@
package com.ruoyi.project.system.dept.domain; package com.ruoyi.project.system.dept.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
/** /**
* sys_dept * sys_dept
* *
* @author ruoyi * @author ruoyi
*/ */
@ -154,11 +156,22 @@ public class Dept extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "Dept [deptId=" + deptId + ", parentId=" + parentId + ", ancestors=" + ancestors + ", deptName=" .append("deptId", getDeptId())
+ deptName + ", orderNum=" + orderNum + ", leader=" + leader + ", phone=" + phone + ", email=" + email .append("parentId", getParentId())
+ ", status=" + status + ", parentName=" + parentName + "]"; .append("ancestors", getAncestors())
.append("deptName", getDeptName())
.append("orderNum", getOrderNum())
.append("leader", getLeader())
.append("phone", getPhone())
.append("email", getEmail())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
} }
} }

View File

@ -1,5 +1,7 @@
package com.ruoyi.project.system.dict.domain; package com.ruoyi.project.system.dict.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
@ -138,11 +140,22 @@ public class DictData extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "DictData [dictCode=" + dictCode + ", dictSort=" + dictSort + ", dictLabel=" + dictLabel + ", dictValue=" .append("dictCode", getDictCode())
+ dictValue + ", dictType=" + dictType + ", cssClass=" + cssClass + ", isDefault=" + isDefault .append("dictSort", getDictSort())
+ ", status=" + status + "]"; .append("dictLabel", getDictLabel())
.append("dictValue", getDictValue())
.append("dictType", getDictType())
.append("cssClass", getCssClass())
.append("listClass", getListClass())
.append("isDefault", getIsDefault())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }

View File

@ -1,5 +1,7 @@
package com.ruoyi.project.system.dict.domain; package com.ruoyi.project.system.dict.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
@ -69,10 +71,17 @@ public class DictType extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "DictType [dictId=" + dictId + ", dictName=" + dictName + ", dictType=" + dictType + ", status=" + status .append("dictId", getDictId())
+ "]"; .append("dictName", getDictName())
.append("dictType", getDictType())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }

View File

@ -11,7 +11,6 @@ import com.ruoyi.project.system.dict.domain.DictData;
*/ */
public interface DictDataMapper public interface DictDataMapper
{ {
/** /**
* *
* *
@ -93,5 +92,4 @@ public interface DictDataMapper
* @return * @return
*/ */
public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType);
} }

View File

@ -117,5 +117,4 @@ public class DictDataServiceImpl implements IDictDataService
dictData.setUpdateBy(ShiroUtils.getLoginName()); dictData.setUpdateBy(ShiroUtils.getLoginName());
return dictDataMapper.updateDictData(dictData); return dictDataMapper.updateDictData(dictData);
} }
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.system.dict.domain.DictData;
*/ */
public interface IDictDataService public interface IDictDataService
{ {
/** /**
* *
* *
@ -75,5 +74,4 @@ public interface IDictDataService
* @return * @return
*/ */
public int updateDictData(DictData dictData); public int updateDictData(DictData dictData);
} }

View File

@ -28,7 +28,6 @@ import com.ruoyi.project.system.role.domain.Role;
@RequestMapping("/system/menu") @RequestMapping("/system/menu")
public class MenuController extends BaseController public class MenuController extends BaseController
{ {
private String prefix = "system/menu"; private String prefix = "system/menu";
@Autowired @Autowired

View File

@ -1,5 +1,7 @@
package com.ruoyi.project.system.menu.domain; package com.ruoyi.project.system.menu.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
@ -12,26 +14,37 @@ import com.ruoyi.framework.web.domain.BaseEntity;
public class Menu extends BaseEntity public class Menu extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 菜单ID */ /** 菜单ID */
private Long menuId; private Long menuId;
/** 菜单名称 */ /** 菜单名称 */
private String menuName; private String menuName;
/** 父菜单名称 */ /** 父菜单名称 */
private String parentName; private String parentName;
/** 父菜单ID */ /** 父菜单ID */
private Long parentId; private Long parentId;
/** 显示顺序 */ /** 显示顺序 */
private String orderNum; private String orderNum;
/** 菜单URL */ /** 菜单URL */
private String url; private String url;
/** 类型:0目录,1菜单,2按钮 */ /** 类型:0目录,1菜单,2按钮 */
private String menuType; private String menuType;
/** 菜单状态:0显示,1隐藏 */ /** 菜单状态:0显示,1隐藏 */
private String visible; private String visible;
/** 权限字符串 */ /** 权限字符串 */
private String perms; private String perms;
/** 菜单图标 */ /** 菜单图标 */
private String icon; private String icon;
/** 子菜单 */ /** 子菜单 */
private List<Menu> children = new ArrayList<Menu>(); private List<Menu> children = new ArrayList<Menu>();
@ -146,11 +159,22 @@ public class Menu extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "Menu [menuId=" + menuId + ", menuName=" + menuName + ", parentName=" + parentName + ", parentId=" .append("menuId", getMenuId())
+ parentId + ", orderNum=" + orderNum + ", url=" + url + ", menuType=" + menuType + ", visible=" .append("menuName", getMenuName())
+ visible + ", perms=" + perms + ", icon=" + icon + ", children=" + children + "]"; .append("parentId", getParentId())
.append("orderNum", getOrderNum())
.append("url", getUrl())
.append("menuType", getMenuType())
.append("visible", getVisible())
.append("perms", getPerms())
.append("icon", getIcon())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }

View File

@ -11,7 +11,6 @@ import com.ruoyi.project.system.menu.domain.Menu;
*/ */
public interface MenuMapper public interface MenuMapper
{ {
/** /**
* *
* *
@ -106,5 +105,4 @@ public interface MenuMapper
* @return * @return
*/ */
public Menu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); public Menu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId);
} }

View File

@ -14,7 +14,6 @@ import com.ruoyi.project.system.user.domain.User;
*/ */
public interface IMenuService public interface IMenuService
{ {
/** /**
* ID * ID
* *
@ -123,5 +122,4 @@ public interface IMenuService
* @return * @return
*/ */
public String checkMenuNameUnique(Menu menu); public String checkMenuNameUnique(Menu menu);
} }

View File

@ -299,5 +299,4 @@ public class MenuServiceImpl implements IMenuService
} }
return UserConstants.MENU_NAME_UNIQUE; return UserConstants.MENU_NAME_UNIQUE;
} }
} }

View File

@ -106,5 +106,4 @@ public class NoticeController extends BaseController
{ {
return toAjax(noticeService.deleteNoticeByIds(ids)); return toAjax(noticeService.deleteNoticeByIds(ids));
} }
} }

View File

@ -1,9 +1,11 @@
package com.ruoyi.project.system.notice.domain; package com.ruoyi.project.system.notice.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
/** /**
* sys_notice * sys_notice
* *
* @author ruoyi * @author ruoyi
*/ */
@ -71,5 +73,20 @@ public class Notice extends BaseEntity
{ {
return status; return status;
} }
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("noticeId", getNoticeId())
.append("noticeTitle", getNoticeTitle())
.append("noticeType", getNoticeType())
.append("noticeContent", getNoticeContent())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
} }

View File

@ -49,5 +49,4 @@ public interface NoticeMapper
* @return * @return
*/ */
public int deleteNoticeByIds(String[] noticeIds); public int deleteNoticeByIds(String[] noticeIds);
} }

View File

@ -49,5 +49,4 @@ public interface INoticeService
* @return * @return
*/ */
public int deleteNoticeByIds(String ids); public int deleteNoticeByIds(String ids);
} }

View File

@ -82,5 +82,4 @@ public class NoticeServiceImpl implements INoticeService
{ {
return noticeMapper.deleteNoticeByIds(Convert.toStrArray(ids)); return noticeMapper.deleteNoticeByIds(Convert.toStrArray(ids));
} }
} }

View File

@ -139,5 +139,4 @@ public class PostController extends BaseController
{ {
return postService.checkPostCodeUnique(post); return postService.checkPostCodeUnique(post);
} }
} }

View File

@ -1,10 +1,12 @@
package com.ruoyi.project.system.post.domain; package com.ruoyi.project.system.post.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
/** /**
* sys_post * sys_post
* *
* @author ruoyi * @author ruoyi
*/ */
@ -96,10 +98,18 @@ public class Post extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "Post [postId=" + postId + ", postCode=" + postCode + ", postName=" + postName + ", postSort=" + postSort .append("postId", getPostId())
+ ", status=" + status + ", flag=" + flag + "]"; .append("postCode", getPostCode())
.append("postName", getPostName())
.append("postSort", getPostSort())
.append("status", getStatus())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.system.post.domain.Post;
*/ */
public interface PostMapper public interface PostMapper
{ {
/** /**
* *
* *
@ -81,5 +80,4 @@ public interface PostMapper
* @return * @return
*/ */
public Post checkPostCodeUnique(String postCode); public Post checkPostCodeUnique(String postCode);
} }

View File

@ -179,5 +179,4 @@ public class PostServiceImpl implements IPostService
} }
return UserConstants.POST_CODE_UNIQUE; return UserConstants.POST_CODE_UNIQUE;
} }
} }

View File

@ -29,7 +29,6 @@ import com.ruoyi.project.system.role.service.IRoleService;
@RequestMapping("/system/role") @RequestMapping("/system/role")
public class RoleController extends BaseController public class RoleController extends BaseController
{ {
private String prefix = "system/role"; private String prefix = "system/role";
@Autowired @Autowired
@ -176,5 +175,4 @@ public class RoleController extends BaseController
{ {
return prefix + "/tree"; return prefix + "/tree";
} }
} }

View File

@ -1,11 +1,12 @@
package com.ruoyi.project.system.role.domain; package com.ruoyi.project.system.role.domain;
import java.util.Arrays; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel; import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity; import com.ruoyi.framework.web.domain.BaseEntity;
/** /**
* sys_role * sys_role
* *
* @author ruoyi * @author ruoyi
*/ */
@ -150,11 +151,20 @@ public class Role extends BaseEntity
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "Role [roleId=" + roleId + ", roleName=" + roleName + ", roleKey=" + roleKey + ", roleSort=" + roleSort .append("roleId", getRoleId())
+ ", dataScope=" + dataScope + ", status=" + status + ", flag=" + flag + ", menuIds=" .append("roleName", getRoleName())
+ Arrays.toString(menuIds) + ", deptIds=" + Arrays.toString(deptIds) + "]"; .append("roleKey", getRoleKey())
.append("roleSort", getRoleSort())
.append("dataScope", getDataScope())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
} }
} }

View File

@ -1,5 +1,8 @@
package com.ruoyi.project.system.role.domain; package com.ruoyi.project.system.role.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/** /**
* sys_role_dept * sys_role_dept
* *
@ -9,6 +12,7 @@ public class RoleDept
{ {
/** 角色ID */ /** 角色ID */
private Long roleId; private Long roleId;
/** 部门ID */ /** 部门ID */
private Long deptId; private Long deptId;
@ -33,8 +37,10 @@ public class RoleDept
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "RoleDept [roleId=" + roleId + ", deptId=" + deptId + "]"; .append("roleId", getRoleId())
.append("deptId", getDeptId())
.toString();
} }
} }

View File

@ -1,5 +1,8 @@
package com.ruoyi.project.system.role.domain; package com.ruoyi.project.system.role.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/** /**
* sys_role_menu * sys_role_menu
* *
@ -9,6 +12,7 @@ public class RoleMenu
{ {
/** 角色ID */ /** 角色ID */
private Long roleId; private Long roleId;
/** 菜单ID */ /** 菜单ID */
private Long menuId; private Long menuId;
@ -33,9 +37,10 @@ public class RoleMenu
} }
@Override @Override
public String toString() public String toString() {
{ return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
return "RoleMenu [roleId=" + roleId + ", menuId=" + menuId + "]"; .append("roleId", getRoleId())
.append("menuId", getMenuId())
.toString();
} }
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.system.role.domain.RoleDept;
*/ */
public interface RoleDeptMapper public interface RoleDeptMapper
{ {
/** /**
* ID * ID
* *
@ -42,5 +41,4 @@ public interface RoleDeptMapper
* @return * @return
*/ */
public int batchRoleDept(List<RoleDept> roleDeptList); public int batchRoleDept(List<RoleDept> roleDeptList);
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.system.role.domain.Role;
*/ */
public interface RoleMapper public interface RoleMapper
{ {
/** /**
* *
* *
@ -82,5 +81,4 @@ public interface RoleMapper
* @return * @return
*/ */
public Role checkRoleKeyUnique(String roleKey); public Role checkRoleKeyUnique(String roleKey);
} }

View File

@ -10,7 +10,6 @@ import com.ruoyi.project.system.role.domain.RoleMenu;
*/ */
public interface RoleMenuMapper public interface RoleMenuMapper
{ {
/** /**
* ID * ID
* *
@ -42,5 +41,4 @@ public interface RoleMenuMapper
* @return * @return
*/ */
public int batchRoleMenu(List<RoleMenu> roleMenuList); public int batchRoleMenu(List<RoleMenu> roleMenuList);
} }

View File

@ -11,7 +11,6 @@ import com.ruoyi.project.system.role.domain.Role;
*/ */
public interface IRoleService public interface IRoleService
{ {
/** /**
* *
* *
@ -115,5 +114,4 @@ public interface IRoleService
* @return * @return
*/ */
public int countUserRoleByRoleId(Long roleId); public int countUserRoleByRoleId(Long roleId);
} }

View File

@ -28,7 +28,6 @@ import com.ruoyi.project.system.user.mapper.UserRoleMapper;
@Service @Service
public class RoleServiceImpl implements IRoleService public class RoleServiceImpl implements IRoleService
{ {
@Autowired @Autowired
private RoleMapper roleMapper; private RoleMapper roleMapper;
@ -303,5 +302,4 @@ public class RoleServiceImpl implements IRoleService
{ {
return userRoleMapper.countUserRoleByRoleId(roleId); return userRoleMapper.countUserRoleByRoleId(roleId);
} }
} }

View File

@ -25,7 +25,6 @@ import com.ruoyi.framework.web.controller.BaseController;
@RequestMapping("/captcha") @RequestMapping("/captcha")
public class CaptchaController extends BaseController public class CaptchaController extends BaseController
{ {
@Resource(name = "captchaProducer") @Resource(name = "captchaProducer")
private Producer captchaProducer; private Producer captchaProducer;

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