select md_bu.id as bu_id, md_bu.name as bu_name, md_prod_sku.product_id, md_prod_sku.product_name, md_prod_sku.id, md_prod_sku.spec from md_prod_sku left join md_bu_product on md_prod_sku.product_id = md_bu_product.product_id left join md_bu on md_bu.id = md_bu_product.bu_id select * from md_prod_price_detail where last_update_time >= @{loadTime} and (type_code = 'Standard' or type_code = 'Customer') select * from agm_record where last_update_time >= @{loadTime} and type_code = 'gift' and category_code = 'Onsite' update @{tableName} set state_code = 'Close', state_name = '失效' where suspend_date is not null and @{currentDate} >= suspend_date