|
|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.base.mapper.BaseBusbarInfoMapper">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="BaseBusbarInfo" id="BaseBusbarInfoResult">
|
|
|
|
|
<result property="objId" column="obj_id" />
|
|
|
|
|
<result property="busbarCode" column="busbar_code" />
|
|
|
|
|
@ -23,15 +23,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="wTiltPos" column="wTiltPos" />
|
|
|
|
|
<result property="wZoomPos" column="wZoomPos" />
|
|
|
|
|
<result property="isRotate" column="is_rotate" />
|
|
|
|
|
<result property="isInsp" column="is_insp" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseBusbarInfoVo">
|
|
|
|
|
select obj_id, busbar_code, busbar_alias, cabinet_code, busbar_dist, is_checked, is_end, is_flag, remark, created_by, created_time, updated_by, updated_time, is_pictures, wPanPos, wTiltPos, wZoomPos, is_rotate from base_busbar_info
|
|
|
|
|
select obj_id, busbar_code, busbar_alias, cabinet_code, busbar_dist, is_checked, is_end, is_flag, remark, created_by, created_time, updated_by, updated_time, is_pictures, wPanPos, wTiltPos, wZoomPos, is_rotate , is_insp
|
|
|
|
|
from base_busbar_info
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseBusbarInfoList" parameterType="BaseBusbarInfo" resultMap="BaseBusbarInfoResult">
|
|
|
|
|
<include refid="selectBaseBusbarInfoVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="objId != null "> and obj_id = #{objId}</if>
|
|
|
|
|
<if test="busbarCode != null "> and busbar_code = #{busbarCode}</if>
|
|
|
|
|
<if test="busbarAlias != null and busbarAlias != ''"> and busbar_alias like concat('%', #{busbarAlias}, '%')</if>
|
|
|
|
|
@ -50,9 +52,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wTiltPos != null and wTiltPos != ''"> and wTiltPos = #{wTiltPos}</if>
|
|
|
|
|
<if test="wZoomPos != null and wZoomPos != ''"> and wZoomPos = #{wZoomPos}</if>
|
|
|
|
|
<if test="isRotate != null "> and is_rotate = #{isRotate}</if>
|
|
|
|
|
<if test="isInsp != null "> and is_insp = #{isInsp}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseBusbarInfoByObjId" parameterType="Long" resultMap="BaseBusbarInfoResult">
|
|
|
|
|
<include refid="selectBaseBusbarInfoVo"/>
|
|
|
|
|
where obj_id = #{objId}
|
|
|
|
|
@ -78,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wTiltPos != null">wTiltPos,</if>
|
|
|
|
|
<if test="wZoomPos != null">wZoomPos,</if>
|
|
|
|
|
<if test="isRotate != null">is_rotate,</if>
|
|
|
|
|
<if test="isInsp != null">is_insp,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="busbarCode != null">#{busbarCode},</if>
|
|
|
|
|
@ -97,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wTiltPos != null">#{wTiltPos},</if>
|
|
|
|
|
<if test="wZoomPos != null">#{wZoomPos},</if>
|
|
|
|
|
<if test="isRotate != null">#{isRotate},</if>
|
|
|
|
|
<if test="isInsp != null">#{isInsp},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
@ -120,6 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="wTiltPos != null">wTiltPos = #{wTiltPos},</if>
|
|
|
|
|
<if test="wZoomPos != null">wZoomPos = #{wZoomPos},</if>
|
|
|
|
|
<if test="isRotate != null">is_rotate = #{isRotate},</if>
|
|
|
|
|
<if test="isInsp != null">is_insp = #{isInsp},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where obj_id = #{objId}
|
|
|
|
|
</update>
|
|
|
|
|
@ -129,9 +135,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBaseBusbarInfoByObjIds" parameterType="String">
|
|
|
|
|
delete from base_busbar_info where obj_id in
|
|
|
|
|
delete from base_busbar_info where obj_id in
|
|
|
|
|
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{objId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|
|
|
|
|
|