|
|
@@ -22,7 +22,7 @@ public interface ChartsConfigMapper {
|
|
|
"VALUES (#{chartId},#{chartName},#{chartType}, #{dataId}, #{chartConfig}, #{groupBy}, #{accessAuthority}, #{updateAuthority}, #{chartsGroup}," +
|
|
|
"#{describes},#{style}, #{createBy},to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss'), #{chartOption}, #{createId}, #{fetchConfig})" )
|
|
|
// @Options(useGeneratedKeys=false, keyProperty = "chartId",keyColumn = "id")
|
|
|
- @SelectKey(before=true,keyProperty="chartId",resultType=Integer.class,statement="SELECT charts_squence.nextval from dual",keyColumn = "id")
|
|
|
+ @SelectKey(before=true,keyProperty="chartId",resultType=Integer.class,statement="SELECT bi_charts_sequence.nextval from dual",keyColumn = "id")
|
|
|
void insertCharts(ChartConfig chartConfig);
|
|
|
|
|
|
@Delete("<script>" +
|
|
|
@@ -63,7 +63,7 @@ public interface ChartsConfigMapper {
|
|
|
" select bo1.BO_ST_ID from bi_db_object bo1 " +
|
|
|
" where bo1.BO_TYPE = '0' and bo1.BO_OB_ID in ( select BR_USER_GROUP from BI_USER_REL_GROUPS where BR_USER_ID=#{id} ) " +
|
|
|
" or bo1.bo_type = '1' and bo1.bo_ob_id = #{id}" +
|
|
|
- " )" +
|
|
|
+ " ) and bs1.BS_DB_ID = bc.BD_DATA_ID" +
|
|
|
" ) > 0 then '1'" +
|
|
|
" when bc.CREATE_ID = #{id} and bc.BD_DATA_ID not in (select id from bi_data_connectors where create_id=#{id}) and (" +
|
|
|
" select count(1) from BI_DB_STRATEGYS bs2 " +
|
|
|
@@ -71,7 +71,7 @@ public interface ChartsConfigMapper {
|
|
|
" select bo2.BO_ST_ID from bi_db_object bo2 " +
|
|
|
" where bo2.BO_TYPE = '0' and bo2.BO_OB_ID in ( select BR_USER_GROUP from BI_USER_REL_GROUPS where BR_USER_ID=#{id} ) " +
|
|
|
" or bo2.bo_type = '1' and bo2.bo_ob_id = #{id}" +
|
|
|
- " )" +
|
|
|
+ " ) and bs2.BS_DB_ID = bc.BD_DATA_ID" +
|
|
|
" ) = 0 then '0' " +
|
|
|
" when bc.CREATE_ID != #{id} and bc.BD_DATA_ID in (select bdc1.id " +
|
|
|
" from bi_data_connectors bdc1 where bdc1.create_id=bc.CREATE_ID) then '1'" +
|
|
|
@@ -84,7 +84,7 @@ public interface ChartsConfigMapper {
|
|
|
" select bo2.BO_ST_ID from bi_db_object bo2 " +
|
|
|
" where bo2.BO_TYPE = '0' and bo2.BO_OB_ID in ( select BR_USER_GROUP from BI_USER_REL_GROUPS where BR_USER_ID=bc.CREATE_ID ) " +
|
|
|
" or bo2.bo_type = '1' and bo2.bo_ob_id = bc.CREATE_ID" +
|
|
|
- " )" +
|
|
|
+ " ) and bs2.BS_DB_ID = bc.BD_DATA_ID" +
|
|
|
" ) > 0 then '1'" +
|
|
|
" when bc.CREATE_ID != #{id} and bc.BD_DATA_ID not in (select bdc3.id " +
|
|
|
" from bi_data_connectors bdc3 where bdc3.create_id=bc.CREATE_ID) and (" +
|
|
|
@@ -93,7 +93,7 @@ public interface ChartsConfigMapper {
|
|
|
" select bo2.BO_ST_ID from bi_db_object bo2 " +
|
|
|
" where bo2.BO_TYPE = '0' and bo2.BO_OB_ID in ( select BR_USER_GROUP from BI_USER_REL_GROUPS where BR_USER_ID=bc.CREATE_ID ) " +
|
|
|
" or bo2.bo_type = '1' and bo2.bo_ob_id = bc.CREATE_ID" +
|
|
|
- " )" +
|
|
|
+ " ) and bs2.BS_DB_ID = bc.BD_DATA_ID" +
|
|
|
" ) = 0 then '0'" +
|
|
|
" else null end authority, case when bc.BD_DATA_ID not in(select id from bi_data_connectors) then '1' else '0' end dbStatus, bc.id as chartId, bc.chart_name as chartName, bc.chart_type as chartType, bc.create_by as createBy, bc.create_date as createDate" +
|
|
|
" ,bc.bc_filters as filters, bc.CHART_DESCRIBES as describes, bc.bc_charts_group as chartsGroup, bc.bc_charts_option as chartOption ,bc.bd_data_id as dataId,bd.data_name as dataName, bc.create_id as createId " +
|
|
|
@@ -172,7 +172,7 @@ public interface ChartsConfigMapper {
|
|
|
*/
|
|
|
@Insert("insert into bi_charts_group(bc_id, bc_group_name, bc_index, bc_father_id, create_date)" +
|
|
|
"values(#{id}, #{groupName}, #{groupIndex}, #{fatherId}, to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss'))")
|
|
|
- @SelectKey(before=true,keyProperty="id",resultType=int.class,statement="SELECT bi_charts_group_squence.nextval from dual",keyColumn = "bc_id")
|
|
|
+ @SelectKey(before=true,keyProperty="id",resultType=int.class,statement="SELECT BI_CHARTS_GROUP_SEQUENCE.nextval from dual",keyColumn = "bc_id")
|
|
|
void setChartsGroup(GroupInfo group);
|
|
|
|
|
|
/*
|