id,
        countyId,
        townId,
        villageId,
        `name`,
        lng,
        lat,
        remarks,
        `operator`,
        operateDt,
        deleted
    
    
    
        
        delete
        from pr_flow_monitoring
        where id = #{id,jdbcType=BIGINT}
    
    
        
        insert into pr_flow_monitoring (id, countyId, townId,
                                        villageId, `name`, lng,
                                        lat, remarks, `operator`,
                                        operateDt, deleted)
        values (#{id,jdbcType=BIGINT}, #{countyid,jdbcType=BIGINT}, #{townid,jdbcType=BIGINT},
                #{villageid,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{lng,jdbcType=DOUBLE},
                #{lat,jdbcType=DOUBLE}, #{remarks,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT},
                #{operatedt,jdbcType=TIMESTAMP}, #{deleted,jdbcType=TINYINT})
    
    
        
        insert into pr_flow_monitoring
        
            
                id,
            
            
                countyId,
            
            
                townId,
            
            
                villageId,
            
            
                `name`,
            
            
                lng,
            
            
                lat,
            
            
                remarks,
            
            
                `operator`,
            
            
                operateDt,
            
            
                deleted,
            
        
        
            
                #{id,jdbcType=BIGINT},
            
            
                #{countyid,jdbcType=BIGINT},
            
            
                #{townid,jdbcType=BIGINT},
            
            
                #{villageid,jdbcType=BIGINT},
            
            
                #{name,jdbcType=VARCHAR},
            
            
                #{lng,jdbcType=DOUBLE},
            
            
                #{lat,jdbcType=DOUBLE},
            
            
                #{remarks,jdbcType=VARCHAR},
            
            
                #{operator,jdbcType=BIGINT},
            
            
                #{operatedt,jdbcType=TIMESTAMP},
            
            
                #{deleted,jdbcType=TINYINT},
            
        
    
    
        
        update pr_flow_monitoring
        
            
                countyId = #{countyid,jdbcType=BIGINT},
            
            
                townId = #{townid,jdbcType=BIGINT},
            
            
                villageId = #{villageid,jdbcType=BIGINT},
            
            
                `name` = #{name,jdbcType=VARCHAR},
            
            
                lng = #{lng,jdbcType=DOUBLE},
            
            
                lat = #{lat,jdbcType=DOUBLE},
            
            
                remarks = #{remarks,jdbcType=VARCHAR},
            
            
                `operator` = #{operator,jdbcType=BIGINT},
            
            
                operateDt = #{operatedt,jdbcType=TIMESTAMP},
            
            
                deleted = #{deleted,jdbcType=TINYINT},
            
        
        where id = #{id,jdbcType=BIGINT}
    
    
        
        update pr_flow_monitoring
        set countyId   = #{countyid,jdbcType=BIGINT},
            townId     = #{townid,jdbcType=BIGINT},
            villageId  = #{villageid,jdbcType=BIGINT},
            `name`     = #{name,jdbcType=VARCHAR},
            lng        = #{lng,jdbcType=DOUBLE},
            lat        = #{lat,jdbcType=DOUBLE},
            remarks    = #{remarks,jdbcType=VARCHAR},
            `operator` = #{operator,jdbcType=BIGINT},
            operateDt  = #{operatedt,jdbcType=TIMESTAMP},
            deleted    = #{deleted,jdbcType=TINYINT}
        where id = #{id,jdbcType=BIGINT}
    
    
    
        UPDATE pr_flow_monitoring
        SET deleted = 1
        WHERE id = ${flowMonitoringId}