| | |
| | | GlobalVariable.previewMap.remove(cameraId); |
| | | } |
| | | log.debug("录像停止"); |
| | | //存入minio |
| | | String BucketName = "record"; |
| | | String ObjectName = IdUtils.fastSimpleUUID() + ".mp4"; |
| | | FileInputStream stream = new FileInputStream(path); |
| | | boolean b = MinioUtil.uploadObject(BucketName, ObjectName, stream, stream.available(), "video/MP4"); |
| | | if (b) { |
| | | url = MinioUtil.getBucketObjectUrl(BucketName, ObjectName); |
| | | log.debug("上传文件成功!" + url); |
| | | } |
| | | } |
| | | return url; |
| | | } catch (Exception ex) { |
| | |
| | | <result property="currentStepStartTime" column="current_step_start_time" /> |
| | | </resultMap> |
| | | |
| | | <resultMap id="ArdVideoInspectTaskArdVideoInspectTaskStepResult" type="ArdVideoInspectTask" extends="ArdVideoInspectTaskResult"> |
| | | <collection property="ardVideoInspectTaskStepList" notNullColumn="sub_task_id" javaType="java.util.List" resultMap="ArdVideoInspectTaskStepResult" /> |
| | | <resultMap id="ArdVideoInspectTaskArdVideoInspectTaskStepResult" type="ArdVideoInspectTask" |
| | | extends="ArdVideoInspectTaskResult"> |
| | | <collection property="ardVideoInspectTaskStepList" notNullColumn="sub_task_id" javaType="java.util.List" |
| | | resultMap="ArdVideoInspectTaskStepResult"/> |
| | | </resultMap> |
| | | |
| | | <resultMap type="ArdVideoInspectTaskStep" id="ArdVideoInspectTaskStepResult"> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectArdVideoInspectTaskVo"> |
| | | select id, task_name, start_time, end_time, repeat_period, inspect_mode, menual_switch, create_by, create_time, update_by, update_time, camera_id, channel, dept_id, user_id, current_step_id, current_step_start_time from ard_video_inspect_task |
| | | select id, |
| | | task_name, |
| | | start_time, |
| | | end_time, |
| | | repeat_period, |
| | | inspect_mode, |
| | | menual_switch, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | camera_id, |
| | | channel, |
| | | dept_id, |
| | | user_id, |
| | | current_step_id, |
| | | current_step_start_time |
| | | from ard_video_inspect_task |
| | | </sql> |
| | | |
| | | <select id="selectArdVideoInspectTaskList" parameterType="ArdVideoInspectTask" resultMap="ArdVideoInspectTaskResult"> |
| | | <select id="selectArdVideoInspectTaskList" parameterType="ArdVideoInspectTask" |
| | | resultMap="ArdVideoInspectTaskResult"> |
| | | <include refid="selectArdVideoInspectTaskVo"/> |
| | | <where> |
| | | <if test="taskName != null and taskName != ''"> and task_name like '%'||#{taskName}||'%'</if> |
| | |
| | | order by start_time |
| | | </select> |
| | | |
| | | <select id="selectArdVideoInspectTaskById" parameterType="String" resultMap="ArdVideoInspectTaskArdVideoInspectTaskStepResult"> |
| | | select a.id, a.task_name, a.start_time, a.end_time, a.repeat_period, a.inspect_mode, a.menual_switch, a.create_by, a.create_time, a.update_by, a.update_time, a.camera_id, a.channel, a.dept_id, a.user_id, a.current_step_id, a.current_step_start_time, |
| | | b.task_id as sub_task_id, b.dept_id as sub_dept_id, b.user_id as sub_user_id, b.id as sub_id, b.order_number as sub_order_number, b.recording_time as sub_recording_time, b.well_id as sub_well_id |
| | | <select id="selectArdVideoInspectTaskById" parameterType="String" |
| | | resultMap="ArdVideoInspectTaskArdVideoInspectTaskStepResult"> |
| | | select a.id, |
| | | a.task_name, |
| | | a.start_time, |
| | | a.end_time, |
| | | a.repeat_period, |
| | | a.inspect_mode, |
| | | a.menual_switch, |
| | | a.create_by, |
| | | a.create_time, |
| | | a.update_by, |
| | | a.update_time, |
| | | a.camera_id, |
| | | a.channel, |
| | | a.dept_id, |
| | | a.user_id, |
| | | a.current_step_id, |
| | | a.current_step_start_time, |
| | | b.task_id as sub_task_id, |
| | | b.dept_id as sub_dept_id, |
| | | b.user_id as sub_user_id, |
| | | b.id as sub_id, |
| | | b.order_number as sub_order_number, |
| | | b.recording_time as sub_recording_time, |
| | | b.well_id as sub_well_id |
| | | from ard_video_inspect_task a |
| | | left join ard_video_inspect_task_step b on b.task_id = a.id |
| | | where a.id = #{id} |
| | |
| | | where id = #{id} |
| | | </update> |
| | | <delete id="deleteArdVideoInspectTaskById" parameterType="String"> |
| | | delete from ard_video_inspect_task where id = #{id} |
| | | delete |
| | | from ard_video_inspect_task |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteArdVideoInspectTaskByIds" parameterType="String"> |
| | |
| | | </delete> |
| | | |
| | | <delete id="deleteArdVideoInspectTaskStepByTaskId" parameterType="String"> |
| | | delete from ard_video_inspect_task_step where task_id = #{taskId} |
| | | delete |
| | | from ard_video_inspect_task_step |
| | | where task_id = #{taskId} |
| | | </delete> |
| | | |
| | | <insert id="batchArdVideoInspectTaskStep"> |
| | | insert into ard_video_inspect_task_step( task_id, dept_id, user_id, order_number, recording_time, well_id) values |
| | | insert into ard_video_inspect_task_step( task_id, dept_id, user_id, order_number, recording_time, well_id) |
| | | values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | ( #{item.taskId}, #{item.deptId}, #{item.userId}, #{item.orderNumber}, #{item.recordingTime}, #{item.wellId}) |
| | | ( #{item.taskId}, #{item.deptId}, #{item.userId}, #{item.orderNumber}, #{item.recordingTime}, |
| | | #{item.wellId}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <!--查询任务中相机已使用时段--> |
| | | <select id="getTaskUsedCameraPeriods" parameterType="String" resultType="java.util.HashMap"> |
| | | select t.start_time,t.end_time from ard_video_inspect_task t |
| | | select t.start_time, t.end_time |
| | | from ard_video_inspect_task t |
| | | where t.camera_id=#{cameraId} |
| | | ORDER BY t.start_time |
| | | </select> |
| | |
| | | # 主库数据源
|
| | | master:
|
| | | driverClassName: org.postgresql.Driver
|
| | | url: jdbc:postgresql://192.168.1.14:5432/ry-vue?stringtype=unspecified
|
| | | url: jdbc:postgresql://192.168.2.15:5432/ry-vue?stringtype=unspecified
|
| | | username: postgres
|
| | | password: postgres
|
| | | # 从库数据源
|
| | |
| | | port: 8080 |
| | | ssl: |
| | | # 开启HTTPS,并配置自签名证书 |
| | | enabled: true |
| | | enabled: false |
| | | #秘钥库文件名称,即上面生成的自签名证书 |
| | | key-store: classpath:keystore |
| | | # 生成秘钥库文件的密码 |
| | |
| | | com.ruoyi.common.filter.MyI18nInterceptor: info |
| | | authorize: info |
| | | minio: info |
| | | hikSdk: info |
| | | dhSdk: info |
| | | hikSdk: debug |
| | | dhSdk: debug |
| | | sdk: info |
| | | vtdu: info |
| | | stealAlarm: info |
| | |
| | | uav: info |
| | | sy: info |
| | | mqttCar: info |
| | | msgListener: debug |
| | | ## knife4j配置 |
| | | knife4j: |
| | | # knife4j增强功能,开启后下面参数才生效 |
| | |
| | | path: D:/DATA |
| | | #流媒体转码服务器 |
| | | mediamtx: |
| | | enabled: true |
| | | host: 192.168.1.227 |
| | | enabled: false |
| | | host: 192.168.1.27 |
| | | #mqtt |
| | | #全部主题:minioEvent,radar,stealelec,tube,camera,external,accessControl,apponekey,digitization3 |
| | | mqtt: |
| | | host: tcp://192.168.2.15:1883 |
| | | clientId: Server |
| | | clientId: Server27 |
| | | username: admin |
| | | password: admin |
| | | topic: minioEvent,radar,stealelec,tube,camera,external,accessControl,apponekey,digitization3,radarForceGuide |
| | |
| | | enabled: true |
| | | #三一车辆开关 |
| | | syCar: |
| | | enabled: true |
| | | enabled: false |
| | | userId: admin |
| | | password: 654321 |
| | | #无人机开关 |
| | | uav: |
| | | enabled: false |
| | |
| | | cmd: info |
| | | uav: info |
| | | sy: info |
| | | msgListener: debug |
| | | # minio配置 |
| | | minio: |
| | | enabled: true |
| | | enabled: false |
| | | endpoint: http://192.168.1.14:9001 |
| | | accessKey: admin |
| | | secretKey: xzx12345 |
| | | path: G:/DATA |
| | | #流媒体转码服务器 |
| | | mediamtx: |
| | | enabled: true |
| | | enabled: false |
| | | host: 192.168.1.14 |
| | | software_decoding: true |
| | | #mqtt |
| | | mqtt: |
| | | host: tcp://192.168.1.14:1883 |
| | |
| | | enabled: true |
| | | #三一车辆开关 |
| | | syCar: |
| | | enabled: true |
| | | enabled: false |
| | | userId: admin |
| | | password: 654321 |
| | | #无人机开关 |
| | | uav: |
| | | enabled: true |
| | | enabled: false |
| | |
| | | urlPatterns: /system/*,/monitor/*,/tool/*
|
| | | #异步线程池配置
|
| | | ThreadPoolTask:
|
| | | corePoolSize: 10
|
| | | maxPoolSize: 10
|
| | | corePoolSize: 16
|
| | | maxPoolSize: 32
|
| | | keepAliveSeconds: 300
|
| | | queueCapacity: 500
|
| | | queueCapacity: 50
|
| | | # Spring配置
|
| | | spring:
|
| | | # 资源信息
|