|
|
@ -17,6 +17,7 @@
|
|
|
|
<result property="updateBy" column="Update_By" />
|
|
|
|
<result property="updateBy" column="Update_By" />
|
|
|
|
<result property="updateTime" column="Update_Time" />
|
|
|
|
<result property="updateTime" column="Update_Time" />
|
|
|
|
<result property="parentName" column="parent_name" />
|
|
|
|
<result property="parentName" column="parent_name" />
|
|
|
|
|
|
|
|
<result property="roleId" column="role_id" />
|
|
|
|
<result property="monitorunitStatus" column="Monitorunit_Status" />
|
|
|
|
<result property="monitorunitStatus" column="Monitorunit_Status" />
|
|
|
|
<result property="monitorunitImage" column="monitorunit_Image" />
|
|
|
|
<result property="monitorunitImage" column="monitorunit_Image" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
@ -77,6 +78,28 @@
|
|
|
|
order by t1.objId
|
|
|
|
order by t1.objId
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseMonitorunitInfoDtoListByRoleId" parameterType="BaseMonitorunitInfo" resultMap="BaseMonitorunitInfoDtoResult">
|
|
|
|
|
|
|
|
select t2.objid, t2.monitorunit_id, t2.monitorunit_name,t2.monitorunit_Status, t2.parent_id, t4.MonitorUnit_Name as parent_name,
|
|
|
|
|
|
|
|
t2.monitorunit_type,t3.MonitorUnitType_Name, t2.substation_id,t5.Substation_Name,t2.Monitorunit_Image,
|
|
|
|
|
|
|
|
t2.enable_flag,t2.Create_Time
|
|
|
|
|
|
|
|
from sys_role_monitorinfo t1
|
|
|
|
|
|
|
|
left join base_monitorunit_info t2 on t1.monitorUnit_Id = t2.MonitorUnit_Id
|
|
|
|
|
|
|
|
left join base_monitorunit_type t3 on t2.MonitorUnit_Type = t3.MonitorUnitType_Id
|
|
|
|
|
|
|
|
left join base_monitorunit_info t4 on t2.Parent_Id = t4.MonitorUnit_Id
|
|
|
|
|
|
|
|
left join base_substation_info t5 on t2.Substation_Id = t5.Substation_Id
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="roleId != null"> and t1.role_id = #{roleId}</if>
|
|
|
|
|
|
|
|
<if test="monitorunitId != null and monitorunitId != ''"> and t2.MonitorUnit_Id like concat('%', #{monitorunitId}, '%')</if>
|
|
|
|
|
|
|
|
<if test="monitorunitName != null and monitorunitName != ''"> and t2.MonitorUnit_Name like concat('%', #{monitorunitName}, '%')</if>
|
|
|
|
|
|
|
|
<if test="parentId != null and parentId != ''"> and t2.Parent_Id = #{parentId}</if>
|
|
|
|
|
|
|
|
<if test="monitorunitType != null and monitorunitType != ''"> and t2.MonitorUnit_Type = #{monitorunitType}</if>
|
|
|
|
|
|
|
|
<if test="substationId != null and substationId != ''"> and t2.Substation_Id = #{substationId}</if>
|
|
|
|
|
|
|
|
<if test="enableFlag != null and enableFlag != ''"> and t2.Enable_Flag = #{enableFlag}</if>
|
|
|
|
|
|
|
|
<if test="monitorunitStatus != null and monitorunitStatus != '' "> and t2.Monitorunit_Status = #{monitorunitStatus}</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
order by t2.objId
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseMonitorunitInfoByObjId" parameterType="Long" resultMap="BaseMonitorunitInfoResult">
|
|
|
|
<select id="selectBaseMonitorunitInfoByObjId" parameterType="Long" resultMap="BaseMonitorunitInfoResult">
|
|
|
|
select t.ObjId, t.MonitorUnit_Id, t.MonitorUnit_Name,t.monitorunit_status, t.Monitorunit_Image,t.Parent_Id, t.MonitorUnit_Type, t.Substation_Id, t.Enable_Flag, t.Create_By, t.Create_Time, t.Update_By, t.Update_Time, p.MonitorUnit_Name as parent_name
|
|
|
|
select t.ObjId, t.MonitorUnit_Id, t.MonitorUnit_Name,t.monitorunit_status, t.Monitorunit_Image,t.Parent_Id, t.MonitorUnit_Type, t.Substation_Id, t.Enable_Flag, t.Create_By, t.Create_Time, t.Update_By, t.Update_Time, p.MonitorUnit_Name as parent_name
|
|
|
|
from base_monitorunit_info t
|
|
|
|
from base_monitorunit_info t
|
|
|
|