Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
584fe069
"src/vscode:/vscode.git/clone" did not exist on "113064352c2fff6578a3dbce1b8ef29b66f77f85"
Commit
584fe069
authored
Jul 12, 2021
by
lijiazhi
Browse files
bug fix
parent
ad2ddd16
Changes
16
Show whitespace changes
Inline
Side-by-side
README.md
View file @
584fe069
...
@@ -13,9 +13,9 @@
...
@@ -13,9 +13,9 @@
*
看数据字典是否支持级联,数据字典级联太常见了,平台需要提供数据和前端的支持。puls系统支持
*
看数据字典是否支持级联,数据字典级联太常见了,平台需要提供数据和前端的支持。puls系统支持
*
看代码生成是否支持预览,为什么要预览,因为生成会覆盖,预览可以修改已经生成的代码
*
看代码生成是否支持预览,为什么要预览,因为生成会覆盖,预览可以修改已经生成的代码
Plus系统是一个
使用
简单,功能较为复杂的开源系统,已经数十家商业公司采用
Plus系统是一个
开发和部署
简单,
业务
功能较为复杂的开源系统,已经数十家商业公司采用
,兼顾教学和实战。
系统基于Spring Boot2.
1
技术,前端采用了Layui2.4。数据库以MySQL/Oracle/Postgres/SQLServer为实例,理论上是跨数据库平台.
系统基于Spring Boot2.
5
技术,前端采用了Layui2.4。数据库以MySQL/Oracle/Postgres/SQLServer为实例,理论上是跨数据库平台.
基本技术栈来源于我为电子工业出版社编写的的
[
<<Spring Boot 2 精髓 >>
](
https://item.jd.com/12214143.html
)
(
这本书每一章也有各种例子,但Springboot-plus
更偏向于应用而不是教学)
基本技术栈来源于我为电子工业出版社编写的的
[
<<Spring Boot 2 精髓 >>
](
https://item.jd.com/12214143.html
)
(
这本书每一章也有各种例子,但Springboot-plus
更偏向于应用而不是教学)
该书的第二版电子版可以可以在
[
看云广场购买
](
https://www.kancloud.cn/xiandafu/springboot2-in-practice/
)
, 包含基础篇,分布式篇和微服务篇,第二版也包含一章说明Plus系统
该书的第二版电子版可以可以在
[
看云广场购买
](
https://www.kancloud.cn/xiandafu/springboot2-in-practice/
)
, 包含基础篇,分布式篇和微服务篇,第二版也包含一章说明Plus系统
...
@@ -23,7 +23,7 @@ Plus系统是一个使用简单,功能较为复杂的开源系统,已经数
...
@@ -23,7 +23,7 @@ Plus系统是一个使用简单,功能较为复杂的开源系统,已经数
> 我的新书,程序员性能优化,程序装B宝典[《Java系统性能优化》](https://item.jd.com/12742086.html),可以在京东上购买了
> 我的新书,程序员性能优化,程序装B宝典[《Java系统性能优化》](https://item.jd.com/12742086.html),可以在京东上购买了
当前版本:
1.3.0
当前版本:
2.0.0, 当前版本与1.3.x版本差别较大
技术交流群:252010126
技术交流群:252010126
...
...
admin-console/src/main/java/com/ibeetl/admin/console/dao/FunctionConsoleDao.java
View file @
584fe069
...
@@ -18,5 +18,5 @@ public interface FunctionConsoleDao extends BaseMapper<CoreFunction> {
...
@@ -18,5 +18,5 @@ public interface FunctionConsoleDao extends BaseMapper<CoreFunction> {
*
*
* @param query
* @param query
*/
*/
PageResult
<
CoreFunction
>
queryByCondtion
(
PageRequest
query
,
@Root
Map
params
);
PageResult
<
CoreFunction
>
queryByCond
i
tion
(
PageRequest
query
,
@Root
Map
params
);
}
}
admin-console/src/main/java/com/ibeetl/admin/console/service/FunctionConsoleService.java
View file @
584fe069
...
@@ -49,7 +49,7 @@ public class FunctionConsoleService extends CoreBaseService<CoreFunction> {
...
@@ -49,7 +49,7 @@ public class FunctionConsoleService extends CoreBaseService<CoreFunction> {
public
PageResult
<
CoreFunction
>
queryByCondtion
(
FunctionQuery
query
)
{
public
PageResult
<
CoreFunction
>
queryByCondtion
(
FunctionQuery
query
)
{
PageRequest
pageRequest
=
query
.
getPageRequest
();
PageRequest
pageRequest
=
query
.
getPageRequest
();
Map
params
=
query
.
getPageParam
();
Map
params
=
query
.
getPageParam
();
PageResult
<
CoreFunction
>
pageResult
=
functionDao
.
queryByCondtion
(
pageRequest
,
params
);
PageResult
<
CoreFunction
>
pageResult
=
functionDao
.
queryByCond
i
tion
(
pageRequest
,
params
);
List
<
CoreFunction
>
list
=
pageResult
.
getList
();
List
<
CoreFunction
>
list
=
pageResult
.
getList
();
this
.
queryListAfter
(
list
);
this
.
queryListAfter
(
list
);
//处理父功能名称显示
//处理父功能名称显示
...
...
admin-console/src/main/resources/application.properties
View file @
584fe069
...
@@ -7,6 +7,7 @@ spring.datasource.baseDataSource.driver-class-name=com.mysql.cj.jdbc.Driver
...
@@ -7,6 +7,7 @@ spring.datasource.baseDataSource.driver-class-name=com.mysql.cj.jdbc.Driver
beetlsql.sqlManagers
=
coreSqlManager
beetlsql.sqlManagers
=
coreSqlManager
beetlsql.coreSqlManager.ds
=
baseDataSource
beetlsql.coreSqlManager.ds
=
baseDataSource
beetlsql.coreSqlManager.basePackage
=
com.ibeetl.admin.core.dao,com.ibeetl.admin.console.dao
beetlsql.coreSqlManager.basePackage
=
com.ibeetl.admin.core.dao,com.ibeetl.admin.console.dao
beetlsql.coreSqlManager.daoSuffix
=
Dao
beetlsql.coreSqlManager.dbStyle
=
org.beetl.sql.core.db.MySqlStyle
beetlsql.coreSqlManager.dbStyle
=
org.beetl.sql.core.db.MySqlStyle
...
...
admin-console/src/main/resources/btsql-ext.properties
View file @
584fe069
# 兼容2的定界符
DELIMITER_PLACEHOLDER_START
=
#
DELIMITER_PLACEHOLDER_END=#
DELIMITER_STATEMENT_START
=
@
DELIMITER_STATEMENT_END
=
DELIMITER_PLACEHOLDER_START2
=
${
DELIMITER_PLACEHOLDER_END2
=
}
FN.isEmpty
=
org.beetl.ext.fn.EmptyExpressionFunction
FN.isEmpty
=
org.beetl.ext.fn.EmptyExpressionFunction
FN.isNotEmpty
=
org.beetl.ext.fn.IsNotEmptyExpressionFunction
FN.isNotEmpty
=
org.beetl.ext.fn.IsNotEmptyExpressionFunction
admin-console/src/main/resources/sql/console/audit.md
View file @
584fe069
queryByCondtion
queryByCond
i
tion
===
===
select
select
...
...
admin-console/src/main/resources/sql/console/function.md
View file @
584fe069
queryByCondtion
queryByCond
i
tion
===
===
select
select
...
...
admin-console/src/main/resources/sql/console/menu.md
View file @
584fe069
queryByCondtion
queryByCond
i
tion
===============
===============
*
根据条件查询
*
根据条件查询
...
...
admin-console/src/main/resources/sql/console/org.md
View file @
584fe069
...
@@ -2,7 +2,7 @@ batchDelByIds
...
@@ -2,7 +2,7 @@ batchDelByIds
===
===
update core_org set u.del_flag = 1 where u.id in( #join(ids)#)
update core_org set u.del_flag = 1 where u.id in( #join(ids)#)
queryByCondtion
queryByCond
i
tion
===
===
select
select
@pageTag(){
@pageTag(){
...
...
admin-console/src/main/resources/sql/console/role.md
View file @
584fe069
queryByCondtion
queryByCond
i
tion
===
===
select
select
...
...
admin-console/src/main/resources/sql/console/user.md
View file @
584fe069
queryByCondtion
queryByCond
i
tion
===
===
select
select
...
...
admin-core/pom.xml
View file @
584fe069
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<dependency>
<dependency>
<groupId>
com.ibeetl
</groupId>
<groupId>
com.ibeetl
</groupId>
<artifactId>
sql-springboot-starter
</artifactId>
<artifactId>
sql-springboot-starter
</artifactId>
<version>
3.6.
0
-RELEASE
</version>
<version>
3.6.
1
-RELEASE
</version>
</dependency>
</dependency>
...
...
admin-core/src/main/java/com/ibeetl/admin/core/conf/JasonConfig.java
View file @
584fe069
...
@@ -4,6 +4,7 @@ import java.io.IOException;
...
@@ -4,6 +4,7 @@ import java.io.IOException;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.beetl.sql.core.page.PageResult
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -52,8 +53,8 @@ public class JasonConfig {
...
@@ -52,8 +53,8 @@ public class JasonConfig {
}
}
gen
.
writeStringField
(
"msg"
,
value
.
getMsg
());
gen
.
writeStringField
(
"msg"
,
value
.
getMsg
());
Object
data
=
value
.
getData
();
Object
data
=
value
.
getData
();
if
(
data
instanceof
Page
Query
)
{
if
(
data
instanceof
Page
Result
)
{
Page
Query
query
=
(
Page
Query
)(
data
);
Page
Result
query
=
(
Page
Result
)(
data
);
gen
.
writeObjectField
(
"count"
,
query
.
getTotalRow
());
gen
.
writeObjectField
(
"count"
,
query
.
getTotalRow
());
gen
.
writeObjectField
(
"data"
,
query
.
getList
());
gen
.
writeObjectField
(
"data"
,
query
.
getList
());
}
else
{
}
else
{
...
...
admin-core/src/main/java/com/ibeetl/admin/core/rbac/da/SameOrgDataAccess.java
View file @
584fe069
...
@@ -35,7 +35,7 @@ public class SameOrgDataAccess implements DataAccess {
...
@@ -35,7 +35,7 @@ public class SameOrgDataAccess implements DataAccess {
@Override
@Override
public
String
getName
()
{
public
String
getName
()
{
return
"同
结
构"
;
return
"同
机
构"
;
}
}
@Override
@Override
...
...
admin-core/src/main/java/com/ibeetl/admin/core/web/query/PageParam.java
View file @
584fe069
...
@@ -56,6 +56,7 @@ public class PageParam {
...
@@ -56,6 +56,7 @@ public class PageParam {
}
}
}
else
{
}
else
{
try
{
try
{
f
.
setAccessible
(
true
);
Object
o
=
f
.
get
(
this
);
Object
o
=
f
.
get
(
this
);
map
.
put
(
f
.
getName
(),
o
);
map
.
put
(
f
.
getName
(),
o
);
}
catch
(
IllegalAccessException
e
)
{
}
catch
(
IllegalAccessException
e
)
{
...
...
admin-core/src/main/resources/codeTemplate/java/dao.java
View file @
584fe069
...
@@ -2,9 +2,13 @@ package ${package};
...
@@ -2,9 +2,13 @@ package ${package};
import
java.util.List
;
import
java.util.List
;
import
org.beetl.sql.core.annotatoin.SqlResource
;
import
com.ibeetl.admin.core.entity.CoreUser
;
import
org.beetl.sql.core.mapper.BaseMapper
;
import
org.beetl.sql.mapper.BaseMapper
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.beetl.sql.mapper.annotation.SqlResource
;
import
org.beetl.sql.core.page.PageRequest
;
import
org.beetl.sql.core.page.PageResult
;
import
org.beetl.sql.mapper.BaseMapper
;
import
org.beetl.sql.mapper.annotation.Root
;
import
${
basePackage
}.
entity
.*;
import
${
basePackage
}.
entity
.*;
...
@@ -13,6 +17,6 @@ import ${basePackage}.entity.*;
...
@@ -13,6 +17,6 @@ import ${basePackage}.entity.*;
*/
*/
\
@SqlResource
(
"${entity.system}.${entity.code}"
)
\
@SqlResource
(
"${entity.system}.${entity.code}"
)
public
interface
${
entity
.
name
}
Dao
extends
BaseMapper
<
$
{
entity
.
name
}>{
public
interface
${
entity
.
name
}
Dao
extends
BaseMapper
<
$
{
entity
.
name
}>{
public
Page
Query
<
$
{
entity
.
name
}>
queryByCondition
(
Page
Query
query
);
public
Page
Result
<
$
{
entity
.
name
}>
queryByCondition
(
Page
Request
request
,
\
@Root
Map
params
);
public
void
batchDel
$
{
entity
.
name
}
ByIds
(
List
<
Long
>
ids
);
public
void
batchDel
$
{
entity
.
name
}
ByIds
(
List
<
Long
>
ids
);
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment