渲染机支持配置存储地址

This commit is contained in:
2025-04-20 15:06:02 +08:00
parent b36da6ff35
commit 3863c0d963
9 changed files with 45 additions and 23 deletions

View File

@@ -32,13 +32,14 @@ spring:
password: ZhEnTuAi
timeout: 40000
# 配置用户头像存放静态资源文件夹
resources:
static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/
# 配置请求文件大小
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
web:
resources:
static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/
# MyBatis
mybatis-plus:

View File

@@ -71,8 +71,7 @@
</delete>
<select id="list" resultType="com.ycwl.basic.model.pc.device.resp.DeviceRespVO">
select d.id, scenic_id, d.name, no, d.longitude, d.latitude, d.status, create_at, d.update_at, s.name scenic_name, d.keepalive_at, d.online, p.wvp_device_no as device_no, p.wvp_channel_no channel_no,
(select s.url from source s where s.device_id=d.id order by id desc limit 1) coverUrl,
(select s.create_time from source s where s.device_id=d.id order by id desc limit 1) coverTime
(select s.url from source s where s.device_id=d.id order by id desc limit 1) coverUrl
from device d
left join scenic s on d.scenic_id = s.id
left join device_preview_config p on d.id = p.device_id and p.status = 1

View File

@@ -122,7 +122,7 @@
where id = #{id}
</select>
<select id="findByAccessKey" resultType="com.ycwl.basic.model.pc.renderWorker.entity.RenderWorkerEntity">
select id, `name`, scenic_only, test_only, `online`, `status`, create_at, update_at
select id, `name`, scenic_only, test_only, `online`, `status`, create_at, update_at, store_type, store_config_json
from render_worker
where access_key = #{accessKey} and status = 1
</select>