|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="materialUrl" column="material_url" />
|
|
<result property="materialUrl" column="material_url" />
|
|
<result property="materialName" column="material_name" />
|
|
<result property="materialName" column="material_name" />
|
|
<result property="keywords" column="keywords" />
|
|
<result property="keywords" column="keywords" />
|
|
|
|
+ <result property="type" column="type" />
|
|
<result property="releaseTime" column="release_time" />
|
|
<result property="releaseTime" column="release_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
@@ -17,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBomanMaterialVo">
|
|
<sql id="selectBomanMaterialVo">
|
|
- select material_id, material_url, material_name, keywords, release_time, create_time, create_by, update_by, update_time from boman_material
|
|
|
|
|
|
+ select material_id, material_url,type, material_name, keywords, release_time, create_time, create_by, update_by, update_time from boman_material
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectBomanMaterialList" parameterType="BomanMaterial" resultMap="BomanMaterialResult">
|
|
<select id="selectBomanMaterialList" parameterType="BomanMaterial" resultMap="BomanMaterialResult">
|
|
@@ -25,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<where>
|
|
<where>
|
|
<if test="materialUrl != null and materialUrl != ''"> and material_url = #{materialUrl}</if>
|
|
<if test="materialUrl != null and materialUrl != ''"> and material_url = #{materialUrl}</if>
|
|
<if test="releaseTime != null "> and release_time = #{releaseTime}</if>
|
|
<if test="releaseTime != null "> and release_time = #{releaseTime}</if>
|
|
|
|
+ <if test="type != null "> and type = #{type}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="materialName != null">material_name,</if>
|
|
<if test="materialName != null">material_name,</if>
|
|
<if test="keywords != null">keywords,</if>
|
|
<if test="keywords != null">keywords,</if>
|
|
<if test="releaseTime != null">release_time,</if>
|
|
<if test="releaseTime != null">release_time,</if>
|
|
|
|
+ <if test="type != null">type,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -50,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="materialName != null">#{materialName},</if>
|
|
<if test="materialName != null">#{materialName},</if>
|
|
<if test="keywords != null">#{keywords},</if>
|
|
<if test="keywords != null">#{keywords},</if>
|
|
<if test="releaseTime != null">#{releaseTime},</if>
|
|
<if test="releaseTime != null">#{releaseTime},</if>
|
|
|
|
+ <if test="type != null">#{type},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -57,6 +61,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
+ <insert id="batchBomanMaterial">
|
|
|
|
+ insert into boman_material(material_url, material_name,type,keywords,release_time,create_time) values
|
|
|
|
+ <foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
+ (#{item.materialUrl},#{item.materialName},#{item.type},#{item.keywords},#{item.releaseTime},sysdate())
|
|
|
|
+ </foreach>
|
|
|
|
+ </insert>
|
|
<update id="updateBomanMaterial" parameterType="BomanMaterial">
|
|
<update id="updateBomanMaterial" parameterType="BomanMaterial">
|
|
update boman_material
|
|
update boman_material
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
@@ -64,6 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="materialName != null">material_name = #{materialName},</if>
|
|
<if test="materialName != null">material_name = #{materialName},</if>
|
|
<if test="keywords != null">keywords = #{keywords},</if>
|
|
<if test="keywords != null">keywords = #{keywords},</if>
|
|
<if test="releaseTime != null">release_time = #{releaseTime},</if>
|
|
<if test="releaseTime != null">release_time = #{releaseTime},</if>
|
|
|
|
+ <if test="type != null">type = #{type},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|