|
@@ -17,10 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
+ <result property="thirdId" column="third_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTlInspectionDeviceVo">
|
|
|
- select id, device_code, device_name, device_type, lnglat, area_id, remark, del_flag, create_by, create_time, update_by, update_time from tl_inspection_device
|
|
|
+ select id, device_code, device_name, device_type, lnglat, area_id, remark, del_flag, create_by, create_time, update_by, update_time, third_id from tl_inspection_device
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTlInspectionDeviceList" parameterType="TlInspectionDevice" resultMap="TlInspectionDeviceResult">
|
|
@@ -55,6 +56,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
group by area_id
|
|
|
</select>
|
|
|
|
|
|
+ <select id="queryByThirdId" resultType="com.ruoyi.qdtl.domain.TlInspectionDevice">
|
|
|
+ <include refid="selectTlInspectionDeviceVo"/>
|
|
|
+ where third_id = #{thirdId}
|
|
|
+ and del_flag = '0'
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="insertTlInspectionDevice" parameterType="TlInspectionDevice" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into tl_inspection_device
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -69,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="thirdId != null">third_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="deviceCode != null and deviceCode != ''">#{deviceCode},</if>
|
|
@@ -82,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="thirdId != null">#{thirdId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -99,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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="thirdId != null">third_id = #{thirdId},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|