|
@@ -15,10 +15,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createDate" column="create_date" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateDate" column="update_date" />
|
|
|
+ <result property="images" column="images"/>
|
|
|
+ <result property="specs" column="specs"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectRecCommodityVo">
|
|
|
- select id, brand_id, model, catalog, sale, market, create_by, create_date, update_by, update_date from rec_commodity
|
|
|
+ select id, brand_id, model, catalog, sale, market, create_by, create_date, update_by,
|
|
|
+ update_date, images, specs from rec_commodity
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectRecCommodityList" parameterType="RecCommodity" resultMap="RecCommodityResult">
|
|
@@ -31,6 +34,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="market != null "> and market = #{market}</if>
|
|
|
<if test="createDate != null "> and create_date = #{createDate}</if>
|
|
|
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
|
|
+ <if test="images != null "> and images = #{images}</if>
|
|
|
+ <if test="specs != null "> and specs = #{specs}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -51,6 +56,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createDate != null">create_date,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateDate != null">update_date,</if>
|
|
|
+ <if test="images != null">images,</if>
|
|
|
+ <if test="specs != null">specs,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="brandId != null">#{brandId},</if>
|
|
@@ -62,6 +69,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createDate != null">#{createDate},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateDate != null">#{updateDate},</if>
|
|
|
+ <if test="images != null">#{images},</if>
|
|
|
+ <if test="specs != null">#{specs},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -77,6 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createDate != null">create_date = #{createDate},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateDate != null">update_date = #{updateDate},</if>
|
|
|
+ <if test="images != null">update_date = #{images},</if>
|
|
|
+ <if test="specs != null">update_date = #{specs},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|