You've already forked FrameTour-BE
2
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
server:
|
||||
port: 8030
|
||||
tomcat:
|
||||
threads:
|
||||
min-spare: 64
|
||||
|
||||
spring:
|
||||
application:
|
||||
@ -18,13 +21,13 @@ spring:
|
||||
username: zt
|
||||
password: ZhEnTuAi2024zHeNtUaI
|
||||
hikari:
|
||||
connection-timeout: 30000 # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生SQLException, 默认:30秒
|
||||
minimum-idle: 5 # 最小连接数
|
||||
maximum-pool-size: 20 # 最大连接数
|
||||
connection-timeout: 10000 # 等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生SQLException, 默认:30秒
|
||||
minimum-idle: 10 # 最小连接数
|
||||
maximum-pool-size: 50 # 最大连接数
|
||||
auto-commit: true # 事务自动提交
|
||||
idle-timeout: 60000 # 连接超时的最大时长(毫秒)
|
||||
pool-name: DateSourceHikariCP # 连接池名字
|
||||
max-lifetime: 180000 # 连接的生命时长(毫秒)
|
||||
idle-timeout: 120000 # 连接超时的最大时长(毫秒)
|
||||
pool-name: DateSourceHikariCP # 连接池名字
|
||||
max-lifetime: 300000 # 连接的生命时长(毫秒)
|
||||
connection-test-query: SELECT 1 # 连接测试语句
|
||||
jackson:
|
||||
date-format: "yyyy-MM-dd HH:mm:ss"
|
||||
@ -36,10 +39,9 @@ spring:
|
||||
password: ''
|
||||
jedis:
|
||||
pool:
|
||||
max-active: -1 # 连接池最大连接数(使用负值表示没有限制)
|
||||
max-active: 100 # 连接池最大连接数(使用负值表示没有限制)
|
||||
min-idle: 1 # 连接池中的最小空闲连接
|
||||
time-between-eviction-runs: 3000
|
||||
timeout: 40000
|
||||
timeout: 1000
|
||||
# 配置用户头像存放静态资源文件夹
|
||||
resources:
|
||||
static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/
|
||||
|
@ -32,9 +32,9 @@
|
||||
<fileNamePattern>logs/project_info.%d.%i.log</fileNamePattern>
|
||||
<!-- 每产生一个日志文件,该日志文件的保存期限为30天, ps:maxHistory的单位是根据fileNamePattern中的翻转策略自动推算出来的,例如上面选用了yyyy-MM-dd,则单位为天
|
||||
如果上面选用了yyyy-MM,则单位为月,另外上面的单位默认为yyyy-MM-dd-->
|
||||
<maxHistory>30</maxHistory>
|
||||
<maxHistory>7</maxHistory>
|
||||
<!-- 每个日志文件到10mb的时候开始切分,最多保留30天,但最大到20GB,哪怕没到30天也要删除多余的日志 -->
|
||||
<totalSizeCap>20GB</totalSizeCap>
|
||||
<totalSizeCap>1GB</totalSizeCap>
|
||||
<!-- maxFileSize:这是活动文件的大小,默认值是10MB,测试时可改成5KB看效果 -->
|
||||
<maxFileSize>10MB</maxFileSize>
|
||||
</rollingPolicy>
|
||||
|
@ -67,7 +67,8 @@
|
||||
delete from device where id = #{id}
|
||||
</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 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 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
|
||||
@ -91,7 +92,7 @@
|
||||
and d.create_at <= #{endTime}
|
||||
</if>
|
||||
</where>
|
||||
order by sort
|
||||
order by d.scenic_id desc, sort asc
|
||||
</select>
|
||||
<select id="getById" 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
|
||||
|
@ -117,4 +117,7 @@
|
||||
order by update_at desc
|
||||
limit 1
|
||||
</select>
|
||||
<select id="test" resultType="com.ycwl.basic.model.pc.face.resp.FaceRespVO">
|
||||
SELECT * FROM `zt`.`face_sample` WHERE `scenic_id` = '3930324797233434624' AND `create_at` < '2025-03-07 14:40:36' AND `device_id` = '3961959104355897344'
|
||||
</select>
|
||||
</mapper>
|
||||
|
@ -483,4 +483,8 @@
|
||||
<select id="getOrderItem" resultType="com.ycwl.basic.model.pc.order.entity.OrderItemEntity">
|
||||
select * from order_item where id = #{id}
|
||||
</select>
|
||||
<select id="queryTypeOrder" resultType="com.ycwl.basic.model.pc.order.entity.OrderEntity">
|
||||
select * from `order` where member_id = #{userId} and type = #{orderType} and price_config_id = #{priceConfigId}
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
@ -52,7 +52,7 @@
|
||||
select * from price_config
|
||||
where scenic_id = #{scenicId}
|
||||
and type = #{type}
|
||||
<if test="goodsId != null">
|
||||
<if test="goodsId != null and goodsId != ''">
|
||||
and goods_ids like concat('%', #{goodsId}, '%')
|
||||
</if>
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user