diff --git a/tmerclub-local/src/main/resources/mapper/CueProductMapper.xml b/tmerclub-local/src/main/resources/mapper/CueProductMapper.xml index de1363a..fe30734 100644 --- a/tmerclub-local/src/main/resources/mapper/CueProductMapper.xml +++ b/tmerclub-local/src/main/resources/mapper/CueProductMapper.xml @@ -22,10 +22,6 @@ - - product_id,brand_id,series_id,type_id,product_name,product_description,product_images,product_price,product_seq,product_status,deleted,create_time,update_time - - SELECT - + cp.product_id, + cp.brand_id, + cp.series_id, + cp.type_id, + cp.product_name, + cp.product_description, + cp.product_images, + cp.product_price, + cp.product_seq, + cp.product_status, + cp.deleted, + cp.create_time, + cp.update_time, + cb.brand_name, + cs.series_name, + ct.type_name FROM - cue_product + cue_product AS cp + LEFT JOIN cue_brand AS cb ON cp.brand_id = cb.brand_id + LEFT JOIN cue_series AS cs ON cp.series_id = cs.series_id + LEFT JOIN cue_type AS ct ON cp.type_id = ct.type_id WHERE - product_id = #{productId} + cp.product_id = #{productId}