From ab23712adc3f16433bef1daccebf0c4d45e8574f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=97=AD?= <2795210596@qq.com> Date: Mon, 14 Apr 2025 22:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=83=E6=9D=86=E5=95=86=E5=93=81=E5=85=B3?= =?UTF-8?q?=E8=81=94=E9=A1=B9=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/CueProductMapper.xml | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) 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}