Merge remote-tracking branch 'origin/master'
| | |
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | code: '111'
|
| | | code: ''
|
| | | }
|
| | | }, |
| | | onLoad(option) { |
| | |
| | | let code = ''
|
| | | if (window.location.href.indexOf('code=') !== -1 || this.code) {
|
| | | const ywinfo = uni.getStorageSync('ywinfo') || {} |
| | | if(ywinfo.ywid){ |
| | | if(ywinfo.ywid && (ywinfo.type || ywinfo.type == 0)){ |
| | | this.userAuth(ywinfo.type) |
| | | }
|
| | | } else {
|
| | |
| | | }, |
| | | modalReset() { |
| | | this.modelParam = {} |
| | | this.search = { |
| | | queryType: 0 |
| | | } |
| | | this.pagination.page = 0 |
| | | this.dataList = [] |
| | | this.showFilter = false |
| | |
| | | ...search |
| | | } |
| | | }).then(res => { |
| | | if(res.data && res.data.records){ |
| | | res.data.records.forEach(i => { |
| | | if (i.param1) { |
| | | i.param1 = JSON.parse(i.param1) |
| | | } |
| | | }) |
| | | } |
| | | this.dataList = [...this.dataList, ...res.data.records] |
| | | this.total = res.data.total |
| | | this.dataList.forEach(i => { |
| | | if (i.param1) { |
| | | i.param1 = JSON.parse(i.param1) |
| | | } |
| | | }) |
| | | |
| | | }) |
| | | }, |
| | | getHeadList() { |
| | |
| | | param.queryStartTime = param.queryDate + ' 00:00:00' |
| | | param.queryEndTime = param.queryDate + ' 23:59:59' |
| | | } |
| | | if(param.carCode == 'å
¨é¨è½¦è¾'){ |
| | | param.carCode = null |
| | | param.carId = null |
| | | } |
| | | carUseBookPaiche({ |
| | | ...pagination, |
| | | model: { ...param } |
| | |
| | | |
| | | export const baseUrl = 'zhyq_interface/' |
| | | // export const baseUrl = 'zhyq_interface/' |
| | | // export const baseUrl = 'http://192.168.0.173/gateway_interface/' |
| | | // export const baseUrl = 'http://10.50.250.253:8088/gateway_interface/' |
| | | // export const baseUrl = 'https://atwl.ahzyssl.com/zhyq_interface/' |
| | | export const baseUrl = 'https://atwl.ahzyssl.com/zhyq_interface/' |
| | | |
| | | export const app_url = 'https://atwl.ahzyssl.com/zhyq_h5/#/' |
| | | |
| | |
| | | <div v-show="showJk" class="jiankong"> |
| | | <img class="jk_bg" src="@/assets/images/SecurityControl/jiankong_bg@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="player_bg" style="width: 100%;height: 100%;" id="playWnd"> </div> |
| | | <Video v-if="showJk && activeMenu && activeMenu.indexCode" :href="data.videoPluginUrl" :indexCode="activeMenu.indexCode" /> |
| | | <!-- <div class="player_bg" style="width: 100%;height: 100%;" id="playWnd"> </div> --> |
| | | </div> |
| | | <div class="right_wrap"> |
| | | <div class="menus"> |
| | |
| | | </div> |
| | | <img src="@/assets/images/task/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | | <div class="monitoring" @click="showJk = !showJk"> |
| | | <div class="monitoring" @click="changeMon"> |
| | | <img src="@/assets/images/SecurityControl/ic_jiankong@2x.png" class="icon" alt=""> |
| | | <div>çæ§å表</div> |
| | | <img v-if="showJk" src="@/assets/images/SecurityControl/jiankong_ic_close@2x.png" class="top" alt=""> |
| | |
| | | import * as echarts from 'echarts' |
| | | import 'swiper/css/swiper.min.css' |
| | | import Swiper from 'swiper' |
| | | import Video from './videoUrl/Video.vue' |
| | | import { |
| | | getEnergyCenterData, |
| | | afgetCarmeraPreviemUrl, |
| | |
| | | time.value = dayjs().format('HH:mm:ss') |
| | | |
| | | }, 1000) |
| | | |
| | | |
| | | const oWebControl = ref(null) |
| | | const initCount = ref() |
| | | const pubKey = ref('') |
| | | const initPlugin = () => { |
| | | oWebControl.value = new WebControl({ |
| | | szPluginContainer: "playWnd", // æå®å®¹å¨id |
| | | iServicePortStart: 15900, // æå®èµ·æ¢ç«¯å£å·ï¼å»ºè®®ä½¿ç¨è¯¥å¼ |
| | | iServicePortEnd: 15900, |
| | | szClassId: "23BF3B0A-2C56-4D97-9C03-0CB103AA8F11", // ç¨äºIE10使ç¨ActiveXçclsid |
| | | cbConnectSuccess: function () { |
| | | // å建WebControlå®ä¾æå |
| | | console.log('å建WebControlå®ä¾æå'); |
| | | |
| | | oWebControl.value.JS_StartService("window", { // WebControlå®ä¾å建æååéè¦å¯å¨æå¡ |
| | | dllPath: "./VideoPluginConnect.dll" // å¼"./VideoPluginConnect.dll"åæ» |
| | | }).then(function () { |
| | | oWebControl.value.JS_SetWindowControlCallback({ // è®¾ç½®æ¶æ¯åè° |
| | | cbIntegrationCallBack: cbIntegrationCallBack |
| | | })// å¯å¨æä»¶æå¡æå |
| | | oWebControl.value.JS_CreateWnd("playWnd", '300', '200').then(function () { //JS_CreateWndå建è§é¢ææ¾çªå£ï¼å®½é«å¯è®¾å®ï¼boxWidth, boxHeightå®¹å¨ |
| | | // oWebControl.value.JS_CreateWnd("playWnd").then(function () { //JS_CreateWndå建è§é¢ææ¾çªå£ï¼å®½é«å¯è®¾å®ï¼boxWidth, boxHeightå®¹å¨ |
| | | init() // åå»ºææ¾å®ä¾æåååå§å |
| | | }) |
| | | }, function () { // å¯å¨æä»¶æå¡å¤±è´¥ |
| | | }) |
| | | }, |
| | | cbConnectError: function () { // å建WebControlå®ä¾å¤±è´¥ |
| | | console.log('å建WebControlå®ä¾å¤±è´¥'); |
| | | oWebControl.value = null |
| | | $("#playWnd").html("æä»¶æªå¯å¨ï¼æ£å¨å°è¯å¯å¨ï¼è¯·ç¨å...") |
| | | WebControl.JS_WakeUp("VideoWebPlugin://") // ç¨åºæªå¯å¨æ¶æ§è¡error彿°ï¼éç¨wakeupæ¥å¯å¨ç¨åº |
| | | initCount.value++ |
| | | if (initCount.value < 3) { |
| | | setTimeout(function () { |
| | | initPlugin() |
| | | }, 3000) |
| | | } else { |
| | | $("#playWnd").html("æä»¶å¯å¨å¤±è´¥ï¼è¯·æ£æ¥æä»¶æ¯å¦å®è£
ï¼æéæ°ä¸è½½ <a href='./videoUrl/VideoWebPlugin.exe' target='_blank'>ä¸è½½a<a>") |
| | | } |
| | | }, |
| | | cbConnectClose: function (bNormalClose) { |
| | | // å¼å¸¸æå¼ï¼bNormalClose = false |
| | | // JS_Disconnectæ£å¸¸æå¼ï¼bNormalClose = true |
| | | console.log('å¼å¸¸æå¼ï¼bNormalClose'); |
| | | oWebControl.value = null |
| | | $("#playWnd").html("æä»¶æªå¯å¨ï¼æ£å¨å°è¯å¯å¨ï¼è¯·ç¨å...") |
| | | WebControl.JS_WakeUp("VideoWebPlugin://") |
| | | initCount.value++ |
| | | if (initCount.value < 3) { |
| | | setTimeout(function () { |
| | | initPlugin() |
| | | }, 3000) |
| | | } else { |
| | | $("#playWnd").html("æä»¶å¯å¨å¤±è´¥ï¼è¯·æ£æ¥æä»¶æ¯å¦å®è£
ï¼æéæ°ä¸è½½ <a href='https://img0.baidu.com/it/u=3867022436,608124672&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1422' target='_blank'>ä¸è½½b<a>") |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | function fileDown() { |
| | | window.open('./videoUrl/VideoWebPlugin.exe') |
| | | } |
| | | // æ¶æ¯åè° |
| | | const cbIntegrationCallBack = (oData) => { |
| | | let response = oData.responseMsg |
| | | // response.type=1 éä¸çªå£æ¶æ¯ type=2 ææ¾æ¶æ¯ |
| | | } |
| | | // çæ§ |
| | | |
| | | |
| | | |
| | | |
| | | // åå§å |
| | | const init = () => { |
| | | getPubKey(function () { |
| | | ////////////////////////////////// 请èªè¡ä¿®æ¹ä»¥ä¸åéå¼ //////////////////////////////////// |
| | | let appkey = "23154099" //综åå®é²ç®¡ç平尿ä¾çappkeyï¼å¿
å¡« |
| | | let secret = '88wFsg3xfn7o8QMsWEO2' //综åå®é²ç®¡ç平尿ä¾çsecretï¼å¿
å¡« |
| | | // let secret = setEncrypt("88wFsg3xfn7o8QMsWEO2") //综åå®é²ç®¡ç平尿ä¾çsecretï¼å¿
å¡« |
| | | let ip = "10.50.250.253" //综åå®é²ç®¡çå¹³å°IPå°åï¼å¿
å¡« |
| | | let playMode = 0 //åå§ææ¾æ¨¡å¼ï¼0-é¢è§(宿¶æµ)ï¼1-åæ¾(è§é¢) |
| | | let port = 443 //综åå®é²ç®¡çå¹³å°ç«¯å£ï¼è¥å¯ç¨HTTPSåè®®ï¼é»è®¤443 |
| | | let snapDir = "D:\\SnapDir" //æå¾åå¨è·¯å¾ |
| | | let videoDir = "D:\\VideoDir" //ç´§æ¥å½åæå½ååªè¾åå¨è·¯å¾ |
| | | let layout = "1x1" //playModeæå®æ¨¡å¼çå¸å± |
| | | let enableHTTPS = 1 //æ¯å¦å¯ç¨HTTPSåè®®ä¸ç»¼åå®é²ç®¡çå¹³å°äº¤äºï¼è¿éæ»æ¯å¡«1 |
| | | let encryptedFields = 'secret' //å å¯å段ï¼é»è®¤å å¯é¢å为secret |
| | | let showToolbar = 1 //æ¯å¦æ¾ç¤ºå·¥å
·æ ï¼0-䏿¾ç¤ºï¼é0-æ¾ç¤º |
| | | let showSmart = 1 //æ¯å¦æ¾ç¤ºæºè½ä¿¡æ¯ï¼å¦é
置移å¨ä¾¦æµåç»é¢ä¸ç线æ¡ï¼ï¼0-䏿¾ç¤ºï¼é0-æ¾ç¤º |
| | | let buttonIDs = "0,16,256,257,258,259,260,513,514,515,516,517,768" //èªå®ä¹å·¥å
·æ¡æé® |
| | | oWebControl.value.JS_RequestInterface({ |
| | | funcName: "init", |
| | | argument: JSON.stringify({ |
| | | appkey: appkey, //APIç½å
³æä¾çappkey |
| | | secret: secret, //APIç½å
³æä¾çsecret |
| | | ip: ip, //APIç½å
³IPå°å |
| | | playMode: playMode, //ææ¾æ¨¡å¼ï¼å³å®æ¾ç¤ºé¢è§è¿æ¯åæ¾çé¢ï¼ |
| | | port: port, //ç«¯å£ |
| | | snapDir: snapDir, //æå¾åå¨è·¯å¾ |
| | | videoDir: videoDir, //ç´§æ¥å½åæå½ååªè¾åå¨è·¯å¾ |
| | | layout: layout, //å¸å± |
| | | enableHTTPS: enableHTTPS, //æ¯å¦å¯ç¨HTTPSåè®® |
| | | encryptedFields: encryptedFields, //å å¯å段 |
| | | showToolbar: showToolbar, //æ¯å¦æ¾ç¤ºå·¥å
·æ |
| | | showSmart: showSmart, //æ¯å¦æ¾ç¤ºæºè½ä¿¡æ¯ |
| | | buttonIDs: buttonIDs //èªå®ä¹å·¥å
·æ¡æé® |
| | | }) |
| | | }).then(function (oData) { |
| | | console.log('åå§åæå'); |
| | | |
| | | // oWebControl.value.JS_Resize(that.boxWidth, that.boxHeight) // åå§ååresize䏿¬¡ï¼è§é¿firefoxä¸é¦æ¬¡æ¾ç¤ºçªå£åæä»¶çªå£æªä¸DIVçªå£éåé®é¢ |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | // è·åå
¬é¥ |
| | | function getPubKey(callback) { |
| | | oWebControl.value.JS_RequestInterface({ |
| | | funcName: 'getRSAPubKey', |
| | | argument: JSON.stringify({ |
| | | keyLength: 1024, |
| | | }), |
| | | }).then((oData) => { |
| | | if (oData.responseMsg.data) { |
| | | pubKey.value = oData.responseMsg.data |
| | | callback() |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // RSAå å¯ |
| | | function setEncrypt(value) { |
| | | let that = this |
| | | let encrypt = new JSEncrypt() |
| | | encrypt.setPublicKey(pubKey.value) |
| | | return encrypt.encrypt(value) |
| | | } |
| | | |
| | | |
| | | const arr = ['#68e2e3', '#50afd3', '#377cdb', '#d5ae3a'] |
| | | const initEnergy = () => { |
| | |
| | | data5.value = result.filter(item => item.carmeraList && item.carmeraList.length > 0) |
| | | }) |
| | | } |
| | | const changeMon = () => { |
| | | showJk.value = !showJk.value |
| | | if(!showJk.value){ |
| | | activeJkIndex.value = -1 |
| | | activeMenu.value = {} |
| | | } |
| | | } |
| | | const menuClick = (val) => { |
| | | if (val == activeJkIndex.value) { |
| | | activeJkIndex.value = -1 |
| | |
| | | } |
| | | } |
| | | const menuItemClick = (val) => { |
| | | initPlugin() |
| | | activeMenu.value = val |
| | | nextTick(() => { |
| | | console.log('indexCode', val.indexCode); |
| | | |
| | | oWebControl.value.JS_RequestInterface({ |
| | | funcName: "startPreview", |
| | | argument: JSON.stringify({ |
| | | cameraIndexCode: val.indexCode, //çæ§ç¹ç¼å· |
| | | streamMode: 0, //主åç æµæ è¯ï¼0-ä¸»ç æµï¼1-åç æµ |
| | | transMode: 1, //ä¼ è¾åè®®ï¼0-UDPï¼1-TCP |
| | | gpuMode: 0, //æ¯å¦å¯ç¨GPU硬解ï¼0-ä¸å¯ç¨ï¼1-å¯ç¨ |
| | | wndId: -1 //ææ¾çªå£åºå·ï¼å¨2x2以ä¸å¸å±ä¸å¯æå®ææ¾çªå£ï¼ |
| | | }) |
| | | }).then((oData) => { |
| | | if (oData.responseMsg.code === 1) { |
| | | console.log('success', oData) |
| | | } |
| | | }, err => { |
| | | console.log('err', err) |
| | | |
| | | }) |
| | | }) |
| | | |
| | | // afgetCarmeraPreviemUrl({ indexCode: val.indexCode }).then(res => { |
| | | // activeVideo.value = res.data |
| | | // }) |
| | | } |
| | | |
| | | const autoplayFlag = (list = [], leng = 4, time = 2000) => { |
| | | if (list.length > leng) { |
| | | return { delay: time, disableOnInteraction: false } |
| | |
| | | getData3() |
| | | getData5() |
| | | getWarning() |
| | | |
| | | |
| | | setInterval(() => { |
| | | getData1() |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="video_app"> |
| | | <div class="player_bg" ref="videoRef" style="width: 100%;height: 100%;" id="playWnd"> </div> |
| | | </div> |
| | | <!-- <img style="width: 34px;margin-bottom: 16px;" src="../../assets/images/SecurityControl/ic_unable@2x.png" > --> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { defineProps, ref, onMounted, onUnmounted, watch } from 'vue' |
| | | const props = defineProps({ |
| | | indexCode: String, |
| | | href: String, |
| | | }) |
| | | const templateA = ` |
| | | <div style="width:100%;height: 100%;display: flex;justify-content: center;align-items: center;flex-direction: column;"> |
| | | <div style="font-weight: 500;font-size: 15px;color: #CCCCCC;margin-bottom: 4px;">æ æ³ææ¾çæ§ç»é¢ï¼</div> |
| | | <div style="font-weight: 500;font-size: 15px;color: #CCCCCC;margin-bottom: 20px;">ç¹å»ä¸è½½å¹¶å®è£
è§å±ææ¾æä»¶</div> |
| | | <a href="${props.href}" target="_blank" style="font-weight: 500;font-size: 15px;color: #01D9FE;">ç¹å»ä¸è½½</a> |
| | | </div> |
| | | ` |
| | | |
| | | |
| | | const width = ref(0) |
| | | const height = ref(0) |
| | | const videoRef = ref(null) |
| | | |
| | | onMounted(() => { |
| | | const rect = videoRef.value.getBoundingClientRect() |
| | | width.value = rect.width |
| | | height.value = rect.height |
| | | |
| | | initPlugin() |
| | | window.addEventListener('resize', function () { // æ§è¡ |
| | | if (oWebControl.value) { |
| | | const rect = videoRef.value.getBoundingClientRect() |
| | | width.value = rect.width |
| | | height.value = rect.height |
| | | oWebControl.value.JS_Resize($('#playWnd').width(), $('#playWnd').height()) |
| | | } |
| | | }) |
| | | }) |
| | | onUnmounted(() => { |
| | | destroyed() |
| | | }) |
| | | const oWebControl = ref(null) |
| | | const initCount = ref() |
| | | const pubKey = ref('') |
| | | |
| | | watch( |
| | | () => props.indexCode, |
| | | (newValue, oldValue) => { |
| | | console.log('ç¶ç»ä»¶ä¼ å¼ååï¼', newValue) |
| | | videoPlay() |
| | | } |
| | | ) |
| | | |
| | | const initPlugin = () => { |
| | | oWebControl.value = new WebControl({ |
| | | szPluginContainer: "playWnd", // æå®å®¹å¨id |
| | | iServicePortStart: 15900, // æå®èµ·æ¢ç«¯å£å·ï¼å»ºè®®ä½¿ç¨è¯¥å¼ |
| | | iServicePortEnd: 15900, |
| | | szClassId: "23BF3B0A-2C56-4D97-9C03-0CB103AA8F11", // ç¨äºIE10使ç¨ActiveXçclsid |
| | | cbConnectSuccess: function () { |
| | | // å建WebControlå®ä¾æå |
| | | console.log('1--å建WebControlå®ä¾æå') |
| | | |
| | | oWebControl.value.JS_StartService("window", { // WebControlå®ä¾å建æååéè¦å¯å¨æå¡ |
| | | dllPath: "./VideoPluginConnect.dll" // å¼"./VideoPluginConnect.dll"åæ» |
| | | }).then(function () { |
| | | oWebControl.value.JS_SetWindowControlCallback({ // è®¾ç½®æ¶æ¯åè° |
| | | cbIntegrationCallBack: cbIntegrationCallBack |
| | | })// å¯å¨æä»¶æå¡æå |
| | | oWebControl.value.JS_CreateWnd("playWnd", width.value, height.value).then(function () { //JS_CreateWndå建è§é¢ææ¾çªå£ï¼å®½é«å¯è®¾å®ï¼boxWidth, boxHeightå®¹å¨ |
| | | // oWebControl.value.JS_CreateWnd("playWnd").then(function () { //JS_CreateWndå建è§é¢ææ¾çªå£ï¼å®½é«å¯è®¾å®ï¼boxWidth, boxHeightå®¹å¨ |
| | | init() // åå»ºææ¾å®ä¾æåååå§å |
| | | }) |
| | | }, function () { // å¯å¨æä»¶æå¡å¤±è´¥ |
| | | }) |
| | | }, |
| | | cbConnectError: function () { // å建WebControlå®ä¾å¤±è´¥ |
| | | console.log('å建WebControlå®ä¾å¤±è´¥') |
| | | oWebControl.value = null |
| | | $("#playWnd").html("æä»¶æªå¯å¨ï¼æ£å¨å°è¯å¯å¨ï¼è¯·ç¨å...") |
| | | WebControl.JS_WakeUp("VideoWebPlugin://") // ç¨åºæªå¯å¨æ¶æ§è¡error彿°ï¼éç¨wakeupæ¥å¯å¨ç¨åº |
| | | initCount.value++ |
| | | if (initCount.value < 3) { |
| | | setTimeout(function () { |
| | | initPlugin() |
| | | }, 3000) |
| | | } else { |
| | | $("#playWnd").html(templateA) |
| | | } |
| | | }, |
| | | cbConnectClose: function (bNormalClose) { |
| | | // å¼å¸¸æå¼ï¼bNormalClose = false |
| | | // JS_Disconnectæ£å¸¸æå¼ï¼bNormalClose = true |
| | | console.log('å¼å¸¸æå¼ï¼bNormalClose') |
| | | oWebControl.value = null |
| | | $("#playWnd").html("æä»¶æªå¯å¨ï¼æ£å¨å°è¯å¯å¨ï¼è¯·ç¨å...") |
| | | WebControl.JS_WakeUp("VideoWebPlugin://") |
| | | initCount.value++ |
| | | if (initCount.value < 3) { |
| | | setTimeout(function () { |
| | | initPlugin() |
| | | }, 3000) |
| | | } else { |
| | | $("#playWnd").html(templateA) |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | // åå§å |
| | | const init = () => { |
| | | getPubKey(function () { |
| | | ////////////////////////////////// 请èªè¡ä¿®æ¹ä»¥ä¸åéå¼ //////////////////////////////////// |
| | | let appkey = "23154099" //综åå®é²ç®¡ç平尿ä¾çappkeyï¼å¿
å¡« |
| | | // let secret = '88wFsg3xfn7o8QMsWEO2' //综åå®é²ç®¡ç平尿ä¾çsecretï¼å¿
å¡« |
| | | let secret = setEncrypt("88wFsg3xfn7o8QMsWEO2") //综åå®é²ç®¡ç平尿ä¾çsecretï¼å¿
å¡« |
| | | let ip = "10.50.250.253" //综åå®é²ç®¡çå¹³å°IPå°åï¼å¿
å¡« |
| | | let playMode = 0 //åå§ææ¾æ¨¡å¼ï¼0-é¢è§(宿¶æµ)ï¼1-åæ¾(è§é¢) |
| | | let port = 443 //综åå®é²ç®¡çå¹³å°ç«¯å£ï¼è¥å¯ç¨HTTPSåè®®ï¼é»è®¤443 |
| | | let snapDir = "D:\\SnapDir" //æå¾åå¨è·¯å¾ |
| | | let videoDir = "D:\\VideoDir" //ç´§æ¥å½åæå½ååªè¾åå¨è·¯å¾ |
| | | let layout = "1x1" //playModeæå®æ¨¡å¼çå¸å± |
| | | let enableHTTPS = 1 //æ¯å¦å¯ç¨HTTPSåè®®ä¸ç»¼åå®é²ç®¡çå¹³å°äº¤äºï¼è¿éæ»æ¯å¡«1 |
| | | let encryptedFields = 'secret' //å å¯å段ï¼é»è®¤å å¯é¢å为secret |
| | | let showToolbar = 1 //æ¯å¦æ¾ç¤ºå·¥å
·æ ï¼0-䏿¾ç¤ºï¼é0-æ¾ç¤º |
| | | let showSmart = 1 //æ¯å¦æ¾ç¤ºæºè½ä¿¡æ¯ï¼å¦é
置移å¨ä¾¦æµåç»é¢ä¸ç线æ¡ï¼ï¼0-䏿¾ç¤ºï¼é0-æ¾ç¤º |
| | | let buttonIDs = "0,16,256,257,258,259,260,513,514,515,516,517,768" //èªå®ä¹å·¥å
·æ¡æé® |
| | | oWebControl.value.JS_RequestInterface({ |
| | | funcName: "init", |
| | | argument: JSON.stringify({ |
| | | appkey: appkey, //APIç½å
³æä¾çappkey |
| | | secret: secret, //APIç½å
³æä¾çsecret |
| | | ip: ip, //APIç½å
³IPå°å |
| | | playMode: playMode, //ææ¾æ¨¡å¼ï¼å³å®æ¾ç¤ºé¢è§è¿æ¯åæ¾çé¢ï¼ |
| | | port: port, //ç«¯å£ |
| | | snapDir: snapDir, //æå¾åå¨è·¯å¾ |
| | | videoDir: videoDir, //ç´§æ¥å½åæå½ååªè¾åå¨è·¯å¾ |
| | | layout: layout, //å¸å± |
| | | enableHTTPS: enableHTTPS, //æ¯å¦å¯ç¨HTTPSåè®® |
| | | encryptedFields: encryptedFields, //å å¯å段 |
| | | showToolbar: showToolbar, //æ¯å¦æ¾ç¤ºå·¥å
·æ |
| | | showSmart: showSmart, //æ¯å¦æ¾ç¤ºæºè½ä¿¡æ¯ |
| | | buttonIDs: buttonIDs //èªå®ä¹å·¥å
·æ¡æé® |
| | | }) |
| | | }).then(function (oData) { |
| | | console.log('åå§åæå') |
| | | videoPlay() |
| | | // oWebControl.value.JS_Resize(that.boxWidth, that.boxHeight) // åå§ååresize䏿¬¡ï¼è§é¿firefoxä¸é¦æ¬¡æ¾ç¤ºçªå£åæä»¶çªå£æªä¸DIVçªå£éåé®é¢ |
| | | }) |
| | | }) |
| | | } |
| | | const videoPlay = () => { |
| | | console.log('å¼å§ææ¾') |
| | | |
| | | oWebControl.value.JS_RequestInterface({ |
| | | funcName: "startPreview", |
| | | argument: JSON.stringify({ |
| | | cameraIndexCode: props.indexCode, //çæ§ç¹ç¼å· |
| | | streamMode: 0, //主åç æµæ è¯ï¼0-ä¸»ç æµï¼1-åç æµ |
| | | transMode: 1, //ä¼ è¾åè®®ï¼0-UDPï¼1-TCP |
| | | gpuMode: 0, //æ¯å¦å¯ç¨GPU硬解ï¼0-ä¸å¯ç¨ï¼1-å¯ç¨ |
| | | wndId: -1 //ææ¾çªå£åºå·ï¼å¨2x2以ä¸å¸å±ä¸å¯æå®ææ¾çªå£ï¼ |
| | | }) |
| | | }).then((oData) => { |
| | | if (oData.responseMsg.code === 1) { |
| | | console.log('ææ¾æå', oData) |
| | | } |
| | | }, err => { |
| | | console.log('err', err) |
| | | |
| | | }) |
| | | } |
| | | // 鿝 |
| | | const destroyed = () => { |
| | | if (oWebControl.value) { |
| | | oWebControl.value.JS_HideWnd() // å
让çªå£éèï¼è§é¿æä»¶çªå£æ»åäºæµè§å¨æ¶å¤±é®é¢ |
| | | oWebControl.value.JS_Disconnect().then(function () { }, function () { }) |
| | | } |
| | | } |
| | | |
| | | function fileDown() { |
| | | window.open('./videoUrl/VideoWebPlugin.exe') |
| | | } |
| | | // æ¶æ¯åè° |
| | | const cbIntegrationCallBack = (oData) => { |
| | | let response = oData.responseMsg |
| | | // response.type=1 éä¸çªå£æ¶æ¯ type=2 ææ¾æ¶æ¯ |
| | | } |
| | | // çæ§ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // è·åå
¬é¥ |
| | | function getPubKey(callback) { |
| | | oWebControl.value.JS_RequestInterface({ |
| | | funcName: 'getRSAPubKey', |
| | | argument: JSON.stringify({ |
| | | keyLength: 1024, |
| | | }), |
| | | }).then((oData) => { |
| | | if (oData.responseMsg.data) { |
| | | pubKey.value = oData.responseMsg.data |
| | | callback() |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // RSAå å¯ |
| | | function setEncrypt(value) { |
| | | let that = this |
| | | let encrypt = new JSEncrypt() |
| | | encrypt.setPublicKey(pubKey.value) |
| | | return encrypt.encrypt(value) |
| | | } |
| | | |
| | | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .video_app { |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | } |
| | | </style> |
| | |
| | | */ |
| | | public void sendMeetingBookTemplateNotice(SystemDictDataBiz systemDictDataBiz,Bookings bookings,String tempId, String token, Set<String> openIds){ |
| | | if(CollectionUtils.isNotEmpty(openIds)){ |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.MEETING,bookings.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | */ |
| | | public void sendMeetingBookCancelTemplateNotice(SystemDictDataBiz systemDictDataBiz,Bookings bookings, String tempId, String token, Set<String> openIds){ |
| | | if(CollectionUtils.isNotEmpty(openIds)){ |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.MEETING,bookings.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | |
| | | @Select(" select a.id , a.START_TIME , a.END_TIME , b.`NAME` as roomName , a.`NAME` as meetingName ,date_format(a.START_TIME,'%Y-%m-%d') as meetingDate , a.START_TIME as startTime, a.status ," + |
| | | " CONCAT(date_format(a.START_TIME,'%H:%i') , ' ~ ',date_format(a.END_TIME,'%H:%i')) as meetingTime, c.REALNAME as bookingUser ," + |
| | | //" CASE WHEN a.START_TIME > now() AND a.`STATUS` = 0 THEN 1 WHEN ( (a.END_TIME < now() AND a.`STATUS` = 0 ) or a.`STATUS` = 2 ) THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " CASE WHEN a.START_TIME_REAL IS NULL AND a.`STATUS` = 0 THEN 1 WHEN ( (a.END_TIME < now() AND a.`STATUS` = 0 ) or a.`STATUS` = 2 ) THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " CASE WHEN a.START_TIME_REAL IS NULL AND a.`STATUS` = 0 THEN 1 WHEN ( a.`STATUS` = 2 ) THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " b.IMGURL as imgUrl ," + |
| | | " a.remark " + |
| | | " from meeting_book a inner join meeting_rooms b on a.ROOM_ID = b.ID " + |
| | |
| | | " CONCAT(date_format(a.START_TIME,'%H:%i') , ' ~ ',date_format(a.END_TIME,'%H:%i')) as meetingTime, c.REALNAME as bookingUser ," + |
| | | //" CASE WHEN a.START_TIME > now() AND a.`STATUS` = 0 THEN 1 WHEN ( (a.END_TIME < now() AND a.`STATUS` = 0 ) or a.`STATUS` = 2 ) THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " CASE WHEN a.START_TIME_REAL IS NULL AND a.`STATUS` = 0 THEN 1 " + |
| | | " WHEN ( (a.END_TIME < now() AND a.`STATUS` = 0 ) or a.`STATUS` = 2 ) THEN 3 " + |
| | | //" WHEN ( (a.END_TIME < now() AND a.`STATUS` = 0 ) or a.`STATUS` = 2 ) THEN 3 " + |
| | | " WHEN ( a.`STATUS` = 2 ) THEN 3 " + |
| | | "WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " b.IMGURL as imgUrl ," + |
| | | " a.remark " + |
| | |
| | | @Select(" select a.id , a.START_TIME , a.END_TIME , b.id as roomId, b.`NAME` as roomName , a.`NAME` as meetingName ,date_format(a.START_TIME,'%Yå¹´%mæ%dæ¥') as meetingDate ," + |
| | | " CONCAT(date_format(a.START_TIME,'%H:%i') , ' ~ ',date_format(a.END_TIME,'%H:%i')) as meetingTime, c.REALNAME as bookingUserName ," + |
| | | //" CASE WHEN a.START_TIME > now() AND a.`STATUS` = 0 THEN 1 WHEN a.END_TIME < now() AND a.`STATUS` = 0 THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " CASE WHEN a.START_TIME_REAL IS NULL AND a.`STATUS` = 0 THEN 1 WHEN ( (a.END_TIME < now() AND a.`STATUS` = 0 ) or a.status = 2 ) THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " CASE WHEN a.START_TIME_REAL IS NULL AND a.`STATUS` = 0 THEN 1 WHEN ( a.status = 2 ) THEN 3 WHEN a.`STATUS` = 1 THEN 5 ELSE 2 END meetingStatus ," + |
| | | " a.CONTENT as meetingContent, c.MOBILE as bookingUserMobile , e.`NAME` as bookingUserDepartment , a.CREATOR as bookingUserId , a.remark " + |
| | | " from meeting_book a inner join meeting_rooms b on a.ROOM_ID = b.ID " + |
| | | " left join system_user c on a.CREATOR = c.id " + |
| | |
| | | public void dealMeetingStatus(List<MeetingListResponse> meetingResponseList){ |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(meetingResponseList)){ |
| | | String path = systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.FTP_RESOURCE_PATH).getCode() + systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.PROJECTS).getCode(); |
| | | String configMinute = systemDictDataBiz.queryByCode(MeetConstants.SYSTEM, MeetConstants.SOON_START).getCode(); |
| | | String configMinute = systemDictDataBiz.queryByCode(MeetConstants.SYSTEM, MeetConstants.EARLY_START).getCode(); |
| | | Integer minute = StringUtils.isNotBlank(configMinute) ? Integer.valueOf(configMinute) : 120; |
| | | for (MeetingListResponse m:meetingResponseList) { |
| | | if(Constants.equalsInteger(m.getStatus(),Constants.ZERO)&&Constants.equalsInteger(m.getMeetingStatus(),Constants.ONE)){ |
| | | //å¼å§å120åé 大äºå½åæ¶é´ åæ¾ç¤ºå³å°å¼å§ |
| | | if(DateUtil.afterMinutesDate(m.getStartTime(),-minute).getTime()>System.currentTimeMillis()){ |
| | | if( |
| | | DateUtil.afterMinutesDate(m.getStartTime(),-minute).getTime()<=System.currentTimeMillis() |
| | | ){ |
| | | m.setMeetingStatus(4); |
| | | } |
| | | } |
| | |
| | | wxUrlParams = Constants.WxUrlParams.VISIT_RECORD_USER; |
| | | } |
| | | } |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | wxUrlParams |
| | | ,visits.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | if(Objects.isNull(wxNoticeConfig)){ |
| | | return; |
| | | } |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.HIDDEN_DANGER,hiddenDanger.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | if(Objects.isNull(wxNoticeConfig)){ |
| | | return; |
| | | } |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.HIDDEN_DANGER,hiddenDanger.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | if(Objects.isNull(wxNoticeConfig)){ |
| | | return; |
| | | } |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.CAR_USE,carUseBook.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | if(!objCode.equals(WxPlatConstants.platformBookContent.platformBookUpload)){ |
| | | wxUrlParams = Constants.WxUrlParams.PLATFORM_BOOK; |
| | | } |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | wxUrlParams,platformBooks.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | return; |
| | | } |
| | | |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.PLATFORM_JOB_DRIVER,platformJob.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | return; |
| | | } |
| | | |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.PLATFORM_JOB_DRIVER,platformJob.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | return; |
| | | } |
| | | |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | String jumpUrl = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(), |
| | | Constants.WxUrlParams.PLATFORM_JOB_DRIVER,platformJob.getId().toString()); |
| | | String jumpUrl = systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url); |
| | | |
| | | String postUrL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="+token; |
| | | //æ´ä½åæ°map |
| | |
| | | Map<String, Object> car_number3 = new HashMap<String,Object>(); |
| | | car_number3.put("value",platformJob.getCarCodeFront()); |
| | | //æå°å· |
| | | Map<String, Object> character_string7 = new HashMap<String,Object>(); |
| | | character_string7.put("value", "A001"); |
| | | Map<String, Object> thing9 = new HashMap<String,Object>(); |
| | | thing9.put("value", platformJob.getPlatformName()); |
| | | //æ¶é´ |
| | | Map<String, Object> time4 = new HashMap<String,Object>(); |
| | | time4.put("value", DateUtil.getFomartDate(new Date(),"yyyyå¹´MMæddæ¥ HH:mm:ss") ); |
| | | dataMap.put("const6",const6); |
| | | dataMap.put("car_number3",car_number3); |
| | | dataMap.put("character_string7",character_string7); |
| | | dataMap.put("thing9",thing9); |
| | | dataMap.put("time4",time4); |
| | | for (String openId:openIds) { |
| | | paramMap.clear(); |
| | |
| | | PlatformJob p = platformJobJoinMapper.selectJoinOne(PlatformJob.class, |
| | | new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAll(PlatformJob.class) |
| | | .selectAs(Platform::getCode,PlatformJob::getPlatformName) |
| | | .selectAs(Platform::getName,PlatformJob::getPlatformName) |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | .eq(PlatformJob::getId,platformJob.getId()) |
| | | .last(" limit 1") |
| | |
| | | String u = UUID.randomUUID().toString(); |
| | | redisTemplate.opsForValue().set(Constants.RedisKeys.BIGSCREEN_UUID,u,3, TimeUnit.MINUTES); |
| | | String url = Constants.getWxUrl(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.WX_REDIRECT_URL).getCode(),Constants.WxUrlParams.BISCREEN_CODE,u); |
| | | largeScreenDataVO.setQrCode(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_QRCODE_PREFIX).getCode().replace( "${param}", url)); |
| | | largeScreenDataVO.setQrCode(url); |
| | | largeScreenDataVO.setAttention(systemDictDataBiz.queryByCode(Constants.PLATFORM,Constants.SIGN_IN_ATTENTION).getCode()); |
| | | return largeScreenDataVO; |
| | | |
| | |
| | | import com.doumee.core.wms.model.response.WmsInventoryDataResponse; |
| | | import com.doumee.core.wms.model.response.WmsInventoryJsonResponse; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.join.PlatformWarnEventJoinMapper; |
| | | import com.doumee.dao.business.join.VisitsJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.web.reqeust.CarsJobAndContractDTO; |
| | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private PlatformWarnEventMapper platformWarnEventMapper; |
| | | private PlatformWarnEventJoinMapper platformWarnEventJoinMapper; |
| | | @Autowired |
| | | private PlatformJobMapper platformJobMapper; |
| | | @Autowired |
| | |
| | | public List<PlatformGroupFinishVO> platformGroupFinish(){ |
| | | List<PlatformGroupFinishVO> data = new ArrayList<>(); |
| | | List<PlatformGroup> groups = platformGroupMapper.selectJoinList(PlatformGroup.class, new MPJLambdaWrapper<PlatformGroup>() |
| | | .select("(select sum(a.TOTAL_NUM) from platform_job a where a.PLATFORM_GROUP_ID=t.id and a.isdeleted=0 and a.status in(6,9,10) and to_days(a.done_date) = to_days(now()))",PlatformGroup::getOrtherTotalNum) |
| | | .select("(select sum(case when a.total_num is null then ( select sum(pwd.IO_QTY) from platform_wms_detail pwd where pwd.JOB_ID = a.id ) else a.total_num end) from platform_job a where a.PLATFORM_GROUP_ID=t.id and a.isdeleted=0 and a.status in(6,9,10) and to_days(a.done_date) = to_days(now()))",PlatformGroup::getOrtherTotalNum) |
| | | //.select("(select sum(a.TOTAL_NUM) from platform_job a where a.PLATFORM_GROUP_ID=t.id and a.isdeleted=0 and a.status in(6,9,10) and to_days(a.done_date) = to_days(now()))",PlatformGroup::getOrtherTotalNum) |
| | | |
| | | //.select(" case when t.total_num is null then ( select sum(pwd.IO_QTY) from platform_wms_detail pwd where pwd.JOB_ID = t.id ) else t.total_num end ioQty ") |
| | | .selectAll(PlatformGroup.class) |
| | | .eq(PlatformGroup::getIsdeleted,Constants.ZERO) |
| | | ); |
| | |
| | | List<PlatformJob> jobList = platformJobMapper.selectJoinList(PlatformJob.class, new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAll( PlatformJob.class) |
| | | .select("( select pl.CREATE_DATE from platform_log pl where t.id = pl.obj_id and pl.OBJ_TYPE = "+Constants.PlatformJobLogType.WORKING.getKey()+" order by pl.CREATE_DATE desc limit 1 ) as newStartDate") |
| | | .select(" (select sum(ifnull(pl.IO_QTY , 0 )) from platform_wms_detail pl where pl.job_id = t.id and pl.isdeleted=0 )",PlatformJob::getWorkNum) |
| | | //.select(" ( select sum(ifnull(pl.IO_QTY , 0 )) from platform_wms_detail pl where pl.job_id = t.id and pl.isdeleted=0 )",PlatformJob::getWorkNum) |
| | | .select(" ( case when t.total_num is null then ( select sum(pwd.IO_QTY) from platform_wms_detail pwd where pwd.JOB_ID = t.id ) else a.total_num end )",PlatformJob::getWorkNum) |
| | | .apply("to_days(t.create_date) = to_days(now())") |
| | | .eq(Platform::getIsdeleted, Constants.ZERO) |
| | | .in(PlatformJob ::getStatus,new Integer[]{Constants.PlatformJobStatus.WORKING.getKey(),Constants.PlatformJobStatus.CALLED.getKey() }) |
| | |
| | | } |
| | | @Override |
| | | public List<PlatformWarnEvent> warningList(int limit){ |
| | | List<PlatformWarnEvent> platformLogList = platformWarnEventMapper.selectList(new QueryWrapper<PlatformWarnEvent>().lambda() |
| | | List<PlatformWarnEvent> platformLogList = platformWarnEventJoinMapper |
| | | .selectJoinList(PlatformWarnEvent.class,new MPJLambdaWrapper<PlatformWarnEvent>() |
| | | .selectAll(PlatformWarnEvent.class) |
| | | .selectAs(Platform::getName,PlatformWarnEvent::getPlatformName) |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | .eq(PlatformWarnEvent::getIsdeleted,Constants.ZERO) |
| | | .apply("to_days(create_date) = to_days(now())") |
| | | .apply("to_days(t.create_date) = to_days(now())") |
| | | .orderByDesc(PlatformWarnEvent::getCreateDate) |
| | | .last(" limit "+limit) |
| | | ); |
| | |
| | | if( Constants.equalsInteger(model.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey())){ |
| | | data.setSignedNum(data.getSignedNum()+Constants.formatIntegerNum(model.getCountum())); |
| | | data.setReservationCar(data.getReservationCar()+Constants.formatIntegerNum(model.getCountum())); |
| | | data.setLineUpCar(data.getLineUpCar()+Constants.formatIntegerNum(model.getCountum())); |
| | | } |
| | | //å·²å«å·ï¼é¢çº¦è½¦ãç¾å°æ°ãå·²å«å·ï¼ |
| | | if(Constants.equalsInteger(model.getStatus(),Constants.PlatformJobStatus.CALLED.getKey()) ){ |
| | | data.setSignedNum(data.getSignedNum()+Constants.formatIntegerNum(model.getCountum())); |
| | | data.setReservationCar(data.getReservationCar()+Constants.formatIntegerNum(model.getCountum())); |
| | | data.setCalledNum(data.getCalledNum()+Constants.formatIntegerNum(model.getCountum())); |
| | | data.setLineUpCar(data.getLineUpCar()+Constants.formatIntegerNum(model.getCountum())); |
| | | } |
| | | // ä½ä¸è½¦è¾ï¼é¢çº¦è½¦ãç¾å°æ°ãå·²å«å·ãä½ä¸è½¦ï¼ |
| | | if(Constants.equalsInteger(model.getStatus(),Constants.PlatformJobStatus.WORKING.getKey())){ |