|
@@ -102,23 +102,17 @@
|
|
|
|
|
|
<select id="urlAttch" parameterType="java.lang.String"
|
|
|
resultType="com.sooka.sponest.data.system.attach.domain.AppDataTAttach">
|
|
|
- select attach_path as attachPath,file_name as fileName,bus_source as busSource from centerdata_t_attach where bus_id = #{busId} and attach_path
|
|
|
- not like concat('%', 'mp4', '%')
|
|
|
+ select attach_path attachPath,file_name fileName,bus_source busSource
|
|
|
+ from centerdata_t_attach
|
|
|
+ where bus_id = #{busId} and attach_path not like concat('%', 'mp4', '%')
|
|
|
+ order by create_time,attach_sorts
|
|
|
</select>
|
|
|
|
|
|
<select id="urlAttchMpF" parameterType="java.lang.String"
|
|
|
resultType="com.sooka.sponest.data.system.attach.domain.AppDataTAttach">
|
|
|
- select attach_path as attachPath,file_name as fileName,bus_source as busSource from centerdata_t_attach where bus_id = #{busId} and attach_path like concat('%', 'mp4', '%')
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="attachBFireLogById" parameterType="java.lang.String"
|
|
|
- resultType="com.sooka.sponest.data.system.attach.domain.AppDataTAttach">
|
|
|
- select attach_path as attachPath,file_name as fileName ,bus_source as busSource from centerdata_t_attach where bus_id = #{id} and attach_path not like concat('%', 'mp4', '%')
|
|
|
- </select>
|
|
|
-
|
|
|
- <select id="attachBFireLogByIdMp" parameterType="java.lang.String"
|
|
|
- resultType="com.sooka.sponest.data.system.attach.domain.AppDataTAttach">
|
|
|
- select attach_path as attachPath,file_name as fileName ,bus_source as busSource from centerdata_t_attach where bus_id = #{id} and attach_path like concat('%', 'mp4', '%')
|
|
|
+ select attach_path attachPath,file_name fileName,bus_source busSource
|
|
|
+ from centerdata_t_attach
|
|
|
+ where bus_id = #{busId} and attach_path like concat('%', 'mp4', '%')
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertEventFileLog" parameterType="CenterdataTAttach">
|
|
@@ -158,7 +152,8 @@
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
- <select id="selectFailUpattah" resultType="map">
|
|
|
+
|
|
|
+ <select id="selectFailUpattah" resultType="map">
|
|
|
SELECT
|
|
|
ch.bus_id busId,
|
|
|
ch.attach_path url,
|
|
@@ -187,7 +182,7 @@
|
|
|
order by a.create_time
|
|
|
</select>
|
|
|
|
|
|
- <delete id="deleteListCenterdataTAttach" parameterType="CenterdataTAttach">
|
|
|
+ <delete id="deleteListCenterdataTAttach" parameterType="CenterdataTAttach">
|
|
|
delete from centerdata_t_attach where bus_id = #{busId} and attach_path in
|
|
|
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
|
|
|
#{item.attachPath}
|