|
@@ -370,6 +370,7 @@ public class JmReportDbService implements IJmReportDbService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public Map loadDbData(String dbId) {
|
|
public Map loadDbData(String dbId) {
|
|
HashMap var2 = new HashMap();
|
|
HashMap var2 = new HashMap();
|
|
JmReportDb var3 = this.reportDbDao.get(dbId);
|
|
JmReportDb var3 = this.reportDbDao.get(dbId);
|
|
@@ -386,6 +387,7 @@ public class JmReportDbService implements IJmReportDbService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public List<JmReportDataSource> initDataSource(String createBy) {
|
|
public List<JmReportDataSource> initDataSource(String createBy) {
|
|
List var2 = this.jmReportDbSourceService.querySourceList(createBy);
|
|
List var2 = this.jmReportDbSourceService.querySourceList(createBy);
|
|
if (oConvertUtils.isNotEmpty(var2)) {
|
|
if (oConvertUtils.isNotEmpty(var2)) {
|
|
@@ -403,10 +405,12 @@ public class JmReportDbService implements IJmReportDbService {
|
|
return var2;
|
|
return var2;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public void saveDbSource(JmReportDataSource sysDataSource) {
|
|
public void saveDbSource(JmReportDataSource sysDataSource) {
|
|
this.jmReportDbSourceService.saveOrUpdate(sysDataSource);
|
|
this.jmReportDbSourceService.saveOrUpdate(sysDataSource);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public boolean querySourceCode(JmReportDataSource sysDataSource) {
|
|
public boolean querySourceCode(JmReportDataSource sysDataSource) {
|
|
boolean var2 = false;
|
|
boolean var2 = false;
|
|
Integer var3 = 0;
|
|
Integer var3 = 0;
|
|
@@ -437,10 +441,12 @@ public class JmReportDbService implements IJmReportDbService {
|
|
return var2;
|
|
return var2;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public void delDataSource(JmReportDataSource sysDataSource) {
|
|
public void delDataSource(JmReportDataSource sysDataSource) {
|
|
this.jmReportDbSourceService.removeById(sysDataSource.getId());
|
|
this.jmReportDbSourceService.removeById(sysDataSource.getId());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public List<Map<String, Object>> qurestechSql(JmReportDb jmReportDb) {
|
|
public List<Map<String, Object>> qurestechSql(JmReportDb jmReportDb) {
|
|
if (jmReportDb == null) {
|
|
if (jmReportDb == null) {
|
|
return null;
|
|
return null;
|
|
@@ -466,6 +472,7 @@ public class JmReportDbService implements IJmReportDbService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public List<Map> parseData(Map<String, Object> map) {
|
|
public List<Map> parseData(Map<String, Object> map) {
|
|
ArrayList var2 = new ArrayList();
|
|
ArrayList var2 = new ArrayList();
|
|
ArrayList var3 = (ArrayList) map.get("records");
|
|
ArrayList var3 = (ArrayList) map.get("records");
|
|
@@ -492,6 +499,7 @@ public class JmReportDbService implements IJmReportDbService {
|
|
return var2;
|
|
return var2;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public List<Map<String, Object>> loadDataSourceTable(String dbKey) {
|
|
public List<Map<String, Object>> loadDataSourceTable(String dbKey) {
|
|
List var2 = null;
|
|
List var2 = null;
|
|
JmreportDynamicDataSourceVo var3 = JmreportDataSourceCachePool.getCacheDynamicDataSourceModel(dbKey);
|
|
JmreportDynamicDataSourceVo var3 = JmreportDataSourceCachePool.getCacheDynamicDataSourceModel(dbKey);
|
|
@@ -523,6 +531,7 @@ public class JmReportDbService implements IJmReportDbService {
|
|
return var2;
|
|
return var2;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public Map<String, Object> loadTableData(String dbKey, String tableName, Integer pageNo, Integer pageSize, String sql, String paramArray) {
|
|
public Map<String, Object> loadTableData(String dbKey, String tableName, Integer pageNo, Integer pageSize, String sql, String paramArray) {
|
|
HashMap var7 = new HashMap();
|
|
HashMap var7 = new HashMap();
|
|
if (oConvertUtils.isNotEmpty(paramArray)) {
|
|
if (oConvertUtils.isNotEmpty(paramArray)) {
|
|
@@ -555,6 +564,7 @@ public class JmReportDbService implements IJmReportDbService {
|
|
return var7;
|
|
return var7;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
@Transactional
|
|
@Transactional
|
|
public void delDbData(String dbId) {
|
|
public void delDbData(String dbId) {
|
|
this.reportDbDao.deleteById(dbId);
|
|
this.reportDbDao.deleteById(dbId);
|
|
@@ -774,18 +784,22 @@ public class JmReportDbService implements IJmReportDbService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public void updateById(JmReportDb reportDb) {
|
|
public void updateById(JmReportDb reportDb) {
|
|
this.reportDbDao.update(reportDb);
|
|
this.reportDbDao.update(reportDb);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public JmReportDb getById(String apiSelectId) {
|
|
public JmReportDb getById(String apiSelectId) {
|
|
return this.reportDbDao.get(apiSelectId);
|
|
return this.reportDbDao.get(apiSelectId);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public int getCount(String reportId, String code) {
|
|
public int getCount(String reportId, String code) {
|
|
return this.reportDbDao.getCount(reportId, code);
|
|
return this.reportDbDao.getCount(reportId, code);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public List<JmReportDb> getListReportDb(String reportId) {
|
|
public List<JmReportDb> getListReportDb(String reportId) {
|
|
return this.reportDbDao.selectList(reportId);
|
|
return this.reportDbDao.selectList(reportId);
|
|
}
|
|
}
|