|
|
|
@ -18,10 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="agencies" column="agencies" /> |
|
|
|
<result property="summary" column="summary" /> |
|
|
|
<result property="urls" column="urls" /> |
|
|
|
<result property="uploadUrl" column="upload_url" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectZhyArticleVo"> |
|
|
|
select id, name, open_url, local_url, source_id, source_name, target_id, tagert_name, authors, keywords, agencies, summary, urls from zhy_article |
|
|
|
select id, name, open_url, local_url, source_id, source_name, target_id, tagert_name, authors, keywords, agencies, summary, urls,upload_url from zhy_article |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectZhyArticleList" parameterType="ZhyArticle" resultMap="ZhyArticleResult"> |
|
|
|
@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="agencies != null and agencies != ''"> and agencies = #{agencies}</if> |
|
|
|
<if test="summary != null and summary != ''"> and summary = #{summary}</if> |
|
|
|
<if test="urls != null and urls != ''"> and urls = #{urls}</if> |
|
|
|
<if test="uploadUrl != null and uploadUrl != ''"> and upload_url = #{uploadUrl}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="agencies != null">agencies,</if> |
|
|
|
<if test="summary != null">summary,</if> |
|
|
|
<if test="urls != null">urls,</if> |
|
|
|
<if test="uploadUrl != null">upload_url,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="name != null">#{name},</if> |
|
|
|
@ -76,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="agencies != null">#{agencies},</if> |
|
|
|
<if test="summary != null">#{summary},</if> |
|
|
|
<if test="urls != null">#{urls},</if> |
|
|
|
<if test="uploadUrl != null">#{uploadUrl},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
@ -94,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="agencies != null">agencies = #{agencies},</if> |
|
|
|
<if test="summary != null">summary = #{summary},</if> |
|
|
|
<if test="urls != null">urls = #{urls},</if> |
|
|
|
<if test="uploadUrl != null">upload_url = #{uploadUrl},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|