|
@@ -24,6 +24,7 @@
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<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="isBound" column="is_bound" />
|
|
<association property="deviceInfo" column="device_id"
|
|
<association property="deviceInfo" column="device_id"
|
|
select="com.jpsoft.smart.modules.base.dao.DeviceInfoDAO.get"></association>
|
|
select="com.jpsoft.smart.modules.base.dao.DeviceInfoDAO.get"></association>
|
|
<association property="personInfo" column="person_id"
|
|
<association property="personInfo" column="person_id"
|
|
@@ -37,7 +38,7 @@
|
|
-->
|
|
-->
|
|
<![CDATA[
|
|
<![CDATA[
|
|
insert into base_person_device_relation
|
|
insert into base_person_device_relation
|
|
- (id_,device_id,person_id,del_flag,create_by,create_time,update_by,update_time)
|
|
|
|
|
|
+ (id_,device_id,person_id,del_flag,create_by,create_time,update_by,update_time,is_bound)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
#{id,jdbcType=VARCHAR}
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -48,6 +49,7 @@
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
|
+,#{isBound,jdbcType=VARCHAR}
|
|
)
|
|
)
|
|
]]>
|
|
]]>
|
|
</insert>
|
|
</insert>
|
|
@@ -78,6 +80,9 @@
|
|
<if test="updateTime!=null">
|
|
<if test="updateTime!=null">
|
|
update_time=#{updateTime,jdbcType= TIMESTAMP },
|
|
update_time=#{updateTime,jdbcType= TIMESTAMP },
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isBound!=null">
|
|
|
|
+ is_bound=#{isBound,jdbcType= VARCHAR },
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id_=#{id}
|
|
where id_=#{id}
|
|
</update>
|
|
</update>
|