Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
1a7808a1
提交
1a7808a1
编写于
1月 02, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibz-lite,应用]
上级
ec730ec7
变更
21
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
165 行增加
和
167 行删除
+165
-167
config.xml
config.xml
+0
-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
-15
BladeVisualCategoryServiceImpl.java
...avuedata/service/impl/BladeVisualCategoryServiceImpl.java
+9
-8
BladeVisualConfigServiceImpl.java
...e/avuedata/service/impl/BladeVisualConfigServiceImpl.java
+9
-8
BladeVisualMapServiceImpl.java
...core/avuedata/service/impl/BladeVisualMapServiceImpl.java
+9
-8
BladeVisualServiceImpl.java
...ab/core/avuedata/service/impl/BladeVisualServiceImpl.java
+9
-8
IDstDataSourceService.java
...a/cn/ibizlab/core/lite/service/IDstDataSourceService.java
+1
-0
DstComponentServiceImpl.java
...izlab/core/lite/service/impl/DstComponentServiceImpl.java
+9
-8
DstConfigServiceImpl.java
.../ibizlab/core/lite/service/impl/DstConfigServiceImpl.java
+9
-8
DstDataSourceServiceImpl.java
...zlab/core/lite/service/impl/DstDataSourceServiceImpl.java
+9
-8
DstRouterServiceImpl.java
.../ibizlab/core/lite/service/impl/DstRouterServiceImpl.java
+9
-8
DstSystemServiceImpl.java
.../ibizlab/core/lite/service/impl/DstSystemServiceImpl.java
+9
-8
DstViewServiceImpl.java
...cn/ibizlab/core/lite/service/impl/DstViewServiceImpl.java
+9
-8
MetaDataSetServiceImpl.java
...bizlab/core/lite/service/impl/MetaDataSetServiceImpl.java
+12
-11
MetaEntityServiceImpl.java
...ibizlab/core/lite/service/impl/MetaEntityServiceImpl.java
+9
-8
MetaFieldServiceImpl.java
.../ibizlab/core/lite/service/impl/MetaFieldServiceImpl.java
+12
-11
MetaLookupServiceImpl.java
...ibizlab/core/lite/service/impl/MetaLookupServiceImpl.java
+6
-6
MetaModelServiceImpl.java
.../ibizlab/core/lite/service/impl/MetaModelServiceImpl.java
+9
-8
MetaModuleServiceImpl.java
...ibizlab/core/lite/service/impl/MetaModuleServiceImpl.java
+9
-8
MetaRelationshipServiceImpl.java
...b/core/lite/service/impl/MetaRelationshipServiceImpl.java
+15
-14
未找到文件。
config.xml
浏览文件 @
1a7808a1
...
@@ -37,11 +37,6 @@
...
@@ -37,11 +37,6 @@
git clone -b master $para2 ibzlite/
git clone -b master $para2 ibzlite/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzlite/
cd ibzlite/
mvn clean package -Pweb
cd ibzlite-app/ibzlite-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzlite-app-web.yaml ibzlab-rt --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibzlite-app/ibzlite-app-web/src/main/docker/Dockerfile
浏览文件 @
1a7808a1
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzlite-app-web.jar
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
ADD
ibzlite-app-web.jar /ibzlite-app-web.jar
ibzlite-app/ibzlite-app-web/src/main/docker/ibzlite-app-web.yaml
浏览文件 @
1a7808a1
...
@@ -3,23 +3,9 @@ services:
...
@@ -3,23 +3,9 @@ services:
ibzlite-app-web
:
ibzlite-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzlite-app-web:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzlite-app-web:latest
ports
:
ports
:
-
"
30010:3001
0"
-
"
8080:808
0"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=30010
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.100.243: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.100.243:8848
-
SPRING_CLOUD_NACOS_DISCOVERY_GROUP=ibizdev
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/avuedata/service/impl/BladeVisualCategoryServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service
(
"BladeVisualCategoryServiceImpl"
)
@Service
(
"BladeVisualCategoryServiceImpl"
)
public
class
BladeVisualCategoryServiceImpl
extends
ServiceImpl
<
BladeVisualCategoryMapper
,
BladeVisualCategory
>
implements
IBladeVisualCategoryService
{
public
class
BladeVisualCategoryServiceImpl
extends
ServiceImpl
<
BladeVisualCategoryMapper
,
BladeVisualCategory
>
implements
IBladeVisualCategoryService
{
@Autowired
@Lazy
IBladeVisualCategoryService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -136,7 +133,7 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
...
@@ -136,7 +133,7 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -153,10 +150,10 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
...
@@ -153,10 +150,10 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -174,10 +171,10 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
...
@@ -174,10 +171,10 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -226,6 +223,10 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
...
@@ -226,6 +223,10 @@ public class BladeVisualCategoryServiceImpl extends ServiceImpl<BladeVisualCateg
public
IBladeVisualCategoryService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/avuedata/service/impl/BladeVisualConfigServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service
(
"BladeVisualConfigServiceImpl"
)
@Service
(
"BladeVisualConfigServiceImpl"
)
public
class
BladeVisualConfigServiceImpl
extends
ServiceImpl
<
BladeVisualConfigMapper
,
BladeVisualConfig
>
implements
IBladeVisualConfigService
{
public
class
BladeVisualConfigServiceImpl
extends
ServiceImpl
<
BladeVisualConfigMapper
,
BladeVisualConfig
>
implements
IBladeVisualConfigService
{
@Autowired
@Lazy
IBladeVisualConfigService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -136,7 +133,7 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
...
@@ -136,7 +133,7 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -153,10 +150,10 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
...
@@ -153,10 +150,10 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -174,10 +171,10 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
...
@@ -174,10 +171,10 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -226,6 +223,10 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
...
@@ -226,6 +223,10 @@ public class BladeVisualConfigServiceImpl extends ServiceImpl<BladeVisualConfigM
public
IBladeVisualConfigService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/avuedata/service/impl/BladeVisualMapServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service
(
"BladeVisualMapServiceImpl"
)
@Service
(
"BladeVisualMapServiceImpl"
)
public
class
BladeVisualMapServiceImpl
extends
ServiceImpl
<
BladeVisualMapMapper
,
BladeVisualMap
>
implements
IBladeVisualMapService
{
public
class
BladeVisualMapServiceImpl
extends
ServiceImpl
<
BladeVisualMapMapper
,
BladeVisualMap
>
implements
IBladeVisualMapService
{
@Autowired
@Lazy
IBladeVisualMapService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -136,7 +133,7 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
...
@@ -136,7 +133,7 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -153,10 +150,10 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
...
@@ -153,10 +150,10 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -174,10 +171,10 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
...
@@ -174,10 +171,10 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -226,6 +223,10 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
...
@@ -226,6 +223,10 @@ public class BladeVisualMapServiceImpl extends ServiceImpl<BladeVisualMapMapper,
public
IBladeVisualMapService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/avuedata/service/impl/BladeVisualServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
...
@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service
(
"BladeVisualServiceImpl"
)
@Service
(
"BladeVisualServiceImpl"
)
public
class
BladeVisualServiceImpl
extends
ServiceImpl
<
BladeVisualMapper
,
BladeVisual
>
implements
IBladeVisualService
{
public
class
BladeVisualServiceImpl
extends
ServiceImpl
<
BladeVisualMapper
,
BladeVisual
>
implements
IBladeVisualService
{
@Autowired
@Lazy
IBladeVisualService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -136,7 +133,7 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
...
@@ -136,7 +133,7 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -153,10 +150,10 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
...
@@ -153,10 +150,10 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -174,10 +171,10 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
...
@@ -174,10 +171,10 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -226,6 +223,10 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
...
@@ -226,6 +223,10 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
public
IBladeVisualService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/IDstDataSourceService.java
浏览文件 @
1a7808a1
...
@@ -23,6 +23,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -23,6 +23,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
/**
/**
* 实体[DstDataSource] 服务对象接口
* 实体[DstDataSource] 服务对象接口
*/
*/
@com
.
baomidou
.
dynamic
.
datasource
.
annotation
.
DS
(
"db2"
)
public
interface
IDstDataSourceService
extends
IService
<
DstDataSource
>
{
public
interface
IDstDataSourceService
extends
IService
<
DstDataSource
>
{
boolean
create
(
DstDataSource
et
);
boolean
create
(
DstDataSource
et
);
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstComponentServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -54,9 +54,6 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
...
@@ -54,9 +54,6 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
@Autowired
@Lazy
IDstComponentService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -147,7 +144,7 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
...
@@ -147,7 +144,7 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -165,10 +162,10 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
...
@@ -165,10 +162,10 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -187,10 +184,10 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
...
@@ -187,10 +184,10 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -298,6 +295,10 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
...
@@ -298,6 +295,10 @@ public class DstComponentServiceImpl extends ServiceImpl<DstComponentMapper, Dst
public
IDstComponentService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstConfigServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -51,9 +51,6 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
...
@@ -51,9 +51,6 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
@Autowired
@Lazy
IDstConfigService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -155,7 +152,7 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
...
@@ -155,7 +152,7 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -172,10 +169,10 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
...
@@ -172,10 +169,10 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -193,10 +190,10 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
...
@@ -193,10 +190,10 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -254,6 +251,10 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
...
@@ -254,6 +251,10 @@ public class DstConfigServiceImpl extends ServiceImpl<DstConfigMapper, DstConfig
public
IDstConfigService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstDataSourceServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -51,9 +51,6 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
...
@@ -51,9 +51,6 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
@Autowired
@Lazy
IDstDataSourceService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -171,7 +168,7 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
...
@@ -171,7 +168,7 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -188,10 +185,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
...
@@ -188,10 +185,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -209,10 +206,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
...
@@ -209,10 +206,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -261,6 +258,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
...
@@ -261,6 +258,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
public
IDstDataSourceService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstRouterServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -53,9 +53,6 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
...
@@ -53,9 +53,6 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
@Autowired
@Lazy
IDstRouterService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -141,7 +138,7 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
...
@@ -141,7 +138,7 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -158,10 +155,10 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
...
@@ -158,10 +155,10 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -179,10 +176,10 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
...
@@ -179,10 +176,10 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -258,6 +255,10 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
...
@@ -258,6 +255,10 @@ public class DstRouterServiceImpl extends ServiceImpl<DstRouterMapper, DstRouter
public
IDstRouterService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstSystemServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -69,9 +69,6 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
...
@@ -69,9 +69,6 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaModuleService
metamoduleService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaModuleService
metamoduleService
;
@Autowired
@Lazy
IDstSystemService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -173,7 +170,7 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
...
@@ -173,7 +170,7 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -190,10 +187,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
...
@@ -190,10 +187,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -211,10 +208,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
...
@@ -211,10 +208,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -279,6 +276,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
...
@@ -279,6 +276,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
public
IDstSystemService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/DstViewServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -54,9 +54,6 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
...
@@ -54,9 +54,6 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
@Autowired
@Lazy
IDstViewService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -147,7 +144,7 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
...
@@ -147,7 +144,7 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -165,10 +162,10 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
...
@@ -165,10 +162,10 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -187,10 +184,10 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
...
@@ -187,10 +184,10 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -282,6 +279,10 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
...
@@ -282,6 +279,10 @@ public class DstViewServiceImpl extends ServiceImpl<DstViewMapper, DstView> impl
public
IDstViewService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaDataSetServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -51,9 +51,6 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
...
@@ -51,9 +51,6 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
@Autowired
@Lazy
IMetaDataSetService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -144,7 +141,7 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
...
@@ -144,7 +141,7 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -162,10 +159,10 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
...
@@ -162,10 +159,10 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -184,10 +181,10 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
...
@@ -184,10 +181,10 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -201,6 +198,9 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
...
@@ -201,6 +198,9 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
this
.
remove
(
new
QueryWrapper
<
MetaDataSet
>().
eq
(
"entityid"
,
entity_id
));
this
.
remove
(
new
QueryWrapper
<
MetaDataSet
>().
eq
(
"entityid"
,
entity_id
));
}
}
public
IMetaDataSetService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
@Override
@Override
public
void
saveByEntityId
(
String
entity_id
,
List
<
MetaDataSet
>
list
)
{
public
void
saveByEntityId
(
String
entity_id
,
List
<
MetaDataSet
>
list
)
{
if
(
list
==
null
)
if
(
list
==
null
)
...
@@ -223,11 +223,11 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
...
@@ -223,11 +223,11 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
_create
.
add
(
sub
);
_create
.
add
(
sub
);
}
}
if
(
_update
.
size
()>
0
)
if
(
_update
.
size
()>
0
)
proxyService
.
updateBatch
(
_update
);
getProxyService
()
.
updateBatch
(
_update
);
if
(
_create
.
size
()>
0
)
if
(
_create
.
size
()>
0
)
proxyService
.
createBatch
(
_create
);
getProxyService
()
.
createBatch
(
_create
);
if
(
delIds
.
size
()>
0
)
if
(
delIds
.
size
()>
0
)
proxyService
.
removeBatch
(
delIds
);
getProxyService
()
.
removeBatch
(
delIds
);
}
}
...
@@ -290,6 +290,7 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
...
@@ -290,6 +290,7 @@ public class MetaDataSetServiceImpl extends ServiceImpl<MetaDataSetMapper, MetaD
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaEntityServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -72,9 +72,6 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
...
@@ -72,9 +72,6 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaModuleService
metamoduleService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaModuleService
metamoduleService
;
@Autowired
@Lazy
IMetaEntityService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -213,7 +210,7 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
...
@@ -213,7 +210,7 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -231,10 +228,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
...
@@ -231,10 +228,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -253,10 +250,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
...
@@ -253,10 +250,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -368,6 +365,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
...
@@ -368,6 +365,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
public
IMetaEntityService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaFieldServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -56,9 +56,6 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
...
@@ -56,9 +56,6 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaRelationshipService
metarelationshipService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaRelationshipService
metarelationshipService
;
@Autowired
@Lazy
IMetaFieldService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -149,7 +146,7 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
...
@@ -149,7 +146,7 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -167,10 +164,10 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
...
@@ -167,10 +164,10 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -189,10 +186,10 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
...
@@ -189,10 +186,10 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -206,6 +203,9 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
...
@@ -206,6 +203,9 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
this
.
remove
(
new
QueryWrapper
<
MetaField
>().
eq
(
"entityid"
,
entity_id
));
this
.
remove
(
new
QueryWrapper
<
MetaField
>().
eq
(
"entityid"
,
entity_id
));
}
}
public
IMetaFieldService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
@Override
@Override
public
void
saveByEntityId
(
String
entity_id
,
List
<
MetaField
>
list
)
{
public
void
saveByEntityId
(
String
entity_id
,
List
<
MetaField
>
list
)
{
if
(
list
==
null
)
if
(
list
==
null
)
...
@@ -228,11 +228,11 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
...
@@ -228,11 +228,11 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
_create
.
add
(
sub
);
_create
.
add
(
sub
);
}
}
if
(
_update
.
size
()>
0
)
if
(
_update
.
size
()>
0
)
proxyService
.
updateBatch
(
_update
);
getProxyService
()
.
updateBatch
(
_update
);
if
(
_create
.
size
()>
0
)
if
(
_create
.
size
()>
0
)
proxyService
.
createBatch
(
_create
);
getProxyService
()
.
createBatch
(
_create
);
if
(
delIds
.
size
()>
0
)
if
(
delIds
.
size
()>
0
)
proxyService
.
removeBatch
(
delIds
);
getProxyService
()
.
removeBatch
(
delIds
);
}
}
@Override
@Override
...
@@ -337,6 +337,7 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
...
@@ -337,6 +337,7 @@ public class MetaFieldServiceImpl extends ServiceImpl<MetaFieldMapper, MetaField
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaLookupServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -111,9 +111,9 @@ public class MetaLookupServiceImpl implements IMetaLookupService {
...
@@ -111,9 +111,9 @@ public class MetaLookupServiceImpl implements IMetaLookupService {
this
.
removeBatch
(
delIds
);
this
.
removeBatch
(
delIds
);
}
}
@Autowired
public
IMetaLookupService
getProxyService
()
{
@Lazy
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
IMetaLookupService
proxyService
;
}
@Override
@Override
public
void
saveByRelationid
(
String
id
,
List
<
MetaLookup
>
list
)
{
public
void
saveByRelationid
(
String
id
,
List
<
MetaLookup
>
list
)
{
if
(
list
==
null
)
if
(
list
==
null
)
...
@@ -136,11 +136,11 @@ public class MetaLookupServiceImpl implements IMetaLookupService {
...
@@ -136,11 +136,11 @@ public class MetaLookupServiceImpl implements IMetaLookupService {
_create
.
add
(
sub
);
_create
.
add
(
sub
);
}
}
if
(
_update
.
size
()>
0
)
if
(
_update
.
size
()>
0
)
proxyService
.
updateBatch
(
_update
);
getProxyService
()
.
updateBatch
(
_update
);
if
(
_create
.
size
()>
0
)
if
(
_create
.
size
()>
0
)
proxyService
.
createBatch
(
_create
);
getProxyService
()
.
createBatch
(
_create
);
if
(
delIds
.
size
()>
0
)
if
(
delIds
.
size
()>
0
)
proxyService
.
removeBatch
(
delIds
);
getProxyService
()
.
removeBatch
(
delIds
);
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaModelServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -51,9 +51,6 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
...
@@ -51,9 +51,6 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
@Autowired
@Lazy
IMetaModelService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -155,7 +152,7 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
...
@@ -155,7 +152,7 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -172,10 +169,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
...
@@ -172,10 +169,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -193,10 +190,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
...
@@ -193,10 +190,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -254,6 +251,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
...
@@ -254,6 +251,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel
public
IMetaModelService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaModuleServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -54,9 +54,6 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
...
@@ -54,9 +54,6 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IDstSystemService
dstsystemService
;
@Autowired
@Lazy
IMetaModuleService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -142,7 +139,7 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
...
@@ -142,7 +139,7 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -159,10 +156,10 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
...
@@ -159,10 +156,10 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -180,10 +177,10 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
...
@@ -180,10 +177,10 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -241,6 +238,10 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
...
@@ -241,6 +238,10 @@ public class MetaModuleServiceImpl extends ServiceImpl<MetaModuleMapper, MetaMod
public
IMetaModuleService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
}
}
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/service/impl/MetaRelationshipServiceImpl.java
浏览文件 @
1a7808a1
...
@@ -54,9 +54,6 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -54,9 +54,6 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
@Autowired
@Autowired
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
protected
cn
.
ibizlab
.
core
.
lite
.
service
.
IMetaEntityService
metaentityService
;
@Autowired
@Lazy
IMetaRelationshipService
proxyService
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
...
@@ -163,7 +160,7 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -163,7 +160,7 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
if
(
null
==
et
)
{
if
(
null
==
et
)
{
return
false
;
return
false
;
}
else
{
}
else
{
return
checkKey
(
et
)
?
proxyService
.
update
(
et
)
:
proxyService
.
create
(
et
);
return
checkKey
(
et
)
?
getProxyService
().
update
(
et
)
:
getProxyService
()
.
create
(
et
);
}
}
}
}
...
@@ -181,10 +178,10 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -181,10 +178,10 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
return
true
;
return
true
;
}
}
...
@@ -203,10 +200,10 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -203,10 +200,10 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
}
}
}
}
if
(
create
.
size
()
>
0
)
{
if
(
create
.
size
()
>
0
)
{
proxyService
.
createBatch
(
create
);
getProxyService
()
.
createBatch
(
create
);
}
}
if
(
update
.
size
()
>
0
)
{
if
(
update
.
size
()
>
0
)
{
proxyService
.
updateBatch
(
update
);
getProxyService
()
.
updateBatch
(
update
);
}
}
}
}
...
@@ -220,6 +217,9 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -220,6 +217,9 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
this
.
remove
(
new
QueryWrapper
<
MetaRelationship
>().
eq
(
"entityid"
,
entity_id
));
this
.
remove
(
new
QueryWrapper
<
MetaRelationship
>().
eq
(
"entityid"
,
entity_id
));
}
}
public
IMetaRelationshipService
getProxyService
()
{
return
cn
.
ibizlab
.
util
.
security
.
SpringContextHolder
.
getBean
(
this
.
getClass
());
}
@Override
@Override
public
void
saveByEntityId
(
String
entity_id
,
List
<
MetaRelationship
>
list
)
{
public
void
saveByEntityId
(
String
entity_id
,
List
<
MetaRelationship
>
list
)
{
if
(
list
==
null
)
if
(
list
==
null
)
...
@@ -242,11 +242,11 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -242,11 +242,11 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
_create
.
add
(
sub
);
_create
.
add
(
sub
);
}
}
if
(
_update
.
size
()>
0
)
if
(
_update
.
size
()>
0
)
proxyService
.
updateBatch
(
_update
);
getProxyService
()
.
updateBatch
(
_update
);
if
(
_create
.
size
()>
0
)
if
(
_create
.
size
()>
0
)
proxyService
.
createBatch
(
_create
);
getProxyService
()
.
createBatch
(
_create
);
if
(
delIds
.
size
()>
0
)
if
(
delIds
.
size
()>
0
)
proxyService
.
removeBatch
(
delIds
);
getProxyService
()
.
removeBatch
(
delIds
);
}
}
@Override
@Override
...
@@ -280,11 +280,11 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -280,11 +280,11 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
_create
.
add
(
sub
);
_create
.
add
(
sub
);
}
}
if
(
_update
.
size
()>
0
)
if
(
_update
.
size
()>
0
)
proxyService
.
updateBatch
(
_update
);
getProxyService
()
.
updateBatch
(
_update
);
if
(
_create
.
size
()>
0
)
if
(
_create
.
size
()>
0
)
proxyService
.
createBatch
(
_create
);
getProxyService
()
.
createBatch
(
_create
);
if
(
delIds
.
size
()>
0
)
if
(
delIds
.
size
()>
0
)
proxyService
.
removeBatch
(
delIds
);
getProxyService
()
.
removeBatch
(
delIds
);
}
}
...
@@ -358,6 +358,7 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
...
@@ -358,6 +358,7 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录