目录调整,新增 Not Equal 查询方式

pull/214/head
dqjdda 2019-11-17 14:34:34 +08:00
parent 3daa826375
commit 5ab7fb5b73
61 changed files with 210 additions and 175 deletions

View File

@ -50,6 +50,8 @@ public @interface Query {
, LESS_THAN_NQ , LESS_THAN_NQ
// jie 2019/6/4 包含 // jie 2019/6/4 包含
, IN , IN
// 不等于
,NOT_EQUAL
} }
/** /**

View File

@ -106,6 +106,9 @@ public class QueryHelp {
list.add(getExpression(attributeName,join,root).in((Collection<Long>) val)); list.add(getExpression(attributeName,join,root).in((Collection<Long>) val));
} }
break; break;
case NOT_EQUAL:
list.add(cb.notEqual(getExpression(attributeName,join,root), val));
break;
default: break; default: break;
} }
} }

39
eladmin-generator/pom.xml Normal file
View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId>
<version>2.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>eladmin-generator</artifactId>
<name>代码生成模块</name>
<properties>
<configuration.version>1.9</configuration.version>
</properties>
<dependencies>
<dependency>
<groupId>me.zhengjie</groupId>
<artifactId>eladmin-common</artifactId>
<version>2.3</version>
</dependency>
<!--模板引擎-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-configuration/commons-configuration -->
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>${configuration.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -1,10 +1,7 @@
package me.zhengjie.modules.generator.domain; package me.zhengjie.domain;
import lombok.Data; import lombok.Data;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* *

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.generator.domain.vo; package me.zhengjie.domain.vo;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.generator.domain.vo; package me.zhengjie.domain.vo;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.generator.repository; package me.zhengjie.repository;
import me.zhengjie.modules.generator.domain.GenConfig; import me.zhengjie.domain.GenConfig;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
/** /**

View File

@ -1,9 +1,9 @@
package me.zhengjie.modules.generator.rest; package me.zhengjie.rest;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import me.zhengjie.modules.generator.domain.GenConfig; import me.zhengjie.domain.GenConfig;
import me.zhengjie.modules.generator.service.GenConfigService; import me.zhengjie.service.GenConfigService;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;

View File

@ -1,17 +1,16 @@
package me.zhengjie.modules.generator.rest; package me.zhengjie.rest;
import cn.hutool.core.util.PageUtil; import cn.hutool.core.util.PageUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import me.zhengjie.domain.vo.ColumnInfo;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.generator.domain.vo.ColumnInfo; import me.zhengjie.service.GenConfigService;
import me.zhengjie.modules.generator.service.GenConfigService; import me.zhengjie.service.GeneratorService;
import me.zhengjie.modules.generator.service.GeneratorService;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
/** /**

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.generator.service; package me.zhengjie.service;
import me.zhengjie.modules.generator.domain.GenConfig; import me.zhengjie.domain.GenConfig;
/** /**
* @author Zheng Jie * @author Zheng Jie

View File

@ -1,7 +1,7 @@
package me.zhengjie.modules.generator.service; package me.zhengjie.service;
import me.zhengjie.modules.generator.domain.GenConfig; import me.zhengjie.domain.GenConfig;
import me.zhengjie.modules.generator.domain.vo.ColumnInfo; import me.zhengjie.domain.vo.ColumnInfo;
import java.util.List; import java.util.List;
/** /**

View File

@ -1,8 +1,8 @@
package me.zhengjie.modules.generator.service.impl; package me.zhengjie.service.impl;
import me.zhengjie.modules.generator.domain.GenConfig; import me.zhengjie.domain.GenConfig;
import me.zhengjie.modules.generator.repository.GenConfigRepository; import me.zhengjie.repository.GenConfigRepository;
import me.zhengjie.modules.generator.service.GenConfigService; import me.zhengjie.service.GenConfigService;
import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Cacheable;

View File

@ -1,12 +1,12 @@
package me.zhengjie.modules.generator.service.impl; package me.zhengjie.service.impl;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import me.zhengjie.domain.GenConfig;
import me.zhengjie.domain.vo.ColumnInfo;
import me.zhengjie.domain.vo.TableInfo;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.generator.domain.GenConfig; import me.zhengjie.service.GeneratorService;
import me.zhengjie.modules.generator.domain.vo.ColumnInfo; import me.zhengjie.utils.GenUtil;
import me.zhengjie.modules.generator.domain.vo.TableInfo;
import me.zhengjie.modules.generator.service.GeneratorService;
import me.zhengjie.modules.generator.utils.GenUtil;
import me.zhengjie.utils.PageUtil; import me.zhengjie.utils.PageUtil;
import me.zhengjie.utils.StringUtils; import me.zhengjie.utils.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

View File

@ -1,8 +1,6 @@
package me.zhengjie.modules.generator.utils; package me.zhengjie.utils;
import org.apache.commons.configuration.Configuration; import org.apache.commons.configuration.*;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
/** /**
* sqljava * sqljava

View File

@ -1,12 +1,10 @@
package me.zhengjie.modules.generator.utils; package me.zhengjie.utils;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.extra.template.*; import cn.hutool.extra.template.*;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import me.zhengjie.modules.generator.domain.GenConfig; import me.zhengjie.domain.GenConfig;
import me.zhengjie.modules.generator.domain.vo.ColumnInfo; import me.zhengjie.domain.vo.ColumnInfo;
import me.zhengjie.utils.FileUtil;
import me.zhengjie.utils.StringUtils;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.io.File; import java.io.File;
import java.io.FileWriter; import java.io.FileWriter;

View File

@ -17,6 +17,18 @@
</properties> </properties>
<dependencies> <dependencies>
<!-- 代码生成模块 -->
<dependency>
<groupId>me.zhengjie</groupId>
<artifactId>eladmin-generator</artifactId>
<version>2.3</version>
<exclusions>
<exclusion>
<groupId>me.zhengjie</groupId>
<artifactId>eladmin-common</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- tools 模块包含了 common 和 logging 模块 --> <!-- tools 模块包含了 common 和 logging 模块 -->
<dependency> <dependency>

View File

@ -4,7 +4,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import me.zhengjie.aop.log.Log; import me.zhengjie.aop.log.Log;
import me.zhengjie.config.DataScope; import me.zhengjie.config.DataScope;
import me.zhengjie.modules.tools.domain.VerificationCode; import me.zhengjie.domain.VerificationCode;
import me.zhengjie.modules.system.domain.User; import me.zhengjie.modules.system.domain.User;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.system.domain.vo.UserPassVo; import me.zhengjie.modules.system.domain.vo.UserPassVo;
@ -12,7 +12,7 @@ import me.zhengjie.modules.system.service.DeptService;
import me.zhengjie.modules.system.service.RoleService; import me.zhengjie.modules.system.service.RoleService;
import me.zhengjie.modules.system.service.dto.RoleSmallDTO; import me.zhengjie.modules.system.service.dto.RoleSmallDTO;
import me.zhengjie.modules.system.service.dto.UserQueryCriteria; import me.zhengjie.modules.system.service.dto.UserQueryCriteria;
import me.zhengjie.modules.tools.service.VerificationCodeService; import me.zhengjie.service.VerificationCodeService;
import me.zhengjie.utils.*; import me.zhengjie.utils.*;
import me.zhengjie.modules.system.service.UserService; import me.zhengjie.modules.system.service.UserService;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;

View File

@ -16,7 +16,6 @@
<mail.version>1.4.7</mail.version> <mail.version>1.4.7</mail.version>
<qiniu.version>[7.2.0, 7.2.99]</qiniu.version> <qiniu.version>[7.2.0, 7.2.99]</qiniu.version>
<alipay.version>3.1.0</alipay.version> <alipay.version>3.1.0</alipay.version>
<configuration.version>1.9</configuration.version>
</properties> </properties>
<dependencies> <dependencies>
@ -34,19 +33,6 @@
<version>${mail.version}</version> <version>${mail.version}</version>
</dependency> </dependency>
<!--模板引擎-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-configuration/commons-configuration -->
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>${configuration.version}</version>
</dependency>
<!--七牛云存储--> <!--七牛云存储-->
<dependency> <dependency>
<groupId>com.qiniu</groupId> <groupId>com.qiniu</groupId>

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain; package me.zhengjie.domain;
import lombok.Data; import lombok.Data;
import javax.persistence.*; import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain; package me.zhengjie.domain;
import lombok.Data; import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain; package me.zhengjie.domain;
import lombok.*; import lombok.*;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain; package me.zhengjie.domain;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.CreationTimestamp;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain; package me.zhengjie.domain;
import lombok.Data; import lombok.Data;
import javax.persistence.*; import javax.persistence.*;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain; package me.zhengjie.domain;
import lombok.Data; import lombok.Data;
import org.hibernate.annotations.UpdateTimestamp; import org.hibernate.annotations.UpdateTimestamp;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain; package me.zhengjie.domain;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain.vo; package me.zhengjie.domain.vo;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.domain.vo; package me.zhengjie.domain.vo;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.tools.repository; package me.zhengjie.repository;
import me.zhengjie.modules.tools.domain.AlipayConfig; import me.zhengjie.domain.AlipayConfig;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
/** /**

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.tools.repository; package me.zhengjie.repository;
import me.zhengjie.modules.tools.domain.EmailConfig; import me.zhengjie.domain.EmailConfig;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
/** /**

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.tools.repository; package me.zhengjie.repository;
import me.zhengjie.modules.tools.domain.LocalStorage; import me.zhengjie.domain.LocalStorage;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.tools.repository; package me.zhengjie.repository;
import me.zhengjie.modules.tools.domain.Picture; import me.zhengjie.domain.Picture;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.tools.repository; package me.zhengjie.repository;
import me.zhengjie.modules.tools.domain.QiniuConfig; import me.zhengjie.domain.QiniuConfig;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query; import org.springframework.data.jpa.repository.Query;

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.tools.repository; package me.zhengjie.repository;
import me.zhengjie.modules.tools.domain.QiniuContent; import me.zhengjie.domain.QiniuContent;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

View File

@ -1,6 +1,6 @@
package me.zhengjie.modules.tools.repository; package me.zhengjie.repository;
import me.zhengjie.modules.tools.domain.VerificationCode; import me.zhengjie.domain.VerificationCode;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
/** /**

View File

@ -1,15 +1,15 @@
package me.zhengjie.modules.tools.rest; package me.zhengjie.rest;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import me.zhengjie.annotation.AnonymousAccess; import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.aop.log.Log; import me.zhengjie.aop.log.Log;
import me.zhengjie.modules.tools.domain.AlipayConfig; import me.zhengjie.domain.vo.TradeVo;
import me.zhengjie.modules.tools.domain.vo.TradeVo; import me.zhengjie.domain.AlipayConfig;
import me.zhengjie.modules.tools.utils.AliPayStatusEnum; import me.zhengjie.utils.AliPayStatusEnum;
import me.zhengjie.modules.tools.utils.AlipayUtils; import me.zhengjie.utils.AlipayUtils;
import me.zhengjie.modules.tools.service.AlipayService; import me.zhengjie.service.AlipayService;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;

View File

@ -1,11 +1,11 @@
package me.zhengjie.modules.tools.rest; package me.zhengjie.rest;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import me.zhengjie.aop.log.Log; import me.zhengjie.aop.log.Log;
import me.zhengjie.modules.tools.domain.EmailConfig; import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.modules.tools.domain.vo.EmailVo; import me.zhengjie.domain.EmailConfig;
import me.zhengjie.modules.tools.service.EmailService; import me.zhengjie.service.EmailService;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;

View File

@ -1,9 +1,9 @@
package me.zhengjie.modules.tools.rest; package me.zhengjie.rest;
import me.zhengjie.aop.log.Log; import me.zhengjie.aop.log.Log;
import me.zhengjie.modules.tools.domain.LocalStorage; import me.zhengjie.domain.LocalStorage;
import me.zhengjie.modules.tools.service.LocalStorageService; import me.zhengjie.service.LocalStorageService;
import me.zhengjie.modules.tools.service.dto.LocalStorageQueryCriteria; import me.zhengjie.service.dto.LocalStorageQueryCriteria;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;

View File

@ -1,11 +1,11 @@
package me.zhengjie.modules.tools.rest; package me.zhengjie.rest;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import me.zhengjie.aop.log.Log; import me.zhengjie.aop.log.Log;
import me.zhengjie.modules.tools.domain.Picture; import me.zhengjie.domain.Picture;
import me.zhengjie.modules.tools.service.PictureService; import me.zhengjie.service.PictureService;
import me.zhengjie.modules.tools.service.dto.PictureQueryCriteria; import me.zhengjie.service.dto.PictureQueryCriteria;
import me.zhengjie.utils.SecurityUtils; import me.zhengjie.utils.SecurityUtils;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;

View File

@ -1,13 +1,13 @@
package me.zhengjie.modules.tools.rest; package me.zhengjie.rest;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import me.zhengjie.aop.log.Log; import me.zhengjie.aop.log.Log;
import me.zhengjie.modules.tools.domain.QiniuConfig; import me.zhengjie.domain.QiniuConfig;
import me.zhengjie.modules.tools.service.dto.QiniuQueryCriteria; import me.zhengjie.domain.QiniuContent;
import me.zhengjie.modules.tools.domain.QiniuContent; import me.zhengjie.service.dto.QiniuQueryCriteria;
import me.zhengjie.modules.tools.service.QiNiuService; import me.zhengjie.service.QiNiuService;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;

View File

@ -1,11 +1,11 @@
package me.zhengjie.modules.tools.rest; package me.zhengjie.rest;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import me.zhengjie.modules.tools.domain.VerificationCode; import me.zhengjie.domain.VerificationCode;
import me.zhengjie.modules.tools.domain.vo.EmailVo; import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.modules.tools.service.EmailService; import me.zhengjie.service.EmailService;
import me.zhengjie.modules.tools.service.VerificationCodeService; import me.zhengjie.service.VerificationCodeService;
import me.zhengjie.utils.ElAdminConstant; import me.zhengjie.utils.ElAdminConstant;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;

View File

@ -1,7 +1,7 @@
package me.zhengjie.modules.tools.service; package me.zhengjie.service;
import me.zhengjie.modules.tools.domain.AlipayConfig; import me.zhengjie.domain.vo.TradeVo;
import me.zhengjie.modules.tools.domain.vo.TradeVo; import me.zhengjie.domain.AlipayConfig;
/** /**
* @author Zheng Jie * @author Zheng Jie

View File

@ -1,7 +1,7 @@
package me.zhengjie.modules.tools.service; package me.zhengjie.service;
import me.zhengjie.modules.tools.domain.EmailConfig; import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.modules.tools.domain.vo.EmailVo; import me.zhengjie.domain.EmailConfig;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
/** /**

View File

@ -1,8 +1,8 @@
package me.zhengjie.modules.tools.service; package me.zhengjie.service;
import me.zhengjie.modules.tools.domain.LocalStorage; import me.zhengjie.domain.LocalStorage;
import me.zhengjie.modules.tools.service.dto.LocalStorageDTO; import me.zhengjie.service.dto.LocalStorageDTO;
import me.zhengjie.modules.tools.service.dto.LocalStorageQueryCriteria; import me.zhengjie.service.dto.LocalStorageQueryCriteria;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;

View File

@ -1,7 +1,7 @@
package me.zhengjie.modules.tools.service; package me.zhengjie.service;
import me.zhengjie.modules.tools.domain.Picture; import me.zhengjie.domain.Picture;
import me.zhengjie.modules.tools.service.dto.PictureQueryCriteria; import me.zhengjie.service.dto.PictureQueryCriteria;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;

View File

@ -1,8 +1,8 @@
package me.zhengjie.modules.tools.service; package me.zhengjie.service;
import me.zhengjie.modules.tools.domain.QiniuConfig; import me.zhengjie.domain.QiniuConfig;
import me.zhengjie.modules.tools.domain.QiniuContent; import me.zhengjie.domain.QiniuContent;
import me.zhengjie.modules.tools.service.dto.QiniuQueryCriteria; import me.zhengjie.service.dto.QiniuQueryCriteria;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;

View File

@ -1,7 +1,7 @@
package me.zhengjie.modules.tools.service; package me.zhengjie.service;
import me.zhengjie.modules.tools.domain.VerificationCode; import me.zhengjie.domain.VerificationCode;
import me.zhengjie.modules.tools.domain.vo.EmailVo; import me.zhengjie.domain.vo.EmailVo;
/** /**
* @author Zheng Jie * @author Zheng Jie

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.service.dto; package me.zhengjie.service.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.service.dto; package me.zhengjie.service.dto;
import lombok.Data; import lombok.Data;
import java.sql.Timestamp; import java.sql.Timestamp;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.service.dto; package me.zhengjie.service.dto;
import lombok.Data; import lombok.Data;
import me.zhengjie.annotation.Query; import me.zhengjie.annotation.Query;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.service.dto; package me.zhengjie.service.dto;
import lombok.Data; import lombok.Data;
import me.zhengjie.annotation.Query; import me.zhengjie.annotation.Query;

View File

@ -1,14 +1,14 @@
package me.zhengjie.modules.tools.service.impl; package me.zhengjie.service.impl;
import com.alipay.api.AlipayClient; import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient; import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.request.AlipayTradePagePayRequest; import com.alipay.api.request.AlipayTradePagePayRequest;
import com.alipay.api.request.AlipayTradeWapPayRequest; import com.alipay.api.request.AlipayTradeWapPayRequest;
import me.zhengjie.modules.tools.domain.AlipayConfig; import me.zhengjie.domain.vo.TradeVo;
import me.zhengjie.modules.tools.domain.vo.TradeVo; import me.zhengjie.domain.AlipayConfig;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.tools.repository.AlipayRepository; import me.zhengjie.repository.AlipayRepository;
import me.zhengjie.modules.tools.service.AlipayService; import me.zhengjie.service.AlipayService;
import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut; import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Cacheable;

View File

@ -1,12 +1,12 @@
package me.zhengjie.modules.tools.service.impl; package me.zhengjie.service.impl;
import cn.hutool.extra.mail.Mail; import cn.hutool.extra.mail.Mail;
import cn.hutool.extra.mail.MailAccount; import cn.hutool.extra.mail.MailAccount;
import me.zhengjie.modules.tools.domain.EmailConfig; import me.zhengjie.domain.EmailConfig;
import me.zhengjie.modules.tools.domain.vo.EmailVo; import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.tools.repository.EmailRepository; import me.zhengjie.repository.EmailRepository;
import me.zhengjie.modules.tools.service.EmailService; import me.zhengjie.service.EmailService;
import me.zhengjie.utils.EncryptUtils; import me.zhengjie.utils.EncryptUtils;
import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut; import org.springframework.cache.annotation.CachePut;

View File

@ -1,14 +1,14 @@
package me.zhengjie.modules.tools.service.impl; package me.zhengjie.service.impl;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import me.zhengjie.modules.tools.domain.LocalStorage; import me.zhengjie.domain.LocalStorage;
import me.zhengjie.modules.tools.service.dto.LocalStorageDTO; import me.zhengjie.service.dto.LocalStorageDTO;
import me.zhengjie.modules.tools.service.dto.LocalStorageQueryCriteria; import me.zhengjie.service.dto.LocalStorageQueryCriteria;
import me.zhengjie.modules.tools.service.mapper.LocalStorageMapper; import me.zhengjie.service.mapper.LocalStorageMapper;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.utils.*; import me.zhengjie.utils.*;
import me.zhengjie.modules.tools.repository.LocalStorageRepository; import me.zhengjie.repository.LocalStorageRepository;
import me.zhengjie.modules.tools.service.LocalStorageService; import me.zhengjie.service.LocalStorageService;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CacheEvict;

View File

@ -1,14 +1,14 @@
package me.zhengjie.modules.tools.service.impl; package me.zhengjie.service.impl;
import cn.hutool.http.HttpUtil; import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONObject; import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import me.zhengjie.modules.tools.domain.Picture; import me.zhengjie.domain.Picture;
import me.zhengjie.modules.tools.repository.PictureRepository; import me.zhengjie.repository.PictureRepository;
import me.zhengjie.modules.tools.service.PictureService; import me.zhengjie.service.PictureService;
import me.zhengjie.modules.tools.service.dto.PictureQueryCriteria; import me.zhengjie.service.dto.PictureQueryCriteria;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.utils.*; import me.zhengjie.utils.*;
import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheConfig;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.service.impl; package me.zhengjie.service.impl;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.qiniu.common.QiniuException; import com.qiniu.common.QiniuException;
@ -9,14 +9,14 @@ import com.qiniu.storage.UploadManager;
import com.qiniu.storage.model.DefaultPutRet; import com.qiniu.storage.model.DefaultPutRet;
import com.qiniu.storage.model.FileInfo; import com.qiniu.storage.model.FileInfo;
import com.qiniu.util.Auth; import com.qiniu.util.Auth;
import me.zhengjie.modules.tools.domain.QiniuConfig; import me.zhengjie.domain.QiniuConfig;
import me.zhengjie.modules.tools.domain.QiniuContent; import me.zhengjie.domain.QiniuContent;
import me.zhengjie.modules.tools.repository.QiniuContentRepository; import me.zhengjie.repository.QiniuContentRepository;
import me.zhengjie.modules.tools.service.dto.QiniuQueryCriteria; import me.zhengjie.service.dto.QiniuQueryCriteria;
import me.zhengjie.modules.tools.utils.QiNiuUtil; import me.zhengjie.utils.QiNiuUtil;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.tools.repository.QiNiuConfigRepository; import me.zhengjie.repository.QiNiuConfigRepository;
import me.zhengjie.modules.tools.service.QiNiuService; import me.zhengjie.service.QiNiuService;
import me.zhengjie.utils.FileUtil; import me.zhengjie.utils.FileUtil;
import me.zhengjie.utils.PageUtil; import me.zhengjie.utils.PageUtil;
import me.zhengjie.utils.QueryHelp; import me.zhengjie.utils.QueryHelp;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.service.impl; package me.zhengjie.service.impl;
import cn.hutool.core.lang.Dict; import cn.hutool.core.lang.Dict;
import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.RandomUtil;
@ -6,11 +6,11 @@ import cn.hutool.extra.template.Template;
import cn.hutool.extra.template.TemplateConfig; import cn.hutool.extra.template.TemplateConfig;
import cn.hutool.extra.template.TemplateEngine; import cn.hutool.extra.template.TemplateEngine;
import cn.hutool.extra.template.TemplateUtil; import cn.hutool.extra.template.TemplateUtil;
import me.zhengjie.modules.tools.domain.VerificationCode; import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.modules.tools.domain.vo.EmailVo; import me.zhengjie.domain.VerificationCode;
import me.zhengjie.exception.BadRequestException; import me.zhengjie.exception.BadRequestException;
import me.zhengjie.modules.tools.repository.VerificationCodeRepository; import me.zhengjie.repository.VerificationCodeRepository;
import me.zhengjie.modules.tools.service.VerificationCodeService; import me.zhengjie.service.VerificationCodeService;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;

View File

@ -1,8 +1,8 @@
package me.zhengjie.modules.tools.service.mapper; package me.zhengjie.service.mapper;
import me.zhengjie.base.BaseMapper; import me.zhengjie.base.BaseMapper;
import me.zhengjie.modules.tools.service.dto.LocalStorageDTO; import me.zhengjie.service.dto.LocalStorageDTO;
import me.zhengjie.modules.tools.domain.LocalStorage; import me.zhengjie.domain.LocalStorage;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy; import org.mapstruct.ReportingPolicy;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.utils; package me.zhengjie.utils;
/** /**
* *

View File

@ -1,8 +1,8 @@
package me.zhengjie.modules.tools.utils; package me.zhengjie.utils;
import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayApiException;
import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.internal.util.AlipaySignature;
import me.zhengjie.modules.tools.domain.AlipayConfig; import me.zhengjie.domain.AlipayConfig;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;

View File

@ -1,4 +1,4 @@
package me.zhengjie.modules.tools.utils; package me.zhengjie.utils;
import com.qiniu.storage.Region; import com.qiniu.storage.Region;
import me.zhengjie.utils.FileUtil; import me.zhengjie.utils.FileUtil;

View File

@ -15,6 +15,7 @@
<module>eladmin-system</module> <module>eladmin-system</module>
<module>eladmin-tools</module> <module>eladmin-tools</module>
<module>eladmin-monitor</module> <module>eladmin-monitor</module>
<module>eladmin-generator</module>
</modules> </modules>
<name>EL-ADMIN后台管理系统</name> <name>EL-ADMIN后台管理系统</name>