地质所 沉降监测网建设项目
zmk
2024-05-18 306749fa2e6ea7609468889cb56473770d0a26cc
javaweb-plus/javaweb-cms/src/main/resources/mapper/geo/DeviceLogMapper.xml
@@ -46,11 +46,14 @@
        <include refid="selectDeviceLogVo"/>
        where id = #{id}
    </select>
    <select id="selectMaxDeviceLogId" resultType="java.lang.Integer">
        SELECT MAX(id) FROM js_device_log where project_id = #{projectId}
    </select>
    <insert id="insertDeviceLog" parameterType="DeviceLog">
        insert into js_device_log
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null  and id != ''">id,</if>
            <if test="code != null  and code != ''">code,</if>
            <if test="projectId != null  and projectId != ''">project_id,</if>
            <if test="projectName != null  and projectName != ''">project_name,</if>
@@ -67,7 +70,6 @@
            <if test="remark != null  and remark != ''">remark,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null  and id != ''">#{id},</if>
            <if test="code != null  and code != ''">#{code},</if>
            <if test="projectId != null  and projectId != ''">#{projectId},</if>
            <if test="projectName != null  and projectName != ''">#{projectName},</if>