|
|
@@ -35,7 +35,7 @@ public interface DataConnectorMapper {
|
|
|
*/
|
|
|
@Select("select ID as dataId, DATA_NAME as dataName, DATA_NOTE as note, DATA_TAG as dataTag, COLUMNS_CONFIG as columnConfig, LOAD_OBJECT as loadObject," +
|
|
|
"CREATE_BY as createBy, create_id as createId, USED_NUMBER as usedNumber, CREATE_DATE as createDate,DB_CONFIG as dbConId,DB_CONFIG as dbConfig, BD_group as connectorGroup," +
|
|
|
- "CON_TYPE as type from bi_data_connectors where id = #{id}")
|
|
|
+ "CON_TYPE as type, demo from bi_data_connectors where id = #{id}")
|
|
|
@Results(id = "DataConnectorResultMap", value = {
|
|
|
@Result(column = "dataId", property = "dataId", jdbcType = JdbcType.BIGINT),
|
|
|
@Result(column = "dataName", property = "dataName", jdbcType = JdbcType.VARCHAR),
|
|
|
@@ -50,6 +50,7 @@ public interface DataConnectorMapper {
|
|
|
@Result(column = "dbConId", property = "dbConId", jdbcType = JdbcType.VARCHAR),
|
|
|
@Result(column = "connectorGroup", property = "connectorGroup", jdbcType = JdbcType.INTEGER),
|
|
|
@Result(column = "dbConfig", property = "dbConfig", one = @One(select = "getDataBaseConfig")),
|
|
|
+ @Result(column = "demo", property = "demo", jdbcType = JdbcType.BOOLEAN),
|
|
|
@Result(column = "type", property = "type", jdbcType = JdbcType.VARCHAR)
|
|
|
})
|
|
|
DataConnector getOneData(int id);
|
|
|
@@ -60,7 +61,7 @@ public interface DataConnectorMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select("select id, bases_name as name, note, addrass, data_name as dataName, DATABASE_TYPE as databaseType," +
|
|
|
- " PASS_WORD as passWord, USER_NAME as userName, PORT, CREATE_DATE as createDate from bi_databases where id = #{id}")
|
|
|
+ " PASS_WORD as passWord, USER_NAME as userName, PORT, CREATE_DATE as createDate, demo from bi_databases where id = #{id}")
|
|
|
BaseConfig getDataBaseConfig(int id);
|
|
|
|
|
|
/*
|
|
|
@@ -69,7 +70,7 @@ public interface DataConnectorMapper {
|
|
|
@Select("select id as dataId, con_type as type, data_name as dataName, data_tag as dataTag, data_note as note, " +
|
|
|
"bc.create_by as createBy, bc.create_date as createDate," +
|
|
|
"used_number as usedNumber, db_config as dbConfig ,BD_group as connectorGroup, " +
|
|
|
- "create_id as createId from bi_data_connectors bc where CREATE_ID = #{id} or ( id in ( select distinct bs_db_id from BI_DB_STRATEGYS where bs_id in (" +
|
|
|
+ "create_id as createId, demo from bi_data_connectors bc where CREATE_ID = #{id} or ( id in ( select distinct bs_db_id from BI_DB_STRATEGYS where bs_id in (" +
|
|
|
" select bo_st_id from bi_db_object where " +
|
|
|
" (BO_TYPE='1' and bo_ob_id = #{id} ) or " +
|
|
|
" ( bo_type='0' and bo_ob_id in " +
|
|
|
@@ -87,7 +88,8 @@ public interface DataConnectorMapper {
|
|
|
@Result(column = "createDate", property = "createDate", jdbcType = JdbcType.VARCHAR),
|
|
|
@Result(column = "connectorGroup", property = "connectorGroup", jdbcType = JdbcType.INTEGER),
|
|
|
@Result(column = "dbConfig", property = "dbConfig", one = @One(select = "getDataBaseConfig")),
|
|
|
- @Result(column = "type", property = "type", jdbcType = JdbcType.VARCHAR)
|
|
|
+ @Result(column = "type", property = "type", jdbcType = JdbcType.VARCHAR),
|
|
|
+ @Result(column = "demo", property = "demo", jdbcType = JdbcType.BOOLEAN)
|
|
|
})
|
|
|
List<DataConnectorList> getDataConnectorList(@Param("id") int id, TestPage testPage);
|
|
|
|
|
|
@@ -171,7 +173,7 @@ public interface DataConnectorMapper {
|
|
|
查询数据库配置列表
|
|
|
*/
|
|
|
@Select("select id, bases_name as name, note, addrass, data_name as dataName, DATABASE_TYPE as databaseType," +
|
|
|
- " PASS_WORD as passWord, USER_NAME as userName, PORT, CREATE_DATE as createDate from bi_databases")
|
|
|
+ " PASS_WORD as passWord, USER_NAME as userName, PORT, CREATE_DATE as createDate, demo from bi_databases")
|
|
|
List<Databases> getDatabasesList(TestPage testPage);
|
|
|
|
|
|
/*
|