fix: 修改收藏品文件上传接口。
This commit is contained in:
@@ -24,8 +24,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="CommemorativeCoinCollectFileResult" type="CommemorativeCoinVo" extends="CommemorativeCoinResult">
|
||||
<collection property="collectFileList" notNullColumn="sub_id" javaType="java.util.List" resultMap="CollectFileResult" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="CollectFileVo" id="CollectFileResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="collectId" column="collect_id" />
|
||||
<result property="catelog" column="catelog" />
|
||||
<result property="fileName" column="file_name" />
|
||||
<result property="name" column="name" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="url" column="url" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCommemorativeCoinVo">
|
||||
select a.id, a.type, a.full_name, a.short_name, a.face_value, a.issue_date, a.issue_year, a.series, a.set_number, a.block_type, a.shape, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark from col_commemorative_coin a
|
||||
select a.id, a.type, a.full_name, a.short_name, a.face_value, a.issue_date,
|
||||
a.issue_year, a.series, a.set_number, a.block_type, a.shape, a.create_by,
|
||||
a.create_time, a.update_by, a.update_time, a.del_flag, a.remark,
|
||||
b.id as sub_id, b.collect_id as sub_collect_id, b.catelog as sub_catelog, b.file_name as sub_file_name,
|
||||
b.name as sub_name, b.create_by as sub_create_by, b.create_time as sub_create_time, b.url as sub_url
|
||||
from col_commemorative_coin a
|
||||
left join col_collect_file b on b.collect_id=a.id
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectCommemorativeCoinList" parameterType="CommemorativeCoinDto" resultMap="CommemorativeCoinResult">
|
||||
@@ -41,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="blockType != null and blockType != ''"> and a.block_type = #{blockType}</if>
|
||||
<if test="shape != null and shape != ''"> and a.shape = #{shape}</if>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
order by a.issue_date desc
|
||||
</select>
|
||||
|
||||
<select id="selectCommemorativeCoinById" parameterType="Long" resultMap="CommemorativeCoinResult">
|
||||
|
||||
Reference in New Issue
Block a user