|
@@ -18,6 +18,8 @@
|
|
|
<result column="listDisplayImage" property="listDisplayImage"/>
|
|
|
<result column="rotatingImages" property="rotatingImages"/>
|
|
|
<result column="detailedImage" property="detailedImage"/>
|
|
|
+ <result column="contract" property="contract"/>
|
|
|
+ <result column="subtitle" property="subtitle"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="get" resultMap="result">
|
|
@@ -92,8 +94,8 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="save" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT INTO workark_product (organizationId, type, productLevelId, createTime, name, price, intro, listDisplayImage, rotatingImages, detailedImage)
|
|
|
- VALUES (#{organizationId}, #{type}, #{productLevelId}, now(), #{name}, #{price}, #{intro}, #{listDisplayImage}, #{rotatingImages}, #{detailedImage})
|
|
|
+ INSERT INTO workark_product (organizationId, type, productLevelId, createTime, name, price, intro, listDisplayImage, rotatingImages, detailedImage, contract, subtitle)
|
|
|
+ VALUES (#{organizationId}, #{type}, #{productLevelId}, now(), #{name}, #{price}, #{intro}, #{listDisplayImage}, #{rotatingImages}, #{detailedImage}, #{contract}, #{subtitle})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.api.workark.model.Product">
|
|
@@ -110,6 +112,8 @@
|
|
|
<if test="listDisplayImage!=null">listDisplayImage=#{listDisplayImage},</if>
|
|
|
<if test="rotatingImages!=null">rotatingImages=#{rotatingImages},</if>
|
|
|
<if test="detailedImage!=null">detailedImage=#{detailedImage},</if>
|
|
|
+ <if test="contract!=null">contract=#{contract},</if>
|
|
|
+ <if test="subtitle!=null">subtitle=#{subtitle},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|