提交 4ba88071 编写于 作者: ibizdev's avatar ibizdev

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

上级 064f97e0
...@@ -54,9 +54,6 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl ...@@ -54,9 +54,6 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.lite.service.IMetaModelService metamodelService; protected cn.ibizlab.core.lite.service.IMetaModelService metamodelService;
@Autowired
@Lazy
IDABuildService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -183,7 +180,7 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl ...@@ -183,7 +180,7 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> 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);
} }
} }
...@@ -201,10 +198,10 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl ...@@ -201,10 +198,10 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> 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;
} }
...@@ -223,10 +220,10 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl ...@@ -223,10 +220,10 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> 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);
} }
} }
...@@ -240,6 +237,9 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl ...@@ -240,6 +237,9 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl
this.remove(new QueryWrapper<DABuild>().eq("modelid",id)); this.remove(new QueryWrapper<DABuild>().eq("modelid",id));
} }
public IDABuildService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
@Override @Override
public void saveByModelId(String id,List<DABuild> list) { public void saveByModelId(String id,List<DABuild> list) {
if(list==null) if(list==null)
...@@ -262,11 +262,11 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl ...@@ -262,11 +262,11 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl
_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);
} }
...@@ -330,6 +330,7 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl ...@@ -330,6 +330,7 @@ public class DABuildServiceImpl extends ServiceImpl<DABuildMapper, DABuild> impl
} }
......
...@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils; ...@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service("DAChartServiceImpl") @Service("DAChartServiceImpl")
public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> implements IDAChartService { public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> implements IDAChartService {
@Autowired
@Lazy
IDAChartService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -136,7 +133,7 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> impl ...@@ -136,7 +133,7 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> 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);
} }
} }
...@@ -153,10 +150,10 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> impl ...@@ -153,10 +150,10 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> 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;
} }
...@@ -174,10 +171,10 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> impl ...@@ -174,10 +171,10 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> 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);
} }
} }
...@@ -226,6 +223,10 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> impl ...@@ -226,6 +223,10 @@ public class DAChartServiceImpl extends ServiceImpl<DAChartMapper, DAChart> impl
public IDAChartService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -111,9 +111,9 @@ public class DADimensionServiceImpl implements IDADimensionService { ...@@ -111,9 +111,9 @@ public class DADimensionServiceImpl implements IDADimensionService {
this.removeBatch(delIds); this.removeBatch(delIds);
} }
@Autowired public IDADimensionService getProxyService() {
@Lazy return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
IDADimensionService proxyService; }
@Override @Override
public void saveByBuildid(String build_id,List<DADimension> list) { public void saveByBuildid(String build_id,List<DADimension> list) {
if(list==null) if(list==null)
...@@ -136,11 +136,11 @@ public class DADimensionServiceImpl implements IDADimensionService { ...@@ -136,11 +136,11 @@ public class DADimensionServiceImpl implements IDADimensionService {
_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 DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i ...@@ -51,9 +51,6 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.analysis.service.IDABuildService dabuildService; protected cn.ibizlab.core.analysis.service.IDABuildService dabuildService;
@Autowired
@Lazy
IDAMetricService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -144,7 +141,7 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i ...@@ -144,7 +141,7 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i
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 DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i ...@@ -162,10 +159,10 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i
} }
} }
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 DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i ...@@ -184,10 +181,10 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i
} }
} }
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);
} }
} }
...@@ -217,6 +214,9 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i ...@@ -217,6 +214,9 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i
this.remove(new QueryWrapper<DAMetric>().eq("buildid",build_id)); this.remove(new QueryWrapper<DAMetric>().eq("buildid",build_id));
} }
public IDAMetricService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
@Override @Override
public void saveByBuildId(String build_id,List<DAMetric> list) { public void saveByBuildId(String build_id,List<DAMetric> list) {
if(list==null) if(list==null)
...@@ -239,11 +239,11 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i ...@@ -239,11 +239,11 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i
_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);
} }
...@@ -308,6 +308,7 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i ...@@ -308,6 +308,7 @@ public class DAMetricServiceImpl extends ServiceImpl<DAMetricMapper, DAMetric> i
} }
......
...@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils; ...@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service("DAReportServiceImpl") @Service("DAReportServiceImpl")
public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> implements IDAReportService { public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> implements IDAReportService {
@Autowired
@Lazy
IDAReportService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -136,7 +133,7 @@ public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i ...@@ -136,7 +133,7 @@ public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i
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 DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i ...@@ -153,10 +150,10 @@ public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i
} }
} }
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 DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i ...@@ -174,10 +171,10 @@ public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i
} }
} }
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 DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i ...@@ -226,6 +223,10 @@ public class DAReportServiceImpl extends ServiceImpl<DAReportMapper, DAReport> i
public IDAReportService 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;
...@@ -155,7 +152,7 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D ...@@ -155,7 +152,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);
} }
} }
...@@ -172,10 +169,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D ...@@ -172,10 +169,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;
} }
...@@ -193,10 +190,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D ...@@ -193,10 +190,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);
} }
} }
...@@ -245,6 +242,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D ...@@ -245,6 +242,10 @@ public class DstDataSourceServiceImpl extends ServiceImpl<DstDataSourceMapper, D
public IDstDataSourceService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -57,9 +57,6 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem ...@@ -57,9 +57,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;
...@@ -145,7 +142,7 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem ...@@ -145,7 +142,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);
} }
} }
...@@ -162,10 +159,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem ...@@ -162,10 +159,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;
} }
...@@ -183,10 +180,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem ...@@ -183,10 +180,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);
} }
} }
...@@ -251,6 +248,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem ...@@ -251,6 +248,10 @@ public class DstSystemServiceImpl extends ServiceImpl<DstSystemMapper, DstSystem
public IDstSystemService 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
} }
......
...@@ -66,9 +66,6 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt ...@@ -66,9 +66,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;
...@@ -191,7 +188,7 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt ...@@ -191,7 +188,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);
} }
} }
...@@ -209,10 +206,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt ...@@ -209,10 +206,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;
} }
...@@ -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);
} }
} }
...@@ -346,6 +343,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt ...@@ -346,6 +343,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);
} }
......
...@@ -60,9 +60,6 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel ...@@ -60,9 +60,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;
...@@ -204,7 +201,7 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel ...@@ -204,7 +201,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);
} }
} }
...@@ -221,10 +218,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel ...@@ -221,10 +218,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;
} }
...@@ -242,10 +239,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel ...@@ -242,10 +239,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);
} }
} }
...@@ -303,6 +300,10 @@ public class MetaModelServiceImpl extends ServiceImpl<MetaModelMapper, MetaModel ...@@ -303,6 +300,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;
...@@ -147,7 +144,7 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap ...@@ -147,7 +144,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);
} }
} }
...@@ -165,10 +162,10 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap ...@@ -165,10 +162,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;
} }
...@@ -187,10 +184,10 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap ...@@ -187,10 +184,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);
} }
} }
...@@ -204,6 +201,9 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap ...@@ -204,6 +201,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)
...@@ -226,11 +226,11 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap ...@@ -226,11 +226,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
...@@ -264,11 +264,11 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap ...@@ -264,11 +264,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);
} }
...@@ -342,6 +342,7 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap ...@@ -342,6 +342,7 @@ public class MetaRelationshipServiceImpl extends ServiceImpl<MetaRelationshipMap
} }
......
...@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils; ...@@ -48,9 +48,6 @@ import org.springframework.util.StringUtils;
@Service("ExecLogServiceImpl") @Service("ExecLogServiceImpl")
public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> implements IExecLogService { public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> implements IExecLogService {
@Autowired
@Lazy
IExecLogService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -136,7 +133,7 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> impl ...@@ -136,7 +133,7 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> 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);
} }
} }
...@@ -153,10 +150,10 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> impl ...@@ -153,10 +150,10 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> 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;
} }
...@@ -174,10 +171,10 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> impl ...@@ -174,10 +171,10 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> 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);
} }
} }
...@@ -226,6 +223,10 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> impl ...@@ -226,6 +223,10 @@ public class ExecLogServiceImpl extends ServiceImpl<ExecLogMapper, ExecLog> impl
public IExecLogService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -51,9 +51,6 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes ...@@ -51,9 +51,6 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.rule.service.IRuleItemService ruleitemService; protected cn.ibizlab.core.rule.service.IRuleItemService ruleitemService;
@Autowired
@Lazy
IExecResultService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -160,7 +157,7 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes ...@@ -160,7 +157,7 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes
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);
} }
} }
...@@ -178,10 +175,10 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes ...@@ -178,10 +175,10 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes
} }
} }
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;
} }
...@@ -200,10 +197,10 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes ...@@ -200,10 +197,10 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes
} }
} }
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);
} }
} }
...@@ -294,6 +291,10 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes ...@@ -294,6 +291,10 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes
public IExecResultService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
} }
......
...@@ -54,9 +54,6 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i ...@@ -54,9 +54,6 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i
@Autowired @Autowired
@Lazy @Lazy
protected cn.ibizlab.core.lite.service.IMetaModelService metamodelService; protected cn.ibizlab.core.lite.service.IMetaModelService metamodelService;
@Autowired
@Lazy
IRuleItemService proxyService;
protected int batchSize = 500; protected int batchSize = 500;
...@@ -179,7 +176,7 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i ...@@ -179,7 +176,7 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i
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);
} }
} }
...@@ -197,10 +194,10 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i ...@@ -197,10 +194,10 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i
} }
} }
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;
} }
...@@ -219,10 +216,10 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i ...@@ -219,10 +216,10 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i
} }
} }
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);
} }
} }
...@@ -236,6 +233,9 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i ...@@ -236,6 +233,9 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i
this.remove(new QueryWrapper<RuleItem>().eq("modelid",id)); this.remove(new QueryWrapper<RuleItem>().eq("modelid",id));
} }
public IRuleItemService getProxyService() {
return cn.ibizlab.util.security.SpringContextHolder.getBean(this.getClass());
}
@Override @Override
public void saveByModelId(String id,List<RuleItem> list) { public void saveByModelId(String id,List<RuleItem> list) {
if(list==null) if(list==null)
...@@ -258,11 +258,11 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i ...@@ -258,11 +258,11 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i
_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);
} }
...@@ -326,6 +326,7 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i ...@@ -326,6 +326,7 @@ public class RuleItemServiceImpl extends ServiceImpl<RuleItemMapper, RuleItem> i
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--输出实体[DA_BUILD]数据结构 --> <!--输出实体[DA_BUILD]数据结构 -->
<changeSet author="root" id="tab-da_build-71-1"> <changeSet author="a_A_5d9d78509" id="tab-da_build-71-1">
<createTable tableName="IBZDABUILD"> <createTable tableName="IBZDABUILD">
<column name="BUILDID" remarks="" type="VARCHAR(100)"> <column name="BUILDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_BUILD_BUILDID"/> <constraints primaryKey="true" primaryKeyName="PK_DA_BUILD_BUILDID"/>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!--输出实体[DA_CHART]数据结构 --> <!--输出实体[DA_CHART]数据结构 -->
<changeSet author="root" id="tab-da_chart-22-2"> <changeSet author="a_A_5d9d78509" id="tab-da_chart-22-2">
<createTable tableName="IBZDACHART"> <createTable tableName="IBZDACHART">
<column name="CHARTID" remarks="" type="VARCHAR(100)"> <column name="CHARTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_CHART_CHARTID"/> <constraints primaryKey="true" primaryKeyName="PK_DA_CHART_CHARTID"/>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<!--输出实体[DA_METRIC]数据结构 --> <!--输出实体[DA_METRIC]数据结构 -->
<changeSet author="root" id="tab-da_metric-63-3"> <changeSet author="a_A_5d9d78509" id="tab-da_metric-63-3">
<createTable tableName="IBZDAMETRIC"> <createTable tableName="IBZDAMETRIC">
<column name="DA_METRICID" remarks="" type="VARCHAR(100)"> <column name="DA_METRICID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_METRIC_DA_METRICID"/> <constraints primaryKey="true" primaryKeyName="PK_DA_METRIC_DA_METRICID"/>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<!--输出实体[DA_REPORT]数据结构 --> <!--输出实体[DA_REPORT]数据结构 -->
<changeSet author="root" id="tab-da_report-24-4"> <changeSet author="a_A_5d9d78509" id="tab-da_report-24-4">
<createTable tableName="IBZDAREPORT"> <createTable tableName="IBZDAREPORT">
<column name="REPORTID" remarks="" type="VARCHAR(100)"> <column name="REPORTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_REPORT_REPORTID"/> <constraints primaryKey="true" primaryKeyName="PK_DA_REPORT_REPORTID"/>
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 --> <!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet author="root" id="tab-dst_datasource-6-5"> <changeSet author="a_A_5d9d78509" id="tab-dst_datasource-6-5">
<createTable tableName="IBZDATASOURCE"> <createTable tableName="IBZDATASOURCE">
<column name="DSID" remarks="" type="VARCHAR(100)"> <column name="DSID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/> <constraints primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<!--输出实体[DST_SYSTEM]数据结构 --> <!--输出实体[DST_SYSTEM]数据结构 -->
<changeSet author="root" id="tab-dst_system-5-6"> <changeSet author="a_A_5d9d78509" id="tab-dst_system-5-6">
<createTable tableName="IBZPSSYSTEM"> <createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)"> <column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_SYSTEM_PSSYSTEMID"/> <constraints primaryKey="true" primaryKeyName="PK_DST_SYSTEM_PSSYSTEMID"/>
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<!--输出实体[RU_EXECLOG]数据结构 --> <!--输出实体[RU_EXECLOG]数据结构 -->
<changeSet author="root" id="tab-ru_execlog-31-7"> <changeSet author="a_A_5d9d78509" id="tab-ru_execlog-31-7">
<createTable tableName="IBZRULELOG"> <createTable tableName="IBZRULELOG">
<column name="RU_EXECLOGID" remarks="" type="VARCHAR(100)"> <column name="RU_EXECLOGID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_EXECLOG_RU_EXECLOGID"/> <constraints primaryKey="true" primaryKeyName="PK_RU_EXECLOG_RU_EXECLOGID"/>
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
<!--输出实体[RU_EXECRESULT]数据结构 --> <!--输出实体[RU_EXECRESULT]数据结构 -->
<changeSet author="root" id="tab-ru_execresult-46-8"> <changeSet author="a_A_5d9d78509" id="tab-ru_execresult-46-8">
<createTable tableName="IBZRULERESULT"> <createTable tableName="IBZRULERESULT">
<column name="RU_EXECRESULTID" remarks="" type="VARCHAR(100)"> <column name="RU_EXECRESULTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_EXECRESULT_RU_EXECRESULT"/> <constraints primaryKey="true" primaryKeyName="PK_RU_EXECRESULT_RU_EXECRESULT"/>
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
<!--输出实体[META_DATASET]数据结构 --> <!--输出实体[META_DATASET]数据结构 -->
<changeSet author="root" id="tab-meta_dataset-2-9"> <changeSet author="a_A_5d9d78509" id="tab-meta_dataset-2-9">
<createTable tableName="IBZDATASET"> <createTable tableName="IBZDATASET">
<column name="DATASETID" remarks="" type="VARCHAR(100)"> <column name="DATASETID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/> <constraints primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/>
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
<!--输出实体[META_ENTITY]数据结构 --> <!--输出实体[META_ENTITY]数据结构 -->
<changeSet author="root" id="tab-meta_entity-13-10"> <changeSet author="a_A_5d9d78509" id="tab-meta_entity-13-10">
<createTable tableName="IBZENTITY"> <createTable tableName="IBZENTITY">
<column name="ENTITYID" remarks="" type="VARCHAR(100)"> <column name="ENTITYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/> <constraints primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/>
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
<!--输出实体[META_FIELD]数据结构 --> <!--输出实体[META_FIELD]数据结构 -->
<changeSet author="root" id="tab-meta_field-7-11"> <changeSet author="a_A_5d9d78509" id="tab-meta_field-7-11">
<createTable tableName="IBZFIELD"> <createTable tableName="IBZFIELD">
<column name="FIELDID" remarks="" type="VARCHAR(100)"> <column name="FIELDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/> <constraints primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/>
...@@ -328,7 +328,7 @@ ...@@ -328,7 +328,7 @@
<!--输出实体[META_MODEL]数据结构 --> <!--输出实体[META_MODEL]数据结构 -->
<changeSet author="root" id="tab-meta_model-64-12"> <changeSet author="a_A_5d9d78509" id="tab-meta_model-64-12">
<createTable tableName="IBZMODEL"> <createTable tableName="IBZMODEL">
<column name="MODELID" remarks="" type="VARCHAR(100)"> <column name="MODELID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODEL_MODELID"/> <constraints primaryKey="true" primaryKeyName="PK_META_MODEL_MODELID"/>
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
<!--输出实体[META_MODULE]数据结构 --> <!--输出实体[META_MODULE]数据结构 -->
<changeSet author="root" id="tab-meta_module-7-13"> <changeSet author="a_A_5d9d78509" id="tab-meta_module-7-13">
<createTable tableName="IBZMODULE"> <createTable tableName="IBZMODULE">
<column name="MODULEID" remarks="" type="VARCHAR(100)"> <column name="MODULEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODULE_MODULEID"/> <constraints primaryKey="true" primaryKeyName="PK_META_MODULE_MODULEID"/>
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
<!--输出实体[META_RELATION]数据结构 --> <!--输出实体[META_RELATION]数据结构 -->
<changeSet author="root" id="tab-meta_relation-6-14"> <changeSet author="a_A_5d9d78509" id="tab-meta_relation-6-14">
<createTable tableName="IBZRELATION"> <createTable tableName="IBZRELATION">
<column name="RELATIONID" remarks="" type="VARCHAR(100)"> <column name="RELATIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/> <constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/>
...@@ -404,7 +404,7 @@ ...@@ -404,7 +404,7 @@
<!--输出实体[RU_ENGINE]数据结构 --> <!--输出实体[RU_ENGINE]数据结构 -->
<changeSet author="root" id="tab-ru_engine-45-15"> <changeSet author="a_A_5d9d78509" id="tab-ru_engine-45-15">
<createTable tableName="IBZRULEENGINE"> <createTable tableName="IBZRULEENGINE">
<column name="ENGINEID" remarks="" type="VARCHAR(100)"> <column name="ENGINEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_ENGINE_ENGINEID"/> <constraints primaryKey="true" primaryKeyName="PK_RU_ENGINE_ENGINEID"/>
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
<!--输出实体[RU_ITEM]数据结构 --> <!--输出实体[RU_ITEM]数据结构 -->
<changeSet author="root" id="tab-ru_item-79-16"> <changeSet author="a_A_5d9d78509" id="tab-ru_item-79-16">
<createTable tableName="IBZRULE"> <createTable tableName="IBZRULE">
<column name="RULEID" remarks="" type="VARCHAR(100)"> <column name="RULEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_ITEM_RULEID"/> <constraints primaryKey="true" primaryKeyName="PK_RU_ITEM_RULEID"/>
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
<!--输出实体[DA_BUILD]外键关系 --> <!--输出实体[DA_BUILD]外键关系 -->
<!--输出实体[DA_CHART]外键关系 --> <!--输出实体[DA_CHART]外键关系 -->
<!--输出实体[DA_METRIC]外键关系 --> <!--输出实体[DA_METRIC]外键关系 -->
<changeSet author="root" id="fk-da_metric-63-17"> <changeSet author="a_A_5d9d78509" id="fk-da_metric-63-17">
<addForeignKeyConstraint baseColumnNames="BUILDID" baseTableName="IBZDAMETRIC" constraintName="DER1N_DA_METRIC_DA_BUILD_BUILD" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="BUILDID" referencedTableName="IBZDABUILD" validate="true"/> <addForeignKeyConstraint baseColumnNames="BUILDID" baseTableName="IBZDAMETRIC" constraintName="DER1N_DA_METRIC_DA_BUILD_BUILD" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="BUILDID" referencedTableName="IBZDABUILD" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[DA_REPORT]外键关系 --> <!--输出实体[DA_REPORT]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册