|
|
@ -162,6 +162,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isDeleted != null">IsDeleted,</if> |
|
|
|
<if test="deleterUserId != null">DeleterUserId,</if> |
|
|
|
<if test="deletionTime != null">DeletionTime,</if> |
|
|
|
<if test="longitude != null">longitude,</if> |
|
|
|
<if test="latitude != null">latitude,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -184,6 +186,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isDeleted != null">#{isDeleted},</if> |
|
|
|
<if test="deleterUserId != null">#{deleterUserId},</if> |
|
|
|
<if test="deletionTime != null">#{deletionTime},</if> |
|
|
|
<if test="longitude != null">#{longitude},</if> |
|
|
|
<if test="latitude != null">#{latitude},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -212,6 +216,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="mdDevice.isDeleted != null">IsDeleted,</if> |
|
|
|
<if test="mdDevice.deleterUserId != null">DeleterUserId,</if> |
|
|
|
<if test="mdDevice.deletionTime != null">DeletionTime,</if> |
|
|
|
<if test="mdDevice.longitude != null">longitude,</if> |
|
|
|
<if test="mdDevice.latitude != null">latitude,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="mdDevice.id != null">#{mdDevice.id},</if> |
|
|
@ -234,6 +240,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="mdDevice.isDeleted != null">#{mdDevice.isDeleted},</if> |
|
|
|
<if test="mdDevice.deleterUserId != null">#{mdDevice.deleterUserId},</if> |
|
|
|
<if test="mdDevice.deletionTime != null">#{mdDevice.deletionTime},</if> |
|
|
|
<if test="mdDevice.longitude != null">#{mdDevice.longitude},</if> |
|
|
|
<if test="mdDevice.latitude != null">#{mdDevice.latitude},</if> |
|
|
|
</trim> |
|
|
|
ON DUPLICATE KEY UPDATE |
|
|
|
<trim suffixOverrides=","> |
|
|
@ -254,6 +262,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="mdDevice.isDeleted != null">IsDeleted = #{mdDevice.isDeleted},</if> |
|
|
|
<if test="mdDevice.deleterUserId != null">DeleterUserId = #{mdDevice.deleterUserId},</if> |
|
|
|
<if test="mdDevice.deletionTime != null">DeletionTime = #{mdDevice.deletionTime},</if> |
|
|
|
<if test="mdDevice.longitude != null">longitude = #{mdDevice.longitude},</if> |
|
|
|
<if test="mdDevice.latitude != null">latitude = #{mdDevice.latitude},</if> |
|
|
|
</trim> |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
@ -386,6 +396,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="isDeleted != null">IsDeleted = #{isDeleted},</if> |
|
|
|
<if test="deleterUserId != null">DeleterUserId = #{deleterUserId},</if> |
|
|
|
<if test="deletionTime != null">DeletionTime = #{deletionTime},</if> |
|
|
|
<if test="longitude != null">longitude = #{longitude},</if> |
|
|
|
<if test="latitude != null">latitude = #{latitude},</if> |
|
|
|
</set> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|