Merge remote-tracking branch 'origin/master'
已添加34个文件
已修改60个文件
已重命名2个文件
| | |
| | | export function companyGetList (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/company/page', data) |
| | | } |
| | | // æ¥è¯¢ææé¨é¨ |
| | | export function companyGetListPost (data) { |
| | | return request.post('/visitsAdmin/cloudService/business/company/list', data) |
| | | } |
| | | |
| | | // å é¤ |
| | | export function deleteById (id) { |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="500px" |
| | | :visible.sync="visible" |
| | | :confirm-working="isWorking" |
| | | @confirm="confirm" |
| | | > |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="åç§°" prop="name"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥åç§°" v-trim/> |
| | | </el-form-item> |
| | | <el-form-item label="æåºç (ååº)" prop="sortnum"> |
| | | <el-input v-model="form.sortnum" type="number" placeholder="请è¾å
¥æåºç " v-trim/> |
| | | </el-form-item> |
| | | <el-form-item v-if="form.type==0" label="éæ©å®å
¨åï¼" prop="memberIdList"> |
| | | <el-select v-model="form.memberIdList" filterable multiple clearable placeholder="è¯·éæ©"> |
| | | <el-option |
| | | v-for="item in memberList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | <GlobalWindow :title="title" width="500px" :visible.sync="visible" :confirm-working="isWorking" @confirm="confirm"> |
| | | <el-form :model="form" ref="form" :rules="rules"> |
| | | <el-form-item label="åç§°" prop="name"> |
| | | <el-input v-model="form.name" placeholder="请è¾å
¥åç§°" v-trim /> |
| | | </el-form-item> |
| | | <el-form-item label="责任é¨é¨" prop="companyId"> |
| | | <el-select @change="loadMember" v-model="form.companyId"> |
| | | <el-option v-for="op in department" :key="op.id" :label="op.name" :value="op.id"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="form.type == 0" label="éæ©å®å
¨å" prop="memberIdList"> |
| | | <el-select v-model="form.memberIdList" filterable multiple clearable placeholder="è¯·éæ©"> |
| | | <el-option v-for="item in memberList" :key="item.id" :label="item.name" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="æåºç (ååº)" prop="sortnum"> |
| | | <el-input v-model="form.sortnum" type="number" placeholder="请è¾å
¥æåºç " v-trim /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { allList } from '@/api/business/member' |
| | | import { companyGetListPost } from '@/api/business/company' |
| | | export default { |
| | | name: 'OperaHiddenDangerParamWindow', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | data() { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | memberList: [], |
| | | department: [], |
| | | departprops: { |
| | | label: 'name', |
| | | value: 'id', |
| | | checkStrictly: true |
| | | }, |
| | | form: { |
| | | id: null, |
| | | name: null, |
| | | companyId: null, |
| | | memberIdList: null, |
| | | type: null, |
| | | sortnum: null |
| | | }, |
| | | // éªè¯è§å |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: '请è¾å
¥åç§°' } |
| | | ] |
| | | name: [{ required: true, message: '请è¾å
¥åç§°' }], |
| | | companyId: [{ required: true, message: 'è¯·éæ©' }], |
| | | memberIdList: [{ required: true, message: 'è¯·éæ©', type: 'array' }], |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | created() { |
| | | this.config({ |
| | | api: '/business/hiddenDangerParam', |
| | | 'field.id': 'id' |
| | | }) |
| | | }, |
| | | methods: { |
| | | open (title, target, type) { |
| | | open(title, target, type) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.form.type = type |
| | | this.loadMember() |
| | | this.getfindCompanyTreePage() |
| | | // æ°å»ºç»ç» |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | loadMember () { |
| | | getfindCompanyTreePage() { |
| | | companyGetListPost({}) |
| | | .then(res => { |
| | | if (res && res.length > 0) { |
| | | this.department = res |
| | | } |
| | | }) |
| | | }, |
| | | loadMember() { |
| | | allList({ |
| | | type: 2, |
| | | companyType: 1 |
| | | companyType: 1, |
| | | companyId: this.form.companyId |
| | | }) |
| | | .then(res => { |
| | | this.memberList = res |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="å
¥å车è¾" prop="carNos"> |
| | | <el-input v-model="param.carNos" placeholder="请è¾å
¥è½¦çå·"></el-input> |
| | | <el-input v-model.trim="param.carNos" placeholder="请è¾å
¥è½¦çå·"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="é车人æ°" prop="memberNum"> |
| | | <el-input |
| | |
| | | if (!valid) { |
| | | return |
| | | } |
| | | const { param } = this |
| | | if(param.carNos){ |
| | | param.carNos = param.carNos.replace(/\s*/g,"") |
| | | param.carNos = param.carNos.replace(/[\r\n]/g, "") |
| | | } |
| | | // è°ç¨æ°å»ºæ¥å£ |
| | | this.isWorking = true |
| | | createVisit({ |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="éè¡è½¦è¾"> |
| | | <el-input v-model="param.carNos" placeholder="请è¾å
¥è½¦çå·"></el-input> |
| | | <el-input v-model.trim="param.carNos" onkeyup="this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')" placeholder="请è¾å
¥è½¦çå·"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </GlobalWindow> |
| | |
| | | GlobalWindow, |
| | | UploadFaceImg |
| | | }, |
| | | |
| | | data () { |
| | | return { |
| | | isShowModal: false, |
| | |
| | | return |
| | | } |
| | | const { param } = this |
| | | if(param.carNos){ |
| | | param.carNos = param.carNos.replace(/\s*/g,"") |
| | | param.carNos = param.carNos.replace(/[\r\n]/g, "") |
| | | } |
| | | if (param.starttime.slice(0, 10) !== param.endtime.slice(0, 10)) return this.$tip.error('å
¥åæ¶é´åç¦»åæ¶é´ä¸å¯è·¨å¤©') |
| | | // è°ç¨æ°å»ºæ¥å£ |
| | | this.isWorking = true |
| | |
| | | default-time="08:00:00" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="责任é¨é¨" prop="companyId"> |
| | | <el-select v-model="param.companyId"> |
| | | <el-option v-for="op in department" :key="op.id" :label="op.name" :value="op.id"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="鿣åºå" prop="areaId"> |
| | | <el-select v-model="param.areaId" @change="changeArea" placeholder="è¯·éæ©"> |
| | | <el-option |
| | |
| | | import { allList, memberList } from '@/api/business/hiddenDangerParam' |
| | | import { create } from '@/api/business/hiddenDanger' |
| | | import { Loading } from 'element-ui' |
| | | import { companyGetListPost } from '@/api/business/company' |
| | | export default { |
| | | extends: BaseOpera, |
| | | components: { |
| | |
| | | uploadData: { |
| | | folder: 'HIDDEN_DANGER_FILE' |
| | | }, |
| | | department: [], |
| | | rules: { |
| | | // starttime: [{ required: true, message: 'è¯·éæ©æ¥æ', trigger: 'change' }], |
| | | areaId: [{ required: true, message: 'è¯·éæ©', trigger: 'change' }], |
| | | cateId: [{ required: true, message: 'è¯·éæ©', trigger: 'change' }], |
| | | checkUserId: [{ required: true, message: 'è¯·éæ©', trigger: 'change' }], |
| | | companyId: [{ required: true, message: 'è¯·éæ©', trigger: 'change' }], |
| | | faceImgUrl: [{ required: true, message: '请ä¸ä¼ ', trigger: 'change' }], |
| | | |
| | | content: [{ required: true, message: '请è¾å
¥', trigger: 'blur' }] |
| | |
| | | this.initData() |
| | | }, |
| | | methods: { |
| | | |
| | | initData () { |
| | | allList({ type: 1 }).then(res => { // ç±»å |
| | | this.typeList = res || [] |
| | |
| | | memberList({}).then(res => { |
| | | this.memberList = res || [] |
| | | }) |
| | | this.getfindCompanyTreePage() |
| | | }, |
| | | getfindCompanyTreePage() { |
| | | companyGetListPost({}) |
| | | .then(res => { |
| | | if (res && res.length > 0) { |
| | | this.department = res |
| | | } |
| | | }) |
| | | }, |
| | | changeArea (e) { |
| | | const item = this.addrList.find(i => i.id === e) |
| | |
| | | return |
| | | } |
| | | // å¦æè®¿é®çæ¯ç»å½é¡µé¢ï¼åç´æ¥è·³è½¬è³é¦é¡µ |
| | | if (to.name === 'login') { |
| | | next({ name: 'index' }) |
| | | return |
| | | } |
| | | // if (to.name === 'login') { |
| | | // next({ name: 'index' }) |
| | | // return |
| | | // } |
| | | next() |
| | | return |
| | | } |
| | |
| | | import { trim } from './util' |
| | | import cache from '../plugins/cache' |
| | | import { Message } from 'element-ui' |
| | | import router from '@/router' |
| | | |
| | | axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8' |
| | | const axiosInstance = axios.create({ |
| | |
| | | |
| | | // æ°å»ºååºæ¦æªå¨ |
| | | axiosInstance.interceptors.response.use((response) => { |
| | | |
| | | // 请æ±å¤±è´¥ |
| | | if (response.status !== 200) { |
| | | return Promise.reject(new Error('æå¡å¨ç¹å¿ï¼è¯·ç¨ååè¯')) |
| | |
| | | return Promise.reject(new Error('æå¡å¨ç¹å¿ï¼è¯·ç¨ååè¯')) |
| | | } |
| | | if (response.data.code === 401 || response.data.code === 5112) { |
| | | if (response.config.autoLogin !== false) { |
| | | // if (response.config.autoLogin !== false) { |
| | | Cookies.set('dm_user_token','') |
| | | window.location.href = process.env.VUE_APP_ROUTER_MODE === 'hash' ? (process.env.VUE_APP_CONTEXT_PATH +'/#/login') : (process.env.VUE_APP_CONTEXT_PATH+'/login') |
| | | } |
| | | router.replace({name: 'login'}) |
| | | // } |
| | | return Promise.reject(response.data) |
| | | } |
| | | // ä¸å¡å¤±è´¥ |
| | |
| | | <span v-if="row.status == 2" style="color: red">æé»/å»ç»</span> |
| | | </template> |
| | | </el-table-column>--> |
| | | <el-table-column prop="trainEndTime" label="å¹è®æææ" min-width="100px"> </el-table-column> |
| | | <el-table-column label="é¨é¨ç±»å" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.companyType == 0">ç¸å
³æ¹ç»ç»</span> |
| | |
| | | <img src="@/assets/images/bg@2x.png" class="main_bg" alt=""> |
| | | <div class="login_wrap"> |
| | | <div class="login_img"> |
| | | <div class="h2">å®å¾½å®æ³°ç©æµæé责任å
¬å¸</div> |
| | | <div class="h3">æºæ
§ç©æµååºå®æ¶ä¸ä½åç³»ç»</div> |
| | | </div> |
| | | <div class="form_wrap"> |
| | |
| | | background: url("../assets/images/login_img@2x.png"); |
| | | background-size: 100% 100%; |
| | | padding-left: 40px; |
| | | padding-top: 80px; |
| | | |
| | | padding-top: 60px; |
| | | .h2{ |
| | | color: $primary-color; |
| | | background-color: #fff; |
| | | height: 24px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | border-radius: 4px; |
| | | width: 186px; |
| | | display: flex; |
| | | margin-bottom: 12px; |
| | | } |
| | | .h3 { |
| | | font-size: 28px; |
| | | font-weight: 700; |
| | |
| | | <el-form-item label="鿣åºå" prop="name"> |
| | | <el-input v-model="searchForm.name" clearable placeholder="请è¾å
¥éæ£åºå" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="责任é¨é¨" prop="companyName"> |
| | | <el-input v-model="searchForm.companyName" clearable placeholder="请è¾å
¥é¨é¨åç§°" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="name" label="鿣åºå" min-width="200px"></el-table-column> |
| | | <el-table-column prop="sortnum" label="æåºç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="memberNames" label="å®å
¨å" min-width="200px"></el-table-column> |
| | | <el-table-column prop="editDate" label="æä½æ¶é´" min-width="200px"></el-table-column> |
| | | <el-table-column prop="name" label="鿣åºå" min-width="120px"></el-table-column> |
| | | <el-table-column prop="companyName" label="责任é¨é¨" min-width="120px"></el-table-column> |
| | | <el-table-column prop="sortnum" label="æåºç " min-width="70px"></el-table-column> |
| | | <el-table-column prop="memberNames" label="å®å
¨å" min-width="80px"></el-table-column> |
| | | <el-table-column prop="editDate" label="æä½æ¶é´" min-width="160px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:hiddendangerparam:update', 'business:hiddendangerparam:delete' ])" |
| | | label="æä½" |
| | | min-width="250" |
| | | min-width="140" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-form-item label="ææ¥äººç»ç»" prop="companyName"> |
| | | <el-input v-model="searchForm.companyName" placeholder="请è¾å
¥" clearable @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="责任é¨é¨" prop="companyName"> |
| | | <el-input v-model="searchForm.companyName" placeholder="请è¾å
¥" clearable @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="鿣åºå" prop="areaId"> |
| | | <el-select v-model="searchForm.areaId" placeholder="è¯·éæ©éæ£åºå" clearable @change="search"> |
| | | <el-option |
| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="companyName" label="责任é¨é¨" min-width="150px"></el-table-column> |
| | | <el-table-column prop="areaName" label="鿣åºå" min-width="150px"></el-table-column> |
| | | <el-table-column prop="categoryName" label="éæ£ç±»å" min-width="150px"></el-table-column> |
| | | <el-table-column prop="memberName" label="ææ¥äºº" min-width="80px"></el-table-column> |
| | |
| | | memberName: '', |
| | | companyName: '', |
| | | queryStartTime: '', |
| | | companyName: '', |
| | | queryEndTime: '', |
| | | areaId: null, |
| | | cateId: null, |
| | |
| | | type: 'select', |
| | | label: 'ä½ä¸ç¶æ', |
| | | options: [ |
| | | { value: 0, label: 'å¾
确认' }, |
| | | { value: 1, label: 'å¾
ç¾å°' }, |
| | | { value: 2, label: 'çå¾
å«å·' }, |
| | | { value: 3, label: 'å
¥åçå¾
' }, |
| | | { value: 4, label: 'æå°çå¾
' }, |
| | | { value: 5, label: 'ä½ä¸ä¸' }, |
| | |
| | | } |
| | | |
| | | // æ¶é²ç®¡æ§å¤§å± æ¥è¦ä¿¡æ¯ |
| | | export const getStoreTaskList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/wholeProvince/transportTaskList', data) |
| | | export const getFightingalarmData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/fightingAdmin/alarmData', data) |
| | | } |
| | | // æ¶é²ç®¡æ§å¤§å± åè¦å¤çåæ |
| | | export const getStoreTaskList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/wholeProvince/transportTaskList', data) |
| | | export const getFightingHandle = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/fightingAdmin/alarmHandleData', data) |
| | | } |
| | | // æ¶é²ç®¡æ§å¤§å± ä¸å¿æ°æ® |
| | | export const getStoreTaskList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/wholeProvince/transportTaskList', data) |
| | | export const getFightingcenterData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/fightingAdmin/centerData', data) |
| | | } |
| | | // æ¶é²ç®¡æ§å¤§å± 仿¥åç³»ç»è®¾å¤ç¶æååè¦æ°é |
| | | export const getStoreTaskList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/wholeProvince/transportTaskList', data) |
| | | export const getFightingDeAlarm = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/fightingAdmin/deviceAlarmData', data) |
| | | } |
| | | // æ¶é²ç®¡æ§å¤§å± æ¬å¹´æ¶é²è®¾å¤-设æ½ç»´æ¤æ
åµ |
| | | export const getStoreTaskList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/wholeProvince/transportTaskList', data) |
| | | export const getFightingDeviceY = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/fightingAdmin/yearDeviceData', data) |
| | | } |
| | | |
| | | // åºå
è°åº¦çæ¿ ä»æ¥æå°å®æè®¢åç»è®¡ |
| | | export const cnplatformGroupFinish = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/platformGroupFinish', data) |
| | | } |
| | | // åºå
è°åº¦çæ¿ ä»æ¥æå°å·¥ä½æ¶é¿è¶å¿ |
| | | export const cnplatformDuration = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/platformDuration', data) |
| | | } |
| | | // åºå
è°åº¦çæ¿ å®æ¶æå°ä½ä¸ä¿¡æ¯ |
| | | export const cnplatformWorkData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/platformWorkData', data) |
| | | } |
| | | // åºå
è°åº¦çæ¿ ä¸å¿æ°æ® |
| | | export const cncenterData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/centerData', data) |
| | | } |
| | | // åºå
è°åº¦çæ¿ ä»æ¥è½¦è¾ä½ä¸æ
åµ |
| | | export const cncarWorkSituation = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/carWorkSituation', data) |
| | | } |
| | | // åºå
è°åº¦çæ¿ å®æ¶ä½ä¸æç |
| | | export const cnworkEfficiency = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/onSitDispatch/workEfficiency', data) |
| | | } |
| | | |
| | | // ç©æµè¿è¡è°åº¦çæ¿ ä¸å¿æ°æ® |
| | | export const wlcenterData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/platformJobRun/centerData', data) |
| | | } |
| | | // ç©æµè¿è¡è°åº¦çæ¿ åºå
¥åºä»»å¡é |
| | | export const wljobData = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/platformJobRun/jobData', data) |
| | | } |
| | | // ç©æµè¿è¡è°åº¦çæ¿ å½æ¥è¿è¾ä»»å¡ |
| | | export const wlplatformJobList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/platformJobRun/platformJobList', data) |
| | | } |
| | | // ç©æµè¿è¡è°åº¦çæ¿ åºåæ
åµ |
| | | export const wlstockList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/platformJobRun/stockList', data) |
| | | } |
| | | // ç©æµè¿è¡è°åº¦çæ¿ ä»æ¥å
¥åºéç»è®¡ |
| | | export const wltotalInList = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/platformJobRun/totalInList', data) |
| | | } |
| | | // ç©æµè¿è¡è°åº¦çæ¿ è¿è¾ä»»å¡åæ |
| | | export const wltransportMeasure = (data) => { |
| | | return request('visitsAdmin/cloudService/board/api/platformJobRun/transportMeasure', data) |
| | | } |
| | | |
| | | |
| | |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | | component: () => import('../views/FireFighting.vue') |
| | | component: () => import('../views/SecurityControl.vue') |
| | | }, |
| | | { |
| | | path: '/PlatformCall', // æå°å«å·å¤§å± |
| | |
| | | <span class="item">æ
é</span> |
| | | <span class="item">离线</span> |
| | | </div> |
| | | <template v-for="i in 5"> |
| | | <template v-for="(item, i) in dataList1" :key="i"> |
| | | <div class="line"> |
| | | <span class="item name">ç«ç¶æ¥è¦ç³»ç»</span> |
| | | <span class="item">11</span> |
| | | <span class="item">11</span> |
| | | <span class="item">11</span> |
| | | <span class="item">11</span> |
| | | <span class="item">11</span> |
| | | <span class="item name">{{ item.deviceTypeName }}</span> |
| | | <span class="item">{{ item.statusTotal }}</span> |
| | | <span class="item">{{ item.alarmNum }}</span> |
| | | <span class="item">{{ item.shieldNum }}</span> |
| | | <span class="item">{{ item.errNum }}</span> |
| | | <span class="item">{{ item.offlineNum }}</span> |
| | | </div> |
| | | <div class="separate"></div> |
| | | </template> |
| | |
| | | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | | <div class="police_wrap"> |
| | | <div class="item" v-for="(ind, i) in 4"> |
| | | <div class="item" v-for="(item, i) in dataList2"> |
| | | <div class="head"> |
| | | <div class="name">ç宿¥è¦æ°</div> |
| | | <div class="name">{{ i }}次</div> |
| | | <div class="name">{{ item.name }}</div> |
| | | <div class="name">{{ item.num }}次</div> |
| | | </div> |
| | | <FirePercent :color="policeColors[i]" :rate="40" /> |
| | | <FirePercent :color="policeColors[i]" :rate="item.rate" /> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <img src="@/assets/images/FireFighting/xiaofang_ic_zaixian@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="name">å¨çº¿</div> |
| | | <div class="num">1000</div> |
| | | <div class="num">{{ dataList4.onlineDeviceNum }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <img src="@/assets/images/FireFighting/xiaofang_ic_baojing@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="name">æ¥è¦</div> |
| | | <div class="num num2">12</div> |
| | | <div class="num num2">{{ dataList4.alarmDeviceNum }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <img src="@/assets/images/FireFighting/xiaofang_ic_guzhang@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="name">æ
é</div> |
| | | <div class="num num3">12</div> |
| | | <div class="num num3">{{ dataList4.errDeviceNum }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <img src="@/assets/images/FireFighting/xiaofang_ic_lixian@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="name">离线</div> |
| | | <div class="num num4">12</div> |
| | | <div class="num num4">{{ dataList4.offlineDeviceNum }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <img src="@/assets/images/FireFighting/xiaofang_ic_pingbi@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="name">å±è½</div> |
| | | <div class="num num5">12</div> |
| | | <div class="num num5">{{ dataList4.shieldDeviceNum }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="content_wrap"> |
| | | <div class="list"> |
| | | <template v-for="i in 3"> |
| | | <div class="item"> |
| | | <div>已维ä¿</div> |
| | | <div class="num active">500</div> |
| | | </div> |
| | | <div v-if="i < 3" class="separate"></div> |
| | | </template> |
| | | |
| | | <div class="item"> |
| | | <div>已维ä¿</div> |
| | | <div class="num active">{{ dataList5.protectNum }}</div> |
| | | </div> |
| | | <div class="separate"></div> |
| | | <div class="item"> |
| | | <div>计åç»´ä¿</div> |
| | | <div class="num active">{{ dataList5.planProtectTotal }}</div> |
| | | </div> |
| | | <div class="separate"></div> |
| | | <div class="item"> |
| | | <div>ç»´ä¿ç</div> |
| | | <div v-if="dataList5.protectNum && dataList5.planProtectTotal" class="num active">{{ ((dataList5.protectNum / dataList5.planProtectTotal) * 100).toFixed(0) }}%</div> |
| | | </div> |
| | | </div> |
| | | <div class="footer"> |
| | | <img src="@/assets/images/FireFighting/ic_weixiu@2x.png" class="icon" alt=""> |
| | | <div class="content"> |
| | | <div>æ¬ææ°å¢ç»´ä¿</div> |
| | | <div class="num">40 <span>个</span></div> |
| | | <div class="num">{{ dataList5.monthAddNum }} <span>个</span></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <img src="@/assets/images/FireFighting/ic_tibao@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="name">ææ¥éæ£æ°</div> |
| | | <div class="num"><span>10</span>个</div> |
| | | <div class="num"><span>{{ dataList4.todayDangerNum }}</span>个</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <img src="@/assets/images/FireFighting/ic_chuli@2x.png" alt=""> |
| | | <div class="content"> |
| | | <div class="name">å¤ç鿣æ°</div> |
| | | <div class="num"><span class="today">3</span>个</div> |
| | | <div class="num"><span class="today">{{ dataList4.dealDangerNum }}</span>个</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="title"> |
| | | <img class="addr" src="@/assets/images/FireFighting/xiaofang_ic_weizhi@2x.png" alt=""> |
| | | <span>address</span> |
| | | <span>Aåæ¿3车é´é¨å£</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import VScaleScreen from 'v-scale-screen' |
| | | import FirePercent from '@/components/FirePercent.vue' |
| | | import dayjs from 'dayjs' |
| | | |
| | | import * as echarts from 'echarts' |
| | | import { |
| | | getFightingalarmData, |
| | | getFightingHandle, |
| | | getFightingcenterData, |
| | | getFightingDeAlarm, |
| | | getFightingDeviceY, |
| | | } from '@/api' |
| | | |
| | | const colors = ['#FEAF01', '#01ABFE', '#51F9E4'] |
| | | const weekMap = ['æææ¥', 'ææä¸', 'ææäº', 'ææä¸', 'ææå', 'ææäº', 'ææå
',] |
| | | const date = ref(dayjs().format('YYYY.MM.DD')) |
| | |
| | | |
| | | }, 1000) |
| | | |
| | | const arr = ['#68e2e3', '#50afd3', '#377cdb', '#d5ae3a'] |
| | | const initEchart2 = () => { |
| | | var myChart = echarts.init(document.querySelector('.echart2')) |
| | | // çææ°æ®åæ¥æ |
| | | function getLastSevenDays() { |
| | | const days = [] |
| | | const today = new Date() |
| | | for (let i = 10; i >= 0; i--) { |
| | | days.push(`${i + 1}æ`) // æ ¼å¼åæ¥æä¸º "XæXæ¥" |
| | | } |
| | | return days |
| | | } |
| | | |
| | | // ç¤ºä¾æ°æ® |
| | | const data1 = [13, 14, 14, 14, 14, 12, 11, 23, 12, 1] // åæ¶ |
| | | const data2 = [1, 1, 2, 1, 1, 2, 2, 3, 2, 1, 5] // è¿å° |
| | | const data3 = [1, 0, 0, 0, 0, 0, 2, 2, 3, 1, 2] // 请å |
| | | const data4 = [8, 5, 4, 7, 4, 5, 7, 4, 2, 1, 3] // å ç |
| | | const option = { |
| | | legend: { |
| | | x: "center", |
| | | textStyle: { |
| | | color: "#FFFFFF", // å¾ä¾æå设为ç½è² |
| | | fontSize: 12 |
| | | }, |
| | | icon: 'circle', |
| | | top: '6%', |
| | | itemWidth: 8, |
| | | itemHeight: 8, |
| | | itemGap: 20, |
| | | data: ['åè¦æ°', 'è¿è¡ä¸', 'å·²å¤ç', 'è¯¯æ¥æ°'] // æ´æ°å¾ä¾åç§° |
| | | }, |
| | | grid: { |
| | | left: '2%', |
| | | right: '0%', |
| | | top: '18%', |
| | | bottom: '10%', |
| | | containLabel: true, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | axisPointer: { |
| | | type: "shadow" |
| | | }, |
| | | textStyle: { |
| | | color: "rgba(255, 255, 255, 1)" |
| | | }, |
| | | backgroundColor: "rgba(0,0,0,0.8)", |
| | | borderColor: "rgba(219, 230, 255, 0.8)", |
| | | }, |
| | | xAxis: { |
| | | data: getLastSevenDays(), // 使ç¨è¿ä¸å¤©æ¥æ |
| | | axisLabel: { |
| | | color: "#FFFFFF", // X è½´æå设为ç½è² |
| | | fontSize: 14, |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#1E294C' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | } |
| | | }, |
| | | yAxis: { |
| | | show: true, |
| | | axisLabel: { |
| | | color: "#FFFFFF", // Y è½´æå设为ç½è² |
| | | fontSize: 12, |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#A9AEB2' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | lineStyle: { |
| | | color: '#A9AEB2' |
| | | } |
| | | }, |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: ["#0f1d27"], |
| | | width: 1 |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "åè¦æ°", |
| | | type: "bar", |
| | | stack: "attendance", |
| | | data: data1, |
| | | itemStyle: { |
| | | color: '#FEAF01', |
| | | }, |
| | | label: { |
| | | show: false, |
| | | color: "#FFFFFF", |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | barWidth: 6, |
| | | }, |
| | | { |
| | | name: "è¿è¡ä¸", // è¿å°æ°æ® |
| | | type: "bar", |
| | | stack: "attendance", |
| | | data: data2, |
| | | itemStyle: { |
| | | color: '#28F0C4', // è¿å°çé¢è² |
| | | }, |
| | | label: { |
| | | show: false, |
| | | color: "#FFFFFF", |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | }, |
| | | { |
| | | name: "å·²å¤ç", // è¯·åæ°æ® |
| | | type: "bar", |
| | | stack: "attendance", |
| | | data: data3, |
| | | itemStyle: { |
| | | color: '#0193FE', // 请åçé¢è² |
| | | }, |
| | | label: { |
| | | show: false, |
| | | color: "#FFFFFF", |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | }, |
| | | { |
| | | name: "è¯¯æ¥æ°", // åç¬çå çæ±å |
| | | type: "bar", |
| | | data: data4, |
| | | barWidth: 6, |
| | | itemStyle: { |
| | | color: '#FEED01', // é«äº®çç´«è² |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | }, |
| | | ], |
| | | } |
| | | myChart.setOption(option) |
| | | window.addEventListener('resize', function () {//æ§è¡ |
| | | myChart.resize() |
| | | }) |
| | | } |
| | | |
| | | const policeColors = ['#01D9FE', '#FE5501', '#0193FE', '#28F0C4'] |
| | | const initWatergage = () => { |
| | | const myChart = echarts.init(document.getElementById('watergage')) |
| | | var data_value = 2 |
| | |
| | | }) |
| | | } |
| | | |
| | | const dataList1 = ref([]) |
| | | const getData1 = () => { |
| | | getFightingDeAlarm().then(res => { |
| | | dataList1.value = res.data |
| | | }) |
| | | } |
| | | const policeColors = ['#01D9FE', '#FE5501', '#0193FE', '#28F0C4'] |
| | | const dataList2 = ref([]) |
| | | const getData2 = () => { |
| | | getFightingalarmData().then(res => { |
| | | const result = res.data || {} |
| | | let temp = [] |
| | | temp.push({ name: 'ç宿¥è¦æ°', num: result.realNum, rate: (result.realNum / result.totalNum) * 100 }) |
| | | temp.push({ name: '误æ¥è¦æ°', num: result.errNum, rate: (result.errNum / result.totalNum) * 100 }) |
| | | temp.push({ name: '已解é¤', num: result.liftNum, rate: (result.liftNum / result.totalNum) * 100 }) |
| | | temp.push({ name: 'å¤çä¸', num: result.processingNum, rate: (result.processingNum / result.totalNum) * 100 }) |
| | | dataList2.value = temp |
| | | }) |
| | | } |
| | | |
| | | const dataList3 = ref([]) |
| | | const getData3 = () => { |
| | | getFightingHandle({ type: 0 }).then(res => { |
| | | dataList3.value = res.data || [] |
| | | initEchart2() |
| | | }) |
| | | } |
| | | const initEchart2 = () => { |
| | | var myChart = echarts.init(document.querySelector('.echart2')) |
| | | // çææ°æ®åæ¥æ |
| | | // ç¤ºä¾æ°æ® |
| | | const data1 = dataList3.value.map(i => i.alarmNum) |
| | | const data2 = dataList3.value.map(i => i.processingNum) |
| | | const data3 = dataList3.value.map(i => i.liftNum) |
| | | const data4 = dataList3.value.map(i => i.errNum) |
| | | const option = { |
| | | legend: { |
| | | x: "center", |
| | | textStyle: { |
| | | color: "#FFFFFF", // å¾ä¾æå设为ç½è² |
| | | fontSize: 12 |
| | | }, |
| | | icon: 'circle', |
| | | top: '6%', |
| | | itemWidth: 8, |
| | | itemHeight: 8, |
| | | itemGap: 20, |
| | | data: ['åè¦æ°', 'è¿è¡ä¸', 'å·²å¤ç', 'è¯¯æ¥æ°'] // æ´æ°å¾ä¾åç§° |
| | | }, |
| | | grid: { |
| | | left: '2%', |
| | | right: '0%', |
| | | top: '20%', |
| | | bottom: '10%', |
| | | containLabel: true, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | axisPointer: { |
| | | type: "shadow" |
| | | }, |
| | | textStyle: { |
| | | color: "rgba(255, 255, 255, 1)" |
| | | }, |
| | | backgroundColor: "rgba(0,0,0,0.8)", |
| | | borderColor: "rgba(219, 230, 255, 0.8)", |
| | | }, |
| | | xAxis: { |
| | | data: dataList3.value.map(i => i.monthStr), |
| | | axisLabel: { |
| | | color: "#FFFFFF", // X è½´æå设为ç½è² |
| | | fontSize: 14, |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#1E294C' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | } |
| | | }, |
| | | yAxis: { |
| | | show: true, |
| | | axisLabel: { |
| | | color: "#FFFFFF", // Y è½´æå设为ç½è² |
| | | fontSize: 12, |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#A9AEB2' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | lineStyle: { |
| | | color: '#A9AEB2' |
| | | } |
| | | }, |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: ["#0f1d27"], |
| | | width: 1 |
| | | }, |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "åè¦æ°", |
| | | type: "bar", |
| | | stack: "attendance", |
| | | data: data1, |
| | | itemStyle: { |
| | | color: '#FEAF01', |
| | | }, |
| | | label: { |
| | | show: false, |
| | | color: "#FFFFFF", |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | barWidth: 6, |
| | | }, |
| | | { |
| | | name: "è¿è¡ä¸", // è¿å°æ°æ® |
| | | type: "bar", |
| | | stack: "attendance", |
| | | data: data2, |
| | | itemStyle: { |
| | | color: '#28F0C4', // è¿å°çé¢è² |
| | | }, |
| | | label: { |
| | | show: false, |
| | | color: "#FFFFFF", |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | }, |
| | | { |
| | | name: "å·²å¤ç", // è¯·åæ°æ® |
| | | type: "bar", |
| | | stack: "attendance", |
| | | data: data3, |
| | | itemStyle: { |
| | | color: '#0193FE', // 请åçé¢è² |
| | | }, |
| | | label: { |
| | | show: false, |
| | | color: "#FFFFFF", |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | }, |
| | | { |
| | | name: "è¯¯æ¥æ°", // åç¬çå çæ±å |
| | | type: "bar", |
| | | data: data4, |
| | | barWidth: 6, |
| | | itemStyle: { |
| | | color: '#FEED01', // é«äº®çç´«è² |
| | | }, |
| | | emphasis: { |
| | | focus: "series", |
| | | }, |
| | | }, |
| | | ], |
| | | } |
| | | myChart.setOption(option) |
| | | window.addEventListener('resize', function () {//æ§è¡ |
| | | myChart.resize() |
| | | }) |
| | | } |
| | | |
| | | const dataList4 = ref({}) |
| | | const getData4 = () => { |
| | | getFightingcenterData().then(res => { |
| | | dataList4.value = res.data || {} |
| | | }) |
| | | } |
| | | const dataList5 = ref({}) // ç»´ä¿ |
| | | const getData5 = () => { |
| | | getFightingDeviceY().then(res => { |
| | | dataList5.value = res.data || {} |
| | | }) |
| | | } |
| | | const dataList6 = ref([]) |
| | | const getData6 = () => { |
| | | getFightingHandle({type: 1}).then(res => { |
| | | dataList6.value = res.data |
| | | }) |
| | | } |
| | | |
| | | onMounted(() => { |
| | | initEchart2() |
| | | getData1() |
| | | getData2() |
| | | getData3() |
| | | getData4() |
| | | getData5() |
| | | getData6() |
| | | |
| | | initWatergage() |
| | | initLiquidlevel() |
| | | }) |
| | |
| | | import dayjs from 'dayjs' |
| | | import * as echarts from 'echarts' |
| | | import ahJSON from '@/assets/anhui.json' |
| | | import { |
| | | wlcenterData, |
| | | wljobData, |
| | | wlplatformJobList, |
| | | wlstockList, |
| | | wltotalInList, |
| | | wltransportMeasure, |
| | | } from '@/api' |
| | | |
| | | const colors = ['#FEAF01', '#01ABFE', '#51F9E4'] |
| | | const weekMap = ['æææ¥', 'ææä¸', 'ææäº', 'ææä¸', 'ææå', 'ææäº', 'ææå
',] |
| | |
| | | }) |
| | | } |
| | | |
| | | const dataList1 = ref([]) |
| | | const getData1 = () => { |
| | | wlcenterData().then(res => { |
| | | const result = res |
| | | }) |
| | | } |
| | | const dataList2 = ref([]) |
| | | const getData2 = () => { |
| | | wlcenterData().then(res => { |
| | | const result = res |
| | | }) |
| | | } |
| | | const dataList3 = ref([]) |
| | | const getData3 = () => { |
| | | wlcenterData().then(res => { |
| | | const result = res |
| | | }) |
| | | } |
| | | const dataList4 = ref([]) |
| | | const getData4 = () => { |
| | | wlcenterData().then(res => { |
| | | const result = res |
| | | }) |
| | | } |
| | | const dataList5 = ref([]) |
| | | const getData5 = () => { |
| | | wlcenterData().then(res => { |
| | | const result = res |
| | | }) |
| | | } |
| | | const dataList6 = ref([]) |
| | | const getData6 = () => { |
| | | wlcenterData().then(res => { |
| | | const result = res |
| | | }) |
| | | } |
| | | onMounted(() => { |
| | | getData1() |
| | | getData2() |
| | | getData3() |
| | | getData4() |
| | | getData5() |
| | | getData6() |
| | | return |
| | | initEnergy() |
| | | initEchart1() |
| | | initMap() |
| | |
| | | <div class="car_static"> |
| | | <div class="echart_wrap"> |
| | | <div class="pie_text"> |
| | | <div class="fs30"><strong>300</strong></div> |
| | | <div class="fs30"><strong>{{ data1 }}</strong></div> |
| | | <div>宿é</div> |
| | | </div> |
| | | <div class="echart1" id="echart1"></div> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="item"> |
| | | <div class="item" v-for="item, i in dataList1" :key="i"> |
| | | <div class="line"> |
| | | <div :style="{ background: colors[0] }" class="icon"></div> |
| | | <div class="text">宿³°ç©æµè£
è´§æå°ç»</div> |
| | | <div :style="{ background: colors[i] }" class="icon"></div> |
| | | <div class="text">{{ item.name }}</div> |
| | | </div> |
| | | <div :style="{ color: colors[0] }" class="num">100䏿¯</div> |
| | | <div :style="{ color: colors[i] }" class="num">{{ item.value }}䏿¯</div> |
| | | </div> |
| | | <div class="item"> |
| | | <!-- <div class="item"> |
| | | <div class="line"> |
| | | <div :style="{ background: colors[1] }" class="icon"></div> |
| | | <div class="text">宿³°ç©æµå¸è´§æå°ç»</div> |
| | |
| | | <div class="text">å¸å
¬å¸å¸è´§æå°ç»</div> |
| | | </div> |
| | | <div :style="{ color: colors[2] }" class="num">100䏿¯</div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="line" v-for="item, i in 5"> |
| | | <div class="line" v-for="item, i in dataList2" :key="i"> |
| | | <div class="top"><span v-if="i < 3">top</span>{{ i }}</div> |
| | | <div class="id_card">çA12313</div> |
| | | <div class="id_card">{{ item.platformName }}</div> |
| | | <div class="wrap"> |
| | | <ChargeRate :rate="15" :color /> |
| | | <ChargeRate :rate="item.rate" /> |
| | | </div> |
| | | <div class="num">6å°æ¶34åé</div> |
| | | <div class="num">{{ item.workTotalTimeT }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div>宿¶ä½ä¸æç</div> |
| | | </div> |
| | | <div class="tabs"> |
| | | <div class="tab active">åºåº</div> |
| | | <div class="tab" :class="{ active: activeTab3 == 1 }" @click="tabClick3(1)">åºåº</div> |
| | | <div class="separate"></div> |
| | | <div class="tab">å
¥åº</div> |
| | | <div class="tab" :class="{ active: activeTab3 == 0 }" @click="tabClick3(0)">å
¥åº</div> |
| | | </div> |
| | | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> |
| | | </div> |
| | |
| | | <div class="static_wrap"> |
| | | <div class="item"> |
| | | <div class="name">æå°æ°é</div> |
| | | <div class="nums"> |
| | | <div class="num" v-for="i in '010'">{{ i }}</div> |
| | | <div v-if="data4.platformTotal" class="nums"> |
| | | <div class="num" v-for="n, i in data4.platformTotal + ''" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">ç©ºé²æå°</div> |
| | | <div class="nums"> |
| | | <div class="num" v-for="i in '010'">{{ i }}</div> |
| | | <div v-if="data4.freePlatform" class="nums"> |
| | | <div class="num" v-for="n, i in data4.freePlatform + ''" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">é¢çº¦è½¦è¾</div> |
| | | <div class="nums"> |
| | | <div class="num" v-for="i in '010'">{{ i }}</div> |
| | | <div v-if="data4.reservationCar" class="nums"> |
| | | <div class="num" v-for="n, i in data4.reservationCar + ''" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">ä½ä¸è½¦è¾</div> |
| | | <div class="nums"> |
| | | <div class="num" v-for="i in '010'">{{ i }}</div> |
| | | <div v-if="data4.workingCar" class="nums"> |
| | | <div class="num" v-for="n, i in data4.workingCar + ''" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">æé车è¾</div> |
| | | <div class="nums"> |
| | | <div class="num" v-for="i in '010'">{{ i }}</div> |
| | | <div class="nums" v-if="data4.lineUpCar"> |
| | | <div class="num" v-for="n, i in data4.lineUpCar + ''" :key="i">{{ n }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div>é¢è®¡å®ææ¶é´</div> |
| | | <div>æå°ç¶æ</div> |
| | | </div> |
| | | <div class="line" v-for="i in 6"> |
| | | <div>æå°åç§°</div> |
| | | <div>ä½ä¸è½¦è¾</div> |
| | | <div>ä½ä¸é</div> |
| | | <div>ä½ä¸æ¶é¿</div> |
| | | <div>é¢è®¡å®ææ¶é´</div> |
| | | <div>æå°ç¶æ</div> |
| | | <div class="line" v-for="item, i in dataList5" :key="i"> |
| | | <div>{{ item.platformName }}</div> |
| | | <div>{{ item.carNo || '-' }}</div> |
| | | <div>{{ item.workNum }}{{ item.workNum ? '䏿¯' : '-' }}</div> |
| | | <div>{{ item.workTime || '-' }}</div> |
| | | <div>{{ item.finishTime || '-' }}</div> |
| | | <div :style="{ |
| | | color: item.status == 1 ? '#869CC9' : item.status == 2 ? '#FE5501' : '#D2E0FF' |
| | | }">{{ item.statusTemp }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="static_wrap"> |
| | | <div class="item"> |
| | | <div class="name">ç¾å°æ°</div> |
| | | <div class="num">1</div> |
| | | <div class="num">{{ data6.inNum || 0 }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">å·²å«å·</div> |
| | | <div class="num">1</div> |
| | | <div class="num">{{ data6.callNum || 0 }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">å·²ä½ä¸</div> |
| | | <div class="num">1</div> |
| | | <div class="num">{{ data6.workingNum || 0 }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="name">已宿</div> |
| | | <div class="num">1</div> |
| | | <div class="num">{{ data6.finishNum || 0 }}</div> |
| | | </div> |
| | | </div> |
| | | <div class="echart_wrap"> |
| | | <div class="echart3" id="echart3"></div> |
| | | </div> |
| | | <div class="list"> |
| | | <div class="line" v-for=" i in 7"> |
| | | <div class="line" v-for="item, i in data6.platformLogList"> |
| | | <div class="time_wrap"> |
| | | <div class="time">12.40</div> |
| | | <div class="time" v-if="item.createDate">{{ item.createDate.slice(11, 16) }}</div> |
| | | <div class="sp"></div> |
| | | <div class="dian"></div> |
| | | </div> |
| | | <div class="id_card">çA12313</div> |
| | | <div class="id_card">{{ item.carCodeFront }}</div> |
| | | <div class="status">å¼å§ä½ä¸</div> |
| | | <div class="desc">æéçå¾
å«å·</div> |
| | | <div class="desc">{{ item.content }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | import dayjs from 'dayjs' |
| | | import ChargeRate from '@/components/ChargeRate.vue' |
| | | import * as echarts from 'echarts' |
| | | import { |
| | | cnplatformGroupFinish, |
| | | cnplatformDuration, |
| | | cnplatformWorkData, |
| | | cncenterData, |
| | | cncarWorkSituation, |
| | | cnworkEfficiency, |
| | | } from '@/api' |
| | | |
| | | |
| | | const weekMap = ['æææ¥', 'ææä¸', 'ææäº', 'ææä¸', 'ææå', 'ææäº', 'ææå
',] |
| | |
| | | labelLine: { |
| | | show: false |
| | | }, |
| | | data: [ |
| | | { value: 1048, name: 'Search Engine' }, |
| | | { value: 735, name: 'Direct' }, |
| | | { value: 580, name: 'Email' } |
| | | ] |
| | | data: dataList1.value |
| | | } |
| | | ] |
| | | } |
| | |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | | data: ['2017', '2018', '2019', '2020', '2021', '2022', '2023',], |
| | | data: dataList3.value.map(i => i.workTime), |
| | | }], |
| | | yAxis: [ |
| | | { |
| | |
| | | shadowColor: 'rgba(124,248,255, 0)', |
| | | shadowBlur: 20 |
| | | }, |
| | | data: [393, 438, 485, 631, 389, 224, 287] |
| | | data: dataList3.value.map(i => i.workNum) |
| | | }, |
| | | { |
| | | name: '累计ä½ä¸é', |
| | |
| | | }, |
| | | barBorderRadius: [30, 30, 0, 0], |
| | | }, |
| | | data: [393, 438, 485, 631, 689, 524, 687] |
| | | data: dataList3.value.map(i => i.totalWorkNum) |
| | | }, |
| | | ] |
| | | } |
| | |
| | | offset: 1, |
| | | color: '#61d3f9' |
| | | }])] |
| | | const temp = [] |
| | | temp.push({ name: 'é¢çº¦æ°', value: data6.value.reservationNum || 0 }) |
| | | temp.push({ name: 'å·²è¿åº', value: data6.value.inNum || 0 }) |
| | | temp.push({ name: 'å·²ä½ä¸', value: data6.value.workingNum || 0 }) |
| | | temp.push({ name: '已离åº', value: data6.value.leaveNum || 0 }) |
| | | console.log('temp', temp); |
| | | |
| | | const option = { |
| | | color: colors, |
| | | tooltip: { |
| | |
| | | borderWidth: 0, |
| | | borderColor: '#fff' |
| | | }, |
| | | data: [ |
| | | { value: 100, name: 'é¢çº¦æ°', }, |
| | | { value: 50, name: 'å·²è¿åº' }, |
| | | { value: 20, name: 'å·²ä½ä¸' }, |
| | | { value: 30, name: '已离åº' }, |
| | | ] |
| | | data: temp |
| | | }, |
| | | { |
| | | type: 'funnel', |
| | |
| | | opacity: 1 |
| | | } |
| | | }, |
| | | data: [ |
| | | { value: 100, name: 'é¢çº¦æ°', }, |
| | | { value: 50, name: 'å·²è¿åº' }, |
| | | { value: 20, name: 'å·²ä½ä¸' }, |
| | | { value: 30, name: '已离åº' }, |
| | | ] |
| | | data: temp |
| | | }, |
| | | ] |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | const dataList1 = ref([]) |
| | | const data1 = ref(0) |
| | | const getData1 = () => { |
| | | cnplatformGroupFinish().then(res => { |
| | | const result = res.data || [] |
| | | let count = 0 |
| | | dataList1.value = result.map(i => { |
| | | count += i.finishData |
| | | return { |
| | | value: i.finishData, |
| | | name: i.platformGroupName |
| | | } |
| | | }) |
| | | data1.value = count |
| | | initEchart1() |
| | | }) |
| | | } |
| | | const dataList2 = ref([]) |
| | | const getData2 = () => { |
| | | cnplatformDuration().then(res => { |
| | | const result = res.data || [] |
| | | dataList2.value = result.map(item => { |
| | | if (item.workTotalTime) { |
| | | if (item.workTotalTime > 60) { |
| | | item.workTotalTimeT = (item.workTotalTime / 60).toFixed(0) + 'å°æ¶' + item.workTotalTime % 60 + 'åé' |
| | | } else { |
| | | item.workTotalTimeT = item.workTotalTime |
| | | } |
| | | } |
| | | item.rate = ((item.workTotalTime / item.openTotalTime) * 30).toFixed(0) |
| | | return item |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | const dataList3 = ref([]) |
| | | const activeTab3 = ref(1) |
| | | const tabClick3 = (val) => { |
| | | activeTab3.value = val |
| | | getData3() |
| | | } |
| | | const getData3 = () => { |
| | | cnworkEfficiency({ type: activeTab3.value }).then(res => { |
| | | const result = res.data |
| | | dataList3.value = result |
| | | initEchart2() |
| | | }) |
| | | } |
| | | const data4 = ref({}) |
| | | const getData4 = () => { |
| | | cncenterData().then(res => { |
| | | const result = res.data |
| | | data4.value = result |
| | | }) |
| | | } |
| | | const dataList5 = ref([]) |
| | | const getData5 = () => { |
| | | cnplatformWorkData().then(res => { |
| | | const result = res.data || [] |
| | | dataList5.value = result.map(i => { |
| | | i.statusTemp = i.status == 0 ? 'ä½ä¸ä¸' : i.status == 1 ? '空é²ä¸' : 'ä½ä¸è¶
æ¶' |
| | | if (i.workTime) { |
| | | if (item.workTime > 60) { |
| | | item.workTime = (item.workTime / 60).toFixed(0) + 'h' + item.workTime % 60 + 'm' |
| | | } else { |
| | | item.workTime = item.workTime |
| | | } |
| | | } |
| | | i.finishTime = dayjs(i.finishTime).format('HH:mm') |
| | | return i |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | const data6 = ref({}) |
| | | const getData6 = () => { |
| | | cncarWorkSituation().then(res => { |
| | | const result = res.data |
| | | data6.value = result |
| | | initEchart3() |
| | | }) |
| | | } |
| | | |
| | | |
| | | onMounted(() => { |
| | | // initEnergy() |
| | | initEchart1() |
| | | initEchart2() |
| | | initEchart3() |
| | | getData1() |
| | | getData2() |
| | | getData3() |
| | | getData4() |
| | | getData5() |
| | | getData6() |
| | | |
| | | // initEchart1() |
| | | // initEchart2() |
| | | // initEchart3() |
| | | }) |
| | | |
| | | |
| | |
| | | .left_box_one { |
| | | width: 100%; |
| | | margin-bottom: 20px; |
| | | border: 1px solid; |
| | | |
| | | .car_static { |
| | | display: flex; |
| | |
| | | .list { |
| | | padding: 20px 24px 4px; |
| | | height: 227px; |
| | | border: 1px solid; |
| | | |
| | | .line { |
| | | display: flex; |
| | |
| | | .id_card { |
| | | color: #DBEAEA; |
| | | font-weight: 500; |
| | | margin-right: 14px; |
| | | margin-right: 2px; |
| | | font-size: 14px; |
| | | width: 80px; |
| | | overflow: hidden; |
| | | white-space: nowrap; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .num { |
| | | font-weight: 500; |
| | | width: 82px; |
| | | text-align: right; |
| | | font-size: 13px; |
| | | color: #DBEAEA; |
| | | margin-left: 15px; |
| | | margin-left: 2px; |
| | | } |
| | | |
| | | .wrap { |
| | |
| | | margin: 0 6px; |
| | | } |
| | | |
| | | .tab { |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .active { |
| | | color: #0094eb; |
| | | } |
| | |
| | | response.setPrefix(prefix); |
| | | |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(multifileList)){ |
| | | String path = systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.FTP_RESOURCE_PATH).getCode() + systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.PROJECTS).getCode(); |
| | | String path = systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.FTP_RESOURCE_PATH) |
| | | .getCode() + systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.PROJECTS).getCode(); |
| | | String localPath = systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.FTP_LOCAL_RESOURCE_PATH) |
| | | .getCode() + systemDictDataBiz.queryByCode(MeetConstants.FTP, MeetConstants.PROJECTS).getCode(); |
| | | for (Multifile multifile:multifileList) { |
| | | multifile.setFileurlFull(path + multifile.getFileurl()); |
| | | multifile.setLocalFileurlFull(localPath + multifile.getFileurl()); |
| | | } |
| | | response.setMultifileList(multifileList); |
| | | } |
| | |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.system.dto.LoginDTO; |
| | | import com.doumee.dao.system.dto.LoginPhoneDTO; |
| | | import com.doumee.service.common.CaptchaService; |
| | | import com.doumee.service.system.SystemLoginService; |
| | | import com.doumee.service.system.SystemUserService; |
| | |
| | | return ApiResponse.failed(ResponseStatus.SERVER_ERROR); |
| | | } |
| | | } |
| | | |
| | | |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("çä¿¡éªè¯ç ç»å½") |
| | | @PostMapping("/loginByPhone") |
| | | @LoginNoRequired |
| | | public ApiResponse<String> loginByPhone (@Validated @RequestBody LoginPhoneDTO dto, ServerWebExchange serverWebExchange) { |
| | | try { |
| | | ServerHttpRequest request = serverWebExchange.getRequest(); |
| | | LoginUserInfo user = systemLoginService.loginByPhone(dto,request); |
| | | String token = jwtTokenUtil.generateToken(user); |
| | | return ApiResponse.success(token); |
| | | }catch (BusinessException e){ |
| | | return ApiResponse.failed(e.getCode(),e.getMessage()); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ApiResponse.failed(ResponseStatus.SERVER_ERROR); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | |
| | | public ApiResponse<String> logout(@RequestHeader(Constants.HEADER_USER_TOKEN) String oldToken){ |
| | | try { |
| | | jwtTokenUtil.logout(oldToken); |
| | | |
| | | |
| | | |
| | | }catch (BusinessException e){ |
| | | return ApiResponse.failed(e.getCode(),e.getMessage()); |
| | | }catch (Exception e){ |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * å·æ°JWT令ç,ç¨æ§çä»¤çæ¢æ°ç令ç |
| | | */ |
| | |
| | | package com.doumee.api.system; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.biz.system.SystemUserBiz; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.system.dto.LoginDTO; |
| | | import com.doumee.dao.system.dto.UpdatePwdDto; |
| | | import com.doumee.service.system.SystemLoginService; |
| | | import com.hikvision.artemis.sdk.ArtemisHttpUtil; |
| | | import com.hikvision.artemis.sdk.util.HttpUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.client.methods.HttpGet; |
| | | import org.apache.http.impl.client.HttpClientBuilder; |
| | | import org.apache.http.util.EntityUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.apache.shiro.subject.Subject; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.client.HttpClient; |
| | | import org.apache.http.client.methods.HttpGet; |
| | | import org.apache.http.impl.client.HttpClientBuilder; |
| | | import org.apache.http.util.EntityUtils; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * @author Eva.Caesar Liu |
| | |
| | | @Autowired |
| | | private SystemLoginService systemLoginService; |
| | | |
| | | |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("ç»å½") |
| | | @PostMapping("/login") |
| | |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @Trace(withRequestParameters = false) |
| | | @ApiOperation("ä¿®æ¹å½åç¨æ·å¯ç ") |
| | | @PostMapping("/updatePwd") |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "å·¥å·ã"+systemUser.getEmpNo()+"ãå·²åå¨"); |
| | | } |
| | | } |
| | | //éªè¯ææºå· |
| | | if (StringUtils.isNotBlank(systemUser.getMobile())) { |
| | | queryUserDto = new SystemUser(); |
| | | queryUserDto.setDeleted(Boolean.FALSE); |
| | | queryUserDto.setMobile(systemUser.getMobile()); |
| | | user = systemUserService.findOne(queryUserDto); |
| | | if (user != null) { |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "ææºå·ã"+systemUser.getMobile()+"ãå·²åå¨"); |
| | | } |
| | | } |
| | | // çæå¯ç ç |
| | | String salt = RandomStringUtils.randomAlphabetic(6); |
| | | // çæå¯ç |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "å·¥å·ã"+systemUser.getEmpNo()+"ãå·²åå¨"); |
| | | } |
| | | } |
| | | //éªè¯ææºå· |
| | | if (StringUtils.isNotBlank(systemUser.getMobile())) { |
| | | queryUserDto = new SystemUser(); |
| | | queryUserDto.setMobile(systemUser.getMobile()); |
| | | queryUserDto.setDeleted(Boolean.FALSE); |
| | | user = systemUserService.findOne(queryUserDto); |
| | | if (user != null && !user.getId().equals(systemUser.getId())) { |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "ææºå·ã"+systemUser.getMobile()+"ãå·²åå¨"); |
| | | } |
| | | } |
| | | // ä¿®æ¹ç¨æ· |
| | | systemUserService.updateById(systemUser); |
| | | // 设置é¨é¨ |
| | |
| | | package com.doumee.config.jwt; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.HttpsUtil; |
| | | import io.jsonwebtoken.Jwts; |
| | | import io.jsonwebtoken.SignatureAlgorithm; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.client.HttpClient; |
| | | import org.apache.http.client.methods.HttpGet; |
| | | import org.apache.http.impl.client.HttpClientBuilder; |
| | | import org.apache.http.util.EntityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | @Component |
| | | @Slf4j |
| | | public class JwtTokenUtil { |
| | | |
| | | @Autowired |
| | | private RedisTemplate<String,Object> redisTemplate; |
| | | @Resource |
| | | private JwtProperties jwtProperties; |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz ; |
| | | |
| | | /** |
| | | * çætoken令ç |
| | |
| | | */ |
| | | public void logout(String token) { |
| | | try { |
| | | //ç»åºæµ·åº·ç³»ç»æ°æ® |
| | | LoginUserInfo loginUserInfo = this.getUserInfoByToken(token); |
| | | String url = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HTTPS).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HOST).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.LOGIN_OUT_URL).getCode(); |
| | | if(StringUtils.isNotBlank(loginUserInfo.getHkMenuToken())){ |
| | | log.info("è°èµ·æµ·åº·éåºç»å½=======================>"+url+"?token="+loginUserInfo.getHkMenuToken()); |
| | | // this.hkLoginOut(url+"?token="+loginUserInfo.getHkMenuToken()); |
| | | HttpsUtil.get(url+"?token="+loginUserInfo.getHkMenuToken(),true); |
| | | } |
| | | redisTemplate.delete(Constants.REDIS_TOKEN_KEY+token);//å é¤èçtoken |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | |
| | | public void hkLoginOut(String url){ |
| | | try { |
| | | // å建HttpClient对象 |
| | | HttpClient httpClient = HttpClientBuilder.create().build(); |
| | | // å建HttpGetå¯¹è±¡ï¼æå®è¦è®¿é®çURLå°å |
| | | HttpGet httpGet = new HttpGet(url); |
| | | // åéGET请æ±ï¼è·åååº |
| | | HttpResponse response = httpClient.execute(httpGet); |
| | | // è·åååºç¶æç |
| | | int statusCode = response.getStatusLine().getStatusCode(); |
| | | // å¤æè¯·æ±æ¯å¦æå |
| | | if (statusCode == 200) { |
| | | // è·åååºå
容 |
| | | HttpEntity entity = response.getEntity(); |
| | | String responseContent = EntityUtils.toString(entity, "UTF-8"); |
| | | System.out.println(responseContent); |
| | | log.info("è°èµ·æµ·åº·éåºç»å½è¿åä¿¡æ¯=======================>"+responseContent); |
| | | } else { |
| | | System.out.println("请æ±å¤±è´¥ï¼ååºç ï¼" + statusCode); |
| | | } |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * éªè¯ä»¤ç |
| | | * |
| | |
| | | private Integer needChangePwd; |
| | | private String mobile; |
| | | private String sessionId; |
| | | private String hkMenuToken; |
| | | |
| | | private Date loginDate; |
| | | @ApiModelProperty(value = "è´¦æ·æ¥æºï¼0=åå°æ·»å ï¼ 2=叿ºæ³¨å") |
| | |
| | | public static final String LED_CONTENT_SPEED ="LED_CONTENT_SPEED" ; |
| | | public static final String HK_HOST ="HK_HOST" ; |
| | | public static final String HK_APPKEY ="HK_APPKEY" ; |
| | | public static final String LOGIN_OUT_URL ="LOGIN_OUT" ; |
| | | public static final String HK_APPSECRET ="HK_APPSECRET" ; |
| | | public static final String HK_HTTPS ="HK_HTTPS" ; |
| | | public static final String HK_PUSH_URL = "HK_PUSH_URL"; |
| | |
| | | public static final String HK_ROOTORG_NAME ="HK_ROOTORG_NAME" ; |
| | | public static final String PLATFORM ="PLATFORM" ; |
| | | public static final String POWER_MINUTE ="POWER_MINUTE" ; |
| | | public static final String SPECIAL_COMPANY_ID ="SPECIAL_COMPANY_ID" ; |
| | | |
| | | public static final String RESERVATION_TOTAL_NUM ="RESERVATION_TOTAL_NUM" ; |
| | | public static final String SIGN_IN_PLACE_LAT ="SIGN_IN_PLACE_LAT" ; |
| | | public static final String SIGN_IN_PLACE_LNT ="SIGN_IN_PLACE_LNT" ; |
| | |
| | | public static final String FTP_USERNAME ="FTP_USERNAME" ; |
| | | public static final String FTP_PWD ="FTP_PWD" ; |
| | | public static final String FTP_RESOURCE_PATH ="FTP_RESOURCE_PATH" ; |
| | | public static final String FTP_LOCAL_RESOURCE_PATH ="FTP_LOCAL_RESOURCE_PATH" ; |
| | | public static final String ERP_ORGLIST_URL ="ERP_ORGLIST_URL" ; |
| | | public static final String ERP_USERLIST_URL ="ERP_USERLIST_URL" ; |
| | | public static final String ERP_APPROVE_URL ="ERP_APPROVE_URL" ; |
| | |
| | | CALLING(1, "å«å·ä¸","${param}请åå¾${param2}çå¾
ä½ä¸"), |
| | | DONE(2, "ä½ä¸å®æ","${param}ä½ä¸å®æï¼è¯·å°½å¿«é©¶ç¦»" ), |
| | | WRONG_IN(3, "é误åé ","${param}æå°åé é误ï¼è¯·å°½å¿«é©¶ç¦»" ), |
| | | TIMEOUT_IN(4, "è¶
æ¶åé ","${param}æå°åé è¶
æ¶ï¼è¯·å°½å¿«é©¶ç¦»è¯·å°½å¿«é©¶ç¦»" ), |
| | | TIMEOUT_IN(4, "è¶
æ¶åé ","${param}æå°åé è¶
æ¶ï¼è¯·å°½å¿«é©¶ç¦»" ), |
| | | TIMEOUT_WORK(5, "ä½ä¸è¶
æ¶","${param}ä½ä¸è¶
æ¶" ), |
| | | ; |
| | | |
| | |
| | | this.info = info; |
| | | this.name = name; |
| | | } |
| | | |
| | | public static String getName(int index) { |
| | | for (PlatformBroadcastContent c : PlatformBroadcastContent.values()) { |
| | | if (c.getKey() == index) { |
| ÎļþÃû´Ó server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/SmsEmailMapper.java ÐÞ¸Ä |
| | |
| | | package com.doumee.dao.business; |
| | | package com.doumee.dao.business.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.SmsEmail; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.system.dto; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @author Eva.Caesar Liu |
| | | * @date 2023/02/14 11:14 |
| | | */ |
| | | @Data |
| | | @ApiModel("ææºå·ç»å½åæ°") |
| | | public class LoginPhoneDTO implements Serializable { |
| | | |
| | | @NotBlank(message = "ææºå·ä¸è½ä¸ºç©º") |
| | | @ApiModelProperty(value = "ææºå·") |
| | | private String phone; |
| | | @NotBlank(message = "éªè¯ç ä¸è½ä¸ºç©º") |
| | | @ApiModelProperty(value = "éªè¯ç ") |
| | | private String code; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "è§è²ID") |
| | | private Integer roleId; |
| | | |
| | | @ApiModelProperty(value = "ä¼ä¸ç¼ç ") |
| | | private Integer companyId; |
| | | |
| | |
| | | @ApiModelProperty(value = "ç¨æ·ç±»åï¼0=ç¸å
³æ¹ï¼1=å
é¨" ,hidden = true) |
| | | private Integer companyType; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æ¥è¯¢åºå®äººåï¼0=å¦ï¼1=æ¯" ) |
| | | private Integer querySpecial; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æ¥è¯¢åºå®äººåç»ç»ä¸»é®" ,hidden = true) |
| | | private String companySpecialId; |
| | | |
| | | |
| | | } |
| | |
| | | @TableField(exist = false) |
| | | private String fileurlFull; |
| | | |
| | | |
| | | @ApiModelProperty(value = "å
ç½æä»¶å°å") |
| | | @TableField(exist = false) |
| | | private String localFileurlFull; |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.dao.system.dto.LoginByOpenidDTO; |
| | | import com.doumee.dao.system.dto.LoginDTO; |
| | | import com.doumee.dao.system.dto.LoginPhoneDTO; |
| | | import org.springframework.http.server.reactive.ServerHttpRequest; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | |
| | | LoginUserInfo loginByPasswordNew (LoginDTO dto, ServerHttpRequest request); |
| | | |
| | | LoginUserInfo loginByPhone(LoginPhoneDTO dto, ServerHttpRequest request); |
| | | |
| | | |
| | | LoginUserInfo driverLogin(LoginDTO dto, ServerHttpRequest request); |
| | | /** |
| | | * æ ¹æ® openIdç»å½ |
| | |
| | | package com.doumee.service.system.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.doumee.config.jwt.JwtTokenUtil; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.SmsEmail; |
| | | import com.doumee.dao.system.dto.LoginByOpenidDTO; |
| | | import com.doumee.dao.system.dto.LoginDTO; |
| | | import com.doumee.dao.system.dto.LoginPhoneDTO; |
| | | import com.doumee.dao.system.model.*; |
| | | import com.doumee.service.common.CaptchaService; |
| | | import com.doumee.service.system.*; |
| | |
| | | @Lazy |
| | | @Autowired |
| | | private SystemUserService systemUserService; |
| | | |
| | | @Autowired |
| | | private SmsEmailMapper smsEmailMapper; |
| | | |
| | | @Lazy |
| | | @Autowired |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public LoginUserInfo loginByPhone(LoginPhoneDTO dto, ServerHttpRequest request) { |
| | | SystemLoginLog loginLog = new SystemLoginLog(); |
| | | loginLog.setLoginUsername(dto.getPhone()); |
| | | loginLog.setLoginTime(new Date()); |
| | | loginLog.setSystemVersion(systemVersion); |
| | | loginLog.setLocation(Utils.Location.getLocationString(loginLog.getIp())); |
| | | if(request!=null&&request.getHeaders()!=null && request.getHeaders().size()>0){ |
| | | loginLog.setIp(Utils.User_Client.getIP(request)); |
| | | loginLog.setPlatform(Utils.User_Client.getPlatform(request)); |
| | | loginLog.setClientInfo(Utils.User_Client.getBrowser(request)); |
| | | loginLog.setOsInfo(Utils.User_Client.getOS(request)); |
| | | } |
| | | loginLog.setServerIp(Utils.Server.getIP()); |
| | | |
| | | |
| | | // æ ¹æ®ç¨æ·åæ¥è¯¢ç¨æ·å¯¹è±¡ |
| | | SystemUser queryDto = new SystemUser(); |
| | | queryDto.setMobile(dto.getPhone()); |
| | | queryDto.setDeleted(Boolean.FALSE); |
| | | SystemUser user = systemUserService.findOne(queryDto); |
| | | if (user == null) { |
| | | throw new BusinessException(ResponseStatus.ACCOUNT_INCORRECT); |
| | | } |
| | | if(!Constants.equalsInteger(user.getSource(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.NO_ALLOW_LOGIN); |
| | | } |
| | | |
| | | if(isDebug == null || !isDebug){ |
| | | //éªè¯ çä¿¡ç |
| | | SmsEmail model = smsEmailMapper.selectOne(new QueryWrapper<SmsEmail>().lambda() |
| | | .eq(SmsEmail::getType, Constants.ZERO) |
| | | .eq(SmsEmail::getPhone, dto.getPhone()) |
| | | .eq(SmsEmail::getRemark, dto.getCode()) |
| | | .eq(SmsEmail::getIsdeleted, Constants.ZERO) |
| | | ); |
| | | if(model == null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼éªè¯ç 䏿£ç¡®ï¼è¯·éæ°åéåè¯ï¼"); |
| | | } |
| | | if(!Constants.equalsInteger(model.getStatus(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼éªè¯ç 已失æï¼è¯·éæ°åéåè¯ï¼"); |
| | | } |
| | | if(model.getCreateDate() !=null && |
| | | System.currentTimeMillis() - model.getCreateDate().getTime() > 3*60*1000){ |
| | | model.setStatus(Constants.ONE); |
| | | model.setEditDate(new Date()); |
| | | smsEmailMapper.updateById(model); |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼éªè¯ç 已失æï¼è¯·éæ°åéåè¯~"); |
| | | } |
| | | model.setStatus(Constants.ONE); |
| | | model.setEditDate(new Date()); |
| | | smsEmailMapper.updateById(model); |
| | | } |
| | | |
| | | Company company = new Company(); |
| | | if(Objects.nonNull(user.getCompanyId())){ |
| | | company = companyMapper.selectById(user.getCompanyId()); |
| | | } |
| | | // è·åç»å½ç¨æ·ä¿¡æ¯ |
| | | List<SystemRole> roles = systemRoleService.findByUserId(user.getId()); |
| | | List<SystemPermission> permissions = systemPermissionService.findByUserId(user.getId()); |
| | | |
| | | SystemRole rt = new SystemRole(); |
| | | rt.setDeleted(Boolean.FALSE); |
| | | //æ°æ®é¨é¨æééå |
| | | user.setCompanyIdList(systemDataPermissionService.selectHighRole(new SystemDataPermission(),rt,user)); |
| | | |
| | | LoginUserInfo userInfo = LoginUserInfo.from(user, roles, permissions,company,null); |
| | | return userInfo; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public LoginUserInfo driverLogin(LoginDTO dto, ServerHttpRequest request) { |
| | | SystemLoginLog loginLog = new SystemLoginLog(); |
| | |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | List<Integer> collect = list.stream().map(s -> s.getId()).collect(Collectors.toList()); |
| | | pageWrap.getModel().setDepartmentIds(collect); |
| | | }*/ |
| | | |
| | | //æ¥è¯¢ç¹æ®ç42人é
ç½® |
| | | if(Objects.nonNull(pageWrap.getModel()) && Constants.equalsInteger(pageWrap.getModel().getQuerySpecial(),Constants.ONE)){ |
| | | String companySpecialId = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SPECIAL_COMPANY_ID).getCode(); |
| | | if(StringUtils.isNotBlank(companySpecialId)){ |
| | | pageWrap.getModel().setCompanySpecialId(companySpecialId); |
| | | } |
| | | } |
| | | |
| | | // æ§è¡æ¥è¯¢ |
| | | PageHelper.startPage(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | List<SystemUserListVO> userList = systemUserMapper.selectManageList(pageWrap.getModel(), pageWrap.getOrderByClause()); |
| | |
| | | <if test="dto.companyType != null "> |
| | | AND sd.`type` = #{dto.companyType} |
| | | </if> |
| | | <if test="dto.querySpecial != null and dto.querySpecial = 1 "> |
| | | AND find_in_set(#{dto.companySpecialId},REPLACE(sd.company_path,"/",",")) |
| | | </if> |
| | | </where> |
| | | ${orderByClause} |
| | | </select> |
| | |
| | | @ApiOperation("ã访客系ç»ã宿¶æ´æ°å¾®ä¿¡å
¬ä¼å·accesstoken") |
| | | @GetMapping("/timer/wxtoken/updateWxAccessToken") |
| | | ApiResponse updateWxAccessToken(); |
| | | @ApiOperation("ãæ°ååæå°ãæå°ä½ä¸æ¥è¦ä¸å¡") |
| | | @GetMapping("/timer/platformJob/platformJobTimer") |
| | | ApiResponse platformJobTimer(); |
| | | @ApiOperation("ã访客系ç»ãè®¿å®¢æ°æ®å³å°è¶
æ¶é¢è¦") |
| | | @GetMapping("/timer/visit/visitTimeOut") |
| | | ApiResponse visitTimeOut() ; |
| | | @ApiOperation("ãæ°ååæå°ãæå°åé è¶
æ¶æ¥è¦ä¸å¡") |
| | | @GetMapping("/timer/platformJob/platformJobTimer") |
| | | ApiResponse platformJobTimer(); |
| | | @ApiOperation("ãæ°ååæå°ãæå°ä½ä¸è¶
æ¶æ¥è¦ä¸å¡") |
| | | @GetMapping("/timer/platformJob/platformJobWorkTimeOut") |
| | | ApiResponse platformJobWorkTimeOut(); |
| | | @ApiOperation("ãæ°ååæå°ãæå°çå¾
ä½ä¸è¶
æ¶ä¸å¡") |
| | | @GetMapping("/timer/platformJob/platformJobWaitTimeOut") |
| | | ApiResponse platformJobWaitTimeOut(); |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | private PlatformJobService platformJobService; |
| | | |
| | | |
| | | @ApiOperation("æå°ä½ä¸æ¥è¦ä¸å¡") |
| | | @ApiOperation("æå°åé è¶
æ¶æ¥è¦ä¸å¡") |
| | | @GetMapping("/platformJobTimer") |
| | | public ApiResponse platformJobTimer() { |
| | | platformJobService.timeOutReport(); |
| | | platformJobService.timeOutCallIn(); |
| | | platformJobService.timeOutWork(); |
| | | return ApiResponse.success("æå°ä½ä¸æ¥è¦ä¸å¡"); |
| | | return ApiResponse.success("æå°åé è¶
æ¶æ¥è¦ä¸å¡"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æå°ä½ä¸è¶
æ¶æ¥è¦ä¸å¡") |
| | | @GetMapping("/platformJobWorkTimeOut") |
| | | public ApiResponse platformJobWorkTimeOut() { |
| | | platformJobService.timeOutWork(); |
| | | return ApiResponse.success("æå°ä½ä¸è¶
æ¶æ¥è¦ä¸å¡"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æå°çå¾
ä½ä¸è¶
æ¶ä¸å¡") |
| | | @GetMapping("/platformJobWaitTimeOut") |
| | | public ApiResponse platformJobWaitTimeOut() { |
| | | platformJobService.timeOutCallIn(); |
| | | return ApiResponse.success("æå°çå¾
ä½ä¸è¶
æ¶ä¸å¡"); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | public ApiResponse create(@RequestBody CarUseBook carUseBook,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) throws Exception { |
| | | LoginUserInfo loginUserInfo = getLoginUser(token); |
| | | carUseBook.setCreator(loginUserInfo.getId()); |
| | | if(Objects.isNull(loginUserInfo.getMemberId())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éå
é¨äººåæ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | carUseBook.setMemberId(loginUserInfo.getMemberId()); |
| | | return ApiResponse.success(carUseBookService.create(carUseBook)); |
| | | } |
| | |
| | | return ApiResponse.success(companyService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("ç»ç»å表") |
| | | @PostMapping("/list") |
| | | @CloudRequiredPermission("business:company:query") |
| | | public ApiResponse<List<Company>> list (@RequestBody Company company,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(companyService.findList(company)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("ç»ç»æ æ¥è¯¢") |
| | | @GetMapping("/tree") |
| | | @ApiImplicitParams({ |
| | |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:hiddendanger:create") |
| | | public ApiResponse create(@RequestBody HiddenDanger hiddenDanger,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | hiddenDanger.setLoginUserInfo(this.getLoginUser(token)); |
| | | LoginUserInfo loginUserInfo = this.getLoginUser(token); |
| | | if(Objects.isNull(loginUserInfo.getMemberId())||Objects.isNull(loginUserInfo)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å½åè´¦æ·æ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | hiddenDanger.setLoginUserInfo(loginUserInfo); |
| | | return ApiResponse.success(hiddenDangerService.create(hiddenDanger)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:hiddendanger:update") |
| | | public ApiResponse updateById(@RequestBody HiddenDanger hiddenDanger,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | hiddenDanger.setLoginUserInfo(this.getLoginUser(token)); |
| | | LoginUserInfo loginUserInfo = this.getLoginUser(token); |
| | | if(Objects.isNull(loginUserInfo.getMemberId())||Objects.isNull(loginUserInfo)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"å½åè´¦æ·æ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | hiddenDanger.setLoginUserInfo(loginUserInfo); |
| | | hiddenDangerService.updateById(hiddenDanger); |
| | | return ApiResponse.success(null); |
| | | } |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.config.jwt.JwtProperties; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.BufferedReader; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | @Autowired |
| | | private RedisTemplate<String,Object> redisTemplate; |
| | | |
| | | @Autowired |
| | | private JwtProperties jwtProperties; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("ãæµ·åº·ãå
¨é忥æå°ä¿¡æ¯æ¥å£") |
| | |
| | | String url = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HTTPS).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HOST).getCode() |
| | | + HKService.getMenuUrl(type,hkToken); |
| | | try { |
| | | if(redisTemplate!=null&& jwtProperties!=null){ |
| | | loginUserInfo.setHkMenuToken(hkToken); |
| | | redisTemplate.opsForValue().set(Constants.REDIS_TOKEN_KEY+token, JSONObject.toJSONString(loginUserInfo),jwtProperties.getExpiration(), TimeUnit.MILLISECONDS); |
| | | } |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | return ApiResponse.success( url); |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åå®é²å¹³å°ç³»ç»å
å¯èåé
ç½®" ) |
| | | @GetMapping("/getHkMenuConfig") |
| | | public ApiResponse<List<Integer>> getHkMenuConfig(@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | LoginUserInfo loginUserInfo = getLoginUser(token); |
| | | List<Integer> menuConfigList = new ArrayList<>(); |
| | | if(Objects.nonNull(loginUserInfo) && StringUtils.isNotBlank(loginUserInfo.getUsername())){ |
| | | menuConfigList = hkSyncPlatformsService.getMenuConfig(loginUserInfo.getUsername()); |
| | | } |
| | | return ApiResponse.success(menuConfigList); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @ApiOperation("ãæµ·åº·ã设置LED屿æ¡") |
| | | @PostMapping("/setLedContent") |
| | | public ApiResponse<List<Map<String,Object>>> setLedContent(@RequestBody TransparentChannelSingleRequest body , HttpServletResponse response) { |
| | |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageWrap; |
| | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | @PostMapping("/apply") |
| | | public ApiResponse<Integer> apply (@RequestBody PlatformBooksApplyDTO platformBooksApplyDTO , @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | LoginUserInfo loginUserInfo = getLoginUser(token); |
| | | if(Objects.isNull(loginUserInfo.getMemberId())){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éå
é¨äººåæ æ³è¿è¡è¯¥æä½"); |
| | | } |
| | | platformBooksApplyDTO.setUserId(loginUserInfo.getMemberId()); |
| | | platformBooksApplyDTO.setDriverId(loginUserInfo.getMemberId()); |
| | | return ApiResponse.success(platformBooksService.apply(platformBooksApplyDTO)); |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/28 13:42 |
| | | */ |
| | | |
| | | @Api(tags = "è½èçæ¿") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/board/api/energy") |
| | | public class EnergyController extends BaseController { |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸å¿æ°æ®") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<EnergyBoardVO> centerData() { |
| | | EnergyBoardVO data = new EnergyBoardVO(); |
| | | Random random = new Random(); |
| | | data.setSmokeBoxTotal(random.nextInt(20000)); |
| | | data.setCarbon(new BigDecimal(random.nextInt(1000))); |
| | | data.setElectricityQuantity(random.nextInt(1000)); |
| | | data.setElectricityYear(new BigDecimal(random.nextInt(10))); |
| | | data.setElectricityMonth(new BigDecimal(random.nextInt(10))); |
| | | |
| | | data.setWaterQuantity(new BigDecimal(random.nextInt(1000))); |
| | | data.setWaterYear(new BigDecimal(random.nextInt(10))); |
| | | data.setWaterMonth(new BigDecimal(random.nextInt(10))); |
| | | |
| | | |
| | | data.setGasQuantity(new BigDecimal(random.nextInt(1000))); |
| | | data.setGasYear(new BigDecimal(random.nextInt(10))); |
| | | data.setGasMonth(new BigDecimal(random.nextInt(10))); |
| | | |
| | | data.setOfficeQuantity(random.nextInt(20)); |
| | | data.setPowerQuantity(random.nextInt(20)); |
| | | data.setWorkHouseQuantity(random.nextInt(20)); |
| | | data.setParkQuantity(random.nextInt(20)); |
| | | data.setTodayElectricity(random.nextInt(20)); |
| | | data.setMonthElectricity(random.nextInt(20)); |
| | | data.setYesterdayElectricity(random.nextInt(20)); |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("宿¶è´è·æ²çº¿") |
| | | @GetMapping("/loadCurve") |
| | | public ApiResponse<List<EnergyDataVO>> loadCurve() { |
| | | List<EnergyDataVO> loadCurveList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i <= 23; i++) { |
| | | EnergyDataVO data = new EnergyDataVO(); |
| | | data.setTimeData(StringUtils.leftPad(i+"",2,"0") +":00"); |
| | | data.setEnergy(new BigDecimal(random.nextInt(200))); |
| | | loadCurveList.add(data); |
| | | } |
| | | return ApiResponse.success(loadCurveList); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("æè½èãæ²¹èåæ") |
| | | @GetMapping("/energyDataList") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "æ¥è¯¢ç±»åï¼0=æ°´ï¼1=æ°ï¼2=çµï¼3=æ²¹è", required = true), |
| | | }) |
| | | public ApiResponse<List<EnergyDataVO>> energyDataList(@RequestParam Integer type) { |
| | | List<EnergyDataVO> energyDataVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i <= 12; i++) { |
| | | EnergyDataVO data = new EnergyDataVO(); |
| | | data.setTimeData(i +"æ"); |
| | | data.setEnergy(new BigDecimal(random.nextInt(200))); |
| | | energyDataVOList.add(data); |
| | | } |
| | | return ApiResponse.success(energyDataVOList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸ææ²¹èæè¡") |
| | | @GetMapping("/lastMonthOil") |
| | | public ApiResponse<List<OilDataVO>> lastMonthOil() { |
| | | List<OilDataVO> oilDataVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | BigDecimal maxOil = BigDecimal.ZERO; |
| | | BigDecimal lastOil = BigDecimal.ZERO; |
| | | for (int i = 1; i <= 7; i++) { |
| | | OilDataVO oilDataVO = new OilDataVO(); |
| | | oilDataVO.setCarNo("çA8" + random.nextInt(9) + random.nextInt(9) + random.nextInt(9) + random.nextInt(9)); |
| | | if(i==1){ |
| | | oilDataVO.setQuantity(new BigDecimal(random.nextInt(100))); |
| | | maxOil = oilDataVO.getQuantity(); |
| | | }else{ |
| | | oilDataVO.setQuantity(new BigDecimal(random.nextInt(lastOil.intValue()))); |
| | | } |
| | | lastOil = oilDataVO.getQuantity(); |
| | | oilDataVO.setMaxOil(maxOil); |
| | | oilDataVOList.add(oilDataVO); |
| | | } |
| | | return ApiResponse.success(oilDataVOList); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.PlatformLogMapper; |
| | | import com.doumee.dao.business.model.PlatformLog; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/28 13:42 |
| | | */ |
| | | |
| | | @Api(tags = "æ¶é²ç®¡æ§å¤§å±") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/board/api/fightingAdmin") |
| | | public class FightingAdminController extends BaseController { |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸å¿æ°æ®") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<FightingAdminBoardVO> centerData() { |
| | | FightingAdminBoardVO data = new FightingAdminBoardVO(); |
| | | Random random = new Random(); |
| | | data.setOfflineDeviceNum(random.nextInt(20)); |
| | | data.setOnlineDeviceNum(random.nextInt(20)); |
| | | data.setErrDeviceNum(random.nextInt(20)); |
| | | data.setShieldDeviceNum(random.nextInt(20)); |
| | | data.setTodayDangerNum(random.nextInt(20)); |
| | | data.setDealDangerNum(random.nextInt(20)); |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥åç³»ç»è®¾å¤ç¶æååè¦æ°é") |
| | | @GetMapping("/deviceAlarmData") |
| | | public ApiResponse<List<DeviceAlarmDataVO>> deviceAlarmData() { |
| | | List<DeviceAlarmDataVO> deviceAlarmDataVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i <= 5; i++) { |
| | | DeviceAlarmDataVO deviceAlarmDataVO = new DeviceAlarmDataVO(); |
| | | deviceAlarmDataVO.setDeviceTypeName("设å¤åç§°_"+i); |
| | | deviceAlarmDataVO.setAlarmNum(random.nextInt(20)); |
| | | deviceAlarmDataVO.setErrNum(random.nextInt(20)); |
| | | deviceAlarmDataVO.setOfflineNum(random.nextInt(20)); |
| | | deviceAlarmDataVO.setShieldNum(random.nextInt(20)); |
| | | deviceAlarmDataVO.setStatusTotal(deviceAlarmDataVO.getAlarmNum() + deviceAlarmDataVO.getErrNum() + deviceAlarmDataVO.getOfflineNum() + deviceAlarmDataVO.getShieldNum()); |
| | | deviceAlarmDataVOList.add(deviceAlarmDataVO); |
| | | } |
| | | return ApiResponse.success(deviceAlarmDataVOList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("æ¥è¦ä¿¡æ¯") |
| | | @GetMapping("/alarmData") |
| | | public ApiResponse<AlarmDataVO> alarmData() { |
| | | AlarmDataVO alarmDataVO = new AlarmDataVO(); |
| | | Random random = new Random(); |
| | | alarmDataVO.setTotalNum(random.nextInt(30)); |
| | | alarmDataVO.setRealNum(random.nextInt(alarmDataVO.getTotalNum())); |
| | | alarmDataVO.setErrNum(random.nextInt(alarmDataVO.getRealNum())); |
| | | alarmDataVO.setLiftNum(random.nextInt(alarmDataVO.getErrNum())); |
| | | alarmDataVO.setProcessingNum(random.nextInt(alarmDataVO.getErrNum())); |
| | | return ApiResponse.success(alarmDataVO); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("åè¦å¤çåæ") |
| | | @GetMapping("/alarmHandleData") |
| | | public ApiResponse<List<AlarmHandleDataVO>> alarmHandleData(@RequestParam Integer type) { |
| | | List<AlarmHandleDataVO> alarmHandleDataVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i <= 12; i++) { |
| | | AlarmHandleDataVO alarmHandleDataVO = new AlarmHandleDataVO(); |
| | | alarmHandleDataVO.setMonthStr(i+"æ"); |
| | | alarmHandleDataVO.setAlarmNum(random.nextInt(20)); |
| | | alarmHandleDataVO.setErrNum(random.nextInt(20)); |
| | | alarmHandleDataVO.setLiftNum(random.nextInt(20)); |
| | | alarmHandleDataVO.setProcessingNum(random.nextInt(20)); |
| | | alarmHandleDataVOList.add(alarmHandleDataVO); |
| | | } |
| | | return ApiResponse.success(alarmHandleDataVOList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("æ¬å¹´æ¶é²è®¾å¤/设æ½ç»´æ¤æ
åµ") |
| | | @GetMapping("/yearDeviceData") |
| | | public ApiResponse<YearDeviceDataVO> yearDeviceData() { |
| | | Random random = new Random(); |
| | | YearDeviceDataVO yearDeviceDataVO = new YearDeviceDataVO(); |
| | | yearDeviceDataVO.setMonthAddNum(random.nextInt(100)); |
| | | yearDeviceDataVO.setPlanProtectTotal(random.nextInt(1000)); |
| | | yearDeviceDataVO.setProtectNum(yearDeviceDataVO.getPlanProtectTotal()); |
| | | return ApiResponse.success(yearDeviceDataVO); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.dao.business.PlatformLogMapper; |
| | | import com.doumee.dao.business.model.Platform; |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.doumee.dao.business.model.PlatformLog; |
| | | import com.doumee.dao.openapi.request.HkBaseTokenRequest; |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.business.PlatformLogService; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/28 13:42 |
| | | */ |
| | | |
| | | @Api(tags = "åºå
è°åº¦çæ¿") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/board/api/onSitDispatch") |
| | | public class OnSitDispatchController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformLogMapper platformLogMapper; |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸å¿æ°æ®") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<OnSitDispatchBoardVO> centerData() { |
| | | OnSitDispatchBoardVO data = new OnSitDispatchBoardVO(); |
| | | data.setPlatformTotal(100); |
| | | data.setFreePlatform(8); |
| | | data.setReservationCar(97); |
| | | data.setWorkingCar(56); |
| | | data.setLineUpCar(35); |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥æå°å®æè®¢åç»è®¡") |
| | | @GetMapping("/platformGroupFinish") |
| | | public ApiResponse<List<PlatformGroupFinishVO>> platformGroupFinish() { |
| | | List<PlatformGroupFinishVO> platformGroupFinishVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 0; i < 3; i++) { |
| | | PlatformGroupFinishVO platformGroupFinishVO = new PlatformGroupFinishVO(); |
| | | platformGroupFinishVO.setPlatformGroupName(i+"_æå°ç»åç§°"); |
| | | platformGroupFinishVO.setPlatformId(i); |
| | | platformGroupFinishVO.setFinishData(300+random.nextInt(100)); |
| | | platformGroupFinishVOList.add(platformGroupFinishVO); |
| | | } |
| | | return ApiResponse.success(platformGroupFinishVOList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥æå°å·¥ä½æ¶é¿è¶å¿") |
| | | @GetMapping("/platformDuration") |
| | | public ApiResponse<List<PlatformDurationVO>> platformDuration() { |
| | | List<PlatformDurationVO> platformDurationList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 0; i < 3; i++) { |
| | | PlatformDurationVO platformDurationVO = new PlatformDurationVO(); |
| | | platformDurationVO.setPlatformName(i+"_æå°åç§°"); |
| | | platformDurationVO.setPlatformId(i); |
| | | platformDurationVO.setWorkTotalTime(100+random.nextInt(100)); |
| | | platformDurationVO.setOpenTotalTime(200+random.nextInt(100)); |
| | | platformDurationList.add(platformDurationVO); |
| | | } |
| | | return ApiResponse.success(platformDurationList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥æå°å·¥ä½æ¶é¿è¶å¿") |
| | | @GetMapping("/workEfficiency") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "æ¥è¯¢ç±»åï¼0=å
¥åºï¼1=åºåº", required = true), |
| | | }) |
| | | public ApiResponse<List<WorkEfficiencyVO>> workEfficiency(@RequestParam Integer type) { |
| | | List<WorkEfficiencyVO> workEfficiencyVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | Integer totalWorkNum = 0; |
| | | for (int i = 8; i <= 20; i++) { |
| | | if(i%2==0){ |
| | | WorkEfficiencyVO workEfficiencyVO = new WorkEfficiencyVO(); |
| | | workEfficiencyVO.setWorkNum(200+random.nextInt(100)); |
| | | totalWorkNum = totalWorkNum + workEfficiencyVO.getWorkNum(); |
| | | workEfficiencyVO.setTotalWorkNum(totalWorkNum); |
| | | workEfficiencyVO.setWorkTime(StringUtils.leftPad(i+"",2,"0") +":00"); |
| | | workEfficiencyVOList.add(workEfficiencyVO); |
| | | } |
| | | } |
| | | return ApiResponse.success(workEfficiencyVOList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥è½¦è¾ä½ä¸æ
åµ") |
| | | @GetMapping("/carWorkSituation") |
| | | public ApiResponse<CarWorkSituationVO> carWorkSituation() { |
| | | |
| | | Random random = new Random(); |
| | | CarWorkSituationVO carWorkSituationVO = new CarWorkSituationVO(); |
| | | carWorkSituationVO.setCallNum(200+random.nextInt(100)); |
| | | carWorkSituationVO.setFinishNum(100+random.nextInt(100)); |
| | | carWorkSituationVO.setCallNum(100+random.nextInt(100)); |
| | | carWorkSituationVO.setWorkingNum(100+random.nextInt(100)); |
| | | carWorkSituationVO.setFinishNum(100+random.nextInt(100)); |
| | | carWorkSituationVO.setInNum(100+random.nextInt(100)); |
| | | List<PlatformLog> platformLogList = platformLogMapper.selectList(new QueryWrapper<PlatformLog>().lambda() |
| | | .orderByDesc(PlatformLog::getCreateDate) |
| | | .last(" limit 7 ") |
| | | ); |
| | | carWorkSituationVO.setPlatformLogList(platformLogList); |
| | | return ApiResponse.success(carWorkSituationVO); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("宿¶æå°ä½ä¸ä¿¡æ¯") |
| | | @GetMapping("/platformWorkData") |
| | | public ApiResponse<List<PlatformWorkDataVO>> platformWorkData() { |
| | | List<PlatformWorkDataVO> platformWorkDataVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 0; i < 3; i++) { |
| | | PlatformWorkDataVO platformDurationVO = new PlatformWorkDataVO(); |
| | | platformDurationVO.setPlatformName(i+"_æå°åç§°"); |
| | | platformDurationVO.setCarNo("çA8" + random.nextInt(9) + random.nextInt(9) + random.nextInt(9) + random.nextInt(9)); |
| | | platformDurationVO.setWorkType(random.nextInt(1)); |
| | | platformDurationVO.setWorkNum(100+random.nextInt(100)); |
| | | platformDurationVO.setFinishTime(Long.valueOf(System.currentTimeMillis()/1000 + 200+random.nextInt(100))); |
| | | platformDurationVO.setStatus(random.nextInt(2)); |
| | | platformWorkDataVOList.add(platformDurationVO); |
| | | } |
| | | return ApiResponse.success(platformWorkDataVOList); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.dao.business.PlatformJobMapper; |
| | | import com.doumee.dao.business.join.PlatformJobJoinMapper; |
| | | import com.doumee.dao.business.model.Platform; |
| | | import com.doumee.dao.business.model.PlatformBooks; |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.doumee.dao.business.model.PlatformWmsJob; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/28 13:42 |
| | | */ |
| | | |
| | | @Api(tags = "ååºç©æµè¿è¡è°åº¦çæ¿") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/board/api/platformJobRun") |
| | | public class PlatformJobRunController extends BaseController { |
| | | |
| | | @ApiModelProperty |
| | | private PlatformJobJoinMapper platformJobJoinMapper; |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸å¿æ°æ®") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<PlatformJobRunBoardVO> centerData() { |
| | | PlatformJobRunBoardVO data = new PlatformJobRunBoardVO(); |
| | | Random random = new Random(); |
| | | data.setMonthOutTotal(BigDecimal.valueOf(random.nextInt(100)).multiply(new BigDecimal(10000))); |
| | | data.setMonthOutTotalOnYear(BigDecimal.valueOf(random.nextInt(10))); |
| | | data.setMonthOutTimes(random.nextInt(1000)); |
| | | data.setYearOutTotal(data.getMonthOutTotal().multiply(new BigDecimal(11))); |
| | | data.setYearOutTotalOnYear(BigDecimal.valueOf(random.nextInt(10))); |
| | | data.setYearOutTimes(random.nextInt(1000) * 11); |
| | | |
| | | data.setTodayInRata(new BigDecimal(random.nextInt(100))); |
| | | data.setMonthInRata(data.getTodayInRata().multiply(new BigDecimal(30))); |
| | | |
| | | data.setTodayOutRata(new BigDecimal(random.nextInt(100))); |
| | | data.setMonthOutRata(data.getTodayOutRata().multiply(new BigDecimal(30))); |
| | | |
| | | |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("è¿è¾ä»»å¡åæ") |
| | | @GetMapping("/transportMeasure") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "queryType", value = "æ¥è¯¢ç±»åï¼0=å¨ï¼1=æï¼2=å¹´ï¼", required = true), |
| | | }) |
| | | public ApiResponse<List<TransportMeasureVO>> transportMeasure(@RequestParam Integer queryType) { |
| | | List<TransportMeasureVO> list = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | List<String> dayList = DateUtil.getBeforDays(new Date(),7); |
| | | if(Constants.equalsInteger(queryType,Constants.ONE)){ |
| | | dayList = DateUtil.getBeforDays(new Date(),30); |
| | | }else if(Constants.equalsInteger(queryType,Constants.TWO)){ |
| | | dayList = DateUtil.getBeforMonth(new Date(),12); |
| | | } |
| | | for (String str:dayList) { |
| | | TransportMeasureVO data = new TransportMeasureVO(); |
| | | data.setPlanTimes(str); |
| | | data.setPlanTaskNum(new BigDecimal(random.nextInt(1000))); |
| | | data.setFinishTaskNum(new BigDecimal(data.getPlanTaskNum().intValue())); |
| | | list.add(data); |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("彿¥è¿è¾ä»»å¡") |
| | | @GetMapping("/platformJobList") |
| | | public ApiResponse<List<PlatformJob>> platformJobList() { |
| | | List<PlatformJob> list = platformJobJoinMapper.selectJoinList(PlatformJob.class, |
| | | new MPJLambdaWrapper<PlatformJob>() |
| | | .selectAll(PlatformJob.class) |
| | | .selectAs(PlatformBooks::getId,PlatformJob::getBookId) |
| | | .selectAs(Platform::getName,PlatformJob::getPlatformName) |
| | | .selectAs(Platform::getWorkRate,PlatformJob::getWorkRate) |
| | | .selectAs(PlatformWmsJob::getCarrierName,PlatformJob::getCarrierName) |
| | | .selectAs(PlatformWmsJob::getRepertotyAddress,PlatformJob::getRepertotyAddress) |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | .leftJoin(PlatformWmsJob.class,PlatformWmsJob::getCarryBillCode,PlatformJob::getBillCode) |
| | | .leftJoin(PlatformBooks.class,PlatformBooks::getJobId,PlatformJob::getId) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .in(PlatformJob::getStatus |
| | | ,Constants.PlatformJobStatus.WAIT_CALL.getKey() |
| | | ,Constants.PlatformJobStatus.CALLED.getKey() |
| | | ,Constants.PlatformJobStatus.IN_WAIT.getKey() |
| | | ,Constants.PlatformJobStatus.WORKING.getKey() |
| | | ,Constants.PlatformJobStatus.TRANSFERING.getKey() |
| | | ,Constants.PlatformJobStatus.EXCEPTION.getKey() |
| | | ,Constants.PlatformJobStatus.DONE.getKey() |
| | | ) |
| | | .orderByDesc(PlatformJob::getSignNum) |
| | | .last(" limit 20 ") |
| | | ); |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("åºå
¥åºä»»å¡é") |
| | | @GetMapping("/jobData") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "queryType", value = "æ¥è¯¢ç±»åï¼0=åºåºï¼1=å
¥åºï¼", required = true), |
| | | }) |
| | | public ApiResponse<JobDataVO> jobData(@RequestParam Integer queryType) { |
| | | Random random = new Random(); |
| | | JobDataVO jobDataVO = new JobDataVO(); |
| | | jobDataVO.setPlanTaskNum(BigDecimal.valueOf(random.nextInt(1000))); |
| | | jobDataVO.setFinishTaskNum(BigDecimal.valueOf(jobDataVO.getPlanTaskNum().intValue())); |
| | | return ApiResponse.success(jobDataVO); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥å
¥åºéç»è®¡") |
| | | @GetMapping("/totalInList") |
| | | public ApiResponse<List<GeneralVO>> totalInList() { |
| | | List<GeneralVO> list = new ArrayList<>(); |
| | | for (int i = 1; i < 4; i++) { |
| | | Random random = new Random(); |
| | | GeneralVO data = new GeneralVO(); |
| | | data.setName("ååºåç§°_"+i); |
| | | data.setNum(BigDecimal.valueOf(random.nextInt(1000))); |
| | | list.add(data); |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("åºåæ
åµ") |
| | | @GetMapping("/stockList") |
| | | public ApiResponse<List<GeneralVO>> stockList() { |
| | | List<GeneralVO> list = new ArrayList<>(); |
| | | for (int i = 1; i < 10; i++) { |
| | | Random random = new Random(); |
| | | GeneralVO data = new GeneralVO(); |
| | | data.setName("åç§°"+i); |
| | | data.setNum(BigDecimal.valueOf(random.nextInt(1000))); |
| | | list.add(data); |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/28 13:42 |
| | | */ |
| | | |
| | | @Api(tags = "å®é²ç®¡æ§å¤§å±") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/board/api/security") |
| | | public class SecurityController extends BaseController { |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸å¿æ°æ®") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<SecurityBoardVO> centerData() { |
| | | SecurityBoardVO data = new SecurityBoardVO(); |
| | | Random random = new Random(); |
| | | data.setParkingLotTotal(random.nextInt(200)); |
| | | data.setFreeParkingLot(random.nextInt(data.getParkingLotTotal())); |
| | | |
| | | data.setInternalCarTotal(random.nextInt(100)); |
| | | data.setRelatedCarTotal(random.nextInt(100)); |
| | | data.setVisitCarTotal(random.nextInt(100)); |
| | | data.setInParkCarTotal(data.getInternalCarTotal() + data.getRelatedCarTotal() + data.getVisitCarTotal()); |
| | | |
| | | data.setInternalTotal(random.nextInt(100)); |
| | | data.setRelatedTotal(random.nextInt(100)); |
| | | data.setVisitTotal(random.nextInt(100)); |
| | | data.setInParkTotal(data.getInternalTotal() + data.getRelatedTotal() + data.getVisitTotal()); |
| | | |
| | | data.setDeviceTotal(random.nextInt(20)); |
| | | data.setErrTotal(random.nextInt(20)); |
| | | data.setInternalJobCarTotal(random.nextInt(20)); |
| | | data.setVisitJobCarTotal(random.nextInt(20)); |
| | | data.setRelatedJobCarTotal(random.nextInt(20)); |
| | | |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ååºå®é²è®¾å¤") |
| | | @GetMapping("/securityDeviceData") |
| | | public ApiResponse<List<SecurityDeviceDataVO>> securityDeviceData() { |
| | | List<SecurityDeviceDataVO> list = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i <= 3; i++) { |
| | | SecurityDeviceDataVO data = new SecurityDeviceDataVO(); |
| | | data.setDeviceType("设å¤ç±»å_"+i); |
| | | data.setOnlineNum(random.nextInt(10)); |
| | | data.setOfflineDeviceNum(random.nextInt(10)); |
| | | data.setTotalNum(data.getOnlineNum() + data.getOfflineDeviceNum() ); |
| | | list.add(data); |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("访客æ»çæ
åµ") |
| | | @GetMapping("/visitRetentionData") |
| | | public ApiResponse<List<VisitRetentionDataVO>> visitRetentionData() { |
| | | List<VisitRetentionDataVO> list = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i <= 3; i++) { |
| | | VisitRetentionDataVO data = new VisitRetentionDataVO(); |
| | | data.setName("å°æ_"+i); |
| | | data.setCompanyName("è¿ç»´ç»_"+i); |
| | | data.setTimeOutMinute(Long.valueOf(random.nextInt(200))); |
| | | list.add(data); |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import io.swagger.annotations.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/28 13:42 |
| | | */ |
| | | |
| | | @Api(tags = "å
¨çä¸åºå¶ç®¡ççæ¿") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/board/api/wholeProvince") |
| | | public class WholeProvinceController extends BaseController { |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸å¿æ°æ®") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<WholeProvinceBoardVO> centerData() { |
| | | WholeProvinceBoardVO data = new WholeProvinceBoardVO(); |
| | | Random random = new Random(); |
| | | |
| | | data.setYearOutTotal(BigDecimal.valueOf(random.nextInt(200))); |
| | | data.setYearOutTotalOnYear(BigDecimal.valueOf(random.nextInt(10))); |
| | | data.setYearOutTimes(random.nextInt(200)); |
| | | data.setYearProvinceRata(BigDecimal.valueOf(random.nextInt(100)).divide(new BigDecimal(100),2,BigDecimal.ROUND_HALF_UP)); |
| | | |
| | | data.setYearInPlanTotal(BigDecimal.valueOf(random.nextInt(200))); |
| | | data.setYearInTotal(BigDecimal.valueOf(random.nextInt(data.getYearInPlanTotal().intValue()))); |
| | | data.setYearInTotalOnYear(BigDecimal.valueOf(random.nextInt(10))); |
| | | data.setYearInTimes(random.nextInt(200)); |
| | | |
| | | data.setOutPlanTotal(BigDecimal.valueOf(random.nextInt(200))); |
| | | data.setOutPlanTimes(random.nextInt(200)); |
| | | data.setOutTotal(BigDecimal.valueOf(random.nextInt(data.getOutPlanTotal().intValue()))); |
| | | data.setOutTimes(random.nextInt(data.getOutPlanTimes())); |
| | | data.setOutRata(BigDecimal.valueOf(random.nextInt(100))); |
| | | |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("è¿ä¸æ¥å°è´§æ
åµ") |
| | | @GetMapping("/arriveGoodsList") |
| | | public ApiResponse<List<ArriveGoodsVO>> arriveGoodsList() { |
| | | List<ArriveGoodsVO> list = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | List<String> dayList = DateUtil.getBeforDays(new Date(),7); |
| | | for (String str:dayList) { |
| | | ArriveGoodsVO data = new ArriveGoodsVO(); |
| | | data.setDateStr(str); |
| | | data.setArriveNum(new BigDecimal(random.nextInt(1000))); |
| | | data.setInTransitNum(new BigDecimal(random.nextInt(1000))); |
| | | list.add(data); |
| | | |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("å½åè¿è¾ä»»å¡") |
| | | @GetMapping("/transportTaskList") |
| | | public ApiResponse<List<TransportTaskVO>> transportTaskList() { |
| | | List<TransportTaskVO> list = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i < 11; i++) { |
| | | TransportTaskVO data = new TransportTaskVO(); |
| | | data.setCarNo("çA8" + random.nextInt(9) + random.nextInt(9) + random.nextInt(9) + random.nextInt(9)); |
| | | data.setStatusStr("å°è¾¾å¸è´§å°"); |
| | | data.setAddress("å®å¾½åè¥"); |
| | | data.setTaskDate(new Date()); |
| | | list.add(data); |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("è¿éåè¿è¥") |
| | | @GetMapping("/salesOperationList") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "queryType", value = "æ¥è¯¢ç±»åï¼0=å¨ï¼1=æï¼2=å¹´ï¼", required = true), |
| | | }) |
| | | public ApiResponse<List<SalesOperationVO>> salesOperationList(@RequestParam Integer queryType) { |
| | | List<SalesOperationVO> list = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | List<String> dayList = DateUtil.getBeforDays(new Date(),7); |
| | | if(Constants.equalsInteger(queryType,Constants.ONE)){ |
| | | dayList = DateUtil.getBeforDays(new Date(),30); |
| | | }else if(Constants.equalsInteger(queryType,Constants.TWO)){ |
| | | dayList = DateUtil.getBeforMonth(new Date(),12); |
| | | } |
| | | for (String str:dayList) { |
| | | SalesOperationVO data = new SalesOperationVO(); |
| | | data.setDateStr(str); |
| | | data.setStockNum(new BigDecimal(random.nextInt(1000))); |
| | | data.setTotalInNum(new BigDecimal(random.nextInt(1000))); |
| | | data.setTotalOutNum(new BigDecimal(random.nextInt(1000))); |
| | | list.add(data); |
| | | } |
| | | return ApiResponse.success(list); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("åºåå©ç¨ç") |
| | | @GetMapping("/energyDataList") |
| | | public ApiResponse<List<StockRataVO>> energyDataList() { |
| | | List<StockRataVO> energyDataVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | for (int i = 1; i <= 5; i++) { |
| | | StockRataVO data = new StockRataVO(); |
| | | data.setPlaceName("å°ç¹_"+i); |
| | | data.setNowStockNum(new BigDecimal(random.nextInt(200))); |
| | | data.setStockRataNum(new BigDecimal(random.nextInt(200))); |
| | | data.setTotalStockNum(new BigDecimal(random.nextInt(100))); |
| | | energyDataVOList.add(data); |
| | | } |
| | | return ApiResponse.success(energyDataVOList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸ææ²¹èæè¡") |
| | | @GetMapping("/lastMonthOil") |
| | | public ApiResponse<List<OilDataVO>> lastMonthOil() { |
| | | List<OilDataVO> oilDataVOList = new ArrayList<>(); |
| | | Random random = new Random(); |
| | | BigDecimal maxOil = BigDecimal.ZERO; |
| | | BigDecimal lastOil = BigDecimal.ZERO; |
| | | for (int i = 1; i <= 7; i++) { |
| | | OilDataVO oilDataVO = new OilDataVO(); |
| | | oilDataVO.setCarNo("çA8" + random.nextInt(9) + random.nextInt(9) + random.nextInt(9) + random.nextInt(9)); |
| | | if(i==1){ |
| | | oilDataVO.setQuantity(new BigDecimal(random.nextInt(100))); |
| | | maxOil = oilDataVO.getQuantity(); |
| | | }else{ |
| | | oilDataVO.setQuantity(new BigDecimal(random.nextInt(lastOil.intValue()))); |
| | | } |
| | | lastOil = oilDataVO.getQuantity(); |
| | | oilDataVO.setMaxOil(maxOil); |
| | | oilDataVOList.add(oilDataVO); |
| | | } |
| | | return ApiResponse.success(oilDataVOList); |
| | | } |
| | | |
| | | } |
| | |
| | | * 3ãè½ç®¡ä¸å¿ï¼ngzx |
| | | */ |
| | | public interface MenuPageId{ |
| | | |
| | | |
| | | String afzx = "afzx";//å®é²ä¸å¿ |
| | | String xkzx = "xkzx";//æ¶æ§ä¸å¿ |
| | | String ngzx = "ngzx";//è½ç®¡ä¸å¿ |
| | | String jsc = "jsc";//ç©ä¸åå¤ |
| | | String kqgzt = "attendance_workstand";//èå¤ç®¡ç |
| | | } |
| | | |
| | | /** |
| | |
| | | String[] fireDeviceStatusSearch= new String[]{"/api/fpnms/v2/device/status/search","æ¥è¯¢æ¶é²è®¾å¤é¨ä»¶ç¶æ"};//æ¥è¯¢æ¶é²è®¾å¤é¨ä»¶ç¶æ |
| | | String[] findDeviceAlarmPage= new String[]{"/api/v1/alarm/findDeviceAlarmPage","å页æ¥è¯¢è®¾å¤ä¸çæææ¥è¦è®°å½"};//å页æ¥è¯¢è®¾å¤ä¸çæææ¥è¦è®°å½ |
| | | String[] getTodoListPage= new String[]{"/api/v3/todo/getTodoListPage","å页è·åå¾
åå表"};//1.10.1å页è·åå¾
åå表 |
| | | String[] loginOut= new String[]{"/xauthplus-plugin/logout","éåºç»å½"};//éåºç»å½ |
| | | String[] sendSms= new String[]{"/api/smsps/v1/smsService/sms","çä¿¡éªè¯ç "};//çä¿¡éªè¯ç |
| | | String[] getMenus= new String[]{"/api/privilegeService/v1/menus/list","è·åç¨æ·ææéçèååè½é¡¹"};//è·åç¨æ·ææéçèååè½é¡¹ |
| | | } |
| | | |
| | | /** |
| | |
| | | return startDoPostStringArtemis(HKConstants.InterfacePath.platformStatus,null); |
| | | } |
| | | } |
| | | |
| | | public static String getHkMenu(Map<String,String> body) { |
| | | return startDoGetStringArtemis(HKConstants.InterfacePath.getMenus,body); |
| | | } |
| | | |
| | | /** |
| | | * è·åæå°ç»ä»¶é
ç½®çLEDè®¾å¤æ¸
å |
| | | * @param body |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.core.haikang.model.param.respose; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class MenuDataResponse { |
| | | |
| | | private Integer total; |
| | | |
| | | private List<String> list; |
| | | |
| | | } |
| | |
| | | package com.doumee.core.haikang.service; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.alibaba.fastjson.TypeReference; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.HKTools; |
| | | import com.doumee.core.haikang.model.param.BaseListPageResponse; |
| | |
| | | import com.doumee.core.haikang.model.param.request.*; |
| | | import com.doumee.core.haikang.model.param.respose.*; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.HttpsUtil; |
| | | import com.hikvision.artemis.sdk.config.ArtemisConfig; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | @Slf4j |
| | | public class HKService { |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | *è·åæå°ç»ä»¶é
ç½®çLEDè®¾å¤æ¸
å |
| | | * @return |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public static BaseResponse sendSmsByHk(Map<String,Object> param,String url){ |
| | | log.info("ãæµ·åº·åéçä¿¡ã================å¼å§===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse>(){}; |
| | | String res = HttpsUtil.postJson(url, JSONObject.toJSONString(param)); |
| | | BaseResponse result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康åéçä¿¡"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("ãæµ·åº·åéçä¿¡ã================失败====ï¼\n"+ e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | |
| | | public static BaseResponse<MenuDataResponse> getMenuConfig(Map<String,String> param){ |
| | | log.info("ãè·åèååè½é
置项ã================å¼å§===="+ JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.getHkMenu(param); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<MenuDataResponse>>(){}; |
| | | BaseResponse<MenuDataResponse> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"è·åèååè½é
置项"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("ãè·åèååè½é
置项ã================失败====ï¼\n"+ e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | private static void logResult(BaseResponse res,String name) { |
| | | if(StringUtils.equals(res.getCode(),HKConstants.RESPONSE_SUCCEE)){ |
| | | log.info("ã"+name+"ã================æå====\n"+res); |
| | |
| | | @ApiModelProperty(value = "责任é¨é¨ç¼ç ï¼å
³ècompanyï¼", example = "1") |
| | | // @ExcelColumn(name="ææ¥äººç¼ç ï¼å
³èmemberï¼") |
| | | private Integer companyId; |
| | | |
| | | @ApiModelProperty(value = "责任é¨é¨ç¼ç ", example = "1") |
| | | // @ExcelColumn(name="ææ¥äººç¼ç ï¼å
³èmemberï¼") |
| | | @TableField(exist = false) |
| | | private Integer companyName; |
| | | private String companyName; |
| | | |
| | | } |
| | |
| | | @TableField(exist = false) |
| | | private List<String> roleNames; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦æ¥è¯¢åºå®äººåï¼0=å¦ï¼1=æ¯" ) |
| | | @TableField(exist = false) |
| | | private Integer querySpecial; |
| | | |
| | | |
| | | } |
| | |
| | | @TableField(exist = false) |
| | | private String carrierName ; |
| | | |
| | | |
| | | @ApiModelProperty(value = "è·ç¦»ç¾å°ç¹è·ç¦»") |
| | | @TableField(exist = false) |
| | | private BigDecimal getDistance; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¥è¦ä¿¡æ¯ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 14:26 |
| | | */ |
| | | @Data |
| | | public class AlarmDataVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "æ»æ°") |
| | | private Integer totalNum; |
| | | |
| | | @ApiModelProperty(value = "ç宿¥è¦æ°é") |
| | | private Integer realNum; |
| | | |
| | | @ApiModelProperty(value = "误æ¥è¦æ°") |
| | | private Integer errNum; |
| | | |
| | | @ApiModelProperty(value = "å·²è§£é¤æ°é") |
| | | private Integer liftNum; |
| | | |
| | | @ApiModelProperty(value = "å¤ç䏿°é") |
| | | private Integer processingNum; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * åè¦å¤çåæ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 14:26 |
| | | */ |
| | | @Data |
| | | public class AlarmHandleDataVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "æä»½") |
| | | private String monthStr; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¦æ°é") |
| | | private Integer alarmNum; |
| | | |
| | | @ApiModelProperty(value = "误æ¥è¦æ°") |
| | | private Integer errNum; |
| | | |
| | | @ApiModelProperty(value = "å·²å¤çæ°é") |
| | | private Integer liftNum; |
| | | |
| | | @ApiModelProperty(value = "è¿è¡ä¸æ°é") |
| | | private Integer processingNum; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * éç¨ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class ArriveGoodsVO { |
| | | |
| | | @ApiModelProperty(value = "æ¥æ") |
| | | private String dateStr; |
| | | |
| | | @ApiModelProperty(value = "å¨éæ°é") |
| | | private BigDecimal inTransitNum; |
| | | |
| | | @ApiModelProperty(value = "å°è´§æ°é") |
| | | private BigDecimal arriveNum; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import com.doumee.dao.business.model.PlatformLog; |
| | | import com.doumee.dao.system.model.Notices; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 车è¾ä½ä¸æ
åµ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class CarWorkSituationVO { |
| | | |
| | | @ApiModelProperty(value = "é¢çº¦æ°é") |
| | | private Integer reservationNum; |
| | | |
| | | @ApiModelProperty(value = "è¿åºæ°é") |
| | | private Integer inNum; |
| | | |
| | | @ApiModelProperty(value = "å·²å«å·æ°é") |
| | | private Integer callNum; |
| | | |
| | | @ApiModelProperty(value = "å·²ä½ä¸æ°é") |
| | | private Integer workingNum; |
| | | |
| | | @ApiModelProperty(value = "已宿æ°é") |
| | | private Integer finishNum; |
| | | |
| | | @ApiModelProperty(value = "å·²ç¦»åºæ°é") |
| | | private Integer leaveNum; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸æ¥å¿") |
| | | private List<PlatformLog> platformLogList; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 仿¥åç³»ç»è®¾å¤ç¶æååè¦æ° |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 14:26 |
| | | */ |
| | | @Data |
| | | public class DeviceAlarmDataVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "设å¤ç±»ååç§°") |
| | | private String deviceTypeName; |
| | | |
| | | @ApiModelProperty(value = "æ»æ°") |
| | | private Integer statusTotal; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¦æ°é") |
| | | private Integer alarmNum; |
| | | |
| | | @ApiModelProperty(value = "æ
éæ°é") |
| | | private Integer errNum; |
| | | |
| | | @ApiModelProperty(value = "æ
éæ°é") |
| | | private Integer offlineNum; |
| | | |
| | | @ApiModelProperty(value = "å±è½æ°é") |
| | | private Integer shieldNum; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è½èçæ¿ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 13:53 |
| | | */ |
| | | @Data |
| | | public class EnergyBoardVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "æ¬å¹´åº¦å¾ªç¯çç®±") |
| | | private Integer smokeBoxTotal; |
| | | |
| | | @ApiModelProperty(value = "ç¢³ææ¾ åä½ å¨") |
| | | private BigDecimal carbon; |
| | | |
| | | @ApiModelProperty(value = "䏿ç¨çµ åä½ kw·h") |
| | | private Integer electricityQuantity; |
| | | |
| | | @ApiModelProperty(value = "ç¨çµç¯æ¯") |
| | | private BigDecimal electricityYear; |
| | | |
| | | @ApiModelProperty(value = "ç¨çµåæ¯") |
| | | private BigDecimal electricityMonth; |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¸æç¨æ°´ åä½ t") |
| | | private BigDecimal waterQuantity; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ°´ç¯æ¯") |
| | | private BigDecimal waterYear; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ°´åæ¯") |
| | | private BigDecimal waterMonth; |
| | | |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä¸æç¨æ° åä½ ") |
| | | private BigDecimal gasQuantity; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ°ç¯æ¯") |
| | | private BigDecimal gasYear; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ°åæ¯") |
| | | private BigDecimal gasMonth; |
| | | |
| | | |
| | | @ApiModelProperty(value = "åå
¬æ¥¼ç¨çµ åä½ kw·h") |
| | | private Integer officeQuantity; |
| | | |
| | | @ApiModelProperty(value = "æååºç¨çµ åä½ kw·h") |
| | | private Integer productHouseQuantity; |
| | | |
| | | @ApiModelProperty(value = "èåå·¥æ¿ç¨çµ åä½ kw·h") |
| | | private Integer workHouseQuantity; |
| | | |
| | | @ApiModelProperty(value = "ç©æµååºç¨çµ åä½ kw·h") |
| | | private Integer parkQuantity; |
| | | |
| | | @ApiModelProperty(value = "å¨åç«æ¿ç¨çµ åä½ kw·h") |
| | | private Integer powerQuantity; |
| | | |
| | | @ApiModelProperty(value = "仿¥ç¨çµ åä½ kw·h") |
| | | private Integer todayElectricity; |
| | | |
| | | @ApiModelProperty(value = "æ¬æç¨çµ åä½ kw·h") |
| | | private Integer monthElectricity; |
| | | |
| | | @ApiModelProperty(value = "æ¨æ¥ç¨çµ åä½ kw·h") |
| | | private Integer yesterdayElectricity; |
| | | |
| | | @ApiModelProperty(value = "宿¶è´è·æ²çº¿",hidden = true) |
| | | private List<EnergyDataVO> loadCurveList; |
| | | |
| | | @ApiModelProperty(value = "æè½èåæ - æ°´",hidden = true) |
| | | private List<EnergyDataVO> energyDataWaterList; |
| | | |
| | | @ApiModelProperty(value = "æè½èåæ - æ°",hidden = true) |
| | | private List<EnergyDataVO> energyDataGasList; |
| | | |
| | | @ApiModelProperty(value = "æè½èåæ - çµ",hidden = true) |
| | | private List<EnergyDataVO> energyDataElectricityList; |
| | | |
| | | @ApiModelProperty(value = "ææ²¹èåæ",hidden = true) |
| | | private List<EnergyDataVO> oilList; |
| | | |
| | | @ApiModelProperty(value = "ä¸ææ²¹èæè¡",hidden = true) |
| | | private List<OilDataVO> lastMonthOilList; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 16:25 |
| | | */ |
| | | @Data |
| | | public class EnergyDataVO { |
| | | |
| | | @ApiModelProperty(value = "æ¶é´") |
| | | private String timeData; |
| | | |
| | | @ApiModelProperty(value = "è½è") |
| | | private BigDecimal energy; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¶é²ç®¡æ§å¤§å± |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 13:53 |
| | | */ |
| | | @Data |
| | | public class FightingAdminBoardVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "å¨çº¿è®¾å¤æ°é") |
| | | private Integer onlineDeviceNum; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¦è®¾å¤æ°é") |
| | | private Integer alarmDeviceNum; |
| | | |
| | | @ApiModelProperty(value = "æ
éè®¾å¤æ°é") |
| | | private Integer errDeviceNum; |
| | | |
| | | @ApiModelProperty(value = "ç¦»çº¿è®¾å¤æ°é") |
| | | private Integer offlineDeviceNum; |
| | | |
| | | @ApiModelProperty(value = "å±è½è®¾å¤æ°é") |
| | | private Integer shieldDeviceNum; |
| | | |
| | | @ApiModelProperty(value = "ææ¥éæ£æ°é") |
| | | private Integer todayDangerNum; |
| | | |
| | | @ApiModelProperty(value = "å¤ç鿣æ°é") |
| | | private Integer dealDangerNum; |
| | | |
| | | @ApiModelProperty(value = "仿¥åç³»ç»è®¾å¤ç¶æååè¦æ°é" , hidden = true) |
| | | private List<DeviceAlarmDataVO> deviceAlarmDataList; |
| | | |
| | | @ApiModelProperty(value = "æ¥è¦ä¿¡æ¯" , hidden = true) |
| | | private AlarmDataVO alarmData; |
| | | |
| | | @ApiModelProperty(value = "åè¦å¤çåæ" , hidden = true) |
| | | private List<AlarmHandleDataVO> alarmHandleDataList; |
| | | |
| | | //TODO æ¸©åº¦ä¼ æå¨ |
| | | |
| | | //TODO æ¹¿åº¦ä¼ æå¨ |
| | | |
| | | @ApiModelProperty(value = "æ¬å¹´æ¶é²è®¾å¤/设æ½ç»´æ¤æ
åµ" , hidden = true) |
| | | private YearDeviceDataVO yearDeviceData; |
| | | |
| | | |
| | | //TODO åè¦ä¿¡æ¯ |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * éç¨ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class GeneralVO { |
| | | |
| | | @ApiModelProperty(value = "åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "æ°é") |
| | | private BigDecimal num; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * 彿¥ä»»å¡ä¿¡æ¯ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class JobDataVO { |
| | | |
| | | @ApiModelProperty(value = "彿¥ä»»å¡æ»é 䏿¯") |
| | | private BigDecimal planTaskNum; |
| | | |
| | | @ApiModelProperty(value = "彿¥å®æä»»å¡æ»é 䏿¯") |
| | | private BigDecimal finishTaskNum; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 16:31 |
| | | */ |
| | | @Data |
| | | public class OilDataVO { |
| | | |
| | | @ApiModelProperty(value = "æé«æ²¹è") |
| | | private BigDecimal maxOil; |
| | | |
| | | @ApiModelProperty(value = "æ²¹è") |
| | | private BigDecimal quantity; |
| | | |
| | | @ApiModelProperty(value = "车çç
§") |
| | | private String carNo; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åºå
è°åº¦çæ¿ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 9:54 |
| | | */ |
| | | @Data |
| | | public class OnSitDispatchBoardVO { |
| | | |
| | | @ApiModelProperty(value = "æå°æ°é") |
| | | private Integer platformTotal; |
| | | |
| | | @ApiModelProperty(value = "ç©ºé²æå°æ°é") |
| | | private Integer freePlatform; |
| | | |
| | | @ApiModelProperty(value = "é¢çº¦è½¦è¾") |
| | | private Integer reservationCar; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸è½¦è¾") |
| | | private Integer workingCar; |
| | | |
| | | @ApiModelProperty(value = "æé车è¾") |
| | | private Integer lineUpCar; |
| | | |
| | | @ApiModelProperty(value = "仿¥æå°å®æè®¢åç»è®¡" , hidden = true) |
| | | private List<PlatformGroupFinishVO> platformGroupFinishList; |
| | | |
| | | @ApiModelProperty(value = "仿¥æå°å·¥ä½æ¶é¿è¶å¿" , hidden = true) |
| | | private List<PlatformDurationVO> platformDurationList; |
| | | |
| | | @ApiModelProperty(value = "宿¶ä½ä¸æç - å
¥åº" , hidden = true) |
| | | private List<WorkEfficiencyVO> workEfficiencyInList; |
| | | |
| | | @ApiModelProperty(value = "宿¶ä½ä¸æç - åºåº" , hidden = true) |
| | | private List<WorkEfficiencyVO> workEfficiencyOutList; |
| | | |
| | | @ApiModelProperty(value = "仿¥è½¦è¾ä½ä¸æ
åµ" , hidden = true) |
| | | private CarWorkSituationVO carWorkSituation; |
| | | |
| | | @ApiModelProperty(value = "宿¶æå°ä½ä¸ä¿¡æ¯" , hidden = true) |
| | | private List<PlatformWorkDataVO> platformWorkDataList; |
| | | |
| | | //TODO 宿¶åè¦ä¿¡æ¯ |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æå°å·¥ä½æ¶é¿è¶å¿ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class PlatformDurationVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸æ¶é¿ä¿¡æ¯ åä½åé") |
| | | private Integer workTotalTime; |
| | | |
| | | @ApiModelProperty(value = "弿¾æ»æ¶é¿ åä½åé") |
| | | private Integer openTotalTime; |
| | | |
| | | @ApiModelProperty(value = "æå°ä¸»é®") |
| | | private Integer platformId; |
| | | |
| | | @ApiModelProperty(value = "æå°åç§°") |
| | | private String platformName; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 仿¥æå°å®æè®¢åç»è®¡ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class PlatformGroupFinishVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "宿é 䏿¯") |
| | | private Integer finishData; |
| | | |
| | | @ApiModelProperty(value = "æå°ä¸»é®") |
| | | private Integer platformId; |
| | | |
| | | @ApiModelProperty(value = "æå°ç»åç§°") |
| | | private String platformGroupName; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ååºç©æµè¿è¡è°åº¦çæ¿ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 9:54 |
| | | */ |
| | | @Data |
| | | public class PlatformJobRunBoardVO { |
| | | |
| | | @ApiModelProperty(value = "累计åºåºé - æåº¦") |
| | | private BigDecimal monthOutTotal; |
| | | |
| | | @ApiModelProperty(value = "累计åºåºéæåº¦ - 忝") |
| | | private BigDecimal monthOutTotalOnYear; |
| | | |
| | | @ApiModelProperty(value = "累计åºåºé - 年度") |
| | | private BigDecimal yearOutTotal; |
| | | |
| | | @ApiModelProperty(value = "累计åºåºé年度 - 忝") |
| | | private BigDecimal yearOutTotalOnYear; |
| | | |
| | | @ApiModelProperty(value = "累计åºåºè½¦æ¬¡ - æåº¦") |
| | | private Integer monthOutTimes; |
| | | |
| | | @ApiModelProperty(value = "累计åºåºè½¦æ¬¡ - 年度") |
| | | private Integer yearOutTimes; |
| | | |
| | | @ApiModelProperty(value = "仿¥åºåºæç") |
| | | private BigDecimal todayOutRata; |
| | | |
| | | @ApiModelProperty(value = "æ¬æåºåºæç") |
| | | private BigDecimal monthOutRata; |
| | | |
| | | @ApiModelProperty(value = "仿¥å
¥åºæç") |
| | | private BigDecimal todayInRata; |
| | | |
| | | @ApiModelProperty(value = "æ¬æå
¥åºæç") |
| | | private BigDecimal monthInRata; |
| | | |
| | | @ApiModelProperty(value = "è¿è¾ä»»å¡åæ - 7æ¥" , hidden = true) |
| | | private List<TransportMeasureVO> transportMeasureWeekList; |
| | | |
| | | @ApiModelProperty(value = "è¿è¾ä»»å¡åæ - æåº¦", hidden = true) |
| | | private List<TransportMeasureVO> transportMeasureMonthList; |
| | | |
| | | @ApiModelProperty(value = "è¿è¾ä»»å¡åæ - 年度", hidden = true) |
| | | private List<TransportMeasureVO> transportMeasureYearList; |
| | | |
| | | @ApiModelProperty(value = "彿¥è¿è¾ä»»å¡") |
| | | private List<PlatformJob> platformJobList; |
| | | |
| | | @ApiModelProperty(value = "åºåºä»»å¡") |
| | | private JobDataVO outJob; |
| | | |
| | | @ApiModelProperty(value = "å
¥åºä»»å¡") |
| | | private JobDataVO inJob; |
| | | |
| | | @ApiModelProperty(value = "仿¥å
¥åºéç»è®¡") |
| | | private List<GeneralVO> totalInList; |
| | | |
| | | @ApiModelProperty(value = "åºåæ
åµ") |
| | | private List<GeneralVO> stockList; |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import com.doumee.dao.system.model.Notices; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå°å½åä½ä¸æ
åµ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class PlatformWorkDataVO { |
| | | |
| | | @ApiModelProperty(value = "æå°åç§°") |
| | | private String platformName; |
| | | |
| | | @ApiModelProperty(value = "车çå·") |
| | | private String carNo; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸é") |
| | | private Integer workNum; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸ç±»å:0=å¸è´§ï¼1=è£
è´§") |
| | | private Integer workType; |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸æ¶é¿ åä½ åé") |
| | | private Integer workTime; |
| | | |
| | | @ApiModelProperty(value = "é¢è®¡å®ææ¶é´ åä½ï¼æ¶é´æ³") |
| | | private Long finishTime; |
| | | |
| | | @ApiModelProperty(value = "æå°ç¶æï¼0=ä½ä¸ä¸ï¼1=空é²ä¸ï¼2=ä½ä¸è¶
æ¶") |
| | | private Integer status; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * è¿éååºå |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class SalesOperationVO { |
| | | |
| | | @ApiModelProperty(value = "æ¥æ") |
| | | private String dateStr; |
| | | |
| | | @ApiModelProperty(value = "æ»å
¥åºæ° 䏿¯") |
| | | private BigDecimal totalInNum; |
| | | |
| | | @ApiModelProperty(value = "æ»åºåºæ° 䏿¯") |
| | | private BigDecimal totalOutNum; |
| | | |
| | | @ApiModelProperty(value = "åºåå¼ ä¸æ¯") |
| | | private BigDecimal stockNum; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å®é²ç®¡æ§å¤§å± |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 13:53 |
| | | */ |
| | | @Data |
| | | public class SecurityBoardVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "æ»è½¦ä½æ°é") |
| | | private Integer parkingLotTotal; |
| | | |
| | | @ApiModelProperty(value = "å©ä½è½¦ä½æ°é") |
| | | private Integer freeParkingLot; |
| | | |
| | | @ApiModelProperty(value = "å工车è¾") |
| | | private Integer internalCarTotal; |
| | | |
| | | @ApiModelProperty(value = "ç¸å
³æ¹è½¦è¾") |
| | | private Integer relatedCarTotal; |
| | | |
| | | @ApiModelProperty(value = "访客车è¾") |
| | | private Integer visitCarTotal; |
| | | |
| | | @ApiModelProperty(value = "å½åå¨å人æ°") |
| | | private Integer inParkTotal; |
| | | |
| | | @ApiModelProperty(value = "å¨åå
é¨äººåæ°é") |
| | | private Integer internalTotal; |
| | | |
| | | @ApiModelProperty(value = "å¨åç¸å
³æ¹æ°é") |
| | | private Integer relatedTotal; |
| | | |
| | | @ApiModelProperty(value = "å¨å访客æ°é") |
| | | private Integer visitTotal; |
| | | |
| | | @ApiModelProperty(value = "å½åå¨åè½¦è¾æ»æ°") |
| | | private Integer inParkCarTotal; |
| | | |
| | | @ApiModelProperty(value = "å½åè®¾å¤æ»æ°") |
| | | private Integer deviceTotal; |
| | | |
| | | @ApiModelProperty(value = "å½åæ¥è¦æ»æ°") |
| | | private Integer errTotal; |
| | | |
| | | @ApiModelProperty(value = "å
è¿è½¦ï¼å®æ³°èªæè½¦ï¼") |
| | | private Integer internalJobCarTotal; |
| | | |
| | | @ApiModelProperty(value = "å¤åè¿è¾è½¦è¾") |
| | | private Integer relatedJobCarTotal; |
| | | |
| | | @ApiModelProperty(value = "å¸å
¬å¸è½¦è¾") |
| | | private Integer visitJobCarTotal; |
| | | |
| | | //TODO å®é²åè¦ |
| | | |
| | | @ApiModelProperty(value = "ååºå®é²è®¾å¤", hidden = true) |
| | | private List<SecurityDeviceDataVO> securityDeviceDataList; |
| | | |
| | | @ApiModelProperty(value = "访客æ»çæ
åµ", hidden = true) |
| | | private List<VisitRetentionDataVO> visitRetentionDataList; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ååºå®é²è®¾å¤ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class SecurityDeviceDataVO { |
| | | |
| | | @ApiModelProperty(value = "设å¤ç±»å") |
| | | private String deviceType; |
| | | |
| | | @ApiModelProperty(value = "æ»æ°") |
| | | private Integer totalNum; |
| | | |
| | | @ApiModelProperty(value = "å¨çº¿æ°é") |
| | | private Integer onlineNum; |
| | | |
| | | @ApiModelProperty(value = "离线æ°é") |
| | | private Integer offlineDeviceNum; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * åºåå©ç¨ç |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class StockRataVO { |
| | | @ApiModelProperty(value = "å°ç¹") |
| | | private String placeName; |
| | | |
| | | @ApiModelProperty(value = "æ»åºæ° 䏿¯") |
| | | private BigDecimal totalStockNum; |
| | | |
| | | @ApiModelProperty(value = "å½ååºæ° 䏿¯") |
| | | private BigDecimal nowStockNum; |
| | | |
| | | @ApiModelProperty(value = "åºåå©ç¨ç 䏿¯") |
| | | private BigDecimal stockRataNum; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * è¿è¾é |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class TransportMeasureVO { |
| | | |
| | | @ApiModelProperty(value = "计åä»»å¡é 䏿¯") |
| | | private BigDecimal planTaskNum; |
| | | |
| | | @ApiModelProperty(value = "ä»»å¡å®æé 䏿¯") |
| | | private BigDecimal finishTaskNum; |
| | | |
| | | @ApiModelProperty(value = "计å任塿°") |
| | | private String planTimes; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è¿è¾ä»»å¡ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class TransportTaskVO { |
| | | |
| | | @ApiModelProperty(value = "车çå·") |
| | | private String carNo; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private String statusStr; |
| | | |
| | | @ApiModelProperty(value = "ä½ç½®") |
| | | private String address; |
| | | |
| | | @ApiModelProperty(value = "ä»»å¡ä¸è¾¾æ¶é´") |
| | | private Date taskDate; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 访客æ»çä¿¡æ¯ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class VisitRetentionDataVO { |
| | | |
| | | @ApiModelProperty(value = "访客å§å") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "æè®¿é¨é¨") |
| | | private String companyName; |
| | | |
| | | @ApiModelProperty(value = "è¶
æ¶æ¶é¿ åä½ï¼åé") |
| | | private Long timeOutMinute; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * å
¨çä¸åºå¶ç®¡ççæ¿ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 9:54 |
| | | */ |
| | | @Data |
| | | public class WholeProvinceBoardVO { |
| | | |
| | | @ApiModelProperty(value = "累计åºåºé - 年度") |
| | | private BigDecimal yearOutTotal; |
| | | |
| | | @ApiModelProperty(value = "累计åºåºé - å¹´åº¦åæ¯") |
| | | private BigDecimal yearOutTotalOnYear; |
| | | |
| | | @ApiModelProperty(value = "累计åºåºè½¦æ¬¡ - 年度") |
| | | private Integer yearOutTimes; |
| | | |
| | | @ApiModelProperty(value = "çå
å æ¯") |
| | | private BigDecimal yearProvinceRata; |
| | | |
| | | |
| | | @ApiModelProperty(value = "累计å
¥åºé - 年度") |
| | | private BigDecimal yearInTotal; |
| | | |
| | | @ApiModelProperty(value = "累计å
¥åºé - å¹´åº¦åæ¯") |
| | | private BigDecimal yearInTotalOnYear; |
| | | |
| | | @ApiModelProperty(value = "累计å
¥åºè½¦æ¬¡ - 年度") |
| | | private Integer yearInTimes; |
| | | |
| | | @ApiModelProperty(value = "计åå
¥åºé - 年度") |
| | | private BigDecimal yearInPlanTotal; |
| | | |
| | | |
| | | |
| | | @ApiModelProperty(value = "仿¥è®¡ååºåºé") |
| | | private BigDecimal outPlanTotal; |
| | | |
| | | @ApiModelProperty(value = "仿¥è®¡ååºåºæ¬¡æ°") |
| | | private Integer outPlanTimes; |
| | | |
| | | @ApiModelProperty(value = "仿¥åºåºé") |
| | | private BigDecimal outTotal; |
| | | |
| | | @ApiModelProperty(value = "仿¥åºåºæ¬¡æ°") |
| | | private Integer outTimes; |
| | | |
| | | @ApiModelProperty(value = "åºåºè½åå æ¯") |
| | | private BigDecimal outRata; |
| | | |
| | | @ApiModelProperty(value = "è¿ä¸æ¥å°è´§æ
åµ" , hidden = true) |
| | | private List<ArriveGoodsVO> arriveGoodsList; |
| | | |
| | | @ApiModelProperty(value = "å½åè¿è¾ä»»å¡" , hidden = true) |
| | | private List<TransportTaskVO> transportTaskList; |
| | | |
| | | |
| | | @ApiModelProperty(value = "è¿éåè¿è¥ - 7æ¥" , hidden = true) |
| | | private List<SalesOperationVO> salesOperationWeekList; |
| | | |
| | | @ApiModelProperty(value = "è¿éåè¿è¥ - æåº¦" , hidden = true) |
| | | private List<SalesOperationVO> salesOperationMonthList; |
| | | |
| | | @ApiModelProperty(value = "è¿éåè¿è¥ - 年度" , hidden = true) |
| | | private List<SalesOperationVO> salesOperationYearList; |
| | | |
| | | @ApiModelProperty(value = "åºåå©ç¨ç" , hidden = true) |
| | | private List<StockRataVO> stockRataVOListList; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 宿¶ä½ä¸æç |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 10:59 |
| | | */ |
| | | @Data |
| | | public class WorkEfficiencyVO { |
| | | |
| | | @ApiModelProperty(value = "ä½ä¸æ¶æ®µæ¶é´ HH-mm ") |
| | | private String workTime; |
| | | |
| | | @ApiModelProperty(value = "åæ¶ä½ä¸é åä½ ä¸æ¯") |
| | | private Integer workNum; |
| | | |
| | | @ApiModelProperty(value = "累计ä½ä¸é åä½ ä¸æ¯") |
| | | private Integer totalWorkNum; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.web.response.platformReport; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ¬å¹´æ¶é²è®¾å¤/设æ½ç»´æ¤æ
åµ |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/25 14:26 |
| | | */ |
| | | @Data |
| | | public class YearDeviceDataVO { |
| | | |
| | | |
| | | @ApiModelProperty(value = "å·²ç»´ä¿æ°é") |
| | | private Integer protectNum; |
| | | |
| | | @ApiModelProperty(value = "计åç»´ä¿æ°") |
| | | private Integer planProtectTotal; |
| | | |
| | | @ApiModelProperty(value = "æ¬ææ°å¢ç»´ä¿") |
| | | private Integer monthAddNum; |
| | | |
| | | |
| | | } |
| | |
| | | * @return long |
| | | */ |
| | | long count(SmsEmail smsEmail); |
| | | |
| | | } |
| | |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.dto.ApproveDTO; |
| | | import com.doumee.dao.business.join.ApproveJoinMapper; |
| | | import com.doumee.dao.business.join.CarUseBookJoinMapper; |
| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.*; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.join.ApproveJoinMapper; |
| | | import com.doumee.dao.business.join.CarUseBookJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.ApproveDataVO; |
| | | import com.doumee.dao.business.vo.DateIntervalVO; |
| | | |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.ApproveService; |
| | | import com.doumee.service.business.CarUseBookService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import java.time.LocalDateTime; |
| | | import java.time.ZoneId; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.time.temporal.ChronoUnit; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 车è¾_ç¨è½¦ç³è¯·ä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | |
| | | @Override |
| | | public List<Company> findList(Company company) { |
| | | QueryWrapper<Company> wrapper = new QueryWrapper<>(company); |
| | | return companyMapper.selectList(wrapper); |
| | | MPJLambdaWrapper<Company> queryWrapper = new MPJLambdaWrapper<>(); |
| | | company.setIsdeleted(Constants.ZERO); |
| | | if (company.getId() != null) { |
| | | queryWrapper.eq(Company::getId, company.getId()); |
| | | } |
| | | if (company.getCreator() != null) { |
| | | queryWrapper.eq(Company::getCreator, company.getCreator()); |
| | | } |
| | | if (company.getCreateDate() != null) { |
| | | queryWrapper.ge(Company::getCreateDate, Utils.Date.getStart(company.getCreateDate())); |
| | | queryWrapper.le(Company::getCreateDate, Utils.Date.getEnd(company.getCreateDate())); |
| | | } |
| | | if (company.getEditor() != null) { |
| | | queryWrapper.eq(Company::getEditor, company.getEditor()); |
| | | } |
| | | if (company.getEditDate() != null) { |
| | | queryWrapper.ge(Company::getEditDate, Utils.Date.getStart(company.getEditDate())); |
| | | queryWrapper.le(Company::getEditDate, Utils.Date.getEnd(company.getEditDate())); |
| | | } |
| | | if (company.getIsdeleted() != null) { |
| | | queryWrapper.eq(Company::getIsdeleted, company.getIsdeleted()); |
| | | } |
| | | if (company.getName() != null) { |
| | | queryWrapper.like(Company::getName, company.getName()); |
| | | } |
| | | if (company.getRemark() != null) { |
| | | queryWrapper.eq(Company::getRemark, company.getRemark()); |
| | | } |
| | | if (company.getStatus() != null) { |
| | | queryWrapper.eq(Company::getStatus, company.getStatus()); |
| | | } |
| | | if (company.getSortnum() != null) { |
| | | queryWrapper.eq(Company::getSortnum, company.getSortnum()); |
| | | } |
| | | if (company.getImgurl() != null) { |
| | | queryWrapper.eq(Company::getImgurl, company.getImgurl()); |
| | | } |
| | | if (company.getType() != null) { |
| | | queryWrapper.eq(Company::getType, company.getType()); |
| | | } |
| | | if (company.getCategoryId() != null) { |
| | | queryWrapper.eq(Company::getCategoryId, company.getCategoryId()); |
| | | } |
| | | if (company.getCode() != null) { |
| | | queryWrapper.eq(Company::getCode, company.getCode()); |
| | | } |
| | | if (company.getParentId() != null) { |
| | | queryWrapper.eq(Company::getParentId, company.getParentId()); |
| | | } |
| | | if (company.getLinkName() != null) { |
| | | queryWrapper.eq(Company::getLinkName, company.getLinkName()); |
| | | } |
| | | if (company.getLinkPhone() != null) { |
| | | queryWrapper.eq(Company::getLinkPhone, company.getLinkPhone()); |
| | | } |
| | | if (company.getHkId() != null) { |
| | | queryWrapper.eq(Company::getHkId, company.getHkId()); |
| | | } |
| | | if (company.getHkStatus() != null) { |
| | | queryWrapper.eq(Company::getHkStatus, company.getHkStatus()); |
| | | } |
| | | if (company.getHkDate() != null) { |
| | | queryWrapper.ge(Company::getHkDate, Utils.Date.getStart(company.getHkDate())); |
| | | queryWrapper.le(Company::getHkDate, Utils.Date.getEnd(company.getHkDate())); |
| | | } |
| | | if (company.getErpId() != null) { |
| | | queryWrapper.eq(Company::getErpId, company.getErpId()); |
| | | } |
| | | if (company.getErpDate() != null) { |
| | | queryWrapper.ge(Company::getErpDate, Utils.Date.getStart(company.getErpDate())); |
| | | queryWrapper.le(Company::getErpDate, Utils.Date.getEnd(company.getErpDate())); |
| | | } |
| | | if (company.getErpStatus() != null) { |
| | | queryWrapper.eq(Company::getErpStatus, company.getErpStatus()); |
| | | } |
| | | if (company.getDdId() != null) { |
| | | queryWrapper.eq(Company::getDdId, company.getDdId()); |
| | | } |
| | | if (company.getDdDate() != null) { |
| | | queryWrapper.ge(Company::getDdDate, Utils.Date.getStart(company.getDdDate())); |
| | | queryWrapper.le(Company::getDdDate, Utils.Date.getEnd(company.getDdDate())); |
| | | } |
| | | if (company.getDdStatus() != null) { |
| | | queryWrapper.eq(Company::getDdStatus, company.getDdStatus()); |
| | | } |
| | | if (company.getFsId() != null) { |
| | | queryWrapper.eq(Company::getFsId, company.getFsId()); |
| | | } |
| | | if (company.getFsStatus() != null) { |
| | | queryWrapper.eq(Company::getFsStatus, company.getFsStatus()); |
| | | } |
| | | if (company.getFsDate() != null) { |
| | | queryWrapper.ge(Company::getFsDate, Utils.Date.getStart(company.getFsDate())); |
| | | queryWrapper.le(Company::getFsDate, Utils.Date.getEnd(company.getFsDate())); |
| | | } |
| | | queryWrapper.orderByDesc(Company::getCreateDate); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,Company::getParentId); |
| | | queryWrapper.select(" t.* ") |
| | | .select("(select count(m.id) from member m where m.COMPANY_ID=t.id and m.ISDELETED=0) as countNum") ; |
| | | queryWrapper.select("t1.name",Company::getParentName); |
| | | queryWrapper.select("t1.company_path",Company::getParentCompanyPath); |
| | | queryWrapper.eq(Objects.nonNull(company.getStatus()),Company::getStatus,Constants.ZERO); |
| | | queryWrapper.like(StringUtils.isNotBlank(company.getName()),Company::getName,company.getName()); |
| | | queryWrapper.like(StringUtils.isNotBlank(company.getParentName()),"c.name",company.getParentName()); |
| | | return companyMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.SmsConstants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.HiddenDangerParamMapper; |
| | | import com.doumee.dao.business.MemberMapper; |
| | | import com.doumee.dao.business.SmsConfigMapper; |
| | | import com.doumee.dao.business.SmsEmailMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.HiddenDangerParamService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对ä¸èµ·ï¼å®å
¨åä¿¡æ¯ä¸æ£ç¡®ï¼è¯·æè¦æ±å¡«åå
容ï¼"); |
| | | } |
| | | List<Member> memberList = memberMapper.selectList(new QueryWrapper<Member>().lambda() |
| | | .eq(Member::getType,Constants.TWO) |
| | | // .eq(Member::getType,Constants.TWO) |
| | | .eq(Member::getCompanyId,model.getCompanyId()) |
| | | .in(Member::getId,ids) |
| | | .eq(Member::getIsdeleted,Constants.ZERO)); |
| | |
| | | .eq(pageWrap.getModel().getEditor() != null, HiddenDangerParam::getEditor, pageWrap.getModel().getEditor()) |
| | | .eq(pageWrap.getModel().getIsdeleted() != null, HiddenDangerParam::getIsdeleted, pageWrap.getModel().getIsdeleted()) |
| | | .like(pageWrap.getModel().getName() != null, HiddenDangerParam::getName, pageWrap.getModel().getName()) |
| | | .like(pageWrap.getModel().getCompanyName() != null, Company::getName, pageWrap.getModel().getCompanyName()) |
| | | .eq(pageWrap.getModel().getRemark() != null, HiddenDangerParam::getRemark, pageWrap.getModel().getRemark()) |
| | | .eq(pageWrap.getModel().getStatus() != null, HiddenDangerParam::getStatus, pageWrap.getModel().getStatus()) |
| | | .eq(pageWrap.getModel().getSortnum() != null, HiddenDangerParam::getSortnum, pageWrap.getModel().getSortnum()) |
| | |
| | | import com.doumee.core.utils.SmsConstants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.system.MultifileMapper; |
| | | |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.system.model.Multifile; |
| | | import com.doumee.dao.system.model.Notices; |
| | | import com.doumee.service.business.HiddenDangerLogService; |
| | | import com.doumee.service.business.HiddenDangerService; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | .selectAs(Company::getName,Member::getCompanyName) ; |
| | | queryWrapper.selectAs(Position::getName,Member::getPositionName); |
| | | queryWrapper.leftJoin(Position.class,Position::getId,Member::getPositionId); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,Member::getCompanyId); |
| | | if(StringUtils.isNotBlank(member.getName())){ |
| | | queryWrapper.like(Member::getName,member.getName()); |
| | | } |
| | |
| | | } |
| | | if(null != member.getCompanyId()) { |
| | | queryWrapper.eq(Member::getCompanyId,member.getCompanyId()); |
| | | } |
| | | if(null != member.getQuerySpecial() && Constants.equalsInteger(member.getQuerySpecial(),Constants.ONE)){ |
| | | String companySpecialId = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SPECIAL_COMPANY_ID).getCode(); |
| | | if(StringUtils.isNotBlank(companySpecialId)){ |
| | | queryWrapper.apply(" find_in_set('"+companySpecialId+"',REPLACE(t2.company_path,'/','')) "); |
| | | } |
| | | } |
| | | queryWrapper.eq(Member::getIsdeleted,Constants.ZERO); |
| | | queryWrapper.eq(Member::getWorkStatus,Constants.ZERO); |
| | |
| | | queryWrapper.selectAs(Company::getCompanyNamePath,Member::getCompanyNamePath); |
| | | queryWrapper.selectAs(Company::getCompanyPath,Member::getCompanyPath); |
| | | queryWrapper.select(" ( select count(1) from member_card mc where mc.isdeleted = 0 and mc.member_id = t.id ) as memberCardCount "); |
| | | queryWrapper.select(" ( select max(tt.END_TIME) from train_time tt where tt.isdeleted = 0 and tt.member_id = t.id ) as trainEndTime "); |
| | | |
| | | queryWrapper.leftJoin(SystemUser.class,SystemUser::getId,Member::getEditor); |
| | | queryWrapper.leftJoin(Company.class,Company::getId,Member::getCompanyId); |
| | | queryWrapper.selectAs(Position::getName,Member::getPositionName); |
| | |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | List<Member> memberList = memberMapper.selectList(new QueryWrapper<Member>() |
| | | .lambda().eq(Member::getIsdeleted,Constants.ZERO) |
| | | .eq(Member::getType,Constants.memberType.internal) |
| | | List<Member> memberList = memberJoinMapper.selectJoinList(Member.class,new MPJLambdaWrapper<Member>() |
| | | .selectAll(Member.class) |
| | | .leftJoin(Company.class,Company::getId,Member::getCompanyId) |
| | | .eq(Member::getIsdeleted,Constants.ZERO) |
| | | .eq(Company::getType,Constants.ZERO) |
| | | .eq(Member::getStatus,Constants.ZERO) |
| | | .isNotNull(Member::getHkId) |
| | | .apply("to_days(LAST_VISIT_DATE)+ "+days+" < to_days(now())" )); |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import cn.emay.sdk.util.StringUtil; |
| | | import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | |
| | | import com.doumee.core.utils.SmsConstants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.join.ApproveJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.ApproveDataVO; |
| | | |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.web.reqeust.ConfirmTaskDTO; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksApplyDTO; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksCheckNumDTO; |
| | | import com.doumee.dao.web.reqeust.RevokeDTO; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.tomcat.util.bcel.Const; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | platformWorkVO.setCallNum( |
| | | platformJobs.stream().filter(i->Constants.equalsInteger(i.getPlatformId(),platform.getId()) && Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.CALLED.getKey())).collect(Collectors.toList()).size() |
| | | ); |
| | | System.out.printf(String.valueOf(platformJobs.stream().filter(i-> |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey()) |
| | | ).collect(Collectors.toList()).size()) |
| | | ); |
| | | System.out.printf(String.valueOf(platformJobList.stream().filter(i-> |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey()) || |
| | | ( Constants.equalsInteger(platform.getId(),i.getPlatformId()) && |
| | | Constants.equalsInteger(i.getStatus(),Constants.PlatformJobStatus.TRANSFERING.getKey()) |
| | | ) |
| | | ).collect(Collectors.toList()).size()) |
| | | ); |
| | | |
| | | platformWorkVO.setWaitNum( |
| | | |
| | | platformJobs.stream().filter(i-> |
| | |
| | | import com.doumee.core.tms.model.response.TmsLockStatusQueryResponse; |
| | | import com.doumee.core.utils.*; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.join.PlatformJobJoinMapper; |
| | | import com.doumee.dao.business.join.PlatformJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.dao.business.vo.LargeScreenDataVO; |
| | | import com.doumee.dao.openapi.request.*; |
| | | import com.doumee.dao.openapi.response.*; |
| | | |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.dao.web.reqeust.*; |
| | | import com.doumee.dao.web.response.DriverHomeVO; |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.service.business.impl.hksync.HkSyncPushServiceImpl; |
| | | import com.doumee.service.business.impl.thrid.WmsServiceImpl; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.doumee.service.business.third.TmsService; |
| | | import com.doumee.service.business.third.WmsService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | |
| | | public void queryWaitNum(PlatformJob platformJob){ |
| | | if(Constants.equalsInteger(platformJob.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey())){ |
| | | //æ¥è¯¢åæ¹æéæ°é |
| | | List<PlatformJob> lineUpNum = platformJobMapper.selectList(new QueryWrapper<PlatformJob>().lambda() |
| | | //æ¥è¯¢å½åæææéæ°é |
| | | List<PlatformJob> lineUpAllList = platformJobMapper.selectList(new QueryWrapper<PlatformJob>().lambda() |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .in(PlatformJob::getStatus,Constants.PlatformJobStatus.WAIT_CALL.getKey() |
| | | ,Constants.PlatformJobStatus.IN_WAIT.getKey() |
| | | ,Constants.PlatformJobStatus.TRANSFERING.getKey()) |
| | | .gt(PlatformJob::getSignDate,platformJob.getSignDate()) |
| | | // .lt(PlatformJob::getSignDate,platformJob.getSignDate()) |
| | | .eq(PlatformJob::getPlatformGroupId,platformJob.getPlatformGroupId()) |
| | | .like(PlatformJob::getArriveDate,DateUtil.dateTypeToString(platformJob.getArriveDate(),"yyyy-MM-dd"))); |
| | | platformJob.setLineUpNum(lineUpNum.size()); |
| | | BigDecimal sumWorkRate = platformJob.getTotalNum(); |
| | | for (PlatformJob linePlatformJob:lineUpNum) { |
| | | // .like(PlatformJob::getArriveDate,DateUtil.dateTypeToString(platformJob.getArriveDate(),"yyyy-MM-dd")) |
| | | ); |
| | | |
| | | for (PlatformJob linePlatformJob:lineUpAllList) { |
| | | this.getWmsJobData(linePlatformJob); |
| | | sumWorkRate = sumWorkRate.add(linePlatformJob.getTotalNum()); |
| | | } |
| | | if(lineUpNum.size()>Constants.ZERO){ |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(lineUpAllList)){ |
| | | //æ¥è¯¢æé卿åé¢çæ°æ® |
| | | List<PlatformJob> lineUpNum = lineUpAllList.stream().filter(i->Objects.nonNull(i.getSignDate())&&i.getSignDate().getTime()<platformJob.getSignDate().getTime()).collect(Collectors.toList()); |
| | | platformJob.setLineUpNum(lineUpNum.size()); |
| | | BigDecimal sumWorkRate = platformJob.getTotalNum(); |
| | | for (PlatformJob linePlatformJob:lineUpNum) { |
| | | sumWorkRate = sumWorkRate.add(linePlatformJob.getTotalNum()); |
| | | } |
| | | //计ç®é¢è®¡çå¾
æ¶é´ |
| | | List<Platform> platformList = platformJoinMapper.selectList(new QueryWrapper<Platform>().lambda().eq(Platform::getIsdeleted,Constants.ZERO).eq(Platform::getGroupId,platformJob.getPlatformGroupId())); |
| | | BigDecimal workRate = platformList.stream().map(m->m.getWorkRate()).reduce(BigDecimal.ZERO,BigDecimal::add); |
| | |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .eq(PlatformJob::getDrivierPhone,loginUserInfo.getMobile()) |
| | | // .like(PlatformJob::getArriveDate,DateUtil.getCurrDate()) |
| | | .orderByDesc(PlatformJob::getId) |
| | | ); |
| | | for (PlatformJob platformJob:platformJobList) { |
| | |
| | | .leftJoin(Platform.class,Platform::getId,PlatformJob::getPlatformId) |
| | | .eq(PlatformJob::getIsdeleted,Constants.ZERO) |
| | | .eq(PlatformJob::getPlatformGroupId,platformGroup.getId()) |
| | | .le(Objects.nonNull(platformJob),PlatformJob::getSignDate,DateUtil.dateTypeToString(platformJob.getSignDate(),"yyyy-MM-dd HH:mm:ss")) |
| | | .in(PlatformJob::getStatus,Constants.PlatformJobStatus.WAIT_CALL.getKey(), |
| | | Constants.PlatformJobStatus.IN_WAIT.getKey(), |
| | | Constants.PlatformJobStatus.CALLED.getKey()) |
| | | .orderByDesc(PlatformJob::getStatus) |
| | | .orderByDesc(PlatformJob::getSignDate)); |
| | | .orderByAsc(PlatformJob::getSignDate) |
| | | .orderByAsc(PlatformJob::getSignNum) |
| | | ); |
| | | platformGroup.setSignJobList(platformJobSignInList); |
| | | //æ¥è¯¢å½åæå°ç»ä¸ |
| | | List<PlatformJob> platformJobWorkList = platformJobJoinMapper.selectJoinList(PlatformJob.class, |
| | |
| | | SmsConstants.platformJobContent.platformJobMove,oldPlatform.getName(),platform.getName() |
| | | ); |
| | | |
| | | platformJob.setPlatformName(platform.getName()); |
| | | platformJob.setPlatformName(oldPlatform.getName()); |
| | | platformJob.setPlatformId(oldPlatform.getId()); |
| | | this.broadcastAndLEed(platformJob, StringUtils.isBlank(oldPlatform.getLedContent())?Constants.PlatformLedContent.IDEL_CONTNET.getName():oldPlatform.getLedContent(), |
| | | null |
| | | ); |
| | |
| | | //TODO å¤å车å¸è´§ æè
å¸å
¬å¸è½¦å¸è´§ åæ ¹æ®ä»»å¡æ
åµ |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //åéçä¿¡ä¿¡æ¯ |
| | |
| | | wmsJobContractVO.getPlatformWmsDetailList().get(Constants.ZERO).getLockStatus() |
| | | ); |
| | | } |
| | | wmsJobContractVO.setStatus( |
| | | wmsJobContractVO.getPlatformWmsDetailList().get(Constants.ZERO).getStatus() |
| | | ); |
| | | } |
| | | wmsJobContractVO.setStatus( |
| | | wmsJobContractVO.getPlatformWmsDetailList().get(Constants.ZERO).getStatus() |
| | | ); |
| | | } |
| | | wmsJobContractVOList.add(wmsJobContractVO); |
| | | } |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.LoginUserInfo; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.SmsConstants; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.core.utils.*; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | import com.doumee.service.business.SmsEmailService; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.Arrays; |
| | | import java.net.URLEncoder; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * çä¿¡é®ä»¶ä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | @Value("${debug_model}") |
| | | private boolean debugModel; |
| | | |
| | | public static void isCaptcheValide(SmsEmailMapper smsEmailMapper, String phone, String captche) { |
| | | public static void isCaptcheValide(com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper, String phone, String captche) { |
| | | SmsEmail model = smsEmailMapper.selectOne(new QueryWrapper<SmsEmail>().lambda() |
| | | .eq(SmsEmail::getType, Constants.ZERO) |
| | | .eq(SmsEmail::getPhone, phone) |
| | |
| | | model.setEditDate(new Date()); |
| | | smsEmailMapper.updateById(model); |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public Integer create(SmsEmail smsEmail) { |
| | |
| | | |
| | | String content = systemDictDataBiz.queryByCode(Constants.SMS,Constants.SMS_COMNAME).getCode()+"éªè¯ç 为ï¼"+code+"ï¼æ¤éªè¯ç ææä¸º3åéãè¯·å¿æ³é²"; |
| | | |
| | | boolean result= emayService.sendSingleSms(smsEmail.getPhone(),content); |
| | | if(!result){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼çä¿¡éªè¯ç åé失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | // boolean result= emayService.sendSingleSms(smsEmail.getPhone(),content); |
| | | emayService.sendSmsByHk(smsEmail.getPhone(),content); |
| | | // if(!result){ |
| | | // throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼çä¿¡éªè¯ç åé失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | // } |
| | | |
| | | smsEmail.setRemark(code); |
| | | smsEmail.setIsdeleted(Constants.ZERO); |
| | |
| | | * @param msg |
| | | * @param auditUser |
| | | */ |
| | | public static void sendVisitSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | public static void sendVisitSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | VisitsMapper visitsMapper, Integer objId, String objCode, String msg, List<String> auditUser){ |
| | | try{ |
| | | SmsConfig smsConfig = smsConfigMapper.selectOne(new QueryWrapper<SmsConfig>().lambda().eq(SmsConfig::getCode, |
| | |
| | | * @param msg |
| | | * @param auditUser |
| | | */ |
| | | public static void sendVisitReportSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | VisitsMapper visitsMapper, Integer objId, String objCode, String msg, List<String> auditUser){ |
| | | public static void sendVisitReportSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | VisitsMapper visitsMapper, Integer objId, String objCode, String msg, List<String> auditUser){ |
| | | try{ |
| | | SmsConfig smsConfig = smsConfigMapper.selectOne(new QueryWrapper<SmsConfig>().lambda().eq(SmsConfig::getCode, |
| | | objCode).last(" limit 1 ")); |
| | |
| | | * @param objCode |
| | | * @param auditUser |
| | | */ |
| | | public static void sendHiddenDangerSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | HiddenDangerMapper hiddenDangerMapper, Integer objId, String objCode,List<String> auditUser){ |
| | | public static void sendHiddenDangerSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | HiddenDangerMapper hiddenDangerMapper, Integer objId, String objCode, List<String> auditUser){ |
| | | try{ |
| | | SmsConfig smsConfig = smsConfigMapper.selectOne(new QueryWrapper<SmsConfig>().lambda().eq(SmsConfig::getCode, |
| | | objCode).last(" limit 1 ")); |
| | |
| | | * @param msg |
| | | * @param userList |
| | | */ |
| | | public static void sendCarUseSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | CarUseBookMapper carUseBookMapper, Integer objId, String objCode, String msg, List<String> userList){ |
| | | public static void sendCarUseSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | CarUseBookMapper carUseBookMapper, Integer objId, String objCode, String msg, List<String> userList){ |
| | | //æ¨æä¸æ¡ãç¨è½¦ç³è¯·ãéè¦å¤çï¼è¯¦ç»ä¿¡æ¯è¯·åå¾å¾®ä¿¡å
¬ä¼å·æ¥çã |
| | | try{ |
| | | SmsConfig smsConfig = smsConfigMapper.selectOne(new QueryWrapper<SmsConfig>().lambda().eq(SmsConfig::getCode, |
| | |
| | | * @param msg |
| | | * @param auditUser |
| | | */ |
| | | public static void sendPlatformBookSms(SystemDictDataBiz systemDictDataBiz,EmayService emayService ,SmsEmailMapper smsEmailMapper ,SmsConfigMapper smsConfigMapper, |
| | | PlatformBooksMapper platformBooksMapper,Integer objId,String objCode,String msg,List<String> auditUser){ |
| | | public static void sendPlatformBookSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | PlatformBooksMapper platformBooksMapper, Integer objId, String objCode, String msg, List<String> auditUser){ |
| | | try{ |
| | | SmsConfig smsConfig = smsConfigMapper.selectOne(new QueryWrapper<SmsConfig>().lambda().eq(SmsConfig::getCode, |
| | | objCode).last(" limit 1 ")); |
| | |
| | | * @param objCode |
| | | * @param platformName |
| | | */ |
| | | public static void sendPlatformJobSms(SystemDictDataBiz systemDictDataBiz,EmayService emayService , SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | PlatformJobMapper platformJobMapper, Integer objId, String objCode, String platformName,String newPlatformName){ |
| | | public static void sendPlatformJobSms(SystemDictDataBiz systemDictDataBiz, EmayService emayService , com.doumee.dao.business.dao.SmsEmailMapper smsEmailMapper , SmsConfigMapper smsConfigMapper, |
| | | PlatformJobMapper platformJobMapper, Integer objId, String objCode, String platformName, String newPlatformName){ |
| | | //platformJobNewJob {车çå·}车主æ¨å¥½ï¼æ¨æä¸ä¸ªæ°çè¿è¾ä»»å¡ï¼è¯¦ç»ä¿¡æ¯è¯·åå¾å¾®ä¿¡å
¬ä¼å·æ¥çã |
| | | //platformJobStopJob {车çå·}车主æ¨å¥½ï¼æ¨çè¿è¾ä»»å¡å·²è¢«åæ¶ï¼è¯¦ç»ä¿¡æ¯è¯·åå¾å¾®ä¿¡å
¬ä¼å·æ¥çã |
| | | //platformJobCallIn {车çå·}车主æ¨å¥½ï¼è¯·å¨10åéå
ï¼åå¾ååºçå¾
åºçå¾
å«å·ä½ä¸ã |
| | |
| | | smsEmail.setObjType(objType); |
| | | smsEmail.setObjId(objId); |
| | | smsEmailMapper.insert(smsEmail); |
| | | emayService.sendSingleSms(phone,content); |
| | | emayService.sendSmsByHk(phone,content); |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | import com.doumee.core.erp.model.openapi.response.erp.ApproveInfoResponse; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.param.BaseListPageResponse; |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.model.param.request.FacePictureCheckRequest; |
| | | import com.doumee.core.haikang.model.param.request.VisitAppointmentOutRequest; |
| | | import com.doumee.core.haikang.model.param.request.VisitAppointmentRequest; |
| | | import com.doumee.core.haikang.model.param.respose.AscDeviceStatusInfoResponse; |
| | | import com.doumee.core.haikang.model.param.respose.FacePictureCheckResponse; |
| | | import com.doumee.core.haikang.model.param.respose.VisitAppointmentResponse; |
| | | import com.doumee.core.haikang.service.HKService; |
| | |
| | | import com.doumee.dao.admin.response.PCWorkPlatformDataVO; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.CompanyMapper; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.dto.ResetPasswordDTO; |
| | | import com.doumee.dao.business.join.DeviceJoinMapper; |
| | | import com.doumee.dao.business.join.VisitsJoinMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | |
| | | import com.doumee.dao.system.SystemUserMapper; |
| | | import com.doumee.dao.system.dto.NoticesDTO; |
| | | import com.doumee.dao.system.dto.ResetSystemUserPwdDTO; |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.system.model.Notices; |
| | |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import sun.misc.BASE64Encoder; |
| | | |
| | | import java.io.ByteArrayOutputStream; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.net.HttpURLConnection; |
| | | import java.net.URL; |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Path; |
| | | import java.nio.file.Paths; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | | import java.util.stream.Collectors; |
| | |
| | | |
| | | //仿¥å¨åäººæ° |
| | | pcWorkPlatformDataVO.setTodayInParkUserNum( |
| | | retentionList.stream().filter(i->Constants.equalsInteger(i.getType(),Constants.TWO)).count() |
| | | retentionList.stream().filter(i->!Constants.equalsInteger(i.getType(),Constants.THREE)).count() |
| | | ); |
| | | |
| | | pcWorkPlatformDataVO.setTodayInUserNum(Constants.ZERO); |
| | |
| | | |
| | | //å¨å访客æ°é |
| | | pcWorkPlatformDataVO.setInParkVisitUserNum( |
| | | retentionList.stream().filter(i->Constants.equalsInteger(i.getType(),Constants.TWO)&&Objects.isNull(i.getCompanyType())).count() |
| | | retentionList.stream().filter(i->Constants.equalsInteger(i.getType(),Constants.ONE)&&Objects.isNull(i.getCompanyType())).count() |
| | | ); |
| | | pcWorkPlatformDataVO.setVisitUserNum(Constants.ZERO); |
| | | pcWorkPlatformDataVO.setSignLevelNum(Constants.ZERO); |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | |
| | | import com.doumee.dao.business.model.Platform; |
| | | import com.doumee.dao.business.model.PlatformDevice; |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 设å¤ä¿¡æ¯è¡¨Serviceå®ç° |
| | |
| | | private PlatformJobMapper platformJobMapper; |
| | | @Autowired |
| | | private PlatformDeviceMapper platformDeviceMapper; |
| | | @Autowired |
| | | @Lazy |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | |
| | | /** |
| | | * åæ¥æµ·åº·æå°æ°æ® |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | public List<Integer> getMenuConfig(String userId){ |
| | | try { |
| | | List<Integer> resultList= new ArrayList<>(); |
| | | Map<String,String> param = new HashMap<>(); |
| | | param.put("userId",userId); |
| | | BaseResponse<MenuDataResponse> result = HKService.getMenuConfig(param); |
| | | if(result !=null){ |
| | | if(!StringUtils.equals(result.getCode(),HKConstants.RESPONSE_SUCCEE)){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),result.getMsg()); |
| | | } |
| | | MenuDataResponse menuDataResponse = result.getData(); |
| | | List<String> list = menuDataResponse.getList(); |
| | | if(CollectionUtils.isNotEmpty(list)){ |
| | | //åå«å¤æ4个èå |
| | | if(list.stream().filter(i->i.equals("Infovision iPark Platform_"+HKConstants.MenuPageId.afzx)).collect(Collectors.toList()).size()>Constants.ZERO){ |
| | | resultList.add(0); |
| | | } |
| | | if(list.stream().filter(i->i.equals("Infovision iPark Platform_"+HKConstants.MenuPageId.xkzx)).collect(Collectors.toList()).size()>Constants.ZERO){ |
| | | resultList.add(1); |
| | | } |
| | | if(list.stream().filter(i->i.equals("Infovision iPark Platform_"+HKConstants.MenuPageId.ngzx)).collect(Collectors.toList()).size()>Constants.ZERO){ |
| | | resultList.add(2); |
| | | } |
| | | if(list.stream().filter(i->i.equals("Infovision iPark Platform_"+HKConstants.MenuPageId.jsc)).collect(Collectors.toList()).size()>Constants.ZERO){ |
| | | resultList.add(3); |
| | | } |
| | | if(list.stream().filter(i->i.equals("Infovision iPark Platform_"+HKConstants.MenuPageId.kqgzt)).collect(Collectors.toList()).size()>Constants.ZERO){ |
| | | resultList.add(4); |
| | | } |
| | | } |
| | | return resultList; |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼è·åèå失败ï¼"); |
| | | } |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼è·åèå失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.http.HttpEntity; |
| | | import org.apache.http.HttpResponse; |
| | | import org.apache.http.client.HttpClient; |
| | | import org.apache.http.client.methods.HttpGet; |
| | | import org.apache.http.impl.client.HttpClientBuilder; |
| | | import org.apache.http.util.EntityUtils; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | private PlatformLogMapper platformLogMapper; |
| | | @Autowired |
| | | private PlatformWarnEventServiceImpl platformWarnEventService; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 海康é¨ç¦äºä»¶æ¨é |
| | | * @param param |
| | |
| | | Constants.PlatformJobStatus.IN_WAIT.getKey(), |
| | | Constants.PlatformJobStatus.CALLED.getKey(), |
| | | Constants.PlatformJobStatus.WORKING.getKey(), |
| | | Constants.PlatformJobStatus.DONE.getKey(), |
| | | Constants.PlatformJobStatus.TRANSFERING.getKey(), |
| | | Constants.PlatformJobStatus.EXCEPTION.getKey(), |
| | | Constants.PlatformJobStatus.AUTHED_LEAVE.getKey() |
| | | Constants.PlatformJobStatus.EXCEPTION.getKey() |
| | | ) |
| | | )==Constants.ZERO){ |
| | | PlatformJob platformJob = platformJobMapper.selectOne(new QueryWrapper<PlatformJob>().lambda() |
| | |
| | | if(StringUtils.isBlank(device.getHkId())){ |
| | | continue; |
| | | } |
| | | if(Constants.equalsInteger(device.getType(),Constants.ZERO)){ |
| | | /*if(Constants.equalsInteger(device.getType(),Constants.ZERO)){ |
| | | //妿æ¯LED |
| | | PlatformBroadcastLog log = dealLedContentBiz(model.getId(),device.getHkNo(),device.getName(),content,speed,1); |
| | | logList.add(log); |
| | | ledList.add(device.getHkId()); |
| | | }else if(Constants.equalsInteger(device.getType(),Constants.TWO)){ |
| | | }else */if(Constants.equalsInteger(device.getType(),Constants.TWO)){ |
| | | //妿æ¯å¹¿æç¹ |
| | | bNames += device.getName()+";"; |
| | | broadcastList.add(device.getHkId()); |
| | |
| | | import com.doumee.core.wms.model.response.WmsBaseResponse; |
| | | import com.doumee.core.wms.model.response.WmsInventoryDataResponse; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dao.SmsEmailMapper; |
| | | import com.doumee.dao.business.model.*; |
| | | |
| | | import com.doumee.service.business.impl.SmsEmailServiceImpl; |
| | | import com.doumee.service.business.third.EmayService; |
| | | import com.doumee.service.business.third.WmsService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import io.swagger.models.auth.In; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | WmsOrderPlatformRequest param = new WmsOrderPlatformRequest(); |
| | | param.setData(new ArrayList<>()); |
| | | WmsOrderPlatformInfoRequest o = new WmsOrderPlatformInfoRequest(); |
| | | o.setCarrierBillCode(job.getBillCode()); |
| | | o.setRailwayNo(job.getPlatformWmsCode()); |
| | | param.getData().add(o); |
| | | |
| | | List<PlatformWmsDetail> platformWmsDetailList = platformWmsDetailMapper.selectList(new QueryWrapper<PlatformWmsDetail>().lambda() |
| | | .eq(PlatformWmsDetail::getJobId,job.getId()) |
| | | .eq(PlatformWmsDetail::getIsdeleted,Constants.ZERO) |
| | | ); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(platformWmsDetailList)){ |
| | | for (PlatformWmsDetail platformWmsDetail:platformWmsDetailList) { |
| | | if(StringUtils.isNotBlank(platformWmsDetail.getIocode())){ |
| | | WmsOrderPlatformInfoRequest o = new WmsOrderPlatformInfoRequest(); |
| | | o.setCarrierBillCode(platformWmsDetail.getIocode()); |
| | | o.setRailwayNo(job.getPlatformWmsCode()); |
| | | param.getData().add(o); |
| | | } |
| | | } |
| | | } |
| | | |
| | | String url = type == 0?systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.WMS_INBOUND_PLATFROM_URL).getCode(): |
| | | systemDictDataBiz.queryByCode(Constants.WMS_PARAM,Constants.WMS_OUTBOUND_PLATFROM_URL).getCode();; |
| | | String name = type ==0?"ãWMSãå
¥åºä½ä¸ååé
æå°":"ãWMSãåºåºä½ä¸çåé
æå°"; |
| | |
| | | .set(PlatformWmsDetail::getStatus,Constants.TWO) |
| | | .in(PlatformWmsDetail::getIocode,iocodeList) |
| | | .eq(PlatformWmsDetail::getIsdeleted, Constants.ZERO)); |
| | | |
| | | platformWmsJobMapper.update(null,new UpdateWrapper<PlatformWmsJob>().lambda() |
| | | .set(PlatformWmsJob::getStatus,Constants.TWO) |
| | | .in(PlatformWmsJob::getIocode,iocodeList) |
| | | .eq(PlatformWmsJob::getIsdeleted, Constants.ZERO)); |
| | | |
| | | List<PlatformWmsJob> platformWmsJob = platformWmsJobMapper.selectList(new QueryWrapper<PlatformWmsJob>().lambda() |
| | | .in(PlatformWmsJob::getIocode,iocodeList) |
| | | .eq(PlatformWmsJob::getIsdeleted, Constants.ZERO) |
| | | ); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(platformWmsJob)){ |
| | | List<Integer> jobIds = platformWmsJob.stream().filter(i->Objects.nonNull(i.getJobId())).map(i->i.getJobId()).collect(Collectors.toList()); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(jobIds)){ |
| | | Set<Integer> setJobIds = new HashSet<>(jobIds); |
| | | platformJobMapper.update(null,new UpdateWrapper<PlatformJob>() |
| | | .lambda() |
| | | .set(PlatformJob::getStatus,Constants.PlatformJobStatus.CANCEL.getKey()) |
| | | .in(PlatformJob::getId,setJobIds) |
| | | ); |
| | | for (Integer jobId:setJobIds |
| | | ) { |
| | | SmsEmailServiceImpl.sendPlatformJobSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,platformJobMapper,jobId, |
| | | SmsConstants.platformJobContent.platformJobStopJob,null,null |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }catch (Exception e){ |
| | | log.error("ãWMSãå¤çå
¥åºåæ¶éç¥ä¸å¡===============ä¸å¡å¤çå¼å¸¸"+e.getMessage()); |
| | | return returnFailReuslt("ä¸å¡å¤çå¼å¸¸"); |
| | |
| | | .set(PlatformWmsDetail::getStatus,Constants.TWO) |
| | | .in(PlatformWmsDetail::getIocode,iocodeList) |
| | | .eq(PlatformWmsDetail::getIsdeleted, Constants.ZERO)); |
| | | |
| | | platformWmsJobMapper.update(null,new UpdateWrapper<PlatformWmsJob>().lambda() |
| | | .set(PlatformWmsJob::getStatus,Constants.TWO) |
| | | .in(PlatformWmsJob::getIocode,iocodeList) |
| | | .eq(PlatformWmsJob::getIsdeleted, Constants.ZERO)); |
| | | |
| | | List<PlatformWmsJob> platformWmsJob = platformWmsJobMapper.selectList(new QueryWrapper<PlatformWmsJob>().lambda() |
| | | .in(PlatformWmsJob::getIocode,iocodeList) |
| | | .eq(PlatformWmsJob::getIsdeleted, Constants.ZERO) |
| | | ); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(platformWmsJob)){ |
| | | List<Integer> jobIds = platformWmsJob.stream().filter(i->Objects.nonNull(i.getJobId())).map(i->i.getJobId()).collect(Collectors.toList()); |
| | | if(com.github.xiaoymin.knife4j.core.util.CollectionUtils.isNotEmpty(jobIds)){ |
| | | Set<Integer> setJobIds = new HashSet<>(jobIds); |
| | | platformJobMapper.update(null,new UpdateWrapper<PlatformJob>() |
| | | .lambda() |
| | | .set(PlatformJob::getStatus,Constants.PlatformJobStatus.CANCEL.getKey()) |
| | | .in(PlatformJob::getId,setJobIds) |
| | | ); |
| | | for (Integer jobId:setJobIds |
| | | ) { |
| | | SmsEmailServiceImpl.sendPlatformJobSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,platformJobMapper,jobId, |
| | | SmsConstants.platformJobContent.platformJobStopJob,null,null |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | }catch (Exception e){ |
| | | log.error("ãWMSãåºåºåæ¶éç¥ä»»å¡ä¸å¡å¤ç===============ä¸å¡å¤çå¼å¸¸"+e.getMessage()); |
| | | return returnFailReuslt("ä¸å¡å¤çå¼å¸¸"); |
| | |
| | | import cn.emay.sdk.core.dto.sms.response.SmsResponse; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.haikang.model.HKConstants; |
| | | import com.doumee.core.haikang.model.param.BaseResponse; |
| | | import com.doumee.core.haikang.service.HKService; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.InterfaceLog; |
| | | import com.doumee.service.business.InterfaceLogService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.PostConstruct; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | @Service |
| | | public class EmayService { |
| | |
| | | } |
| | | |
| | | |
| | | public void sendSmsByHk(String phone,String content){ |
| | | try { |
| | | String url = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HTTPS).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HOST).getCode() + |
| | | HKConstants.ARTEMIS_PATH + |
| | | HKConstants.InterfacePath.sendSms[0]; |
| | | Map<String,Object> map = new HashMap<>(); |
| | | map.put("phoneNo",phone.split(",")); |
| | | map.put("content",content); |
| | | BaseResponse result = HKService.sendSmsByHk(map,url); |
| | | if(result !=null){ |
| | | if(!StringUtils.equals(result.getCode(),HKConstants.RESPONSE_SUCCEE)){ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),result.getMsg()); |
| | | } |
| | | }else{ |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼çä¿¡åé失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对ä¸èµ·ï¼çä¿¡åé失败ï¼è¯·ç¨åéè¯ï¼"); |
| | | } |
| | | |
| | | |
| | | } |