球杆商品关联项名称
This commit is contained in:
parent
5352019d63
commit
ab23712adc
@ -22,10 +22,6 @@
|
||||
<result property="typeName" column="type_name"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Vo_Column_List">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="list" resultMap="cueProductVOMap">
|
||||
SELECT
|
||||
cp.product_id,
|
||||
@ -74,11 +70,29 @@
|
||||
|
||||
<select id="getById" resultMap="cueProductVOMap">
|
||||
SELECT
|
||||
<include refid="Vo_Column_List" />
|
||||
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}
|
||||
</select>
|
||||
|
||||
<insert id="save" useGeneratedKeys="true" keyProperty="productId">
|
||||
|
Loading…
x
Reference in New Issue
Block a user