提交 1a7808a1 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码 [ibz-lite,应用]

上级 ec730ec7
...@@ -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>
......
...@@ -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 30010 EXPOSE 8080
ADD ibzlite-app-web.jar /ibzlite-app-web.jar ADD ibzlite-app-web.jar /ibzlite-app-web.jar
...@@ -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:30010" - "8080:8080"
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:
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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);
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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
} }
......
...@@ -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());
}
} }
......
...@@ -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
} }
......
...@@ -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);
} }
......
...@@ -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());
}
} }
......
...@@ -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());
}
} }
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册