|
@@ -11,10 +11,12 @@
|
|
|
<result property="busSource" column="bus_source"/>
|
|
|
<result property="fileName" column="file_name"/>
|
|
|
<result property="fileType" column="file_type"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="attachSorts" column="attach_sorts"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCenterdataTAttachVo">
|
|
|
- select bus_id, attach_path, bus_indx,bus_source,file_name,file_type from centerdata_t_attach
|
|
|
+ select bus_id, attach_path, bus_indx,bus_source,file_name,file_type,create_time,attach_sorts from centerdata_t_attach
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCenterdataTAttachList" parameterType="CenterdataTAttach" resultMap="CenterdataTAttachResult">
|
|
@@ -25,6 +27,7 @@
|
|
|
<if test="busIndx != null and busIndx != ''">and bus_indx = #{busIndx}</if>
|
|
|
<if test="busSource != null and busSource != ''">and bus_source = #{busSource}</if>
|
|
|
</where>
|
|
|
+ order by attach_sorts
|
|
|
</select>
|
|
|
|
|
|
<select id="remotelistNew" parameterType="CenterdataTAttach" resultMap="CenterdataTAttachResult">
|
|
@@ -33,6 +36,7 @@
|
|
|
<foreach item="busIds" collection="busIds" open="(" separator="," close=")">
|
|
|
#{busIds}
|
|
|
</foreach>
|
|
|
+ order by attach_sorts
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCenterdataTAttachByBusId" parameterType="String" resultMap="CenterdataTAttachResult">
|
|
@@ -54,6 +58,7 @@
|
|
|
<if test="busSource != null">bus_source,</if>
|
|
|
<if test="fileName != null">file_name,</if>
|
|
|
<if test="fileType != null">file_type,</if>
|
|
|
+ <if test="attachSorts != null">attach_sorts,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="busId != null">#{busId},</if>
|
|
@@ -62,6 +67,7 @@
|
|
|
<if test="busSource != null">#{busSource},</if>
|
|
|
<if test="fileName != null">#{fileName},</if>
|
|
|
<if test="fileType != null">#{fileType},</if>
|
|
|
+ <if test="attachSorts != null">#{attachSorts},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -73,6 +79,7 @@
|
|
|
<if test="busSource != null">bus_source = #{busSource},</if>
|
|
|
<if test="fileName != null">file_name = #{fileName},</if>
|
|
|
<if test="fileType != null">file_type = #{fileType},</if>
|
|
|
+ <if test="attachSorts != null">attach_sorts = #{attachSorts},</if>
|
|
|
</trim>
|
|
|
where bus_id = #{busId}
|
|
|
</update>
|
|
@@ -84,6 +91,7 @@
|
|
|
<if test="attachPath != null">attach_path = #{attachPath},</if>
|
|
|
<if test="busSource != null">bus_source = #{busSource},</if>
|
|
|
<if test="fileType != null">file_type = #{fileType},</if>
|
|
|
+ <if test="attachSorts != null">attach_sorts = #{attachSorts},</if>
|
|
|
</trim>
|
|
|
where bus_id = #{busId} and attach_path = #{fileName}
|
|
|
</update>
|
|
@@ -135,7 +143,7 @@
|
|
|
bus_indx,
|
|
|
bus_source,
|
|
|
file_name,
|
|
|
- file_type
|
|
|
+ attach_sorts,
|
|
|
)values
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
(
|
|
@@ -144,7 +152,8 @@
|
|
|
#{item.busIndx},
|
|
|
#{item.busSource},
|
|
|
#{item.fileName},
|
|
|
- #{item.fileType}
|
|
|
+ #{item.fileType},
|
|
|
+ #{item.attachSorts}
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
@@ -185,6 +194,6 @@
|
|
|
</delete>
|
|
|
|
|
|
<select id="selectDataAttachPathByBusId" resultType="String" parameterType="String">
|
|
|
- select attach_path from centerdata_t_attach where bus_id = #{busId}
|
|
|
+ select attach_path, attach_sorts from centerdata_t_attach where bus_id = #{busId}
|
|
|
</select>
|
|
|
</mapper>
|