|
|
|
@ -20,6 +20,7 @@
|
|
|
|
|
<result property="roleId" column="role_id" />
|
|
|
|
|
<result property="monitorunitStatus" column="Monitorunit_Status" />
|
|
|
|
|
<result property="monitorunitImage" column="monitorunit_Image" />
|
|
|
|
|
<result property="savePeriod" column="Save_Period" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="BaseMonitorunitInfoDto" id="BaseMonitorunitInfoDtoResult">
|
|
|
|
@ -42,7 +43,7 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseMonitorunitInfoVo">
|
|
|
|
|
select ObjId, MonitorUnit_Id, MonitorUnit_Name, Parent_Id, MonitorUnit_Type, Substation_Id, Enable_Flag, Create_By, Create_Time, Update_By, Update_Time,Monitorunit_Status,Monitorunit_Image from base_monitorunit_info
|
|
|
|
|
select ObjId, MonitorUnit_Id, MonitorUnit_Name, Parent_Id, MonitorUnit_Type, Substation_Id, Enable_Flag, Create_By, Create_Time, Update_By, Update_Time,Monitorunit_Status,Monitorunit_Image,Save_Period from base_monitorunit_info
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseMonitorunitInfoList" parameterType="BaseMonitorunitInfo" resultMap="BaseMonitorunitInfoResult">
|
|
|
|
@ -101,7 +102,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<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.Save_Period, 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
|
|
|
|
|
left join base_monitorunit_info p on p.MonitorUnit_Id = t.Parent_Id
|
|
|
|
|
where t.ObjId = #{objId}
|
|
|
|
@ -122,6 +123,7 @@
|
|
|
|
|
<if test="createTime != null">Create_Time,</if>
|
|
|
|
|
<if test="updateBy != null">Update_By,</if>
|
|
|
|
|
<if test="updateTime != null">Update_Time,</if>
|
|
|
|
|
<if test="savePeriod != null">Save_Period,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="monitorunitId != null">#{monitorunitId},</if>
|
|
|
|
@ -136,6 +138,7 @@
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="savePeriod != null">#{savePeriod},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -154,6 +157,7 @@
|
|
|
|
|
<if test="createTime != null">Create_Time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">Update_By = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">Update_Time = #{updateTime},</if>
|
|
|
|
|
<if test="savePeriod != null">Save_Period = #{savePeriod},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where ObjId = #{objId}
|
|
|
|
|
</update>
|
|
|
|
|