|
@@ -146,4 +146,33 @@ id_,device_id,person_id,del_flag,create_by,create_time,update_by,update_time fr
|
|
|
|
|
|
|
|
|
</select>
|
|
|
+
|
|
|
+ <update id="updateIsBound" parameterType="com.jpsoft.smart.modules.base.entity.PersonDeviceRelation">
|
|
|
+ update base_person_device_relation
|
|
|
+ <set>
|
|
|
+ <if test="deviceId!=null">
|
|
|
+ device_id=#{deviceId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="personId!=null">
|
|
|
+ person_id=#{personId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="delFlag!=null">
|
|
|
+ del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
+ <if test="createBy!=null">
|
|
|
+ create_by=#{createBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime!=null">
|
|
|
+ create_time=#{createTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ <if test="updateBy!=null">
|
|
|
+ update_by=#{updateBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime!=null">
|
|
|
+ update_time=#{updateTime,jdbcType= TIMESTAMP },
|
|
|
+ </if>
|
|
|
+ is_bound=#{isBound,jdbcType= VARCHAR},
|
|
|
+ </set>
|
|
|
+ where id_=#{id}
|
|
|
+ </update>
|
|
|
</mapper>
|