|
@@ -10,6 +10,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="annexName" column="annex_name" />
|
|
<result property="annexName" column="annex_name" />
|
|
<result property="annexVoid" column="annex_void" />
|
|
<result property="annexVoid" column="annex_void" />
|
|
<result property="annexVoidName" column="annex_void_name" />
|
|
<result property="annexVoidName" column="annex_void_name" />
|
|
|
|
+ <result property="annexImage" column="annex_image" />
|
|
|
|
+ <result property="annexImageName" column="annex_image_name" />
|
|
<result property="type" column="type" />
|
|
<result property="type" column="type" />
|
|
<result property="keywords" column="keywords" />
|
|
<result property="keywords" column="keywords" />
|
|
<result property="dimension" column="dimension" />
|
|
<result property="dimension" column="dimension" />
|
|
@@ -21,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBomanAnnexVo">
|
|
<sql id="selectBomanAnnexVo">
|
|
- select annex_id, annex_url, annex_name,annex_void,annex_void_name, type,dimension, keywords, release_time, create_time, create_by, update_by, update_time from boman_annex
|
|
|
|
|
|
+ select annex_id, annex_url, annex_name,annex_void,annex_void_name,annex_image,annex_image_name, type,dimension, keywords, release_time, create_time, create_by, update_by, update_time from boman_annex
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectBomanAnnexList" parameterType="BomanAnnex" resultMap="BomanAnnexResult">
|
|
<select id="selectBomanAnnexList" parameterType="BomanAnnex" resultMap="BomanAnnexResult">
|
|
@@ -48,6 +50,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="annexName != null and annexName != ''">annex_name,</if>
|
|
<if test="annexName != null and annexName != ''">annex_name,</if>
|
|
<if test="annexVoid != null and annexVoid != ''">annex_void,</if>
|
|
<if test="annexVoid != null and annexVoid != ''">annex_void,</if>
|
|
<if test="annexVoidName != null and annexVoidName != ''">annex_void_name,</if>
|
|
<if test="annexVoidName != null and annexVoidName != ''">annex_void_name,</if>
|
|
|
|
+ <if test="annexImage != null and annexImage != ''">annex_image,</if>
|
|
|
|
+ <if test="annexImageName != null and annexImageName != ''">annex_image_name,</if>
|
|
<if test="type != null">type,</if>
|
|
<if test="type != null">type,</if>
|
|
<if test="dimension != null ">dimension,</if>
|
|
<if test="dimension != null ">dimension,</if>
|
|
<if test="keywords != null and keywords != ''">keywords,</if>
|
|
<if test="keywords != null and keywords != ''">keywords,</if>
|
|
@@ -62,6 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="annexName != null ">#{annexName},</if>
|
|
<if test="annexName != null ">#{annexName},</if>
|
|
<if test="annexVoid != null ">#{annexVoid},</if>
|
|
<if test="annexVoid != null ">#{annexVoid},</if>
|
|
<if test="annexVoidName != null ">#{annexVoidName},</if>
|
|
<if test="annexVoidName != null ">#{annexVoidName},</if>
|
|
|
|
+ <if test="annexImage != null ">#{annexImage},</if>
|
|
|
|
+ <if test="annexImageName != null ">#{annexImageName},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="dimension != null and dimension != ''">#{dimension},</if>
|
|
<if test="dimension != null and dimension != ''">#{dimension},</if>
|
|
<if test="keywords != null and keywords != ''">#{keywords},</if>
|
|
<if test="keywords != null and keywords != ''">#{keywords},</if>
|
|
@@ -74,9 +80,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<insert id="batchBomanAnnex">
|
|
<insert id="batchBomanAnnex">
|
|
- insert into boman_annex(annex_url, annex_name,annex_void,annex_void_name,keywords,dimension,type,create_time) values
|
|
|
|
|
|
+ insert into boman_annex(annex_url, annex_name,annex_void,annex_void_name,annex_image,annex_image_name,keywords,dimension,type,create_time) values
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
- (#{item.annexUrl},#{item.annexName},#{item.annexVoid},#{item.annexVoidName},#{item.keywords},#{item.dimension},#{item.type},sysdate())
|
|
|
|
|
|
+ (#{item.annexUrl},#{item.annexName},#{item.annexVoid},#{item.annexVoidName},#{item.annexImage},#{item.annexImageName},#{item.keywords},#{item.dimension},#{item.type},sysdate())
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateBomanAnnex" parameterType="BomanAnnex">
|
|
<update id="updateBomanAnnex" parameterType="BomanAnnex">
|
|
@@ -86,6 +92,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
|
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
|
<if test="annexVoid != null and annexVoid != ''">annex_void = #{annexVoid},</if>
|
|
<if test="annexVoid != null and annexVoid != ''">annex_void = #{annexVoid},</if>
|
|
<if test="annexVoidName != null and annexVoidName != ''">annex_void_name = #{annexVoidName},</if>
|
|
<if test="annexVoidName != null and annexVoidName != ''">annex_void_name = #{annexVoidName},</if>
|
|
|
|
+ <if test="annexImage != null and annexImage != ''">annex_image = #{annexImage},</if>
|
|
|
|
+ <if test="annexImageName != null and annexImageName != ''">annex_image_name = #{annexImageName},</if>
|
|
<if test="type != null">type = #{type},</if>
|
|
<if test="type != null">type = #{type},</if>
|
|
<if test="dimension != null ">dimension = #{dimension},</if>
|
|
<if test="dimension != null ">dimension = #{dimension},</if>
|
|
<if test="keywords != null and keywords != ''">keywords = #{keywords},</if>
|
|
<if test="keywords != null and keywords != ''">keywords = #{keywords},</if>
|