|
|
|
@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<mapper namespace="com.ruoyi.system.mapper.BaseSubstationInfoMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="BaseSubstationInfo" id="BaseSubstationInfoResult">
|
|
|
|
|
<result property="objid" column="ObjId" />
|
|
|
|
|
<result property="objId" column="ObjId" />
|
|
|
|
|
<result property="substationId" column="Substation_Id" />
|
|
|
|
|
<result property="substationName" column="Substation_Name" />
|
|
|
|
|
<result property="enableFlag" column="Enable_Flag" />
|
|
|
|
@ -16,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseSubstationInfoVo">
|
|
|
|
|
select ObjId, Substation_Id, Substation_Name, Enable_Flag, Create_By, Create_Time, Update_By, Update_Time from base_substation_info
|
|
|
|
|
select objId, Substation_Id, Substation_Name, Enable_Flag, Create_By, Create_Time, Update_By, Update_Time from base_substation_info
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseSubstationInfoList" parameterType="BaseSubstationInfo" resultMap="BaseSubstationInfoResult">
|
|
|
|
@ -30,10 +30,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseSubstationInfoByObjId" parameterType="Long" resultMap="BaseSubstationInfoResult">
|
|
|
|
|
<include refid="selectBaseSubstationInfoVo"/>
|
|
|
|
|
where ObjId = #{objid}
|
|
|
|
|
where ObjId = #{objId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertBaseSubstationInfo" parameterType="BaseSubstationInfo" useGeneratedKeys="true" keyProperty="ObjId">
|
|
|
|
|
<insert id="insertBaseSubstationInfo" parameterType="BaseSubstationInfo" useGeneratedKeys="true" keyProperty="objId">
|
|
|
|
|
insert into base_substation_info
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="substationId != null">Substation_Id,</if>
|
|
|
|
@ -66,17 +66,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">Update_By = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">Update_Time = #{updateTime},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where ObjId = #{objid}
|
|
|
|
|
where ObjId = #{objId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBaseSubstationInfoByObjId" parameterType="Long">
|
|
|
|
|
delete from base_substation_info where ObjId = #{ObjId}
|
|
|
|
|
delete from base_substation_info where ObjId = #{objId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBaseSubstationInfoByObjIds" parameterType="String">
|
|
|
|
|
delete from base_substation_info where ObjId in
|
|
|
|
|
<foreach item="ObjId" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{ObjId}
|
|
|
|
|
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{objId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|