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
321361c9
Commit
321361c9
authored
Feb 21, 2018
by
xiandafu
Browse files
init
parent
2971e3f1
Changes
449
Hide whitespace changes
Inline
Side-by-side
admin-console/src/main/java/com/ibeetl/admin/console/web/query/MenuQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.web.query.PageParam
;
/**
* 菜单查询条件
*/
public
class
MenuQuery
extends
PageParam
{
@Query
(
name
=
"代码"
,
display
=
true
,
fuzzy
=
true
)
private
String
code
;
@Query
(
name
=
"名称"
,
display
=
true
,
fuzzy
=
true
)
private
String
name
;
@Query
(
name
=
"菜单入口地址"
,
display
=
true
,
fuzzy
=
true
)
private
String
url
;
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/OrgQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.util.enums.CoreDictType
;
import
com.ibeetl.admin.core.web.query.PageParam
;
/**
* 字典表单查询条件
*/
public
class
OrgQuery
extends
PageParam
{
@Query
(
name
=
"机构编号"
,
display
=
true
)
private
String
code
;
@Query
(
name
=
"机构名称"
,
display
=
true
)
private
String
name
;
@Query
(
name
=
"机构类型"
,
display
=
true
,
type
=
Query
.
TYPE_DICT
,
dict
=
CoreDictType
.
ORG_TYPE
)
private
String
type
;
@Query
(
name
=
"上一级机构"
,
display
=
true
,
type
=
Query
.
TYPE_CONTROL
,
control
=
"org"
)
private
String
parentOrgId
;
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getParentOrgId
()
{
return
parentOrgId
;
}
public
void
setParentOrgId
(
String
parentOrgId
)
{
this
.
parentOrgId
=
parentOrgId
;
}
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/OrgTreeQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
java.util.List
;
import
com.ibeetl.admin.core.web.query.PageParam
;
/**
* 描述: 带有组织树相关的查询
*/
public
class
OrgTreeQuery
extends
PageParam
{
protected
Long
orgId
;
//组织id
protected
List
<
Long
>
orgIds
;
public
Long
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
Long
orgId
)
{
this
.
orgId
=
orgId
;
}
public
List
<
Long
>
getOrgIds
()
{
return
orgIds
;
}
public
void
setOrgIds
(
List
<
Long
>
orgIds
)
{
this
.
orgIds
=
orgIds
;
}
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/OrgUserQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
java.util.Date
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.util.Tool
;
import
com.ibeetl.admin.core.util.enums.CoreDictType
;
import
com.ibeetl.admin.core.web.query.PageParam
;
public
class
OrgUserQuery
extends
PageParam
{
@Query
(
name
=
"账号"
,
display
=
true
,
fuzzy
=
true
)
private
String
code
;
@Query
(
name
=
"名称"
,
display
=
true
,
fuzzy
=
true
)
private
String
name
;
@Query
(
name
=
"状态"
,
display
=
true
,
type
=
Query
.
TYPE_DICT
,
dict
=
CoreDictType
.
USER_STATE
)
private
String
state
;
@Query
(
name
=
"职务"
,
display
=
true
,
type
=
Query
.
TYPE_DICT
,
dict
=
"job_type"
,
group
=
"jobType"
)
private
String
jobType0
;
@Query
(
name
=
"职务明细"
,
display
=
true
,
type
=
Query
.
TYPE_DICT
,
dict
=
""
,
group
=
"jobType"
)
private
String
jobType1
;
private
Long
orgId
;
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Long
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
Long
orgId
)
{
this
.
orgId
=
orgId
;
}
public
String
getState
()
{
return
state
;
}
public
void
setState
(
String
state
)
{
this
.
state
=
state
;
}
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/RoleQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.util.enums.CoreDictType
;
import
com.ibeetl.admin.core.web.query.PageParam
;
/**
* 描述: 角色查询条件
*
*/
public
class
RoleQuery
extends
PageParam
{
@Query
(
name
=
"编码"
,
display
=
true
)
private
String
code
;
@Query
(
name
=
"名称"
,
display
=
true
)
private
String
name
;
@Query
(
name
=
"业务角色类型"
,
type
=
Query
.
TYPE_DICT
,
dict
=
CoreDictType
.
ROLE_TYPE
)
private
Integer
type
;
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/RoleUserQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.util.enums.CoreDictType
;
import
com.ibeetl.admin.core.web.query.PageParam
;
/**
* 描述: 角色李的用户列表
*/
public
class
RoleUserQuery
extends
PageParam
{
@Query
(
name
=
"编码"
,
display
=
true
)
private
String
userCode
;
@Query
(
name
=
"名称"
,
display
=
true
)
private
String
userName
;
private
Long
roleId
;
public
String
getUserCode
()
{
return
userCode
;
}
public
void
setUserCode
(
String
userCode
)
{
this
.
userCode
=
userCode
;
}
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
Long
getRoleId
()
{
return
roleId
;
}
public
void
setRoleId
(
Long
roleId
)
{
this
.
roleId
=
roleId
;
}
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/UserQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
java.util.Date
;
import
org.apache.commons.lang3.StringUtils
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.util.Tool
;
import
com.ibeetl.admin.core.util.enums.CoreDictType
;
import
com.ibeetl.admin.core.web.query.PageParam
;
public
class
UserQuery
extends
PageParam
{
@Query
(
name
=
"账号"
,
display
=
true
,
fuzzy
=
true
)
private
String
code
;
@Query
(
name
=
"名称"
,
display
=
true
,
fuzzy
=
true
)
private
String
name
;
@Query
(
name
=
"部门"
,
display
=
true
,
type
=
Query
.
TYPE_CONTROL
,
control
=
"org"
)
private
Long
orgId
;
@Query
(
name
=
"状态"
,
display
=
true
,
type
=
Query
.
TYPE_DICT
,
dict
=
CoreDictType
.
USER_STATE
)
private
String
state
;
@Query
(
name
=
"职务"
,
display
=
true
,
type
=
Query
.
TYPE_DICT
,
dict
=
"job_type"
,
group
=
"jobType"
)
private
String
jobType0
;
@Query
(
name
=
"职务明细"
,
display
=
true
,
type
=
Query
.
TYPE_DICT
,
dict
=
""
,
group
=
"jobType"
)
private
String
jobType1
;
@Query
(
name
=
"创建日期"
,
display
=
true
,
type
=
Query
.
TYPE_DATE_BETWEEN
)
private
String
createDateRange
;
private
Date
createDateMin
;
private
Date
createDateMax
;
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Long
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
Long
orgId
)
{
this
.
orgId
=
orgId
;
}
public
String
getState
()
{
return
state
;
}
public
void
setState
(
String
state
)
{
this
.
state
=
state
;
}
public
String
getJobType0
()
{
return
jobType0
;
}
public
void
setJobType0
(
String
jobType0
)
{
this
.
jobType0
=
jobType0
;
}
public
String
getJobType1
()
{
return
jobType1
;
}
public
void
setJobType1
(
String
jobType1
)
{
this
.
jobType1
=
jobType1
;
}
public
String
getCreateDateRange
()
{
return
createDateRange
;
}
public
void
setCreateDateRange
(
String
createDateRange
)
{
this
.
createDateRange
=
createDateRange
;
if
(
StringUtils
.
isEmpty
(
createDateRange
))
{
return
;
}
Date
[]
ds
=
Tool
.
parseDataRange
(
createDateRange
);
this
.
createDateMin
=
ds
[
0
];
this
.
createDateMax
=
ds
[
1
];
}
public
Date
getCreateDateMin
()
{
return
createDateMin
;
}
public
void
setCreateDateMin
(
Date
createDateMin
)
{
this
.
createDateMin
=
createDateMin
;
}
public
Date
getCreateDateMax
()
{
return
createDateMax
;
}
public
void
setCreateDateMax
(
Date
createDateMax
)
{
this
.
createDateMax
=
createDateMax
;
}
// public String getJobSubType() {
// return jobSubType;
// }
// public void setJobSubType(String jobSubType) {
// this.jobSubType = jobSubType;
// }
//
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/UserRoleQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.web.query.PageParam
;
/**
*/
public
class
UserRoleQuery
extends
PageParam
{
@Query
(
name
=
"角色"
,
display
=
true
,
type
=
Query
.
TYPE_CONTROL
,
control
=
"role"
)
private
Long
roleId
;
@Query
(
name
=
"部门"
,
display
=
true
,
type
=
Query
.
TYPE_CONTROL
,
control
=
"org"
)
private
Long
orgId
;
private
Long
userId
;
public
Long
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
Long
getRoleId
()
{
return
roleId
;
}
public
void
setRoleId
(
Long
roleId
)
{
this
.
roleId
=
roleId
;
}
public
Long
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
Long
orgId
)
{
this
.
orgId
=
orgId
;
}
}
admin-console/src/main/java/com/ibeetl/admin/console/web/query/WorkflowQuery.java
0 → 100644
View file @
321361c9
package
com.ibeetl.admin.console.web.query
;
import
java.util.Date
;
import
com.ibeetl.admin.core.annotation.Query
;
import
com.ibeetl.admin.core.web.query.PageParam
;
/**
* 字典表单查询条件
*/
public
class
WorkflowQuery
extends
PageParam
{
@Query
(
name
=
"用户列表"
,
display
=
true
,
fuzzy
=
true
)
private
String
userIds
;
@Query
(
name
=
"角色列表"
,
display
=
true
,
fuzzy
=
true
)
private
String
roleIds
;
@Query
(
name
=
"机构列表"
,
display
=
true
,
fuzzy
=
true
)
private
String
orgIds
;
public
String
getUserIds
()
{
return
userIds
;
}
public
void
setUserIds
(
String
userIds
)
{
this
.
userIds
=
userIds
;
}
public
String
getRoleIds
()
{
return
roleIds
;
}
public
void
setRoleIds
(
String
roleIds
)
{
this
.
roleIds
=
roleIds
;
}
public
String
getOrgIds
()
{
return
orgIds
;
}
public
void
setOrgIds
(
String
orgIds
)
{
this
.
orgIds
=
orgIds
;
}
}
admin-console/src/main/resources/META-INF/myenv.properties
0 → 100644
View file @
321361c9
dbIp
=
jdbc:oracle:thin:@172.16.86.56:1521:dfzb
\ No newline at end of file
admin-console/src/main/resources/application.properties
0 → 100644
View file @
321361c9
spring.datasource.url
=
jdbc:mysql://127.0.0.1:3306/starter?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username
=
root
spring.datasource.password
=
123456
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
# 1,1 是管理员密码,相当于启动后就登录,方便测试,系统需要取消这俩个配置
user.id
=
1
user.orgId
=
1
#打开审计功能,开发模式应该关闭
audit.enable
=
false
spring.session.store-type
=
HASH_MAP
#spring.cache.type=
spring.cache.type
=
SIMPLE
logging.level.root
=
info
logging.level.org.springframework.web.servlet.mvc.method.annotation
=
warn
#logging.file = my.log
server.port
=
8080
#html视图交给beetl渲染
beetl.suffix
=
html
beetlsql.dbStyle
=
org.beetl.sql.core.db.MySqlStyle
beetlsql.basePackage
=
com.ibeetl
app.name
=
Spring Boot开发平台
logging.pattern.console
=
%-4relative [%thread] %-5level %logger{256} %M %L - %msg%n
\ No newline at end of file
admin-console/src/main/resources/banner.txt
0 → 100644
View file @
321361c9
*** Spring Boot 2 Admin
\ No newline at end of file
admin-console/src/main/resources/beetl.properties
0 → 100644
View file @
321361c9
ENGINE
=
org.beetl.core.engine.DefaultTemplateEngine
DELIMITER_STATEMENT_START
=
<!--#
DELIMITER_STATEMENT_END
=
-->
RESOURCE.tagRoot
=
common/tag
RESOURCE.tagSuffix
=
tag.html
HTML_TAG_FLAG
=
layui:
\ No newline at end of file
admin-console/src/main/resources/btsql-ext.properties
0 → 100644
View file @
321361c9
FN.isEmpty
=
org.beetl.ext.fn.EmptyExpressionFunction
FN.isNotEmpty
=
org.beetl.ext.fn.IsNotEmptyExpressionFunction
\ No newline at end of file
admin-console/src/main/resources/sql/console/audit.md
0 → 100644
View file @
321361c9
queryByCondtion
===
select
@pageTag(){
a.
*
@}
from core_audit a where 1=1
@ // 添加数据权限
and #function("audit.query")#
@if(isNotEmpty(functionName)){
function_name like #'%'+functionName+'%'#
@}
@if(isNotEmpty(functionCode)){
function_code like #'%'+functionCode+'%'#
@}
@if(isNotEmpty(userName)){
user_name like #'%'+userName+'%'#
@}
@if(!isEmpty(createDateMin)){
and create_time>= #createDateMin#
@}
@if(!isEmpty(createDateMax)){
and create_time< #nextDay(createDateMax)#
@}
@pageIgnoreTag(){
order by a.create_time desc
@}
admin-console/src/main/resources/sql/console/blog.md
0 → 100644
View file @
321361c9
queryByCondition
===
select
@pageTag(){
t.*
@}
from cms_blog t
where 1=1
@//数据权限,该sql语句功能点
and #function("blog.query")#
batchDelCmsBlogByIds
===
*
批量逻辑删除
update cms_blog set del_flag = 1 where id in( #join(ids)#)
admin-console/src/main/resources/sql/console/cmsBlog.md
0 → 100644
View file @
321361c9
queryByCondition
===
select
@pageTag(){
t.*
@}
from cms_blog t
where 1=1
@//数据权限,该sql语句功能点
and #function("cmsBlog.query")#
@if(!isEmpty(id)){
and t.id =#id#
@}
batchDelCmsBlogByIds
===
*
批量逻辑删除
update cms_blog set del_flag = 1 where id in( #join(ids)#)
admin-console/src/main/resources/sql/console/console.md
0 → 100644
View file @
321361c9
queryByCondition
===
select
@pageTag(){
t.*
@}
from cms_blog t
where 1=1
@//数据权限,该sql语句功能点
and #function("console.query")#
@if(!isEmpty(id)){
and t.id =#id#
@}
@if(!isEmpty(title)){
and t.title =#title#
@}
batchDelCmsBlogByIds
===
*
批量逻辑删除
update cms_blog set del_flag = 1 where id in( #join(ids)#)
admin-console/src/main/resources/sql/console/dict.md
0 → 100644
View file @
321361c9
queryByCondition
===
select
@pageTag(){
t.*
@}
from core_dict t
where del_flag=0
@//数据权限,该sql语句功能点
and #function("dict.query")#
@if(!isEmpty(value)){
and t.VALUE =#value#
@}
@if(!isEmpty(name)){
and t.NAME =#name#
@}
@if(!isEmpty(typeName)){
and t.TYPE_NAME =#typeName#
@}
@if(!isEmpty(parent)){
and t.PARENT =#parent#
@}
@pageIgnoreTag(){
order by create_time desc
@}
batchDelCoreDictByIds
===
*
批量逻辑删除
update core_dict set del_flag = 1 where value in( #join(ids)#)
admin-console/src/main/resources/sql/console/function.md
0 → 100644
View file @
321361c9
queryByCondtion
===
select
@pageTag(){
f.
*
@}
from core_function f where 1=1
@if(!isEmpty(functionIds)){
and f.id in ( #join(functionIds)#)
@}
@if(!isEmpty(code)){
and f.code like #"%"+code+"%"#
@}
@if(!isEmpty(name)){
and f.name like #"%"+name+"%"#
@}
@if(!isEmpty(accessUrl)){
and f.access_url like #"%"+accessUrl+"%"#
@}
@if(!isEmpty(parentFunctionId)){
and f.parent_id = #parentFunctionId#
@}
Prev
1
2
3
4
5
6
7
…
23
Next
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