hdy
2025-03-11 f23e2ce66fdf032b2560d5547c77f30eb8de0c75
billion-main/src/main/resources/mapper/da/DaParamCollectionMapper.xml
@@ -25,6 +25,8 @@
            <if test="locationCode != null  and locationCode != ''"> and location_code like concat('%', #{locationCode}, '%')</if>
            <if test="paramCode != null  and paramCode != ''"> and param_code = #{paramCode}</if>
            <if test="paramName != null  and paramName != ''"> and param_name like concat('%', #{paramName}, '%')</if>
            <if test="startTime != null"> and collect_time BETWEEN #{startTime} and #{stopTime}</if>
        </where>
    </select>
    
@@ -36,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">