Compare commits

...

15 Commits

Author SHA1 Message Date
thinkgem
fe18621aa9 4.6.0 2022-11-08 14:10:09 +08:00
thinkgem
a029e6d56a mybatis 3.5.10、jsqlparser 4.5、druid 1.2.11 2022-11-08 11:11:31 +08:00
thinkgem
73f64ca648 update config 2022-11-02 16:55:08 +08:00
thinkgem
63e3bd03b4 update 2022-11-02 16:54:15 +08:00
thinkgem
4103bf1d6a 微服务情况下 emputils.get 有时候没有数据问题 2022-11-02 16:36:51 +08:00
thinkgem
7a33736d43 spring boot 2.7 2022-10-19 18:30:18 +08:00
thinkgem
298d1adbba commons-text 1.10.0 2022-10-14 17:01:20 +08:00
thinkgem
9be2959d7d update 2022-10-13 23:29:56 +08:00
thinkgem
0fad02369b beetl 3.10 2022-10-13 23:29:33 +08:00
thinkgem
548a747e19 shiro 1.10.0 2022-10-13 11:13:56 +08:00
thinkgem
e2101b438f next 2022-09-30 10:12:00 +08:00
thinkgem
bbcb4b937d 排除子表实体的Excel注解 2022-09-19 11:55:31 +08:00
thinkgem
bcde73efed fix 7z 2022-09-08 18:14:49 +08:00
thinkgem
a6ddb4ed16 fastjson noneautotype 2022-09-02 17:41:47 +08:00
thinkgem
59fbee7a2f deprecated jaxbMapper 2022-09-01 18:41:58 +08:00
20 changed files with 52 additions and 58 deletions

View File

@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.jeesite</groupId> <groupId>com.jeesite</groupId>
<artifactId>jeesite-parent</artifactId> <artifactId>jeesite-parent</artifactId>
<version>4.5.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<relativePath>../parent/pom.xml</relativePath> <relativePath>../parent/pom.xml</relativePath>
</parent> </parent>

View File

@@ -5,24 +5,19 @@
*/ */
package com.jeesite.common.mapper; package com.jeesite.common.mapper;
import com.jeesite.common.lang.ExceptionUtils;
import com.jeesite.common.lang.StringUtils;
import com.jeesite.common.reflect.ReflectUtils;
import javax.xml.bind.*;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.namespace.QName;
import java.io.StringReader; import java.io.StringReader;
import java.io.StringWriter; import java.io.StringWriter;
import java.util.Collection; import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentMap;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.namespace.QName;
import com.jeesite.common.lang.ExceptionUtils;
import com.jeesite.common.lang.StringUtils;
import com.jeesite.common.reflect.ReflectUtils;
/** /**
* 使用Jaxb2.0实现XML<->Java Object的Mapper. * 使用Jaxb2.0实现XML<->Java Object的Mapper.
* *
@@ -32,6 +27,7 @@ import com.jeesite.common.reflect.ReflectUtils;
* @author calvin * @author calvin
* @version 2013-01-15 * @version 2013-01-15
*/ */
@Deprecated
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public class JaxbMapper { public class JaxbMapper {

View File

@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.jeesite</groupId> <groupId>com.jeesite</groupId>
<artifactId>jeesite-parent</artifactId> <artifactId>jeesite-parent</artifactId>
<version>4.5.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<relativePath>../../parent/pom.xml</relativePath> <relativePath>../../parent/pom.xml</relativePath>
</parent> </parent>

View File

@@ -14,3 +14,4 @@
4.4.0 4.4.0
4.4.1 4.4.1
4.5.0 4.5.0
4.6.0

View File

@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.jeesite</groupId> <groupId>com.jeesite</groupId>
<artifactId>jeesite-parent</artifactId> <artifactId>jeesite-parent</artifactId>
<version>4.5.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<relativePath>../../parent/pom.xml</relativePath> <relativePath>../../parent/pom.xml</relativePath>
</parent> </parent>

View File

@@ -55,7 +55,11 @@ public class EmpUtils {
*/ */
public static Employee get(User user){ public static Employee get(User user){
if (user != null && User.USER_TYPE_EMPLOYEE.equals(user.getUserType())){ if (user != null && User.USER_TYPE_EMPLOYEE.equals(user.getUserType())){
return user.getRefObj(); Employee employee = user.getRefObj();
if (employee == null) {
employee = Static.employeeService.get(user.getRefCode());
}
return employee;
} }
return null; return null;
} }

View File

@@ -8,7 +8,7 @@ DIRECT_BYTE_OUTPUT = FALSE
HTML_TAG_SUPPORT = true HTML_TAG_SUPPORT = true
HTML_TAG_FLAG = # HTML_TAG_FLAG = #
HTML_TAG_BINDING_ATTRIBUTE = var,export HTML_TAG_BINDING_ATTRIBUTE = var,export
HTML_TAG_ATTR_CONVERT=org.beetl.core.text.DefaultAttributeNameConvert HTML_TAG_ATTR_CONVERT=com.jeesite.common.beetl.text.BlankAttributeNameConvert
NATIVE_CALL = TRUE NATIVE_CALL = TRUE
TEMPLATE_CHARSET = UTF-8 TEMPLATE_CHARSET = UTF-8
#ERROR_HANDLER = org.beetl.core.ConsoleErrorHandler #ERROR_HANDLER = org.beetl.core.ConsoleErrorHandler

View File

@@ -659,7 +659,7 @@ file:
# 设置允许上传的文件后缀(全局设置) # 设置允许上传的文件后缀(全局设置)
imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff, imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff,
mediaAllowSuffixes: .flv,.swf,.mkv,webm,.mid,.mov,.mp3,.mp4,.m4v,.mpc,.mpeg,.mpg,.swf,.wav,.wma,.wmv,.avi,.rm,.rmi,.rmvb,.aiff,.asf,.ogg,.ogv, mediaAllowSuffixes: .flv,.swf,.mkv,webm,.mid,.mov,.mp3,.mp4,.m4v,.mpc,.mpeg,.mpg,.swf,.wav,.wma,.wmv,.avi,.rm,.rmi,.rmvb,.aiff,.asf,.ogg,.ogv,
fileAllowSuffixes: .doc,.docx,.rtf,.xls,.xlsx,.csv,.ppt,.pptx,.pdf,.vsd,.txt,.md,.xml,.rar,.zip,7z,.tar,.tgz,.jar,.gz,.gzip,.bz2,.cab,.iso,.ipa,.apk, fileAllowSuffixes: .doc,.docx,.rtf,.xls,.xlsx,.csv,.ppt,.pptx,.pdf,.vsd,.txt,.md,.xml,.rar,.zip,.7z,.tar,.tgz,.jar,.gz,.gzip,.bz2,.cab,.iso,.ipa,.apk,
# 允许上传的文件内容类型图片、word、excel、ppt防止修改后缀恶意上传文件默认不启用验证 # 允许上传的文件内容类型图片、word、excel、ppt防止修改后缀恶意上传文件默认不启用验证
# allowContentTypes: image/jpeg,image/gif,image/bmp,image/png,image/x-png, # allowContentTypes: image/jpeg,image/gif,image/bmp,image/png,image/x-png,

View File

@@ -29,7 +29,7 @@ import com.jeesite.modules.bpm.entity.BpmTreeEntity;
import com.jeesite.modules.bpm.entity.BpmEntity; import com.jeesite.modules.bpm.entity.BpmEntity;
<% } %> <% } %>
<% } %> <% } %>
<% if(toBoolean(table.optionMap['isImportExport'])){ %> <% if(!table.parentExists && toBoolean(table.optionMap['isImportExport'])){ %>
import com.jeesite.common.utils.excel.annotation.ExcelField; import com.jeesite.common.utils.excel.annotation.ExcelField;
import com.jeesite.common.utils.excel.annotation.ExcelField.Align; import com.jeesite.common.utils.excel.annotation.ExcelField.Align;
import com.jeesite.common.utils.excel.annotation.ExcelFields; import com.jeesite.common.utils.excel.annotation.ExcelFields;
@@ -215,7 +215,7 @@ public class ${ClassName} extends ${toBoolean(table.optionMap['isBpmForm'])?(tab
// 生成构造方法 // 生成构造方法
%> %>
<% if(toBoolean(table.optionMap['isImportExport'])){ %> <% if(!table.parentExists && toBoolean(table.optionMap['isImportExport'])){ %>
@ExcelFields({ @ExcelFields({
<% for(c in table.columnList){ if(c.optionMap['isImportExport'] == @Global.YES){ %> <% for(c in table.columnList){ if(c.optionMap['isImportExport'] == @Global.YES){ %>
@ExcelField(title="${c.columnLabel}", attrName="${c.attrName}"${ @ExcelField(title="${c.columnLabel}", attrName="${c.attrName}"${

View File

@@ -31,7 +31,7 @@ cd app
jar -xvf web.war jar -xvf web.war
rm web.war rm web.war
cd WEB-INF cd WEB-INF
exec ./startup.sh sh ./startup.sh
]]> ]]>
</content> </content>
</template> </template>

View File

@@ -70,7 +70,7 @@ spring:
server-addr: 127.0.0.1:8848 server-addr: 127.0.0.1:8848
file-extension: yml file-extension: yml
group: jeesite-cloud-yml group: jeesite-cloud-yml
ext-config: extension-configs:
- data-id: application.yml - data-id: application.yml
group: jeesite-cloud-yml group: jeesite-cloud-yml

View File

@@ -4,7 +4,7 @@ productName: JeeSite Demo
companyName: ThinkGem companyName: ThinkGem
# 产品版本、版权年份 # 产品版本、版权年份
productVersion: V4.5 productVersion: V4.6
copyrightYear: 2022 copyrightYear: 2022
# 数据库连接 # 数据库连接

View File

@@ -3,9 +3,16 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.4</version>
<relativePath />
</parent>
<groupId>com.jeesite</groupId> <groupId>com.jeesite</groupId>
<artifactId>jeesite-parent</artifactId> <artifactId>jeesite-parent</artifactId>
<version>4.5.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>JeeSite Parent</name> <name>JeeSite Parent</name>
@@ -16,11 +23,11 @@
<!-- common version setting --> <!-- common version setting -->
<commons-io.version>2.11.0</commons-io.version> <commons-io.version>2.11.0</commons-io.version>
<commons-text.version>1.9</commons-text.version> <commons-text.version>1.10.0</commons-text.version>
<commons-beanutils.version>1.9.4</commons-beanutils.version> <commons-beanutils.version>1.9.4</commons-beanutils.version>
<commons-email.version>1.5</commons-email.version> <commons-email.version>1.5</commons-email.version>
<fst.version>2.57</fst.version> <fst.version>2.57</fst.version>
<fastjson.version>1.2.83</fastjson.version> <fastjson.version>1.2.83_noneautotype</fastjson.version>
<!-- <jackson.version>2.12.6</jackson.version> --> <!-- <jackson.version>2.12.6</jackson.version> -->
<!-- <activation.version>1.1.1</activation.version> --> <!-- <activation.version>1.1.1</activation.version> -->
<UserAgentUtils.version>1.21</UserAgentUtils.version> <UserAgentUtils.version>1.21</UserAgentUtils.version>
@@ -35,19 +42,18 @@
<groovy.version>3.0.10</groovy.version> <groovy.version>3.0.10</groovy.version>
<!-- framework version setting --> <!-- framework version setting -->
<spring-boot.version>2.6.10</spring-boot.version> <mybatis.version>3.5.10</mybatis.version>
<mybatis.version>3.5.9</mybatis.version>
<mybatis-spring.version>2.0.7</mybatis-spring.version> <mybatis-spring.version>2.0.7</mybatis-spring.version>
<jsqlparser.version>4.4</jsqlparser.version> <jsqlparser.version>4.5</jsqlparser.version>
<druid.version>1.2.10</druid.version> <druid.version>1.2.11</druid.version>
<shiro.version>1.9.1</shiro.version> <shiro.version>1.10.0</shiro.version>
<j2cache.version>2.8.0-release</j2cache.version> <j2cache.version>2.8.0-release</j2cache.version>
<swagger.version>1.6.0</swagger.version> <swagger.version>1.6.6</swagger.version>
<log4j2.version>2.17.0</log4j2.version> <log4j2.version>2.18.0</log4j2.version>
<!-- jdbc setting --> <!-- jdbc setting -->
<!-- <mysql.version>5.1.49</mysql.version> --> <!-- <mysql.version>5.1.49</mysql.version> -->
<mysql.version>8.0.29</mysql.version> <!-- <mysql.version>8.0.29</mysql.version> -->
<!-- environment setting --> <!-- environment setting -->
<java.version>1.8</java.version> <java.version>1.8</java.version>
@@ -56,7 +62,7 @@
<resource.delimiter>@</resource.delimiter> <resource.delimiter>@</resource.delimiter>
<maven.compiler.source>${java.version}</maven.compiler.source> <maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.target>${java.version}</maven.compiler.target>
<maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version><!-- 降级到该版本,新版本可能会出现VM崩溃 --> <maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version><!-- 其它版本可能会出现VM崩溃 -->
<eclipse-plugin-download-sources>false</eclipse-plugin-download-sources> <eclipse-plugin-download-sources>false</eclipse-plugin-download-sources>
<eclipse-plugin-download-javadocs>false</eclipse-plugin-download-javadocs> <eclipse-plugin-download-javadocs>false</eclipse-plugin-download-javadocs>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -69,18 +75,6 @@
</properties> </properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build> <build>
<plugins> <plugins>
@@ -199,7 +193,6 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions> <executions>
<execution> <execution>
<id>repackage</id> <id>repackage</id>

View File

@@ -5,7 +5,7 @@
<groupId>com.jeesite</groupId> <groupId>com.jeesite</groupId>
<artifactId>jeesite</artifactId> <artifactId>jeesite</artifactId>
<version>4.5.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>JeeSite</name> <name>JeeSite</name>

View File

@@ -5,7 +5,7 @@
<groupId>com.jeesite</groupId> <groupId>com.jeesite</groupId>
<artifactId>jeesite-root</artifactId> <artifactId>jeesite-root</artifactId>
<version>4.5.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>JeeSite Root</name> <name>JeeSite Root</name>

View File

@@ -18,4 +18,4 @@ ENTRYPOINT jar -xvf app.war && rm app.war && cd WEB-INF && sh startup.sh
EXPOSE 8980 EXPOSE 8980
#docker run -p 8980:8980 thinkgem/jeesite-web:4.4 #docker run -p 8980:8980 thinkgem/jeesite-web:4.6

View File

@@ -24,4 +24,4 @@ cd app
jar -xvf web.war jar -xvf web.war
rm web.war rm web.war
cd WEB-INF cd WEB-INF
exec ./startup.sh sh ./startup.sh

View File

@@ -6,7 +6,7 @@ set global read_only=0;
create user 'jeesite'@'%' identified by 'jeesite'; create user 'jeesite'@'%' identified by 'jeesite';
create database jeesite DEFAULT CHARSET 'utf8' COLLATE 'utf8_general_ci'; create database jeesite DEFAULT CHARSET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci';
grant all privileges on jeesite.* to 'jeesite'@'%' identified by 'jeesite'; grant all privileges on jeesite.* to 'jeesite'@'%' identified by 'jeesite';

View File

@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>com.jeesite</groupId> <groupId>com.jeesite</groupId>
<artifactId>jeesite-parent</artifactId> <artifactId>jeesite-parent</artifactId>
<version>4.5.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<relativePath>../parent/pom.xml</relativePath> <relativePath>../parent/pom.xml</relativePath>
</parent> </parent>

View File

@@ -8,7 +8,7 @@ productName: JeeSite Demo
companyName: ThinkGem companyName: ThinkGem
# 产品版本、版权年份 # 产品版本、版权年份
productVersion: V4.5 productVersion: V4.6
copyrightYear: 2022 copyrightYear: 2022
# 是否演示模式 # 是否演示模式
@@ -24,7 +24,7 @@ server:
servlet: servlet:
context-path: /js context-path: /js
register-default-servlet: false register-default-servlet: false
encoding.enabled: true #encoding.enabled: true
tomcat: tomcat:
uri-encoding: UTF-8 uri-encoding: UTF-8
# 表单请求数据的最大大小 # 表单请求数据的最大大小
@@ -818,7 +818,7 @@ file:
# # 设置允许上传的文件后缀(全局设置) # # 设置允许上传的文件后缀(全局设置)
# imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff, # imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff,
# mediaAllowSuffixes: .flv,.swf,.mkv,webm,.mid,.mov,.mp3,.mp4,.m4v,.mpc,.mpeg,.mpg,.swf,.wav,.wma,.wmv,.avi,.rm,.rmi,.rmvb,.aiff,.asf,.ogg,.ogv, # mediaAllowSuffixes: .flv,.swf,.mkv,webm,.mid,.mov,.mp3,.mp4,.m4v,.mpc,.mpeg,.mpg,.swf,.wav,.wma,.wmv,.avi,.rm,.rmi,.rmvb,.aiff,.asf,.ogg,.ogv,
# fileAllowSuffixes: .doc,.docx,.rtf,.xls,.xlsx,.csv,.ppt,.pptx,.pdf,.vsd,.txt,.md,.xml,.rar,.zip,7z,.tar,.tgz,.jar,.gz,.gzip,.bz2,.cab,.iso,.ipa,.apk, # fileAllowSuffixes: .doc,.docx,.rtf,.xls,.xlsx,.csv,.ppt,.pptx,.pdf,.vsd,.txt,.md,.xml,.rar,.zip,.7z,.tar,.tgz,.jar,.gz,.gzip,.bz2,.cab,.iso,.ipa,.apk,
# #
# # 允许上传的文件内容类型图片、word、excel、ppt防止修改后缀恶意上传文件默认不启用验证 # # 允许上传的文件内容类型图片、word、excel、ppt防止修改后缀恶意上传文件默认不启用验证
# #allowContentTypes: image/jpeg,image/gif,image/bmp,image/png,image/x-png, # #allowContentTypes: image/jpeg,image/gif,image/bmp,image/png,image/x-png,