|
@@ -27,6 +27,7 @@
|
|
|
COALESCE(m.image_thumb_url, '') image_thumb_url,
|
|
|
COALESCE(m.image_url, '') image_url,
|
|
|
COALESCE(m.file_url, '') file_url,
|
|
|
+ COALESCE(m.pan_baidu_url, '') pan_baidu_url,
|
|
|
m.is_copyright,
|
|
|
m.create_time,
|
|
|
m.update_time
|
|
@@ -61,6 +62,7 @@
|
|
|
<result property="image_thumb_url" column="image_thumb_url" />
|
|
|
<result property="image_url" column="image_url" />
|
|
|
<result property="file_url" column="file_url" />
|
|
|
+ <result property="pan_baidu_url" column="pan_baidu_url" />
|
|
|
<result property="is_copyright" column="is_copyright" javaType="java.lang.Integer" />
|
|
|
<result property="create_time" column="create_time"
|
|
|
typeHandler="com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeHandler" />
|
|
@@ -109,6 +111,7 @@
|
|
|
<if test="image_thumb_url != null and image_thumb_url != ''">, image_thumb_url</if>
|
|
|
<if test="image_url != null and image_url != ''">, image_url</if>
|
|
|
<if test="file_url != null and file_url != ''">, file_url</if>
|
|
|
+ <if test="pan_baidu_url != null and pan_baidu_url != ''">, pan_baidu_url</if>
|
|
|
<if test="is_copyright != null and is_copyright != ''">, is_copyright</if>
|
|
|
)
|
|
|
VALUES (
|
|
@@ -117,6 +120,7 @@
|
|
|
<if test="image_thumb_url != null and image_thumb_url != ''">, #{image_thumb_url}</if>
|
|
|
<if test="image_url != null and image_url != ''">, #{image_url}</if>
|
|
|
<if test="file_url != null and file_url != ''">, #{file_url}</if>
|
|
|
+ <if test="pan_baidu_url != null and pan_baidu_url != ''">, #{pan_baidu_url}</if>
|
|
|
<if test="is_copyright != null and is_copyright != ''">, #{is_copyright}</if>
|
|
|
)
|
|
|
</insert>
|
|
@@ -132,6 +136,7 @@
|
|
|
<if test="image_thumb_url != null and image_thumb_url != ''">, image_thumb_url = #{image_thumb_url}</if>
|
|
|
<if test="image_url != null and image_url != ''">, image_url = #{image_url}</if>
|
|
|
<if test="file_url != null and file_url != ''">, file_url = #{file_url}</if>
|
|
|
+ <if test="pan_baidu_url != null and pan_baidu_url != ''">, pan_baidu_url = #{pan_baidu_url}</if>
|
|
|
<if test="is_copyright != null and is_copyright != ''">, is_copyright = #{is_copyright}</if>
|
|
|
WHERE id = #{material_id}
|
|
|
</update>
|