Commit 83dc7f8a authored by zhengjie's avatar zhengjie
Browse files

优化user列表中的岗位DTO,修改@author信息,新增验证码登录

parent c01435a0
......@@ -35,7 +35,6 @@ eladmin基于 Spring Boot 2.1.0 、 Jpa、 Spring Security、redis、Vue的前
- 操作日志:记录用户操作的日志
- 异常日志:记录异常日志,方便开发人员定位错误
- 系统缓存:使用jedis将缓存操作可视化,并提供对redis的基本操作,可根据需求自行扩展
- 实时控制台:实时打印logback日志
- SQL监控:采用druid 监控数据库访问性能,默认用户名admin,密码123456
- 定时任务:整合Quartz做定时任务,加入任务日志,任务运行情况一目了然
- 代码生成:高灵活度一键生成前后端代码,减少百分之80左右的工作任务
......@@ -71,10 +70,9 @@ eladmin基于 Spring Boot 2.1.0 、 Jpa、 Spring Security、redis、Vue的前
</tr>
<tr>
<td><img src="https://i.loli.net/2019/05/18/5cdf77632b4b090165.png"/></td>
<td><img src="https://i.loli.net/2019/05/18/5cdf77639b1be47210.png"/></td>
</tr>
<tr>
<td><img src="https://i.loli.net/2019/05/18/5cdf77639929277783.png"/></td>
</tr>
<tr>
<td><img src="https://i.loli.net/2019/05/18/5cdf78969adc389599.png"/></td>
</tr>
</table>
......
......@@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author jie
* @author Zheng Jie
* @date 2019-6-4 13:52:30
*/
@Target(ElementType.FIELD)
......@@ -49,7 +49,7 @@ public @interface Query {
}
/**
* @author jie
* @author Zheng Jie
* 适用于简单连接查询,复杂的请自定义该注解,或者使用sql查询
*/
enum Join {
......
......@@ -39,7 +39,6 @@ public class LimitAspect {
Method signatureMethod = signature.getMethod();
Limit limit = signatureMethod.getAnnotation(Limit.class);
LimitType limitType = limit.limitType();
String name = limit.name();
String key = limit.key();
if (StringUtils.isEmpty(key)) {
switch (limitType) {
......
......@@ -6,7 +6,7 @@ import org.springframework.http.HttpStatus;
import static org.springframework.http.HttpStatus.BAD_REQUEST;
/**
* @author jie
* @author Zheng Jie
* @date 2018-11-23
* 统一异常处理
*/
......
......@@ -7,7 +7,7 @@ import java.util.Map;
import java.util.stream.IntStream;
/**
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
public class EntityExistException extends RuntimeException {
......
......@@ -7,7 +7,7 @@ import java.util.Map;
import java.util.stream.IntStream;
/**
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
public class EntityNotFoundException extends RuntimeException {
......
......@@ -6,7 +6,7 @@ import lombok.Data;
import java.time.LocalDateTime;
/**
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
@Data
......
......@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
import static org.springframework.http.HttpStatus.*;
/**
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
@Slf4j
......
......@@ -3,7 +3,7 @@ package me.zhengjie.mapper;
import java.util.List;
/**
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
public interface EntityMapper<D, E> {
......
......@@ -22,7 +22,7 @@ import org.springframework.data.redis.serializer.RedisSerializationContext;
import java.time.Duration;
/**
* @author jie
* @author Zheng Jie
* @date 2018-11-24
*/
@Slf4j
......
......@@ -18,7 +18,7 @@ import java.util.List;
/**
* api页面 /swagger-ui.html
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
......
......@@ -2,7 +2,7 @@ package me.zhengjie.utils;
/**
* 常用静态常量
* @author jie
* @author Zheng Jie
* @date 2018-12-26
*/
public class ElAdminConstant {
......
......@@ -9,7 +9,7 @@ import javax.crypto.spec.IvParameterSpec;
/**
* 加密
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
public class EncryptUtils {
......
......@@ -8,7 +8,7 @@ import java.text.DecimalFormat;
/**
* File工具类,扩展 hutool 工具包
* @author jie
* @author Zheng Jie
* @date 2018-12-27
*/
public class FileUtil extends cn.hutool.core.io.FileUtil {
......
......@@ -8,7 +8,7 @@ import java.util.Map;
/**
* 分页工具
* @author jie
* @author Zheng Jie
* @date 2018-12-10
*/
public class PageUtil extends cn.hutool.core.util.PageUtil {
......
......@@ -9,7 +9,7 @@ import java.lang.reflect.Field;
import java.util.*;
/**
* @author jie
* @author Zheng Jie
* @date 2019-6-4 14:59:48
*/
@Slf4j
......@@ -97,12 +97,14 @@ public class QueryHelp {
return cb.and(list.toArray(new Predicate[list.size()]));
}
@SuppressWarnings("unchecked")
private static <T, R> Expression<T> getExpression(String attributeName, Join join, Root<R> root) {
if (ObjectUtil.isNotEmpty(join)) {
return join.get(attributeName);
} else return root.get(attributeName);
}
@SuppressWarnings("unchecked")
public static boolean isBlank(final CharSequence cs) {
int strLen;
if (cs == null || (strLen = cs.length()) == 0) {
......@@ -116,6 +118,7 @@ public class QueryHelp {
return true;
}
@SuppressWarnings("unchecked")
private static List<Field> getAllFields(Class clazz, List<Field> fields) {
if (clazz != null) {
fields.addAll(Arrays.asList(clazz.getDeclaredFields()));
......
......@@ -6,7 +6,7 @@ import javax.servlet.http.HttpServletRequest;
/**
* 获取 HttpServletRequest
* @author jie
* @author Zheng Jie
* @date 2018-11-24
*/
public class RequestHolder {
......
......@@ -7,7 +7,7 @@ import org.springframework.security.core.userdetails.UserDetails;
/**
* 获取当前登录的用户
* @author jie
* @author Zheng Jie
* @date 2019-01-17
*/
public class SecurityUtils {
......
......@@ -5,7 +5,7 @@ import java.io.StringWriter;
/**
* 异常工具
* @author jie
* @author Zheng Jie
* @date 2019-01-06
*/
public class ThrowableUtil {
......
......@@ -5,7 +5,7 @@ import java.util.Optional;
/**
* 验证工具
* @author jie
* @author Zheng Jie
* @date 2018-11-23
*/
public class ValidationUtil{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment