Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
f7864922
提交
f7864922
编写于
9月 18, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 部署微服务接口
上级
a3192a57
变更
13
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
54 行增加
和
39 行删除
+54
-39
config.xml
config.xml
+5
-5
Dockerfile
ibzlite-app/ibzlite-app-web/src/main/docker/Dockerfile
+1
-1
ibzlite-app-web.yaml
...-app/ibzlite-app-web/src/main/docker/ibzlite-app-web.yaml
+1
-14
DstComponentServiceImpl.java
...izlab/core/lite/service/impl/DstComponentServiceImpl.java
+3
-1
DstViewServiceImpl.java
...cn/ibizlab/core/lite/service/impl/DstViewServiceImpl.java
+3
-1
MetaDataSetServiceImpl.java
...bizlab/core/lite/service/impl/MetaDataSetServiceImpl.java
+3
-1
MetaEntityServiceImpl.java
...ibizlab/core/lite/service/impl/MetaEntityServiceImpl.java
+6
-2
MetaFieldServiceImpl.java
.../ibizlab/core/lite/service/impl/MetaFieldServiceImpl.java
+9
-3
MetaRelationshipServiceImpl.java
...b/core/lite/service/impl/MetaRelationshipServiceImpl.java
+6
-2
Dockerfile
...-provider/ibzlite-provider-api/src/main/docker/Dockerfile
+1
-1
ibzlite-provider-api.yaml
...te-provider-api/src/main/docker/ibzlite-provider-api.yaml
+14
-1
IBZLiteFeignClient.java
.../main/java/cn/ibizlab/util/client/IBZLiteFeignClient.java
+1
-1
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+1
-6
未找到文件。
config.xml
浏览文件 @
f7864922
...
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibzlite/
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzlite/
mvn clean package -P
web
cd ibzlite-
app/ibzlite-app-web
mvn -P
web
docker:build
mvn -P
web
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzlite-
app-web.yaml ibzlab-rt --with-registry-auth
mvn clean package -P
api
cd ibzlite-
provider/ibzlite-provider-api
mvn -P
api
docker:build
mvn -P
api
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzlite-
provider-api.yaml ibzlab-rt --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
ibzlite-app/ibzlite-app-web/src/main/docker/Dockerfile
浏览文件 @
f7864922
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzlite-app-web.jar
EXPOSE
3001
0
EXPOSE
808
0
ADD
ibzlite-app-web.jar /ibzlite-app-web.jar
ibzlite-app/ibzlite-app-web/src/main/docker/ibzlite-app-web.yaml
浏览文件 @
f7864922
...
...
@@ -3,22 +3,9 @@ services:
ibzlite-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzlite-app-web:latest
ports
:
-
"
30010:3001
0"
-
"
8080:808
0"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=30010
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
NACOS=172.16.102.211:8848
deploy
:
resources
:
limits
:
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstComponentServiceImpl.java
浏览文件 @
f7864922
...
...
@@ -212,7 +212,9 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEntityId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
factEntity
=
et
.
getFactEntity
();
if
(
ObjectUtils
.
isEmpty
(
factEntity
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
get
(
et
.
getEntityId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
getById
(
et
.
getEntityId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setFactEntity
(
majorEntity
);
factEntity
=
majorEntity
;
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstViewServiceImpl.java
浏览文件 @
f7864922
...
...
@@ -212,7 +212,9 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEntityId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
factEntity
=
et
.
getFactEntity
();
if
(
ObjectUtils
.
isEmpty
(
factEntity
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
get
(
et
.
getEntityId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
getById
(
et
.
getEntityId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setFactEntity
(
majorEntity
);
factEntity
=
majorEntity
;
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaDataSetServiceImpl.java
浏览文件 @
f7864922
...
...
@@ -221,7 +221,9 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEntityId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
entity
=
et
.
getEntity
();
if
(
ObjectUtils
.
isEmpty
(
entity
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
get
(
et
.
getEntityId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
getById
(
et
.
getEntityId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setEntity
(
majorEntity
);
entity
=
majorEntity
;
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaEntityServiceImpl.java
浏览文件 @
f7864922
...
...
@@ -233,7 +233,9 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
if
(!
ObjectUtils
.
isEmpty
(
et
.
getDsId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstDataSource
dataSource
=
et
.
getDataSource
();
if
(
ObjectUtils
.
isEmpty
(
dataSource
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstDataSource
majorEntity
=
dstdatasourceService
.
get
(
et
.
getDsId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstDataSource
majorEntity
=
dstdatasourceService
.
getById
(
et
.
getDsId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setDataSource
(
majorEntity
);
dataSource
=
majorEntity
;
}
...
...
@@ -243,7 +245,9 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
if
(!
ObjectUtils
.
isEmpty
(
et
.
getSystemId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstSystem
system
=
et
.
getSystem
();
if
(
ObjectUtils
.
isEmpty
(
system
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstSystem
majorEntity
=
dstsystemService
.
get
(
et
.
getSystemId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstSystem
majorEntity
=
dstsystemService
.
getById
(
et
.
getSystemId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setSystem
(
majorEntity
);
system
=
majorEntity
;
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaFieldServiceImpl.java
浏览文件 @
f7864922
...
...
@@ -246,7 +246,9 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEntityId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
entity
=
et
.
getEntity
();
if
(
ObjectUtils
.
isEmpty
(
entity
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
get
(
et
.
getEntityId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
getById
(
et
.
getEntityId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setEntity
(
majorEntity
);
entity
=
majorEntity
;
}
...
...
@@ -258,7 +260,9 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
if
(!
ObjectUtils
.
isEmpty
(
et
.
getRefFieldId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaField
reffield
=
et
.
getReffield
();
if
(
ObjectUtils
.
isEmpty
(
reffield
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaField
majorEntity
=
metafieldService
.
get
(
et
.
getRefFieldId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaField
majorEntity
=
metafieldService
.
getById
(
et
.
getRefFieldId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setReffield
(
majorEntity
);
reffield
=
majorEntity
;
}
...
...
@@ -268,7 +272,9 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
if
(!
ObjectUtils
.
isEmpty
(
et
.
getRelationId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaRelationship
relation
=
et
.
getRelation
();
if
(
ObjectUtils
.
isEmpty
(
relation
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaRelationship
majorEntity
=
metarelationshipService
.
get
(
et
.
getRelationId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaRelationship
majorEntity
=
metarelationshipService
.
getById
(
et
.
getRelationId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setRelation
(
majorEntity
);
relation
=
majorEntity
;
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaRelationshipServiceImpl.java
浏览文件 @
f7864922
...
...
@@ -263,7 +263,9 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
if
(!
ObjectUtils
.
isEmpty
(
et
.
getEntityId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
entity
=
et
.
getEntity
();
if
(
ObjectUtils
.
isEmpty
(
entity
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
get
(
et
.
getEntityId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
getById
(
et
.
getEntityId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setEntity
(
majorEntity
);
entity
=
majorEntity
;
}
...
...
@@ -274,7 +276,9 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
if
(!
ObjectUtils
.
isEmpty
(
et
.
getRefEntityId
())){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
reference
=
et
.
getReference
();
if
(
ObjectUtils
.
isEmpty
(
reference
)){
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
get
(
et
.
getRefEntityId
());
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
majorEntity
=
metaentityService
.
getById
(
et
.
getRefEntityId
());
if
(
ObjectUtils
.
isEmpty
(
majorEntity
))
return
;
et
.
setReference
(
majorEntity
);
reference
=
majorEntity
;
}
...
...
ibzlite-provider/ibzlite-provider-api/src/main/docker/Dockerfile
浏览文件 @
f7864922
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzlite-provider-api.jar
EXPOSE
8081
EXPOSE
40010
ADD
ibzlite-provider-api.jar /ibzlite-provider-api.jar
ibzlite-provider/ibzlite-provider-api/src/main/docker/ibzlite-provider-api.yaml
浏览文件 @
f7864922
...
...
@@ -3,9 +3,22 @@ services:
ibzlite-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzlite-provider-api:latest
ports
:
-
"
8081:8081
"
-
"
40010:40010
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=40010
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
NACOS=172.16.102.211:8848
deploy
:
resources
:
limits
:
...
...
ibzlite-util/src/main/java/cn/ibizlab/util/client/IBZLiteFeignClient.java
浏览文件 @
f7864922
...
...
@@ -12,6 +12,6 @@ public interface IBZLiteFeignClient
* @param system 系统模型信息
* @return
*/
@PostMapping
(
"/
dstsystems/save
"
)
@PostMapping
(
"/
lite/syncsysmodel
"
)
Boolean
syncSysModel
(
@RequestBody
JSONObject
system
);
}
ibzlite-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
f7864922
...
...
@@ -65,12 +65,7 @@ public class PermissionSyncJob implements ApplicationRunner {
try
{
InputStream
sysModel
=
this
.
getClass
().
getResourceAsStream
(
"/sysmodel/ibzlite.json"
);
//获取当前系统所有实体资源能力
String
strSysModel
=
IOUtils
.
toString
(
sysModel
,
"UTF-8"
);
JSONObject
system
=
new
JSONObject
();
system
.
put
(
"pssystemid"
,
systemId
);
system
.
put
(
"pssystemname"
,
systemName
);
system
.
put
(
"sysstructure"
,
JSONObject
.
parseObject
(
strSysModel
));
system
.
put
(
"md5check"
,
DigestUtils
.
md5DigestAsHex
(
strSysModel
.
getBytes
()));
if
(
liteFeignClient
.
syncSysModel
(
system
)){
if
(
liteFeignClient
.
syncSysModel
(
JSONObject
.
parseObject
(
strSysModel
))){
log
.
info
(
"向[lite]同步系统模型成功"
);
}
else
{
log
.
error
(
"向[lite]同步系统模型失败"
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录