Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
692729a5
提交
692729a5
编写于
4月 28, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
7257ddc8
变更
12
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
143 行增加
和
13 行删除
+143
-13
app-rich-text-editor.vue
.../components/app-rich-text-editor/app-rich-text-editor.vue
+1
-0
router.ts
app_web/src/pages/dict/app-index-view/router.ts
+3
-0
index.ts
app_web/src/router/index.ts
+8
-0
IBZDictItemMapper.java
...n/java/cn/ibizlab/core/dict/mapper/IBZDictItemMapper.java
+32
-1
IBZDictMapper.java
.../main/java/cn/ibizlab/core/dict/mapper/IBZDictMapper.java
+32
-1
IIBZDictItemService.java
...ava/cn/ibizlab/core/dict/service/IIBZDictItemService.java
+4
-0
IIBZDictService.java
...in/java/cn/ibizlab/core/dict/service/IIBZDictService.java
+4
-0
IBZDictItemServiceImpl.java
...bizlab/core/dict/service/impl/IBZDictItemServiceImpl.java
+25
-1
IBZDictServiceImpl.java
...cn/ibizlab/core/dict/service/impl/IBZDictServiceImpl.java
+25
-1
init_h2.sql
ibzdict-core/src/main/resources/liquibase/config/init_h2.sql
+2
-2
h2_table.xml
ibzdict-core/src/main/resources/liquibase/h2_table.xml
+3
-3
application-sys.yml
ibzdict-util/src/main/resources/application-sys.yml
+4
-4
未找到文件。
app_web/src/components/app-rich-text-editor/app-rich-text-editor.vue
浏览文件 @
692729a5
...
@@ -157,6 +157,7 @@ export default class AppRichTextEditor extends Vue {
...
@@ -157,6 +157,7 @@ export default class AppRichTextEditor extends Vue {
let
richtexteditor
=
this
;
let
richtexteditor
=
this
;
tinymceCode
.
init
({
tinymceCode
.
init
({
selector
:
'#'
+
this
.
id
,
selector
:
'#'
+
this
.
id
,
width
:
'calc( 100% - 2px )'
,
height
:
this
.
height
,
height
:
this
.
height
,
min_height
:
400
,
min_height
:
400
,
branding
:
false
,
branding
:
false
,
...
...
app_web/src/pages/dict/app-index-view/router.ts
浏览文件 @
692729a5
...
@@ -2,6 +2,7 @@ import Vue from 'vue';
...
@@ -2,6 +2,7 @@ import Vue from 'vue';
import
Router
from
'vue-router'
;
import
Router
from
'vue-router'
;
import
{
AuthGuard
}
from
'@/utils'
;
import
{
AuthGuard
}
from
'@/utils'
;
import
qs
from
'qs'
;
import
qs
from
'qs'
;
import
{
globalRoutes
,
indexRoutes
}
from
'@/router'
Vue
.
use
(
Router
);
Vue
.
use
(
Router
);
...
@@ -59,6 +60,7 @@ const router = new Router({
...
@@ -59,6 +60,7 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/dict/ibzdict-edit-view/ibzdict-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/dict/ibzdict-edit-view/ibzdict-edit-view.vue'
),
},
},
...
indexRoutes
,
],
],
},
},
{
{
...
@@ -85,6 +87,7 @@ const router = new Router({
...
@@ -85,6 +87,7 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/dict/ibzdict-edit-view/ibzdict-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/dict/ibzdict-edit-view/ibzdict-edit-view.vue'
),
},
},
...
globalRoutes
,
{
{
path
:
'/login/:login?'
,
path
:
'/login/:login?'
,
name
:
'login'
,
name
:
'login'
,
...
...
app_web/src/router/index.ts
0 → 100644
浏览文件 @
692729a5
//用户自定义全局路由
export
const
globalRoutes
:
Array
<
any
>
=
[
];
//用户自定义首页路由
export
const
indexRoutes
:
Array
<
any
>
=
[
];
ibzdict-core/src/main/java/cn/ibizlab/core/dict/mapper/IBZDictItemMapper.java
浏览文件 @
692729a5
...
@@ -14,7 +14,7 @@ import org.springframework.cache.annotation.CacheEvict;
...
@@ -14,7 +14,7 @@ import org.springframework.cache.annotation.CacheEvict;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
IBZDictItemMapper
extends
BaseMapper
<
IBZDictItem
>{
public
interface
IBZDictItemMapper
extends
BaseMapper
<
IBZDictItem
>{
...
@@ -29,6 +29,37 @@ public interface IBZDictItemMapper extends BaseMapper<IBZDictItem>{
...
@@ -29,6 +29,37 @@ public interface IBZDictItemMapper extends BaseMapper<IBZDictItem>{
int
deleteById
(
Serializable
id
);
int
deleteById
(
Serializable
id
);
Page
<
IBZDictItem
>
selectPermission
(
IPage
page
,
@Param
(
"pw"
)
Wrapper
<
IBZDictItem
>
wrapper
)
;
Page
<
IBZDictItem
>
selectPermission
(
IPage
page
,
@Param
(
"pw"
)
Wrapper
<
IBZDictItem
>
wrapper
)
;
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
);
List
<
IBZDictItem
>
selectByDictid
(
@Param
(
"dictid"
)
Serializable
dictid
)
;
List
<
IBZDictItem
>
selectByDictid
(
@Param
(
"dictid"
)
Serializable
dictid
)
;
...
...
ibzdict-core/src/main/java/cn/ibizlab/core/dict/mapper/IBZDictMapper.java
浏览文件 @
692729a5
...
@@ -14,7 +14,7 @@ import org.springframework.cache.annotation.CacheEvict;
...
@@ -14,7 +14,7 @@ import org.springframework.cache.annotation.CacheEvict;
import
org.springframework.cache.annotation.Cacheable
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
IBZDictMapper
extends
BaseMapper
<
IBZDict
>{
public
interface
IBZDictMapper
extends
BaseMapper
<
IBZDict
>{
...
@@ -29,5 +29,36 @@ public interface IBZDictMapper extends BaseMapper<IBZDict>{
...
@@ -29,5 +29,36 @@ public interface IBZDictMapper extends BaseMapper<IBZDict>{
int
deleteById
(
Serializable
id
);
int
deleteById
(
Serializable
id
);
Page
<
IBZDict
>
selectPermission
(
IPage
page
,
@Param
(
"pw"
)
Wrapper
<
IBZDict
>
wrapper
)
;
Page
<
IBZDict
>
selectPermission
(
IPage
page
,
@Param
(
"pw"
)
Wrapper
<
IBZDict
>
wrapper
)
;
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
);
}
}
ibzdict-core/src/main/java/cn/ibizlab/core/dict/service/IIBZDictItemService.java
浏览文件 @
692729a5
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
cn.ibizlab.core.dict.domain.IBZDictItem
;
import
cn.ibizlab.core.dict.domain.IBZDictItem
;
import
cn.ibizlab.core.dict.filter.IBZDictItemSearchContext
;
import
cn.ibizlab.core.dict.filter.IBZDictItemSearchContext
;
...
@@ -42,6 +43,9 @@ public interface IIBZDictItemService extends IService<IBZDictItem>{
...
@@ -42,6 +43,9 @@ public interface IIBZDictItemService extends IService<IBZDictItem>{
List
<
JSONObject
>
select
(
String
sql
);
boolean
execute
(
String
sql
);
}
}
ibzdict-core/src/main/java/cn/ibizlab/core/dict/service/IIBZDictService.java
浏览文件 @
692729a5
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
...
@@ -11,6 +11,7 @@ import java.math.BigInteger;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
com.alibaba.fastjson.JSONObject
;
import
cn.ibizlab.core.dict.domain.IBZDict
;
import
cn.ibizlab.core.dict.domain.IBZDict
;
import
cn.ibizlab.core.dict.filter.IBZDictSearchContext
;
import
cn.ibizlab.core.dict.filter.IBZDictSearchContext
;
...
@@ -38,6 +39,9 @@ public interface IIBZDictService extends IService<IBZDict>{
...
@@ -38,6 +39,9 @@ public interface IIBZDictService extends IService<IBZDict>{
List
<
JSONObject
>
select
(
String
sql
);
boolean
execute
(
String
sql
);
}
}
ibzdict-core/src/main/java/cn/ibizlab/core/dict/service/impl/IBZDictItemServiceImpl.java
浏览文件 @
692729a5
...
@@ -32,7 +32,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -32,7 +32,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
cn.ibizlab.core.dict.mapper.IBZDictItemMapper
;
import
cn.ibizlab.core.dict.mapper.IBZDictItemMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
/**
/**
...
@@ -183,6 +183,30 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
...
@@ -183,6 +183,30 @@ public class IBZDictItemServiceImpl extends ServiceImpl<IBZDictItemMapper, IBZDi
}
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
){
return
this
.
baseMapper
.
selectBySQL
(
sql
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
}
}
ibzdict-core/src/main/java/cn/ibizlab/core/dict/service/impl/IBZDictServiceImpl.java
浏览文件 @
692729a5
...
@@ -32,7 +32,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -32,7 +32,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
cn.ibizlab.core.dict.mapper.IBZDictMapper
;
import
cn.ibizlab.core.dict.mapper.IBZDictMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
/**
/**
...
@@ -151,6 +151,30 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
...
@@ -151,6 +151,30 @@ public class IBZDictServiceImpl extends ServiceImpl<IBZDictMapper, IBZDict> impl
}
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
){
return
this
.
baseMapper
.
selectBySQL
(
sql
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
}
}
ibzdict-core/src/main/resources/liquibase/config/init_h2.sql
浏览文件 @
692729a5
create
schema
if
not
exists
a_A_5
ae9eb39a
;
create
schema
if
not
exists
a_A_5
d9d78509
;
set
schema
a_A_5
ae9eb39a
;
set
schema
a_A_5
d9d78509
;
ibzdict-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
692729a5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"
>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"
>
<!--输出实体[IBZDICT]数据结构 -->
<!--输出实体[IBZDICT]数据结构 -->
<changeSet
author=
"a_A_5
ae9eb39a
"
id=
"tab-ibzdict-42-1"
>
<changeSet
author=
"a_A_5
d9d78509
"
id=
"tab-ibzdict-42-1"
>
<createTable
tableName=
"IBZDICT"
>
<createTable
tableName=
"IBZDICT"
>
<column
name=
"IBZDICTID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"IBZDICTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZDICT_IBZDICTID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZDICT_IBZDICTID"
/>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</createTable>
</createTable>
</changeSet>
</changeSet>
<!--输出实体[IBZDICTITEM]数据结构 -->
<!--输出实体[IBZDICTITEM]数据结构 -->
<changeSet
author=
"a_A_5
ae9eb39a
"
id=
"tab-ibzdictitem-73-2"
>
<changeSet
author=
"a_A_5
d9d78509
"
id=
"tab-ibzdictitem-73-2"
>
<createTable
tableName=
"IBZDICTITEM"
>
<createTable
tableName=
"IBZDICTITEM"
>
<column
name=
"IBZDICTITEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"IBZDICTITEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZDICTITEM_IBZDICTITEMID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBZDICTITEM_IBZDICTITEMID"
/>
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<!--输出实体[IBZDICT]外键关系 -->
<!--输出实体[IBZDICT]外键关系 -->
<!--输出实体[IBZDICTITEM]外键关系 -->
<!--输出实体[IBZDICTITEM]外键关系 -->
<changeSet
author=
"a_A_5
ae9eb39a
"
id=
"fk-ibzdictitem-73-3"
>
<changeSet
author=
"a_A_5
d9d78509
"
id=
"fk-ibzdictitem-73-3"
>
<addForeignKeyConstraint
baseColumnNames=
"DICTID"
baseTableName=
"IBZDICTITEM"
constraintName=
"DER1N_IBZDICTITEM_IBZDICT_DICT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBZDICTID"
referencedTableName=
"IBZDICT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"DICTID"
baseTableName=
"IBZDICTITEM"
constraintName=
"DER1N_IBZDICTITEM_IBZDICT_DICT"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBZDICTID"
referencedTableName=
"IBZDICT"
validate=
"true"
/>
</changeSet>
</changeSet>
...
...
ibzdict-util/src/main/resources/application-sys.yml
浏览文件 @
692729a5
...
@@ -5,9 +5,9 @@ spring:
...
@@ -5,9 +5,9 @@ spring:
discovery
:
discovery
:
server-addr
:
172.16.102.211:8848
server-addr
:
172.16.102.211:8848
datasource
:
datasource
:
password
:
'
E6@8@7ce
'
password
:
'
@6dEfb3@
'
username
:
a_A_5
ae9eb39a
username
:
a_A_5
d9d78509
url
:
jdbc:mysql://172.16.180.232:3306/a_A_5
ae9eb39a
?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
url
:
jdbc:mysql://172.16.180.232:3306/a_A_5
d9d78509
?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
driver-class-name
:
com.mysql.jdbc.Driver
driver-class-name
:
com.mysql.jdbc.Driver
filters
:
stat,wall,log4j2
filters
:
stat,wall,log4j2
#配置初始化大小/最小/最大
#配置初始化大小/最小/最大
...
@@ -28,7 +28,7 @@ spring:
...
@@ -28,7 +28,7 @@ spring:
pool-prepared-statements
:
false
pool-prepared-statements
:
false
max-pool-prepared-statement-per-connection-size
:
20
max-pool-prepared-statement-per-connection-size
:
20
isSyncDBSchema
:
false
isSyncDBSchema
:
false
defaultSchema
:
a_A_5
ae9eb39a
defaultSchema
:
a_A_5
d9d78509
conf
:
classpath:liquibase/master.xml
conf
:
classpath:liquibase/master.xml
#Mybatis-plus配置
#Mybatis-plus配置
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录