|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
<result column="resource_name" jdbcType="VARCHAR" property="resourceName" />
|
|
|
|
|
<result column="size" jdbcType="DOUBLE" property="size" />
|
|
|
|
|
<result column="url" jdbcType="VARCHAR" property="url" />
|
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
|
<result column="source" jdbcType="VARCHAR" property="source" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -68,7 +68,7 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
resource_data_id, case_id, resource_name, size, url, school_id
|
|
|
|
|
resource_data_id, case_id, resource_name, size, url, source
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.resource_center.entity.SysResourceDataExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
@ -102,9 +102,9 @@
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.resource_center.entity.SysResourceData">
|
|
|
|
|
insert into sys_resource_data (resource_data_id, case_id, resource_name,
|
|
|
|
|
size, url, school_id)
|
|
|
|
|
size, url, source)
|
|
|
|
|
values (#{resourceDataId,jdbcType=VARCHAR}, #{caseId,jdbcType=VARCHAR}, #{resourceName,jdbcType=VARCHAR},
|
|
|
|
|
#{size,jdbcType=DOUBLE}, #{url,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR})
|
|
|
|
|
#{size,jdbcType=DOUBLE}, #{url,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.resource_center.entity.SysResourceData">
|
|
|
|
|
insert into sys_resource_data
|
|
|
|
@ -124,8 +124,8 @@
|
|
|
|
|
<if test="url != null">
|
|
|
|
|
url,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id,
|
|
|
|
|
<if test="source != null">
|
|
|
|
|
source,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
@ -144,8 +144,8 @@
|
|
|
|
|
<if test="url != null">
|
|
|
|
|
#{url,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
#{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
<if test="source != null">
|
|
|
|
|
#{source,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
@ -173,8 +173,8 @@
|
|
|
|
|
<if test="record.url != null">
|
|
|
|
|
url = #{record.url,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
|
<if test="record.source != null">
|
|
|
|
|
source = #{record.source,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
@ -188,7 +188,7 @@
|
|
|
|
|
resource_name = #{record.resourceName,jdbcType=VARCHAR},
|
|
|
|
|
size = #{record.size,jdbcType=DOUBLE},
|
|
|
|
|
url = #{record.url,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR}
|
|
|
|
|
source = #{record.source,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -208,8 +208,8 @@
|
|
|
|
|
<if test="url != null">
|
|
|
|
|
url = #{url,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
|
<if test="source != null">
|
|
|
|
|
source = #{source,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where resource_data_id = #{resourceDataId,jdbcType=VARCHAR}
|
|
|
|
@ -220,7 +220,7 @@
|
|
|
|
|
resource_name = #{resourceName,jdbcType=VARCHAR},
|
|
|
|
|
size = #{size,jdbcType=DOUBLE},
|
|
|
|
|
url = #{url,jdbcType=VARCHAR},
|
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR}
|
|
|
|
|
source = #{source,jdbcType=VARCHAR}
|
|
|
|
|
where resource_data_id = #{resourceDataId,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|