|
|
@@ -18,9 +18,9 @@ public interface DashboardsMapper {
|
|
|
插入
|
|
|
*/
|
|
|
@Insert("insert into " +
|
|
|
- "bi_dashboards(id, bd_name,bd_note,CONFIGURATION,create_by, filters, create_date, BD_THUMBNAIL,relation_columns, create_id, bd_code,bd_menuId)" +
|
|
|
+ "bi_dashboards(id, bd_name,bd_note,CONFIGURATION,create_by, filters, create_date, BD_THUMBNAIL,relation_columns, create_id, bd_code,bd_menuId,theme)" +
|
|
|
"values(#{id,jdbcType=INTEGER}, #{bdName,jdbcType=VARCHAR},#{bdNote,jdbcType=VARCHAR},#{bdConfiguration,jdbcType=VARCHAR},#{createBy,jdbcType=VARCHAR}, #{filters,jdbcType=VARCHAR}, " +
|
|
|
- "to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss'), #{thumbnail,jdbcType=VARCHAR},#{relationColumns,jdbcType=VARCHAR}, #{createId,jdbcType=INTEGER}, #{bdCode,jdbcType=VARCHAR}, #{menuId, jdbcType=INTEGER})")
|
|
|
+ "to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss'), #{thumbnail,jdbcType=VARCHAR},#{relationColumns,jdbcType=VARCHAR}, #{createId,jdbcType=INTEGER}, #{bdCode,jdbcType=VARCHAR}, #{menuId, jdbcType=INTEGER}, #{theme, jdbcType=VARCHAR})")
|
|
|
@SelectKey(before=true,keyProperty="id",resultType=Integer.class,statement="SELECT BI_DASHBOARDS_SEQUENCE.nextval from dual",keyColumn = "id")
|
|
|
void setDashboards(Dashboards dashboards);
|
|
|
|
|
|
@@ -55,6 +55,7 @@ public interface DashboardsMapper {
|
|
|
"<if test=\"thumbnail != null\"> , BD_THUMBNAIL = #{thumbnail} </if>" +
|
|
|
"<if test=\"relationColumns != null\">, relation_columns = #{relationColumns} </if>"+
|
|
|
"<if test=\"filters != null\">, filters = #{filters} </if>"+
|
|
|
+ "<if test=\"theme != null\">, filters = #{theme} </if>"+
|
|
|
"<if test=\"bdCode != null\">, BD_CODE = #{bdCode} </if>"+
|
|
|
" ,UPDATE_DATE = to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss') " +
|
|
|
"where id = #{id}" +
|
|
|
@@ -105,7 +106,7 @@ public interface DashboardsMapper {
|
|
|
/*
|
|
|
查询看板
|
|
|
*/
|
|
|
- @Select("select id, bd_note as bdNote, bd_name as bdName, CONFIGURATION as bdConfiguration, CREATE_BY as createBy, create_id as createId, CREATE_DATE as createDate, BD_THUMBNAIL as thumbnail, relation_columns as relationColumns, filters, demo, bd_code,bd_menuId " +
|
|
|
+ @Select("select id, bd_note as bdNote,theme, bd_name as bdName, CONFIGURATION as bdConfiguration, CREATE_BY as createBy, create_id as createId, CREATE_DATE as createDate, BD_THUMBNAIL as thumbnail, relation_columns as relationColumns, filters, demo, bd_code,bd_menuId " +
|
|
|
" from BI_DASHBOARDS where (id in " +
|
|
|
" (select bo_da_id from bi_DASHBOARDS_object " +
|
|
|
" where (bo_type = '0' and bo_ob_id in (select br_user_group from bi_user_rel_groups where br_user_id= #{userId}))" +
|
|
|
@@ -125,6 +126,7 @@ public interface DashboardsMapper {
|
|
|
@Result(column = "demo", property = "demo", jdbcType = JdbcType.BOOLEAN),
|
|
|
@Result(column = "id", property = "chartIds", one = @One(select = "getChartIdsById")),
|
|
|
@Result(column = "bd_code", property = "bdCode", jdbcType = JdbcType.VARCHAR),
|
|
|
+ @Result(column = "theme", property = "theme", jdbcType = JdbcType.VARCHAR),
|
|
|
@Result(column = "bd_menuId", property = "menuId", jdbcType = JdbcType.VARCHAR)
|
|
|
})
|
|
|
Dashboards getDashboards(@Param("userId") int userId, @Param("id") int id);
|
|
|
@@ -132,7 +134,7 @@ public interface DashboardsMapper {
|
|
|
/*
|
|
|
查询看板
|
|
|
*/
|
|
|
- @Select("select id, bd_note as bdNote, bd_name as bdName, CONFIGURATION as bdConfiguration, CREATE_BY as createBy, create_id as createId, CREATE_DATE as createDate, BD_THUMBNAIL as thumbnail, relation_columns as relationColumns, filters, demo, bd_code,bd_menuId " +
|
|
|
+ @Select("select id, bd_note as bdNote,theme, bd_name as bdName, CONFIGURATION as bdConfiguration, CREATE_BY as createBy, create_id as createId, CREATE_DATE as createDate, BD_THUMBNAIL as thumbnail, relation_columns as relationColumns, filters, demo, bd_code,bd_menuId " +
|
|
|
" from BI_DASHBOARDS where id = #{id}")
|
|
|
@ResultMap("DashBoardsResultMap")
|
|
|
Dashboards getDashboardsWithoutLimit(@Param("id") int id);
|