|
@@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="Slideshow" id="LSlideshowResult">
|
|
|
<result property="slideshowId" column="slideshow_id" />
|
|
|
+ <result property="slideshowName" column="slideshow_name" />
|
|
|
<result property="picture" column="picture" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -15,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLSlideshowVo">
|
|
|
- select slideshow_id, picture, create_time, create_by, update_time, update_by, remark from l_slideshow
|
|
|
+ select slideshow_id,slideshow_name, picture, create_time, create_by, update_time, update_by, remark from l_slideshow
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectLSlideshowList" parameterType="Slideshow" resultMap="LSlideshowResult">
|
|
@@ -33,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertLSlideshow" parameterType="Slideshow" useGeneratedKeys="true" keyProperty="slideshowId">
|
|
|
insert into l_slideshow
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="slideshowName != null">slideshow_name,</if>
|
|
|
<if test="picture != null">picture,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -41,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="slideshowName != null">#{slideshowName},</if>
|
|
|
<if test="picture != null">#{picture},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -53,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateLSlideshow" parameterType="Slideshow">
|
|
|
update l_slideshow
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="slideshowName != null">slideshow_name = #{slideshowName},</if>
|
|
|
<if test="picture != null">picture = #{picture},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|