|
@@ -12,10 +12,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateDate" column="update_date" />
|
|
|
<result property="thumbs" column="thumbs" />
|
|
|
+ <result property="images" column="images" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectRecContentVo">
|
|
|
- select id, content, create_by, create_date, update_by, update_date, thumbs from rec_content
|
|
|
+ select id, content, create_by, create_date, update_by, update_date, thumbs, images from rec_content
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectRecContentList" parameterType="RecContent" resultMap="RecContentResult">
|
|
@@ -25,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createDate != null "> and create_date = #{createDate}</if>
|
|
|
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
|
|
<if test="thumbs != null "> and thumbs = #{thumbs}</if>
|
|
|
+ <if test="images != null "> and images = #{images}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -43,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateDate != null">update_date,</if>
|
|
|
<if test="thumbs != null">thumbs,</if>
|
|
|
+ <if test="images != null">images,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -52,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateDate != null">#{updateDate},</if>
|
|
|
<if test="thumbs != null">#{thumbs},</if>
|
|
|
+ <if test="images != null">#{images},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -64,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateDate != null">update_date = #{updateDate},</if>
|
|
|
<if test="thumbs != null">thumbs = #{thumbs},</if>
|
|
|
+ <if test="images != null">images = #{images},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|