select id, durg_name, durg_brand, manufacturer, specifications, product_introduction, store_house, unit_id, amount, put_in, put_out, overdue, remarks, admin_id, create_time, update_time, unit_name, user_name, drug_no from bdgl_durg_archives
    
    
    
    
    
        insert into bdgl_durg_archives
        
            durg_name,
            durg_brand,
            manufacturer,
            specifications,
            product_introduction,
            store_house,
            unit_id,
            amount,
            put_in,
            put_out,
            overdue,
            remarks,
            admin_id,
            create_time,
            update_time,
            unit_name,
            user_name,
            drug_no,
        
        
            #{durgName},
            #{durgBrand},
            #{manufacturer},
            #{specifications},
            #{productIntroduction},
            #{storeHouse},
            #{unitId},
            #{amount},
            #{putIn},
            #{putOut},
            #{overdue},
            #{remarks},
            #{adminId},
            #{createTime},
            #{updateTime},
            #{unitName},
            #{userName},
            #{drugNo},
        
    
    
        update bdgl_durg_archives
        
            durg_name = #{durgName},
            durg_brand = #{durgBrand},
            manufacturer = #{manufacturer},
            specifications = #{specifications},
            product_introduction = #{productIntroduction},
            store_house = #{storeHouse},
            unit_id = #{unitId},
            amount = #{amount},
            put_in = #{putIn},
            put_out = #{putOut},
            overdue = #{overdue},
            remarks = #{remarks},
            admin_id = #{adminId},
            create_time = #{createTime},
            update_time = #{updateTime},
            unit_name = #{unitName},
            user_name = #{userName},
            drug_no = #{drugNo},
        
        where id = #{id}
    
    
        delete from bdgl_durg_archives where id = #{id}
    
    
        delete from bdgl_durg_archives where id in
        
            #{id}