Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
9ebf0155
提交
9ebf0155
编写于
11月 12, 2020
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docker
上级
1c337dda
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
133 行增加
和
42 行删除
+133
-42
pom.xml
ibzlite-boot/pom.xml
+18
-0
Dockerfile
ibzlite-boot/src/main/docker/Dockerfile
+17
-0
ibzlite.yaml
ibzlite-boot/src/main/docker/ibzlite.yaml
+7
-0
DstConfigExService.java
...n/ibizlab/core/extensions/service/DstConfigExService.java
+17
-0
20201009053919_changelog.xml
...esources/liquibase/changelog/20201009053919_changelog.xml
+25
-34
20201029010527_changelog.xml
...esources/liquibase/changelog/20201029010527_changelog.xml
+0
-8
20201110124152_changelog.xml
...esources/liquibase/changelog/20201110124152_changelog.xml
+49
-0
未找到文件。
ibzlite-boot/pom.xml
浏览文件 @
9ebf0155
...
...
@@ -64,7 +64,25 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<serverId>
ibiz-dev
</serverId>
<imageName>
ibiz4j/ibizlab-lite:latest
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
../
</directory>
<include>
ibzlite.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
...
...
ibzlite-boot/src/main/docker/Dockerfile
0 → 100644
浏览文件 @
9ebf0155
FROM
openjdk:8-jre-alpine
ENV
TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
IBIZ_SLEEP=0 \
JAVA_OPTS=""
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
CMD
echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzlite.jar
EXPOSE
8080
ADD
ibzlite.jar /ibzlite.jar
ibzlite-boot/src/main/docker/ibzlite.yaml
0 → 100644
浏览文件 @
9ebf0155
version
:
"
3.2"
services
:
ibzlite
:
image
:
ibiz4j/ibizlab-lite:latest
ports
:
-
"
8080:8080"
ibzlite-core/src/main/java/cn/ibizlab/core/extensions/service/DstConfigExService.java
浏览文件 @
9ebf0155
package
cn
.
ibizlab
.
core
.
extensions
.
service
;
import
cn.ibizlab.core.lite.service.IDstConfigService
;
import
cn.ibizlab.core.lite.service.impl.DstConfigServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.ibizlab.core.lite.domain.DstConfig
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Primary
;
...
...
@@ -21,6 +25,18 @@ public class DstConfigExService extends DstConfigServiceImpl {
return
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
ReflectionKit
.
getSuperClassGenericType
(
this
.
getClass
().
getSuperclass
(),
1
);
}
@Autowired
@Lazy
private
IDstConfigService
proxy
=
null
;
@Override
public
boolean
update
(
DstConfig
et
)
{
if
(
super
.
update
(
et
))
proxy
.
reset
(
et
);
return
true
;
}
/**
* 自定义行为[Reset]用户扩展
* @param et
...
...
@@ -28,6 +44,7 @@ public class DstConfigExService extends DstConfigServiceImpl {
*/
@Override
@Transactional
@CacheEvict
(
value
=
"ibzrt_configs"
,
key
=
"'cfgid:'+#p0.cfgType+'||'+#p0.targetType+'||'+#p0.userId"
)
public
DstConfig
reset
(
DstConfig
et
)
{
return
super
.
reset
(
et
);
}
...
...
ibzlite-core/src/main/resources/liquibase/changelog/2020100905391
8
_changelog.xml
→
ibzlite-core/src/main/resources/liquibase/changelog/2020100905391
9
_changelog.xml
浏览文件 @
9ebf0155
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
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/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"
>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-1"
>
<changeSet
author=
"mac (generated)"
id=
"1602221967552-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"IBZCOMPONENT"
/>
</not>
</preConditions>
<createTable
tableName=
"IBZCOMPONENT"
>
<column
name=
"CID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_DST_COMPONENT_CID"
/>
...
...
@@ -13,8 +18,6 @@
<column
name=
"ENTITYID"
type=
"VARCHAR(100)"
/>
<column
name=
"CFG"
type=
"CLOB"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-2"
>
<createTable
tableName=
"IBZDATASET"
>
<column
name=
"DATASETID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_META_DATASET_DATASETID"
/>
...
...
@@ -26,8 +29,6 @@
<column
name=
"DSCODE"
type=
"CLOB"
/>
<column
name=
"DSMODEL"
type=
"CLOB"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-3"
>
<createTable
tableName=
"IBZDATASOURCE"
>
<column
name=
"DSID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_DST_DATASOURCE_DSID"
/>
...
...
@@ -36,8 +37,6 @@
<column
name=
"DSTYPE"
type=
"VARCHAR(100)"
/>
<column
name=
"DSCFG"
type=
"VARCHAR(4000)"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-4"
>
<createTable
tableName=
"IBZENTITY"
>
<column
name=
"ENTITYID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_META_ENTITY_ENTITYID"
/>
...
...
@@ -49,8 +48,6 @@
<column
name=
"SYSTEMID"
type=
"VARCHAR(100)"
/>
<column
name=
"DSID"
type=
"VARCHAR(100)"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-5"
>
<createTable
tableName=
"IBZFIELD"
>
<column
name=
"FIELDID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_META_FIELD_FIELDID"
/>
...
...
@@ -78,9 +75,8 @@
<column
name=
"EXPRESSION"
type=
"VARCHAR(2000)"
/>
<column
name=
"EXTENSIONFIELD"
type=
"INT"
/>
<column
name=
"SHOWORDER"
type=
"INT"
/>
<column
name=
"ISENABLEAUDIT"
type=
"INTEGER"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-6"
>
<createTable
tableName=
"IBZMODEL"
>
<column
name=
"MODELID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_META_MODEL_MODELID"
/>
...
...
@@ -89,25 +85,6 @@
<column
name=
"CODENAME"
type=
"VARCHAR(100)"
/>
<column
name=
"MODELCFG"
type=
"CLOB"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-7"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"IBZPSSYSTEM"
/>
</not>
</preConditions>
<createTable
tableName=
"IBZPSSYSTEM"
>
<column
name=
"PSSYSTEMID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_DST_SYSTEM_PSSYSTEMID"
/>
</column>
<column
name=
"PSSYSTEMNAME"
type=
"VARCHAR(100)"
/>
<column
name=
"SYSSTRUCTURE"
type=
"CLOB"
/>
<column
name=
"APPS"
type=
"CLOB"
/>
<column
name=
"MD5CHECK"
type=
"VARCHAR(100)"
/>
<column
name=
"SHOWORDER"
type=
"INT"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-8"
>
<createTable
tableName=
"IBZRELATION"
>
<column
name=
"RELATIONID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_META_RELATION_RELATIONID"
/>
...
...
@@ -122,8 +99,6 @@
<column
name=
"NESTEDNAME"
type=
"VARCHAR(100)"
/>
<column
name=
"LOOKUP"
type=
"CLOB"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-9"
>
<createTable
tableName=
"IBZROUTER"
>
<column
name=
"ROUTERID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_DST_ROUTER_ROUTERID"
/>
...
...
@@ -136,8 +111,6 @@
<column
name=
"META"
type=
"CLOB"
/>
<column
name=
"COMPONENT"
type=
"VARCHAR(2000)"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967551-10"
>
<createTable
tableName=
"IBZVIEW"
>
<column
name=
"VIEWID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_DST_VIEW_VIEWID"
/>
...
...
@@ -150,4 +123,22 @@
<column
name=
"CFG"
type=
"CLOB"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1602221967552-7"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"IBZPSSYSTEM"
/>
</not>
</preConditions>
<createTable
tableName=
"IBZPSSYSTEM"
>
<column
name=
"PSSYSTEMID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_DST_SYSTEM_PSSYSTEMID"
/>
</column>
<column
name=
"PSSYSTEMNAME"
type=
"VARCHAR(100)"
/>
<column
name=
"SYSSTRUCTURE"
type=
"CLOB"
/>
<column
name=
"APPS"
type=
"CLOB"
/>
<column
name=
"MD5CHECK"
type=
"VARCHAR(100)"
/>
<column
name=
"SHOWORDER"
type=
"INT"
/>
</createTable>
</changeSet>
</databaseChangeLog>
ibzlite-core/src/main/resources/liquibase/changelog/20201029010527_changelog.xml
已删除
100644 → 0
浏览文件 @
1c337dda
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
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/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"
>
<changeSet
author=
"mac (generated)"
id=
"1603933536067-1"
>
<addColumn
tableName=
"IBZFIELD"
>
<column
name=
"ISENABLEAUDIT"
type=
"INTEGER"
/>
</addColumn>
</changeSet>
</databaseChangeLog>
ibzlite-core/src/main/resources/liquibase/changelog/20201110124152_changelog.xml
0 → 100644
浏览文件 @
9ebf0155
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
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/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"
>
<changeSet
author=
"mac (generated)"
id=
"1605012125288-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"BLADE_VISUAL"
/>
</not>
</preConditions>
<createTable
tableName=
"BLADE_VISUAL"
>
<column
name=
"ID"
type=
"BIGINT"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_ID"
/>
</column>
<column
name=
"TITLE"
type=
"VARCHAR(255)"
/>
<column
name=
"CATEGORY"
type=
"INT"
/>
<column
name=
"PASSWORD"
type=
"VARCHAR(255)"
/>
<column
name=
"BACKGROUND_URL"
type=
"CLOB"
/>
<column
name=
"STATUS"
type=
"INT"
/>
<column
name=
"CREATE_TIME"
type=
"TIMESTAMP"
/>
<column
name=
"CREATE_DEPT"
type=
"BIGINT"
/>
<column
name=
"CREATE_USER"
type=
"BIGINT"
/>
<column
name=
"UPDATE_TIME"
type=
"TIMESTAMP"
/>
<column
name=
"UPDATE_USER"
type=
"BIGINT"
/>
<column
name=
"IS_DELETED"
type=
"INT"
/>
</createTable>
<createTable
tableName=
"BLADE_VISUAL_CATEGORY"
>
<column
name=
"ID"
type=
"BIGINT"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_CATEGORY_ID"
/>
</column>
<column
name=
"CATEGORY_KEY"
type=
"VARCHAR(12)"
/>
<column
name=
"CATEGORY_VALUE"
type=
"VARCHAR(64)"
/>
<column
name=
"IS_DELETED"
type=
"INT"
/>
</createTable>
<createTable
tableName=
"BLADE_VISUAL_CONFIG"
>
<column
name=
"ID"
type=
"BIGINT"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_CONFIG_ID"
/>
</column>
<column
name=
"VISUAL_ID"
type=
"BIGINT"
/>
<column
name=
"COMPONENT"
type=
"CLOB"
/>
<column
name=
"DETAIL"
type=
"CLOB"
/>
</createTable>
<createTable
tableName=
"BLADE_VISUAL_MAP"
>
<column
name=
"ID"
type=
"BIGINT"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_MAP_ID"
/>
</column>
<column
name=
"NAME"
type=
"VARCHAR(255)"
/>
<column
name=
"DATA"
type=
"CLOB"
/>
</createTable>
</changeSet>
</databaseChangeLog>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录