|
|
@@ -1,9 +1,12 @@
|
|
|
package com.usoftchina.bi.server.dao.user;
|
|
|
|
|
|
import com.usoftchina.bi.server.model.vo.configVo.UserPowerInfo;
|
|
|
+import com.usoftchina.bi.server.model.vo.dataVo.DashboardPowerDTO;
|
|
|
import org.apache.ibatis.annotations.*;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @Author chenwei
|
|
|
* @Date 2019-05-13
|
|
|
@@ -42,7 +45,7 @@ public interface UserPowerMapper {
|
|
|
void delete(UserPowerInfo userPowerInfo);
|
|
|
|
|
|
@Select( "<script>"
|
|
|
- + "SELECT ID,BD_NAME,CASE NVL(BPU_ID, '1') WHEN 1 THEN 'false' ELSE 'true' END CHECKED "
|
|
|
+ + "SELECT ID id,BD_NAME dashboardName,CASE NVL(BPU_ID, '1') WHEN 1 THEN 0 ELSE 1 END checked "
|
|
|
+ "FROM BI_DASHBOARDS LEFT JOIN BI_POWER_USERS ON BPU_DASHBOARDID = ID WHERE CREATE_ID = #{userId, jdbcType=INTEGER} "
|
|
|
+ "<choose>"
|
|
|
+ "<if test=\"type == 0\">"
|
|
|
@@ -53,6 +56,6 @@ public interface UserPowerMapper {
|
|
|
+ "</otherwise>"
|
|
|
+ "</choose>"
|
|
|
+ "</script>")
|
|
|
- void selectDashBoards(@Param("type") int type, @Param("id") int id, @Param("userId") int userId);
|
|
|
+ List<DashboardPowerDTO> selectDashBoards(@Param("type") int type, @Param("id") int id, @Param("userId") int userId);
|
|
|
|
|
|
}
|