From 7b03a1d14a165cc6932067e17f1fb30f68fd34a5 Mon Sep 17 00:00:00 2001 From: cjl <276999030@qq.com> Date: Mon, 10 Jul 2023 15:42:53 +0800 Subject: [PATCH] chore: 提交测试 --- screen-manage/src/main/resources/mapper/MonitorPointMapper.xml | 71 +++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/screen-manage/src/main/resources/mapper/MonitorPointMapper.xml b/screen-manage/src/main/resources/mapper/MonitorPointMapper.xml index 5e9c800..0a714b3 100644 --- a/screen-manage/src/main/resources/mapper/MonitorPointMapper.xml +++ b/screen-manage/src/main/resources/mapper/MonitorPointMapper.xml @@ -19,4 +19,75 @@ <result column="desc" property="desc" /> </resultMap> + <sql id="Base_Column_List"> + mp.id,mp.name,mp.longitude,mp.latitude,mp.province_code,mp.city_code,mp.area_code,mp.address,mp.organization_id,mp.create_time,mp.update_time,mp.is_delete,mp.desc + </sql> + + <update id="updateMonitorPoint" parameterType="java.util.Map"> + update monitor_point + <set> + <if test="name != null"> + name = #{name}, + </if> + <if test="longitude != null"> + <if test="longitude == ''"> + longitude = null, + </if> + <if test="longitude != ''"> + longitude = #{longitude}, + </if> + </if> + <if test="latitude != null"> + <if test="latitude == ''"> + latitude = null, + </if> + <if test="latitude != ''"> + latitude = #{latitude}, + </if> + </if> + <if test="province_code != null"> + <if test="province_code == ''"> + province_code = null, + </if> + <if test="province_code != ''"> + province_code = #{province_code}, + </if> + </if> + <if test="city_code != null"> + <if test="city_code == ''"> + city_code = null, + </if> + <if test="city_code != ''"> + city_code = #{city_code}, + </if> + </if> + <if test="area_code != null"> + <if test="area_code == ''"> + area_code = null, + </if> + <if test="area_code != ''"> + area_code = #{area_code}, + </if> + </if> + <if test="address != null"> + address = #{address}, + </if> + <if test="organization_id != null"> + <if test="organization_id == ''"> + organization_id = null, + </if> + <if test="organization_id != ''"> + organization_id = #{organization_id}, + </if> + </if> + <if test="desc != null"> + `desc` = #{desc}, + </if> + <if test="isDelete != null"> + is_delete = #{isDelete}, + </if> + </set> + where id = #{id} + </update> + </mapper> \ No newline at end of file -- Gitblit v1.8.0