select config_id,
               config_name,
               orgid,
               config_key,
               config_value,
               config_type,
               create_by,
               create_time,
               update_by,
               update_time,
               guid,
               remark
        from sys_config
    
    
    
        
            
                and config_id = #{configId}
            
            
                and config_key = #{configKey}
            
        
    
    
    
    
    
    
        insert into sys_config (
        config_name,
        config_key,
        config_value,
        config_type,
        create_by,
        remark,
        guid,
        orgid,
        create_time
        )values(
        #{configName},
        #{configKey},
        #{configValue},
        #{configType},
        #{createBy},
        #{remark},
        #{guid},
        #{orgid},
        sysdate()
        )
    
    
        update sys_config
        
            config_name = #{configName},
            config_key = #{configKey},
            config_value = #{configValue},
            config_type = #{configType},
            update_by = #{updateBy},
            remark = #{remark},
            guid = #{guid},
            orgid = #{orgid},
            update_time = sysdate()
        
        where config_id = #{configId}
    
    
        delete
        from sys_config
        where config_id = #{configId}
    
    
        delete from sys_config where config_id in
        
            #{configId}