"source/java/git@ustchcs.com:wq123/test.git" did not exist on "1a256b1f137f2b7ba1b8cf589148e54e61c797c4"
Commit 9726436d authored by zhengjie's avatar zhengjie
Browse files

v2.1 version is released. For details, please see:...

v2.1 version is released. For details, please see: https://github.com/elunez/eladmin/releases/tag/v2.1
parent c4fc3da1
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>eladmin</artifactId> <artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<version>2.0</version> <version>2.1</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
......
...@@ -55,7 +55,7 @@ public class SwaggerConfig { ...@@ -55,7 +55,7 @@ public class SwaggerConfig {
private ApiInfo apiInfo() { private ApiInfo apiInfo() {
return new ApiInfoBuilder() return new ApiInfoBuilder()
.title("eladmin 接口文档") .title("eladmin 接口文档")
.version("2.0") .version("2.1")
.build(); .build();
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>eladmin</artifactId> <artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<version>2.0</version> <version>2.1</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<dependency> <dependency>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<artifactId>eladmin-common</artifactId> <artifactId>eladmin-common</artifactId>
<version>2.0</version> <version>2.1</version>
</dependency> </dependency>
<!--模板引擎--> <!--模板引擎-->
......
...@@ -120,6 +120,7 @@ public class GenUtil { ...@@ -120,6 +120,7 @@ public class GenUtil {
listMap.put("changeColumnName",changeColumnName); listMap.put("changeColumnName",changeColumnName);
listMap.put("capitalColumnName",capitalColumnName); listMap.put("capitalColumnName",capitalColumnName);
// 判断是否有查询,如有则把查询的字段set进columnQuery
if(!StringUtils.isBlank(column.getColumnQuery())){ if(!StringUtils.isBlank(column.getColumnQuery())){
listMap.put("columnQuery",column.getColumnQuery()); listMap.put("columnQuery",column.getColumnQuery());
map.put("hasQuery",true); map.put("hasQuery",true);
...@@ -140,10 +141,8 @@ public class GenUtil { ...@@ -140,10 +141,8 @@ public class GenUtil {
File file = new File(filePath); File file = new File(filePath);
// 如果非覆盖生成 // 如果非覆盖生成
if(!genConfig.getCover()){ if(!genConfig.getCover() && FileUtil.exist(file)){
if(FileUtil.exist(file)){ continue;
continue;
}
} }
// 生成代码 // 生成代码
genFile(file, template, map); genFile(file, template, map);
...@@ -158,10 +157,8 @@ public class GenUtil { ...@@ -158,10 +157,8 @@ public class GenUtil {
File file = new File(filePath); File file = new File(filePath);
// 如果非覆盖生成 // 如果非覆盖生成
if(!genConfig.getCover()){ if(!genConfig.getCover() && FileUtil.exist(file)){
if(FileUtil.exist(file)){ continue;
continue;
}
} }
// 生成代码 // 生成代码
genFile(file, template, map); genFile(file, template, map);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>eladmin</artifactId> <artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<version>2.0</version> <version>2.1</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<dependency> <dependency>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<artifactId>eladmin-common</artifactId> <artifactId>eladmin-common</artifactId>
<version>2.0</version> <version>2.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>eladmin</artifactId> <artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<version>2.0</version> <version>2.1</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<dependency> <dependency>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<artifactId>eladmin-generator</artifactId> <artifactId>eladmin-generator</artifactId>
<version>2.0</version> <version>2.1</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<dependency> <dependency>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<artifactId>eladmin-tools</artifactId> <artifactId>eladmin-tools</artifactId>
<version>2.0</version> <version>2.1</version>
</dependency> </dependency>
<!--jwt--> <!--jwt-->
......
...@@ -199,6 +199,5 @@ public class VerifyCodeUtils{ ...@@ -199,6 +199,5 @@ public class VerifyCodeUtils{
} }
} }
} }
} }
\ No newline at end of file
package me.zhengjie.modules.system.domain; package me.zhengjie.modules.system.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data; import lombok.Data;
import javax.persistence.*; import javax.persistence.*;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Set;
/** /**
* @author Zheng Jie * @author Zheng Jie
......
...@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore; ...@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.CreationTimestamp;
import javax.persistence.*; import javax.persistence.*;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
......
package me.zhengjie.modules.system.domain; package me.zhengjie.modules.system.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.CreationTimestamp;
import javax.persistence.*; import javax.persistence.*;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
......
...@@ -105,9 +105,7 @@ public class DeptServiceImpl implements DeptService { ...@@ -105,9 +105,7 @@ public class DeptServiceImpl implements DeptService {
} }
Optional<Dept> optionalDept = deptRepository.findById(resources.getId()); Optional<Dept> optionalDept = deptRepository.findById(resources.getId());
ValidationUtil.isNull( optionalDept,"Dept","id",resources.getId()); ValidationUtil.isNull( optionalDept,"Dept","id",resources.getId());
Dept dept = optionalDept.get(); Dept dept = optionalDept.get();
// 此处需自己修改
resources.setId(dept.getId()); resources.setId(dept.getId());
deptRepository.save(resources); deptRepository.save(resources);
} }
......
...@@ -57,9 +57,7 @@ public class DictDetailServiceImpl implements DictDetailService { ...@@ -57,9 +57,7 @@ public class DictDetailServiceImpl implements DictDetailService {
public void update(DictDetail resources) { public void update(DictDetail resources) {
Optional<DictDetail> optionalDictDetail = dictDetailRepository.findById(resources.getId()); Optional<DictDetail> optionalDictDetail = dictDetailRepository.findById(resources.getId());
ValidationUtil.isNull( optionalDictDetail,"DictDetail","id",resources.getId()); ValidationUtil.isNull( optionalDictDetail,"DictDetail","id",resources.getId());
DictDetail dictDetail = optionalDictDetail.get(); DictDetail dictDetail = optionalDictDetail.get();
// 此处需自己修改
resources.setId(dictDetail.getId()); resources.setId(dictDetail.getId());
dictDetailRepository.save(resources); dictDetailRepository.save(resources);
} }
......
...@@ -54,9 +54,7 @@ public class DictServiceImpl implements DictService { ...@@ -54,9 +54,7 @@ public class DictServiceImpl implements DictService {
public void update(Dict resources) { public void update(Dict resources) {
Optional<Dict> optionalDict = dictRepository.findById(resources.getId()); Optional<Dict> optionalDict = dictRepository.findById(resources.getId());
ValidationUtil.isNull( optionalDict,"Dict","id",resources.getId()); ValidationUtil.isNull( optionalDict,"Dict","id",resources.getId());
Dict dict = optionalDict.get(); Dict dict = optionalDict.get();
// 此处需自己修改
resources.setId(dict.getId()); resources.setId(dict.getId());
dictRepository.save(resources); dictRepository.save(resources);
} }
......
...@@ -67,7 +67,6 @@ public class JobServiceImpl implements JobService { ...@@ -67,7 +67,6 @@ public class JobServiceImpl implements JobService {
ValidationUtil.isNull( optionalJob,"Job","id",resources.getId()); ValidationUtil.isNull( optionalJob,"Job","id",resources.getId());
Job job = optionalJob.get(); Job job = optionalJob.get();
// 此处需自己修改
resources.setId(job.getId()); resources.setId(job.getId());
jobRepository.save(resources); jobRepository.save(resources);
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>eladmin</artifactId> <artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<version>2.0</version> <version>2.1</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<dependency> <dependency>
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<artifactId>eladmin-logging</artifactId> <artifactId>eladmin-logging</artifactId>
<version>2.0</version> <version>2.1</version>
</dependency> </dependency>
<!--邮件依赖--> <!--邮件依赖-->
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<groupId>me.zhengjie</groupId> <groupId>me.zhengjie</groupId>
<artifactId>eladmin</artifactId> <artifactId>eladmin</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>2.0</version> <version>2.1</version>
<modules> <modules>
<module>eladmin-common</module> <module>eladmin-common</module>
......
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