|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="annexId" column="annex_id" />
|
|
|
<result property="annexUrl" column="annex_url" />
|
|
|
<result property="annexName" column="annex_name" />
|
|
|
+ <result property="annexVoid" column="annex_void" />
|
|
|
<result property="type" column="type" />
|
|
|
<result property="keywords" column="keywords" />
|
|
|
<result property="dimension" column="dimension" />
|
|
@@ -19,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBomanAnnexVo">
|
|
|
- select annex_id, annex_url, annex_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, type,dimension, keywords, release_time, create_time, create_by, update_by, update_time from boman_annex
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectBomanAnnexList" parameterType="BomanAnnex" resultMap="BomanAnnexResult">
|
|
@@ -31,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="keywords != null and keywords != ''"> and keywords = #{keywords}</if>
|
|
|
<if test="releaseTime != null "> and release_time = #{releaseTime}</if>
|
|
|
</where>
|
|
|
+ order by create_by DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="selectBomanAnnexByAnnexId" parameterType="Long" resultMap="BomanAnnexResult">
|
|
@@ -43,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="annexUrl != null and annexUrl != ''">annex_url,</if>
|
|
|
<if test="annexName != null and annexName != ''">annex_name,</if>
|
|
|
+ <if test="annexVoid != null and annexVoid != ''">annex_void,</if>
|
|
|
<if test="type != null">type,</if>
|
|
|
<if test="dimension != null ">dimension,</if>
|
|
|
<if test="keywords != null and keywords != ''">keywords,</if>
|
|
@@ -55,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="annexUrl != null and annexUrl != ''">#{annexUrl},</if>
|
|
|
<if test="annexName != null ">#{annexName},</if>
|
|
|
+ <if test="annexVoid != null ">#{annexVoid},</if>
|
|
|
<if test="type != null">#{type},</if>
|
|
|
<if test="dimension != null and dimension != ''">#{dimension},</if>
|
|
|
<if test="keywords != null and keywords != ''">#{keywords},</if>
|
|
@@ -67,9 +71,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</insert>
|
|
|
|
|
|
<insert id="batchBomanAnnex">
|
|
|
- insert into boman_annex(annex_url, annex_name,keywords,dimension,type,create_time) values
|
|
|
+ insert into boman_annex(annex_url, annex_name,annex_void,keywords,dimension,type,create_time) values
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
- (#{item.annexUrl},#{item.annexName},#{item.keywords},#{item.dimension},#{item.type},sysdate())
|
|
|
+ (#{item.annexUrl},#{item.annexName},#{item.keywords},#{item.annexVoid},#{item.dimension},#{item.type},sysdate())
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
<update id="updateBomanAnnex" parameterType="BomanAnnex">
|
|
@@ -77,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="annexUrl != null and annexUrl != ''">annex_url = #{annexUrl},</if>
|
|
|
<if test="annexName != null and annexName != ''">annex_name = #{annexName},</if>
|
|
|
+ <if test="item.annexVoid != null and item.annexVoid != ''">item.annex_void = #{item.annexVoid},</if>
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
<if test="dimension != null ">dimension = #{dimension},</if>
|
|
|
<if test="keywords != null and keywords != ''">keywords = #{keywords},</if>
|