From f23e2ce66fdf032b2560d5547c77f30eb8de0c75 Mon Sep 17 00:00:00 2001 From: hdy <1105738590@qq.com> Date: 星期二, 11 三月 2025 19:21:43 +0800 Subject: [PATCH] 修改 --- billion-main/src/main/resources/mapper/da/DaParamCollectionMapper.xml | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/billion-main/src/main/resources/mapper/da/DaParamCollectionMapper.xml b/billion-main/src/main/resources/mapper/da/DaParamCollectionMapper.xml index 68cb403..1aca9fe 100644 --- a/billion-main/src/main/resources/mapper/da/DaParamCollectionMapper.xml +++ b/billion-main/src/main/resources/mapper/da/DaParamCollectionMapper.xml @@ -38,21 +38,21 @@ <insert id="insertDaParamCollection" parameterType="DaParamCollection" useGeneratedKeys="true" keyProperty="id"> insert into da_param_collection <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="sfcCode != null and sfcCode != ''">sfc_code,</if> - <if test="locationCode != null and locationCode != ''">location_code,</if> - <if test="paramCode != null and paramCode != ''">param_code,</if> + <if test="sfcCode != null">sfc_code,</if> + <if test="locationCode != null">location_code,</if> + <if test="paramCode != null">param_code,</if> <if test="paramName != null">param_name,</if> - <if test="paramValue != null and paramValue != ''">param_value,</if> + <if test="paramValue != null">param_value,</if> <if test="collectTime != null">collect_time,</if> - </trim> + </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="sfcCode != null and sfcCode != ''">#{sfcCode},</if> - <if test="locationCode != null and locationCode != ''">#{locationCode},</if> - <if test="paramCode != null and paramCode != ''">#{paramCode},</if> + <if test="sfcCode != null">#{sfcCode},</if> + <if test="locationCode != null">#{locationCode},</if> + <if test="paramCode != null">#{paramCode},</if> <if test="paramName != null">#{paramName},</if> - <if test="paramValue != null and paramValue != ''">#{paramValue},</if> + <if test="paramValue != null">#{paramValue},</if> <if test="collectTime != null">#{collectTime},</if> - </trim> + </trim> </insert> <update id="updateDaParamCollection" parameterType="DaParamCollection"> -- Gitblit v1.9.3