Compare commits
3 Commits
4db7c1f325
...
002abc4774
Author | SHA1 | Date |
---|---|---|
|
002abc4774 | |
|
b22316d993 | |
|
cf6b67bf5a |
|
@ -60,6 +60,7 @@ body {
|
|||
height: 1080px;
|
||||
}
|
||||
.img-openwin {
|
||||
cursor: pointer;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
}
|
||||
|
|
|
@ -25,8 +25,6 @@ const listCountForBG = (data) => {
|
|||
};
|
||||
|
||||
const listForBG = (data) => {
|
||||
data.pageSize = 5;
|
||||
data.pageNum = 1;
|
||||
return request({
|
||||
url: `/manage/problemmodify/listForBG`,
|
||||
method: "get",
|
||||
|
|
|
@ -0,0 +1,293 @@
|
|||
<template>
|
||||
<MyDialog v-if="show" v-model="show" width="60vw" height="75vh" class="safety-check-dialog">
|
||||
<template slot="title">
|
||||
{{ title }}
|
||||
</template>
|
||||
<div class="head-title-tab" style="padding: 10px 0px;">
|
||||
<div :class="nav == 6 ? 'head-nav active' : 'head-nav'" @click="doNav(6)">待整改{{ counts[0] }}</div>
|
||||
<div :class="nav == 3 ? 'head-nav active' : 'head-nav'" @click="doNav(3)">待复检{{ counts[1] }}</div>
|
||||
<div :class="nav == 7 ? 'head-nav active' : 'head-nav'" @click="doNav(7)">复检驳回{{ counts[2] }}</div>
|
||||
<div :class="nav == 4 ? 'head-nav active' : 'head-nav'" @click="doNav(4)">复检通过{{ counts[3] }}</div>
|
||||
<div :class="nav == 5 ? 'head-nav active' : 'head-nav'" @click="doNav(5)">整改超时{{ counts[4] }}</div>
|
||||
</div>
|
||||
<div class="scroll data-list" :key="dataKey">
|
||||
<div v-if="rows.length == 0" style="text-align: center;" class="div-no-data">
|
||||
<img src="images/nodata.png" style="width: 120px;">
|
||||
<div style="text-align: center;font-size: 12px;color:#888;">暂无数据</div>
|
||||
</div>
|
||||
<div v-for="(it, idx) in rows" :key="idx" class="data-item">
|
||||
<div class="left-image">
|
||||
<div class="left-header">
|
||||
<span class="sp-nav" :class="it.imgSel == 0 ? 'active' : ''" @click="it.imgSel = 0">整改前</span>
|
||||
<span class="sp-nav" :class="it.imgSel == 1 ? 'active' : ''" v-if="it.checkState == 4"
|
||||
@click="it.imgSel = 1">整改后</span>
|
||||
</div>
|
||||
<el-image class="img-sm" fit="scale-down" :src="it.smarkUrl" v-if="it.imgSel == 0"
|
||||
:preview-src-list="[it.smarkUrl]"></el-image>
|
||||
<el-image class="img-sm" fit="scale-down" :src="it.marksPicture" v-if="it.imgSel == 1"
|
||||
:preview-src-list="[it.marksPicture]"></el-image>
|
||||
</div>
|
||||
<div class="right-data">
|
||||
<el-col :span="12">
|
||||
<span class="sp-label">隐串类型:</span>
|
||||
<span class="sp-value">{{ getDict(it.dangerType) }}</span>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<span class="sp-label">提交时间:</span>
|
||||
<span class="sp-value">{{ it.createTime }}</span>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<span class="sp-label">提交人:</span>
|
||||
<span class="sp-value">{{ it.createUser }}</span>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<span class="sp-label">整改人:</span>
|
||||
<span class="sp-value">{{ it.lordSentUser }}</span>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<span class="sp-label">抄送人:</span>
|
||||
<span class="sp-value">{{ it.copySendUser }}</span>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<span class="sp-label">截止时间:</span>
|
||||
<span class="sp-value">{{ it.nickedTime }}</span>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<span class="sp-label">隐患描述:</span>
|
||||
<span class="sp-value">{{ it.workParts }}</span>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<span class="sp-label">整改要求:</span>
|
||||
<span class="sp-value">{{ it.changeInfo }}</span>
|
||||
</el-col>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<el-pagination v-if="rows.length > 0" layout="total,prev, pager, next" @current-change="handleCurrentChange"
|
||||
:total="total" :page-size="pageSize" :current-page.sync="pageNum" class="bg-pagination"></el-pagination>
|
||||
</MyDialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
title: "安全隐患排查",
|
||||
prjInfo: {},
|
||||
nav: 6,
|
||||
problemType: null,
|
||||
counts: [],
|
||||
pageNum: 0,
|
||||
pageSize: 10,
|
||||
total: 0,
|
||||
rows: [],
|
||||
dataKey: 0,
|
||||
dangerTypeDict: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleCurrentChange(n) {
|
||||
this.pageNum = n;
|
||||
this.loadData();
|
||||
},
|
||||
getDict(n) {
|
||||
let tmps = this.dangerTypeDict.filter(d => d.value == n);
|
||||
return tmps.length > 0 ? tmps[0].label : '';
|
||||
},
|
||||
doNav(n) {
|
||||
this.nav = n;
|
||||
this.loadData();
|
||||
},
|
||||
showDialog(prj, n, dangerTypeDict) {
|
||||
this.dangerTypeDict = dangerTypeDict;
|
||||
this.problemType = n == 0 ? null : n;
|
||||
this.prjInfo = prj;
|
||||
this.title = ["安全隐患排查", "日常巡检", "周检", "月检", "转型检查"][n];
|
||||
this.pageNum = 0;
|
||||
this.show = true;
|
||||
this.getCount(n);
|
||||
this.loadData();
|
||||
},
|
||||
getCount(n) {
|
||||
let postData = {
|
||||
projectId: this.prjInfo.id,
|
||||
comId: this.prjInfo.comId,
|
||||
infoType: 0
|
||||
};
|
||||
if (n > 0) {
|
||||
postData.problemType = n;
|
||||
}
|
||||
this.$api.safety.listCountForBG(postData).then(d => {
|
||||
this.counts = d.data.filter(it => it.projectName != 'a').map(it => it.id)
|
||||
});
|
||||
},
|
||||
loadData() {
|
||||
let postData = {
|
||||
projectId: this.prjInfo.id,
|
||||
comId: this.prjInfo.comId,
|
||||
infoType: 0,
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
problemType: this.problemType,
|
||||
projectName: this.nav
|
||||
};
|
||||
this.$api.safety.listForBG(postData).then(d => {
|
||||
this.total = d.total;
|
||||
this.rows = (d.rows || []).map(it => {
|
||||
it.imgSel = 0;
|
||||
return it;
|
||||
});
|
||||
this.dataKey++;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.safety-check-dialog {
|
||||
.popup-project-introduction-min {
|
||||
transform: translateY(20%);
|
||||
}
|
||||
|
||||
.bg-pagination {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.data-list {
|
||||
max-height: calc(75vh - 150px);
|
||||
overflow-y: auto;
|
||||
|
||||
.div-no-data {
|
||||
margin-top: 10vh;
|
||||
}
|
||||
|
||||
.data-item {
|
||||
display: flex;
|
||||
background: #060f239d;
|
||||
padding: 10px;
|
||||
border: solid 1px #cccccc33;
|
||||
margin-top: 20px;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.left-image {
|
||||
width: 160px;
|
||||
box-shadow: 1px 1px 10px 1px #ffffff3b;
|
||||
|
||||
.left-header {
|
||||
margin-bottom: 8px;
|
||||
background: #fff;
|
||||
|
||||
.sp-nav {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
color: #5B84EB;
|
||||
cursor: pointer;
|
||||
|
||||
&.active {
|
||||
color: #fff;
|
||||
background: #5B84EB;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.el-image {
|
||||
width: 160px;
|
||||
height: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
.right-data {
|
||||
flex-grow: 1;
|
||||
padding: 0px 20px;
|
||||
line-height: 30px;
|
||||
|
||||
.sp-label {
|
||||
color: #8BFFD2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (min-width: 1921px) and (max-width: 2560px) {
|
||||
.safety-check-dialog {
|
||||
.bg-pagination {
|
||||
margin-top: 5px;
|
||||
|
||||
* {
|
||||
font-size: 20px !important;
|
||||
}
|
||||
|
||||
button,
|
||||
li {
|
||||
height: 28px !important;
|
||||
line-height: 28px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.data-list {
|
||||
max-height: calc(75vh - 180px);
|
||||
|
||||
.data-item {
|
||||
|
||||
|
||||
|
||||
.right-data {
|
||||
font-size: 18px;
|
||||
|
||||
.sp-label {
|
||||
color: #8BFFD2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 2561px) {
|
||||
.safety-check-dialog {
|
||||
.bg-pagination {
|
||||
margin-top: 15px;
|
||||
|
||||
* {
|
||||
font-size: 24px !important;
|
||||
}
|
||||
|
||||
button,
|
||||
li {
|
||||
height: 32px !important;
|
||||
line-height: 32px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.data-list {
|
||||
max-height: calc(75vh - 180px);
|
||||
|
||||
.data-item {
|
||||
|
||||
|
||||
|
||||
.right-data {
|
||||
font-size: 24px;
|
||||
|
||||
.sp-label {
|
||||
color: #8BFFD2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -21,6 +21,7 @@
|
|||
</el-col>
|
||||
</module-one-1-1>
|
||||
<module-one-2-1 label="日常巡检">
|
||||
<img src="images/icon2001.png" class="img-openwin" @click="showDlg(1)" />
|
||||
<div class="div-item-chart">
|
||||
<div class="data-item-chart">
|
||||
<div class="total-info">{{ item1Data.total }}<br />
|
||||
|
@ -28,36 +29,253 @@
|
|||
</div>
|
||||
<div class="chart-gif chart-overview-gif"></div>
|
||||
<my-chart :key="itemChartKey1" id="project-safety-check-item1" width="100%" height="100%"
|
||||
:render="o => renderDataItem1(1)"></my-chart>
|
||||
:render="o => renderDataItem(1)"></my-chart>
|
||||
</div>
|
||||
<div class="div-item-info" :key="itemChartKey1">
|
||||
<div v-for="(it, idx) in item1Data.infos" :key="idx" :class="'item-info'">
|
||||
<span class="sp-name">{{ it.name }}</span>
|
||||
<span class="sp-lend" :class="'is-' + it.type"></span>
|
||||
<span class="sp-value led-number">{{ it.value }}</span>
|
||||
<span class="sp-percent led-number" v-if="idx > 0">{{ it.percent }}%</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="div-item-data">
|
||||
<div class="glr-title">最新提交</div>
|
||||
<div class="div-item-list scroll">
|
||||
<div v-for="(it, idx) in item1Data.items" :key="idx" class="list-item">
|
||||
<el-image class="img-sm" fit="scale-down" :src="it.smarkUrl"
|
||||
:preview-src-list="[it.smarkUrl]"></el-image>
|
||||
<div class="list-item-info">
|
||||
<div class="item-row">
|
||||
<span class="sp-label">提交人:</span>
|
||||
<span class="sp-data">{{ it.createUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改人:</span>
|
||||
<span class="sp-data">{{ it.lordSentUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">复检人:</span>
|
||||
<span class="sp-data">{{ it.recheckSendUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">隐患描述:</span>
|
||||
<span class="sp-data">{{ it.workParts }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改要求:</span>
|
||||
<span class="sp-data">{{ it.changeInfo }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">状态:</span>
|
||||
<span class="sp-data">{{ getStatus(it.checkState) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ item1Data.infos }}
|
||||
</div>
|
||||
</module-one-2-1>
|
||||
</el-col>
|
||||
<el-col :span="18" class="h100">
|
||||
<module-one-1-3 label="隐患类别统计">
|
||||
<img src="images/icon2001.png" class="img-openwin" @click="showDlg(0)" />
|
||||
<my-chart :key="chartKey2" id="project-safety-check-chart2" width="100%" height="100%"
|
||||
:render="renderChart2"></my-chart>
|
||||
</module-one-1-3>
|
||||
<el-row class="el-right">
|
||||
<el-col :span="8">
|
||||
<module-one-2-1 label="周检"></module-one-2-1>
|
||||
<module-one-2-1 label="周检">
|
||||
<img src="images/icon2001.png" class="img-openwin" @click="showDlg(2)" />
|
||||
<div class="div-item-chart">
|
||||
<div class="data-item-chart">
|
||||
<div class="total-info">{{ item2Data.total }}<br />
|
||||
<span class="sp-label">问题总数</span>
|
||||
</div>
|
||||
<div class="chart-gif chart-overview-gif"></div>
|
||||
<my-chart :key="itemChartKey1" id="project-safety-check-item2" width="100%"
|
||||
height="100%" :render="o => renderDataItem(2)"></my-chart>
|
||||
</div>
|
||||
<div class="div-item-info" :key="itemChartKey1">
|
||||
<div v-for="(it, idx) in item2Data.infos" :key="idx" :class="'item-info'">
|
||||
<span class="sp-name">{{ it.name }}</span>
|
||||
<span class="sp-lend" :class="'is-' + it.type"></span>
|
||||
<span class="sp-value led-number">{{ it.value }}</span>
|
||||
<span class="sp-percent led-number" v-if="idx > 0">{{ it.percent }}%</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="div-item-data">
|
||||
<div class="glr-title">最新提交</div>
|
||||
<div class="div-item-list scroll">
|
||||
<div v-for="(it, idx) in item2Data.items" :key="idx" class="list-item">
|
||||
<el-image class="img-sm" fit="scale-down" :src="it.smarkUrl"
|
||||
:preview-src-list="[it.smarkUrl]"></el-image>
|
||||
<div class="list-item-info">
|
||||
<div class="item-row">
|
||||
<span class="sp-label">提交人:</span>
|
||||
<span class="sp-data">{{ it.createUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改人:</span>
|
||||
<span class="sp-data">{{ it.lordSentUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">复检人:</span>
|
||||
<span class="sp-data">{{ it.recheckSendUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">隐患描述:</span>
|
||||
<span class="sp-data">{{ it.workParts }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改要求:</span>
|
||||
<span class="sp-data">{{ it.changeInfo }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">状态:</span>
|
||||
<span class="sp-data">{{ getStatus(it.checkState) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</module-one-2-1>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<module-one-2-1 label="月检"></module-one-2-1>
|
||||
<module-one-2-1 label="月检">
|
||||
<img src="images/icon2001.png" class="img-openwin" @click="showDlg(3)" />
|
||||
<div class="div-item-chart">
|
||||
<div class="data-item-chart">
|
||||
<div class="total-info">{{ item3Data.total }}<br />
|
||||
<span class="sp-label">问题总数</span>
|
||||
</div>
|
||||
<div class="chart-gif chart-overview-gif"></div>
|
||||
<my-chart :key="itemChartKey1" id="project-safety-check-item3" width="100%"
|
||||
height="100%" :render="o => renderDataItem(3)"></my-chart>
|
||||
</div>
|
||||
<div class="div-item-info" :key="itemChartKey1">
|
||||
<div v-for="(it, idx) in item3Data.infos" :key="idx" :class="'item-info'">
|
||||
<span class="sp-name">{{ it.name }}</span>
|
||||
<span class="sp-lend" :class="'is-' + it.type"></span>
|
||||
<span class="sp-value led-number">{{ it.value }}</span>
|
||||
<span class="sp-percent led-number" v-if="idx > 0">{{ it.percent }}%</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="div-item-data">
|
||||
<div class="glr-title">最新提交</div>
|
||||
<div class="div-item-list scroll">
|
||||
<div v-for="(it, idx) in item3Data.items" :key="idx" class="list-item">
|
||||
<el-image class="img-sm" fit="scale-down" :src="it.smarkUrl"
|
||||
:preview-src-list="[it.smarkUrl]"></el-image>
|
||||
<div class="list-item-info">
|
||||
<div class="item-row">
|
||||
<span class="sp-label">提交人:</span>
|
||||
<span class="sp-data">{{ it.createUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改人:</span>
|
||||
<span class="sp-data">{{ it.lordSentUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">复检人:</span>
|
||||
<span class="sp-data">{{ it.recheckSendUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">隐患描述:</span>
|
||||
<span class="sp-data">{{ it.workParts }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改要求:</span>
|
||||
<span class="sp-data">{{ it.changeInfo }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">状态:</span>
|
||||
<span class="sp-data">{{ getStatus(it.checkState) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</module-one-2-1>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<module-one-2-1 label="转型检查"></module-one-2-1>
|
||||
<module-one-2-1 label="转型检查">
|
||||
<img src="images/icon2001.png" class="img-openwin" @click="showDlg(4)" />
|
||||
<div class="div-item-chart">
|
||||
<div class="data-item-chart">
|
||||
<div class="total-info">{{ item4Data.total }}<br />
|
||||
<span class="sp-label">问题总数</span>
|
||||
</div>
|
||||
<div class="chart-gif chart-overview-gif"></div>
|
||||
<my-chart :key="itemChartKey1" id="project-safety-check-item4" width="100%"
|
||||
height="100%" :render="o => renderDataItem(3)"></my-chart>
|
||||
</div>
|
||||
<div class="div-item-info" :key="itemChartKey1">
|
||||
<div v-for="(it, idx) in item4Data.infos" :key="idx" :class="'item-info'">
|
||||
<span class="sp-name">{{ it.name }}</span>
|
||||
<span class="sp-lend" :class="'is-' + it.type"></span>
|
||||
<span class="sp-value led-number">{{ it.value }}</span>
|
||||
<span class="sp-percent led-number" v-if="idx > 0">{{ it.percent }}%</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="div-item-data">
|
||||
<div class="glr-title">最新提交</div>
|
||||
<div class="div-item-list scroll">
|
||||
<div v-for="(it, idx) in item4Data.items" :key="idx" class="list-item">
|
||||
<el-image class="img-sm" fit="scale-down" :src="it.smarkUrl"
|
||||
:preview-src-list="[it.smarkUrl]"></el-image>
|
||||
<div class="list-item-info">
|
||||
<div class="item-row">
|
||||
<span class="sp-label">提交人:</span>
|
||||
<span class="sp-data">{{ it.createUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改人:</span>
|
||||
<span class="sp-data">{{ it.lordSentUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">复检人:</span>
|
||||
<span class="sp-data">{{ it.recheckSendUser }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">隐患描述:</span>
|
||||
<span class="sp-data">{{ it.workParts }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">整改要求:</span>
|
||||
<span class="sp-data">{{ it.changeInfo }}</span>
|
||||
</div>
|
||||
<div class="item-row">
|
||||
<span class="sp-label">状态:</span>
|
||||
<span class="sp-data">{{ getStatus(it.checkState) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</module-one-2-1>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
<safetyCheckDialog ref="dlg" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import safetyCheckDialog from './safety/safetyCheckDialog.vue'
|
||||
export default {
|
||||
components: {
|
||||
safetyCheckDialog,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dangerTypeDict: [],
|
||||
chartKey2: 0,
|
||||
itemChartKey1: 0,
|
||||
dpi: '',
|
||||
|
@ -85,21 +303,25 @@ export default {
|
|||
total: 0,
|
||||
datas: [],
|
||||
infos: [],
|
||||
items: [],
|
||||
},
|
||||
item2Data: {
|
||||
total: 0,
|
||||
datas: [],
|
||||
infos: [],
|
||||
items: [],
|
||||
},
|
||||
item3Data: {
|
||||
total: 0,
|
||||
datas: [],
|
||||
infos: [],
|
||||
items: [],
|
||||
},
|
||||
item4Data: {
|
||||
total: 0,
|
||||
datas: [],
|
||||
infos: [],
|
||||
items: [],
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -117,10 +339,17 @@ export default {
|
|||
if (this.dpi != this.$dpi()) {
|
||||
this.dpi = this.$dpi();
|
||||
this.chartKey++;
|
||||
this.chartKey2++;
|
||||
}
|
||||
});
|
||||
this.$api.dict("ssp_proble_sub_type").then((d) => {
|
||||
this.dangerTypeDict = d || [];
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
showDlg(n) {
|
||||
this.$refs.dlg.showDialog(this.selProject, n, this.dangerTypeDict);
|
||||
},
|
||||
init() {
|
||||
if (!this.selProject) {
|
||||
return;
|
||||
|
@ -133,13 +362,13 @@ export default {
|
|||
this.$api.safety.groupByProblemType(postData),
|
||||
this.$api.safety.groupByDangerType(postData),
|
||||
this.$api.safety.listCountForBG({ ...postData, problemType: 1, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 1, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 1, infoType: 0, pageNum: 1, pageSize: 5 }),
|
||||
this.$api.safety.listCountForBG({ ...postData, problemType: 2, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 2, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 2, infoType: 0, pageNum: 1, pageSize: 5 }),
|
||||
this.$api.safety.listCountForBG({ ...postData, problemType: 3, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 3, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 3, infoType: 0, pageNum: 1, pageSize: 5 }),
|
||||
this.$api.safety.listCountForBG({ ...postData, problemType: 4, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 4, infoType: 0 }),
|
||||
this.$api.safety.listForBG({ ...postData, problemType: 4, infoType: 0, pageNum: 1, pageSize: 5 }),
|
||||
];
|
||||
this.$api.http.all(ajaxs).then(res => {
|
||||
this.chart1Data = (res[0].data || []).map(it => {
|
||||
|
@ -161,9 +390,13 @@ export default {
|
|||
this.showChart1();//安全隐患排查
|
||||
this.showChart2();//隐患类别统计
|
||||
this.makeItemData(this.item1Data, res[2].data)
|
||||
this.item1Data.items = res[3].rows;
|
||||
this.makeItemData(this.item2Data, res[4].data)
|
||||
this.item2Data.items = res[5].rows;
|
||||
this.makeItemData(this.item3Data, res[6].data)
|
||||
this.item3Data.items = res[7].rows;
|
||||
this.makeItemData(this.item4Data, res[8].data)
|
||||
this.item4Data.items = res[9].rows;
|
||||
this.itemChartKey1++;
|
||||
});
|
||||
},
|
||||
|
@ -173,6 +406,13 @@ export default {
|
|||
showChart2() {
|
||||
this.chartKey2++;
|
||||
},
|
||||
getStatus(s) {
|
||||
let checkStates = [{ value: "0", label: '待整改' }, { value: "1", label: '待复检' },
|
||||
{ value: "3", label: '复检驳回' },
|
||||
{ value: "4", label: '复检通过' }];
|
||||
let objs = checkStates.filter(it => it.value == s);
|
||||
return objs.length > 0 ? objs[0].label : '';
|
||||
},
|
||||
makeItemData(item, res) {
|
||||
let labels = ['问题总数', '待整改', '待复检', '复检驳回', '整改完成', '超时整改'];
|
||||
item.total = res[0].id;
|
||||
|
@ -189,11 +429,15 @@ export default {
|
|||
item.infos.push({
|
||||
name: labels[i],
|
||||
value: res[i].id,
|
||||
type: res[i].projectName,
|
||||
percent: total == 0 ? 0 : (res[i].id / total * 100.0).toFixed(1)
|
||||
});
|
||||
}
|
||||
},
|
||||
renderDataItem1() {
|
||||
renderDataItem(n) {
|
||||
let is1K = this.$dpi() == "1K";
|
||||
let is2K = this.$dpi() == "2K";
|
||||
let objs = this._data['item' + n + 'Data'];
|
||||
let option = {
|
||||
color: ["#71BCC4", "#EEBE47", "#5EA85D", "#5B84EB", "#E76168"],
|
||||
series: [
|
||||
|
@ -216,11 +460,10 @@ export default {
|
|||
labelLine: {
|
||||
show: false
|
||||
},
|
||||
data: this.item1Data.datas
|
||||
data: objs.datas
|
||||
}
|
||||
]
|
||||
};
|
||||
console.log("--->", this.item1Data.datas)
|
||||
return option;
|
||||
},
|
||||
renderChart2(opt) {
|
||||
|
@ -257,9 +500,9 @@ export default {
|
|||
type: "category",
|
||||
data: this.chart2Data.map(it => it.name.replace(/[“”]/g, "'")),
|
||||
axisLabel: {
|
||||
width: 60,
|
||||
width: is1K ? 60 : is2K ? 140 : 220,
|
||||
rotate: 15,
|
||||
fontSize: is1K ? 12 : is2K ? 14 : 24,
|
||||
fontSize: is1K ? 12 : is2K ? 14 : 22,
|
||||
overflow: "break",
|
||||
color: "#a2c8f9"
|
||||
},
|
||||
|
@ -405,7 +648,8 @@ export default {
|
|||
height: 230px;
|
||||
width: 230px;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
position: absolute;
|
||||
left: -30px;
|
||||
|
||||
.total-info {
|
||||
position: absolute;
|
||||
|
@ -430,6 +674,101 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.div-item-info {
|
||||
display: inline-block;
|
||||
width: calc(100% - 180px);
|
||||
right: -0px;
|
||||
top: 20px;
|
||||
position: absolute;
|
||||
|
||||
.item-info {
|
||||
line-height: 30px;
|
||||
|
||||
.sp-lend {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
width: 10px;
|
||||
height: 20px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
|
||||
&.is-b {
|
||||
background-color: #71BCC4;
|
||||
}
|
||||
|
||||
&.is-c {
|
||||
background-color: #EEBE47;
|
||||
}
|
||||
|
||||
&.is-d {
|
||||
background-color: #5EA85D;
|
||||
}
|
||||
|
||||
&.is-e {
|
||||
background-color: #5B84EB;
|
||||
}
|
||||
}
|
||||
|
||||
.sp-name {
|
||||
display: inline-block;
|
||||
text-align: right;
|
||||
width: 70px;
|
||||
}
|
||||
|
||||
.sp-value {
|
||||
margin-left: 8px;
|
||||
font-size: 24px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
min-width: 70px;
|
||||
}
|
||||
|
||||
.sp-percent {
|
||||
margin-left: 8px;
|
||||
color: #5B84EB;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.div-item-data {
|
||||
height: calc(100% - 230px);
|
||||
|
||||
.div-item-list {
|
||||
height: calc(100% - 20px);
|
||||
overflow-y: auto;
|
||||
|
||||
.list-item {
|
||||
display: flex;
|
||||
margin-top: 10px;
|
||||
border-top: solid 1px #cccccc88;
|
||||
padding-top: 10px;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0px;
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.img-sm {
|
||||
width: calc(100% - 300px);
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.list-item-info {
|
||||
width: 300px;
|
||||
font-size: 12px;
|
||||
padding-left: 10px;
|
||||
|
||||
.item-row {
|
||||
line-height: 24px;
|
||||
|
||||
.sp-label {
|
||||
color: #8BFFD2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1921px) and (max-width: 2560px) {
|
||||
|
@ -465,6 +804,101 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.div-item-chart {
|
||||
position: relative;
|
||||
height: 260px;
|
||||
|
||||
.data-item-chart {
|
||||
height: 260px;
|
||||
width: 260px;
|
||||
left: -30px;
|
||||
|
||||
.total-info {
|
||||
font-size: 24px;
|
||||
top: calc(50% - 20px);
|
||||
left: calc(50% - 50px);
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
|
||||
.sp-label {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.chart-overview-gif {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
top: calc(50% - 40px);
|
||||
left: calc(50% - 40px);
|
||||
}
|
||||
}
|
||||
|
||||
.div-item-info {
|
||||
width: calc(100% - 230px);
|
||||
right: -0px;
|
||||
top: 20px;
|
||||
|
||||
.item-info {
|
||||
line-height: 30px;
|
||||
|
||||
.sp-lend {
|
||||
margin-left: 8px;
|
||||
width: 10px;
|
||||
height: 20px;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
.sp-name {
|
||||
width: 90px;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.sp-value {
|
||||
margin-left: 8px;
|
||||
font-size: 32px;
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.sp-percent {
|
||||
font-size: 20px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.div-item-data {
|
||||
height: calc(100% - 260px);
|
||||
|
||||
.glr-title {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.div-item-list {
|
||||
height: calc(100% - 20px);
|
||||
|
||||
.list-item {
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
|
||||
.img-sm {
|
||||
width: calc(100% - 400px);
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.list-item-info {
|
||||
width: 400px;
|
||||
font-size: 16px;
|
||||
padding-left: 10px;
|
||||
|
||||
.item-row {
|
||||
line-height: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 2561px) {
|
||||
|
@ -499,7 +933,105 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.div-item-chart {
|
||||
position: relative;
|
||||
height: 320px;
|
||||
|
||||
.data-item-chart {
|
||||
height: 320px;
|
||||
width: 320px;
|
||||
left: -30px;
|
||||
|
||||
.total-info {
|
||||
font-size: 32px;
|
||||
top: calc(50% - 20px);
|
||||
left: calc(50% - 60px);
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
|
||||
.sp-label {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.chart-overview-gif {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
top: calc(50% - 40px);
|
||||
left: calc(50% - 40px);
|
||||
}
|
||||
}
|
||||
|
||||
.div-item-info {
|
||||
width: calc(100% - 300px);
|
||||
right: -0px;
|
||||
top: 20px;
|
||||
|
||||
.item-info {
|
||||
line-height: 40px;
|
||||
|
||||
.sp-lend {
|
||||
margin-left: 8px;
|
||||
width: 10px;
|
||||
height: 20px;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
.sp-name {
|
||||
width: 120px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.sp-value {
|
||||
margin-left: 8px;
|
||||
font-size: 36px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.sp-percent {
|
||||
font-size: 24px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.div-item-data {
|
||||
height: calc(100% - 320px);
|
||||
|
||||
.glr-title {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.div-item-list {
|
||||
height: calc(100% - 20px);
|
||||
|
||||
.list-item {
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
|
||||
.img-sm {
|
||||
width: calc(100% - 600px);
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.list-item-info {
|
||||
width: 600px;
|
||||
font-size: 20px;
|
||||
padding-left: 10px;
|
||||
|
||||
.item-row {
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,330 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔机碰撞信息对象 dev_tower_data_collide
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerDataCollide extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 配置编号 */
|
||||
private Long cfgId;
|
||||
|
||||
/** 项目主键 */
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 总包单位主键 */
|
||||
private Long comId;
|
||||
|
||||
/** 总包单位名称 */
|
||||
@Excel(name = "总包单位名称")
|
||||
private String comName;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceKey;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 塔机编号 */
|
||||
@Excel(name = "塔机编号")
|
||||
private String towerId;
|
||||
|
||||
/** 塔机坐标x */
|
||||
@Excel(name = "塔机坐标x")
|
||||
private String coordinateX;
|
||||
|
||||
/** 塔机坐标y */
|
||||
@Excel(name = "塔机坐标y")
|
||||
private String coordinateY;
|
||||
|
||||
/** 前臂长度 */
|
||||
@Excel(name = "前臂长度")
|
||||
private String frontBrachium;
|
||||
|
||||
/** 平衡臂长度 */
|
||||
@Excel(name = "平衡臂长度")
|
||||
private String afterBrachium;
|
||||
|
||||
/** 塔身高度 */
|
||||
@Excel(name = "塔身高度")
|
||||
private String towerBodyHeight;
|
||||
|
||||
/** 吊钩实时高度 */
|
||||
@Excel(name = "吊钩实时高度")
|
||||
private String height;
|
||||
|
||||
/** 塔机实时回转角度 */
|
||||
@Excel(name = "塔机实时回转角度")
|
||||
private String angle;
|
||||
|
||||
/** 吊钩实时幅度 */
|
||||
@Excel(name = "吊钩实时幅度")
|
||||
private String range;
|
||||
|
||||
/** 设置的预警距离 */
|
||||
@Excel(name = "设置的预警距离")
|
||||
private String earlyWarningDistance;
|
||||
|
||||
/** 设置的报警距离 */
|
||||
@Excel(name = "设置的报警距离")
|
||||
private String alarmWarningDistance;
|
||||
|
||||
/** 塔身高度相差 */
|
||||
@Excel(name = "塔身高度相差")
|
||||
private String contourValue;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效")
|
||||
private Long isDel;
|
||||
|
||||
/** 碰撞详情信息 */
|
||||
private List<DevTowerDataCollideDetail> devTowerDataCollideDetailList;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public Long getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(Long comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public void setDeviceKey(String deviceKey)
|
||||
{
|
||||
this.deviceKey = deviceKey;
|
||||
}
|
||||
|
||||
public String getDeviceKey()
|
||||
{
|
||||
return deviceKey;
|
||||
}
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
public void setTowerId(String towerId)
|
||||
{
|
||||
this.towerId = towerId;
|
||||
}
|
||||
|
||||
public String getTowerId()
|
||||
{
|
||||
return towerId;
|
||||
}
|
||||
public void setCoordinateX(String coordinateX)
|
||||
{
|
||||
this.coordinateX = coordinateX;
|
||||
}
|
||||
|
||||
public String getCoordinateX()
|
||||
{
|
||||
return coordinateX;
|
||||
}
|
||||
public void setCoordinateY(String coordinateY)
|
||||
{
|
||||
this.coordinateY = coordinateY;
|
||||
}
|
||||
|
||||
public String getCoordinateY()
|
||||
{
|
||||
return coordinateY;
|
||||
}
|
||||
public void setFrontBrachium(String frontBrachium)
|
||||
{
|
||||
this.frontBrachium = frontBrachium;
|
||||
}
|
||||
|
||||
public String getFrontBrachium()
|
||||
{
|
||||
return frontBrachium;
|
||||
}
|
||||
public void setAfterBrachium(String afterBrachium)
|
||||
{
|
||||
this.afterBrachium = afterBrachium;
|
||||
}
|
||||
|
||||
public String getAfterBrachium()
|
||||
{
|
||||
return afterBrachium;
|
||||
}
|
||||
public void setTowerBodyHeight(String towerBodyHeight)
|
||||
{
|
||||
this.towerBodyHeight = towerBodyHeight;
|
||||
}
|
||||
|
||||
public String getTowerBodyHeight()
|
||||
{
|
||||
return towerBodyHeight;
|
||||
}
|
||||
public void setHeight(String height)
|
||||
{
|
||||
this.height = height;
|
||||
}
|
||||
|
||||
public String getHeight()
|
||||
{
|
||||
return height;
|
||||
}
|
||||
public void setAngle(String angle)
|
||||
{
|
||||
this.angle = angle;
|
||||
}
|
||||
|
||||
public String getAngle()
|
||||
{
|
||||
return angle;
|
||||
}
|
||||
public void setRange(String range)
|
||||
{
|
||||
this.range = range;
|
||||
}
|
||||
|
||||
public String getRange()
|
||||
{
|
||||
return range;
|
||||
}
|
||||
public void setEarlyWarningDistance(String earlyWarningDistance)
|
||||
{
|
||||
this.earlyWarningDistance = earlyWarningDistance;
|
||||
}
|
||||
|
||||
public String getEarlyWarningDistance()
|
||||
{
|
||||
return earlyWarningDistance;
|
||||
}
|
||||
public void setAlarmWarningDistance(String alarmWarningDistance)
|
||||
{
|
||||
this.alarmWarningDistance = alarmWarningDistance;
|
||||
}
|
||||
|
||||
public String getAlarmWarningDistance()
|
||||
{
|
||||
return alarmWarningDistance;
|
||||
}
|
||||
public void setContourValue(String contourValue)
|
||||
{
|
||||
this.contourValue = contourValue;
|
||||
}
|
||||
|
||||
public String getContourValue()
|
||||
{
|
||||
return contourValue;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getComName() {
|
||||
return comName;
|
||||
}
|
||||
|
||||
public void setComName(String comName) {
|
||||
this.comName = comName;
|
||||
}
|
||||
|
||||
public List<DevTowerDataCollideDetail> getDevTowerDataCollideDetailList()
|
||||
{
|
||||
return devTowerDataCollideDetailList;
|
||||
}
|
||||
|
||||
public void setDevTowerDataCollideDetailList(List<DevTowerDataCollideDetail> devTowerDataCollideDetailList)
|
||||
{
|
||||
this.devTowerDataCollideDetailList = devTowerDataCollideDetailList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comId", getComId())
|
||||
.append("deviceKey", getDeviceKey())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("towerId", getTowerId())
|
||||
.append("coordinateX", getCoordinateX())
|
||||
.append("coordinateY", getCoordinateY())
|
||||
.append("frontBrachium", getFrontBrachium())
|
||||
.append("afterBrachium", getAfterBrachium())
|
||||
.append("towerBodyHeight", getTowerBodyHeight())
|
||||
.append("height", getHeight())
|
||||
.append("angle", getAngle())
|
||||
.append("range", getRange())
|
||||
.append("earlyWarningDistance", getEarlyWarningDistance())
|
||||
.append("alarmWarningDistance", getAlarmWarningDistance())
|
||||
.append("contourValue", getContourValue())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.append("devTowerDataCollideDetailList", getDevTowerDataCollideDetailList())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,246 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 碰撞详情对象 dev_tower_data_collide_detail
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerDataCollideDetail extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 碰撞主键 */
|
||||
@Excel(name = "碰撞主键")
|
||||
private Long collideId;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceKey;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 塔机编号 */
|
||||
@Excel(name = "塔机编号")
|
||||
private String towerId;
|
||||
|
||||
/** 塔机坐标x */
|
||||
@Excel(name = "塔机坐标x")
|
||||
private String coordinateX;
|
||||
|
||||
/** 塔机坐标y */
|
||||
@Excel(name = "塔机坐标y")
|
||||
private String coordinateY;
|
||||
|
||||
/** 前臂长度 */
|
||||
@Excel(name = "前臂长度")
|
||||
private String frontBrachium;
|
||||
|
||||
/** 平衡臂长度 */
|
||||
@Excel(name = "平衡臂长度")
|
||||
private String afterBrachium;
|
||||
|
||||
/** 塔身高度 */
|
||||
@Excel(name = "塔身高度")
|
||||
private String towerBodyHeight;
|
||||
|
||||
/** 吊钩实时高度 */
|
||||
@Excel(name = "吊钩实时高度")
|
||||
private String height;
|
||||
|
||||
/** 塔机实时回转角度 */
|
||||
@Excel(name = "塔机实时回转角度")
|
||||
private String angle;
|
||||
|
||||
/** 吊钩实时幅度 */
|
||||
@Excel(name = "吊钩实时幅度")
|
||||
private String range;
|
||||
|
||||
/** 最短碰撞水平距离 */
|
||||
@Excel(name = "最短碰撞水平距离")
|
||||
private String collideHorizontalDistance;
|
||||
|
||||
/** 最短碰撞前后距离 */
|
||||
@Excel(name = "最短碰撞前后距离")
|
||||
private String collideVerticalDistance;
|
||||
|
||||
/** 碰撞状态 */
|
||||
@Excel(name = "碰撞状态")
|
||||
private String collideState;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCollideId(Long collideId)
|
||||
{
|
||||
this.collideId = collideId;
|
||||
}
|
||||
|
||||
public Long getCollideId()
|
||||
{
|
||||
return collideId;
|
||||
}
|
||||
public void setDeviceKey(String deviceKey)
|
||||
{
|
||||
this.deviceKey = deviceKey;
|
||||
}
|
||||
|
||||
public String getDeviceKey()
|
||||
{
|
||||
return deviceKey;
|
||||
}
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
public void setTowerId(String towerId)
|
||||
{
|
||||
this.towerId = towerId;
|
||||
}
|
||||
|
||||
public String getTowerId()
|
||||
{
|
||||
return towerId;
|
||||
}
|
||||
public void setCoordinateX(String coordinateX)
|
||||
{
|
||||
this.coordinateX = coordinateX;
|
||||
}
|
||||
|
||||
public String getCoordinateX()
|
||||
{
|
||||
return coordinateX;
|
||||
}
|
||||
public void setCoordinateY(String coordinateY)
|
||||
{
|
||||
this.coordinateY = coordinateY;
|
||||
}
|
||||
|
||||
public String getCoordinateY()
|
||||
{
|
||||
return coordinateY;
|
||||
}
|
||||
public void setFrontBrachium(String frontBrachium)
|
||||
{
|
||||
this.frontBrachium = frontBrachium;
|
||||
}
|
||||
|
||||
public String getFrontBrachium()
|
||||
{
|
||||
return frontBrachium;
|
||||
}
|
||||
public void setAfterBrachium(String afterBrachium)
|
||||
{
|
||||
this.afterBrachium = afterBrachium;
|
||||
}
|
||||
|
||||
public String getAfterBrachium()
|
||||
{
|
||||
return afterBrachium;
|
||||
}
|
||||
public void setTowerBodyHeight(String towerBodyHeight)
|
||||
{
|
||||
this.towerBodyHeight = towerBodyHeight;
|
||||
}
|
||||
|
||||
public String getTowerBodyHeight()
|
||||
{
|
||||
return towerBodyHeight;
|
||||
}
|
||||
public void setHeight(String height)
|
||||
{
|
||||
this.height = height;
|
||||
}
|
||||
|
||||
public String getHeight()
|
||||
{
|
||||
return height;
|
||||
}
|
||||
public void setAngle(String angle)
|
||||
{
|
||||
this.angle = angle;
|
||||
}
|
||||
|
||||
public String getAngle()
|
||||
{
|
||||
return angle;
|
||||
}
|
||||
public void setRange(String range)
|
||||
{
|
||||
this.range = range;
|
||||
}
|
||||
|
||||
public String getRange()
|
||||
{
|
||||
return range;
|
||||
}
|
||||
|
||||
public String getCollideHorizontalDistance() {
|
||||
return collideHorizontalDistance;
|
||||
}
|
||||
|
||||
public void setCollideHorizontalDistance(String collideHorizontalDistance) {
|
||||
this.collideHorizontalDistance = collideHorizontalDistance;
|
||||
}
|
||||
|
||||
public String getCollideVerticalDistance() {
|
||||
return collideVerticalDistance;
|
||||
}
|
||||
|
||||
public void setCollideVerticalDistance(String collideVerticalDistance) {
|
||||
this.collideVerticalDistance = collideVerticalDistance;
|
||||
}
|
||||
|
||||
public void setCollideState(String collideState)
|
||||
{
|
||||
this.collideState = collideState;
|
||||
}
|
||||
|
||||
public String getCollideState()
|
||||
{
|
||||
return collideState;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("collideId", getCollideId())
|
||||
.append("deviceKey", getDeviceKey())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("towerId", getTowerId())
|
||||
.append("coordinateX", getCoordinateX())
|
||||
.append("coordinateY", getCoordinateY())
|
||||
.append("frontBrachium", getFrontBrachium())
|
||||
.append("afterBrachium", getAfterBrachium())
|
||||
.append("towerBodyHeight", getTowerBodyHeight())
|
||||
.append("height", getHeight())
|
||||
.append("angle", getAngle())
|
||||
.append("range", getRange())
|
||||
.append("collideHorizontalDistance", getCollideHorizontalDistance())
|
||||
.append("collideVerticalDistance", getCollideVerticalDistance())
|
||||
.append("collideState", getCollideState())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,635 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
/**
|
||||
* 塔机限位信息对象 dev_tower_data_limit
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerDataLimit extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 配置编号 */
|
||||
private Long cfgId;
|
||||
|
||||
/** 项目主键 */
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 总包单位主键 */
|
||||
private Long comId;
|
||||
|
||||
/** 总包单位名称 */
|
||||
@Excel(name = "总包单位名称")
|
||||
private String comName;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceKey;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 塔机编号 */
|
||||
@Excel(name = "塔机编号")
|
||||
private String towerId;
|
||||
|
||||
/** 风速预警 */
|
||||
@Excel(name = "风速预警")
|
||||
private String windSpeedWarning;
|
||||
|
||||
/** 风速报警 */
|
||||
@Excel(name = "风速报警")
|
||||
private String windSpeedAlarm;
|
||||
|
||||
/** 超载预警 */
|
||||
@Excel(name = "超载预警")
|
||||
private String loadWarning;
|
||||
|
||||
/** 超载报警 */
|
||||
@Excel(name = "超载报警")
|
||||
private String loadAlarm;
|
||||
|
||||
/** 力矩预警 */
|
||||
@Excel(name = "力矩预警")
|
||||
private String momentWarning;
|
||||
|
||||
/** 力矩报警 */
|
||||
@Excel(name = "力矩报警")
|
||||
private String momentAlarm;
|
||||
|
||||
/** 高限位预警 */
|
||||
@Excel(name = "高限位预警")
|
||||
private String highLimitWarning;
|
||||
|
||||
/** 高限位报警 */
|
||||
@Excel(name = "高限位报警")
|
||||
private String highLimitAlarm;
|
||||
|
||||
/** 低限位预警 */
|
||||
@Excel(name = "低限位预警")
|
||||
private String lowLimitWarning;
|
||||
|
||||
/** 低限位报警 */
|
||||
@Excel(name = "低限位报警")
|
||||
private String lowLimitAlarm;
|
||||
|
||||
/** 左限位预警 */
|
||||
@Excel(name = "左限位预警")
|
||||
private String leftLimitWarning;
|
||||
|
||||
/** 左限位报警 */
|
||||
@Excel(name = "左限位报警")
|
||||
private String leftLimitAlarm;
|
||||
|
||||
/** 右限位预警 */
|
||||
@Excel(name = "右限位预警")
|
||||
private String rightLimitWarning;
|
||||
|
||||
/** 右限位报警 */
|
||||
@Excel(name = "右限位报警")
|
||||
private String rightLimitAlarm;
|
||||
|
||||
/** 前限位预警 */
|
||||
@Excel(name = "前限位预警")
|
||||
private String frontLimitWarning;
|
||||
|
||||
/** 前限位报警 */
|
||||
@Excel(name = "前限位报警")
|
||||
private String frontLimitAlarm;
|
||||
|
||||
/** 后限位预警 */
|
||||
@Excel(name = "后限位预警")
|
||||
private String backLimitWarning;
|
||||
|
||||
/** 后限位报警 */
|
||||
@Excel(name = "后限位报警")
|
||||
private String backLimitAlarm;
|
||||
|
||||
/** 防碰角度预警 */
|
||||
@Excel(name = "防碰角度预警")
|
||||
private String collisionAngleWarning;
|
||||
|
||||
/** 防碰角度报警 */
|
||||
@Excel(name = "防碰角度报警")
|
||||
private String collisionAngleAlarm;
|
||||
|
||||
/** 防碰距离预警 */
|
||||
@Excel(name = "防碰距离预警")
|
||||
private String collisionDistanceWarning;
|
||||
|
||||
/** 防碰距离报警 */
|
||||
@Excel(name = "防碰距离报警")
|
||||
private String collisionDistanceAlarm;
|
||||
|
||||
/** 水平距离预警值 */
|
||||
@Excel(name = "水平距离预警值")
|
||||
private String hDistanceWarning;
|
||||
|
||||
/** 水平距离报警值 */
|
||||
@Excel(name = "水平距离报警值")
|
||||
private String hDistanceAlarm;
|
||||
|
||||
/** 垂直距离预警值 */
|
||||
@Excel(name = "垂直距离预警值")
|
||||
private String vDistanceWarning;
|
||||
|
||||
/** 垂直距离报警值 */
|
||||
@Excel(name = "垂直距离报警值")
|
||||
private String vDistanceAlarm;
|
||||
|
||||
/** 倾斜预警值 */
|
||||
@Excel(name = "倾斜预警值")
|
||||
private String leanWarning;
|
||||
|
||||
/** 倾斜报警值 */
|
||||
@Excel(name = "倾斜报警值")
|
||||
private String leanAlarm;
|
||||
|
||||
/** 幅度限位起点值 */
|
||||
@Excel(name = "幅度限位起点值")
|
||||
private String rangeLimitStart;
|
||||
|
||||
/** 幅度限位终点值 */
|
||||
@Excel(name = "幅度限位终点值")
|
||||
private String rangeLimitEnd;
|
||||
|
||||
/** 高度限位起点值 */
|
||||
@Excel(name = "高度限位起点值")
|
||||
private String heightLimitStart;
|
||||
|
||||
/** 高度限位终点值 */
|
||||
@Excel(name = "高度限位终点值")
|
||||
private String heightLimitEnd;
|
||||
|
||||
/** 回转限位起点值 */
|
||||
@Excel(name = "回转限位起点值")
|
||||
private String rotationLimitStart;
|
||||
|
||||
/** 回转限位终点值 */
|
||||
@Excel(name = "回转限位终点值")
|
||||
private String rotationLimitEnd;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public Long getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(Long comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public void setDeviceKey(String deviceKey)
|
||||
{
|
||||
this.deviceKey = deviceKey;
|
||||
}
|
||||
|
||||
public String getDeviceKey()
|
||||
{
|
||||
return deviceKey;
|
||||
}
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
public void setTowerId(String towerId)
|
||||
{
|
||||
this.towerId = towerId;
|
||||
}
|
||||
|
||||
public String getTowerId()
|
||||
{
|
||||
return towerId;
|
||||
}
|
||||
public void setWindSpeedWarning(String windSpeedWarning)
|
||||
{
|
||||
this.windSpeedWarning = windSpeedWarning;
|
||||
}
|
||||
|
||||
public String getWindSpeedWarning()
|
||||
{
|
||||
return windSpeedWarning;
|
||||
}
|
||||
public void setWindSpeedAlarm(String windSpeedAlarm)
|
||||
{
|
||||
this.windSpeedAlarm = windSpeedAlarm;
|
||||
}
|
||||
|
||||
public String getWindSpeedAlarm()
|
||||
{
|
||||
return windSpeedAlarm;
|
||||
}
|
||||
public void setLoadWarning(String loadWarning)
|
||||
{
|
||||
this.loadWarning = loadWarning;
|
||||
}
|
||||
|
||||
public String getLoadWarning()
|
||||
{
|
||||
return loadWarning;
|
||||
}
|
||||
public void setLoadAlarm(String loadAlarm)
|
||||
{
|
||||
this.loadAlarm = loadAlarm;
|
||||
}
|
||||
|
||||
public String getLoadAlarm()
|
||||
{
|
||||
return loadAlarm;
|
||||
}
|
||||
public void setMomentWarning(String momentWarning)
|
||||
{
|
||||
this.momentWarning = momentWarning;
|
||||
}
|
||||
|
||||
public String getMomentWarning()
|
||||
{
|
||||
return momentWarning;
|
||||
}
|
||||
public void setMomentAlarm(String momentAlarm)
|
||||
{
|
||||
this.momentAlarm = momentAlarm;
|
||||
}
|
||||
|
||||
public String getMomentAlarm()
|
||||
{
|
||||
return momentAlarm;
|
||||
}
|
||||
public void setHighLimitWarning(String highLimitWarning)
|
||||
{
|
||||
this.highLimitWarning = highLimitWarning;
|
||||
}
|
||||
|
||||
public String getHighLimitWarning()
|
||||
{
|
||||
return highLimitWarning;
|
||||
}
|
||||
public void setHighLimitAlarm(String highLimitAlarm)
|
||||
{
|
||||
this.highLimitAlarm = highLimitAlarm;
|
||||
}
|
||||
|
||||
public String getHighLimitAlarm()
|
||||
{
|
||||
return highLimitAlarm;
|
||||
}
|
||||
public void setLowLimitWarning(String lowLimitWarning)
|
||||
{
|
||||
this.lowLimitWarning = lowLimitWarning;
|
||||
}
|
||||
|
||||
public String getLowLimitWarning()
|
||||
{
|
||||
return lowLimitWarning;
|
||||
}
|
||||
public void setLowLimitAlarm(String lowLimitAlarm)
|
||||
{
|
||||
this.lowLimitAlarm = lowLimitAlarm;
|
||||
}
|
||||
|
||||
public String getLowLimitAlarm()
|
||||
{
|
||||
return lowLimitAlarm;
|
||||
}
|
||||
public void setLeftLimitWarning(String leftLimitWarning)
|
||||
{
|
||||
this.leftLimitWarning = leftLimitWarning;
|
||||
}
|
||||
|
||||
public String getLeftLimitWarning()
|
||||
{
|
||||
return leftLimitWarning;
|
||||
}
|
||||
public void setLeftLimitAlarm(String leftLimitAlarm)
|
||||
{
|
||||
this.leftLimitAlarm = leftLimitAlarm;
|
||||
}
|
||||
|
||||
public String getLeftLimitAlarm()
|
||||
{
|
||||
return leftLimitAlarm;
|
||||
}
|
||||
public void setRightLimitWarning(String rightLimitWarning)
|
||||
{
|
||||
this.rightLimitWarning = rightLimitWarning;
|
||||
}
|
||||
|
||||
public String getRightLimitWarning()
|
||||
{
|
||||
return rightLimitWarning;
|
||||
}
|
||||
public void setRightLimitAlarm(String rightLimitAlarm)
|
||||
{
|
||||
this.rightLimitAlarm = rightLimitAlarm;
|
||||
}
|
||||
|
||||
public String getRightLimitAlarm()
|
||||
{
|
||||
return rightLimitAlarm;
|
||||
}
|
||||
public void setFrontLimitWarning(String frontLimitWarning)
|
||||
{
|
||||
this.frontLimitWarning = frontLimitWarning;
|
||||
}
|
||||
|
||||
public String getFrontLimitWarning()
|
||||
{
|
||||
return frontLimitWarning;
|
||||
}
|
||||
public void setFrontLimitAlarm(String frontLimitAlarm)
|
||||
{
|
||||
this.frontLimitAlarm = frontLimitAlarm;
|
||||
}
|
||||
|
||||
public String getFrontLimitAlarm()
|
||||
{
|
||||
return frontLimitAlarm;
|
||||
}
|
||||
public void setBackLimitWarning(String backLimitWarning)
|
||||
{
|
||||
this.backLimitWarning = backLimitWarning;
|
||||
}
|
||||
|
||||
public String getBackLimitWarning()
|
||||
{
|
||||
return backLimitWarning;
|
||||
}
|
||||
public void setBackLimitAlarm(String backLimitAlarm)
|
||||
{
|
||||
this.backLimitAlarm = backLimitAlarm;
|
||||
}
|
||||
|
||||
public String getBackLimitAlarm()
|
||||
{
|
||||
return backLimitAlarm;
|
||||
}
|
||||
public void setCollisionAngleWarning(String collisionAngleWarning)
|
||||
{
|
||||
this.collisionAngleWarning = collisionAngleWarning;
|
||||
}
|
||||
|
||||
public String getCollisionAngleWarning()
|
||||
{
|
||||
return collisionAngleWarning;
|
||||
}
|
||||
public void setCollisionAngleAlarm(String collisionAngleAlarm)
|
||||
{
|
||||
this.collisionAngleAlarm = collisionAngleAlarm;
|
||||
}
|
||||
|
||||
public String getCollisionAngleAlarm()
|
||||
{
|
||||
return collisionAngleAlarm;
|
||||
}
|
||||
public void setCollisionDistanceWarning(String collisionDistanceWarning)
|
||||
{
|
||||
this.collisionDistanceWarning = collisionDistanceWarning;
|
||||
}
|
||||
|
||||
public String getCollisionDistanceWarning()
|
||||
{
|
||||
return collisionDistanceWarning;
|
||||
}
|
||||
public void setCollisionDistanceAlarm(String collisionDistanceAlarm)
|
||||
{
|
||||
this.collisionDistanceAlarm = collisionDistanceAlarm;
|
||||
}
|
||||
|
||||
public String getCollisionDistanceAlarm()
|
||||
{
|
||||
return collisionDistanceAlarm;
|
||||
}
|
||||
public void sethDistanceWarning(String hDistanceWarning)
|
||||
{
|
||||
this.hDistanceWarning = hDistanceWarning;
|
||||
}
|
||||
|
||||
public String gethDistanceWarning()
|
||||
{
|
||||
return hDistanceWarning;
|
||||
}
|
||||
public void sethDistanceAlarm(String hDistanceAlarm)
|
||||
{
|
||||
this.hDistanceAlarm = hDistanceAlarm;
|
||||
}
|
||||
|
||||
public String gethDistanceAlarm()
|
||||
{
|
||||
return hDistanceAlarm;
|
||||
}
|
||||
public void setvDistanceWarning(String vDistanceWarning)
|
||||
{
|
||||
this.vDistanceWarning = vDistanceWarning;
|
||||
}
|
||||
|
||||
public String getvDistanceWarning()
|
||||
{
|
||||
return vDistanceWarning;
|
||||
}
|
||||
public void setvDistanceAlarm(String vDistanceAlarm)
|
||||
{
|
||||
this.vDistanceAlarm = vDistanceAlarm;
|
||||
}
|
||||
|
||||
public String getvDistanceAlarm()
|
||||
{
|
||||
return vDistanceAlarm;
|
||||
}
|
||||
public void setLeanWarning(String leanWarning)
|
||||
{
|
||||
this.leanWarning = leanWarning;
|
||||
}
|
||||
|
||||
public String getLeanWarning()
|
||||
{
|
||||
return leanWarning;
|
||||
}
|
||||
public void setLeanAlarm(String leanAlarm)
|
||||
{
|
||||
this.leanAlarm = leanAlarm;
|
||||
}
|
||||
|
||||
public String getLeanAlarm()
|
||||
{
|
||||
return leanAlarm;
|
||||
}
|
||||
public void setRangeLimitStart(String rangeLimitStart)
|
||||
{
|
||||
this.rangeLimitStart = rangeLimitStart;
|
||||
}
|
||||
|
||||
public String getRangeLimitStart()
|
||||
{
|
||||
return rangeLimitStart;
|
||||
}
|
||||
public void setRangeLimitEnd(String rangeLimitEnd)
|
||||
{
|
||||
this.rangeLimitEnd = rangeLimitEnd;
|
||||
}
|
||||
|
||||
public String getRangeLimitEnd()
|
||||
{
|
||||
return rangeLimitEnd;
|
||||
}
|
||||
public void setHeightLimitStart(String heightLimitStart)
|
||||
{
|
||||
this.heightLimitStart = heightLimitStart;
|
||||
}
|
||||
|
||||
public String getHeightLimitStart()
|
||||
{
|
||||
return heightLimitStart;
|
||||
}
|
||||
public void setHeightLimitEnd(String heightLimitEnd)
|
||||
{
|
||||
this.heightLimitEnd = heightLimitEnd;
|
||||
}
|
||||
|
||||
public String getHeightLimitEnd()
|
||||
{
|
||||
return heightLimitEnd;
|
||||
}
|
||||
public void setRotationLimitStart(String rotationLimitStart)
|
||||
{
|
||||
this.rotationLimitStart = rotationLimitStart;
|
||||
}
|
||||
|
||||
public String getRotationLimitStart()
|
||||
{
|
||||
return rotationLimitStart;
|
||||
}
|
||||
public void setRotationLimitEnd(String rotationLimitEnd)
|
||||
{
|
||||
this.rotationLimitEnd = rotationLimitEnd;
|
||||
}
|
||||
|
||||
public String getRotationLimitEnd()
|
||||
{
|
||||
return rotationLimitEnd;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getComName() {
|
||||
return comName;
|
||||
}
|
||||
|
||||
public void setComName(String comName) {
|
||||
this.comName = comName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comId", getComId())
|
||||
.append("deviceKey", getDeviceKey())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("towerId", getTowerId())
|
||||
.append("windSpeedWarning", getWindSpeedWarning())
|
||||
.append("windSpeedAlarm", getWindSpeedAlarm())
|
||||
.append("loadWarning", getLoadWarning())
|
||||
.append("loadAlarm", getLoadAlarm())
|
||||
.append("momentWarning", getMomentWarning())
|
||||
.append("momentAlarm", getMomentAlarm())
|
||||
.append("highLimitWarning", getHighLimitWarning())
|
||||
.append("highLimitAlarm", getHighLimitAlarm())
|
||||
.append("lowLimitWarning", getLowLimitWarning())
|
||||
.append("lowLimitAlarm", getLowLimitAlarm())
|
||||
.append("leftLimitWarning", getLeftLimitWarning())
|
||||
.append("leftLimitAlarm", getLeftLimitAlarm())
|
||||
.append("rightLimitWarning", getRightLimitWarning())
|
||||
.append("rightLimitAlarm", getRightLimitAlarm())
|
||||
.append("frontLimitWarning", getFrontLimitWarning())
|
||||
.append("frontLimitAlarm", getFrontLimitAlarm())
|
||||
.append("backLimitWarning", getBackLimitWarning())
|
||||
.append("backLimitAlarm", getBackLimitAlarm())
|
||||
.append("collisionAngleWarning", getCollisionAngleWarning())
|
||||
.append("collisionAngleAlarm", getCollisionAngleAlarm())
|
||||
.append("collisionDistanceWarning", getCollisionDistanceWarning())
|
||||
.append("collisionDistanceAlarm", getCollisionDistanceAlarm())
|
||||
.append("hDistanceWarning", gethDistanceWarning())
|
||||
.append("hDistanceAlarm", gethDistanceAlarm())
|
||||
.append("vDistanceWarning", getvDistanceWarning())
|
||||
.append("vDistanceAlarm", getvDistanceAlarm())
|
||||
.append("leanWarning", getLeanWarning())
|
||||
.append("leanAlarm", getLeanAlarm())
|
||||
.append("rangeLimitStart", getRangeLimitStart())
|
||||
.append("rangeLimitEnd", getRangeLimitEnd())
|
||||
.append("heightLimitStart", getHeightLimitStart())
|
||||
.append("heightLimitEnd", getHeightLimitEnd())
|
||||
.append("rotationLimitStart", getRotationLimitStart())
|
||||
.append("rotationLimitEnd", getRotationLimitEnd())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,412 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 塔机定位信息对象 dev_tower_data_local
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerDataLocal extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 配置编号 */
|
||||
private Long cfgId;
|
||||
|
||||
/** 项目主键 */
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 总包单位主键 */
|
||||
private Long comId;
|
||||
|
||||
/** 总包单位名称 */
|
||||
@Excel(name = "总包单位名称")
|
||||
private String comName;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceKey;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 塔机编号 */
|
||||
@Excel(name = "塔机编号")
|
||||
private String towerId;
|
||||
|
||||
/** 近端幅度标定AD定值 */
|
||||
@Excel(name = "近端幅度标定AD定值")
|
||||
private String rangeNearEndAdValue;
|
||||
|
||||
/** 近端幅度标定实际值 */
|
||||
@Excel(name = "近端幅度标定实际值")
|
||||
private String rangeNearEndRealityValue;
|
||||
|
||||
/** 远端幅度标定AD定值 */
|
||||
@Excel(name = "远端幅度标定AD定值")
|
||||
private String rangeFarEndAdValue;
|
||||
|
||||
/** 远端幅度标定实际值 */
|
||||
@Excel(name = "远端幅度标定实际值")
|
||||
private String rangeFarEndRealityValue;
|
||||
|
||||
/** 高度近端标定AD定值 */
|
||||
@Excel(name = "高度近端标定AD定值")
|
||||
private String highNearEndAdValue;
|
||||
|
||||
/** 高度近端标定实际值 */
|
||||
@Excel(name = "高度近端标定实际值")
|
||||
private String highNearEndRealityValue;
|
||||
|
||||
/** 高度远端标定AD定值 */
|
||||
@Excel(name = "高度远端标定AD定值")
|
||||
private String highFarEndAdValue;
|
||||
|
||||
/** 高度远端标定实际值 */
|
||||
@Excel(name = "高度远端标定实际值")
|
||||
private String highFarEndRealityValue;
|
||||
|
||||
/** 空载重量AD值 */
|
||||
@Excel(name = "空载重量AD值")
|
||||
private String emptyWeightAdValue;
|
||||
|
||||
/** 空载重量实际值 */
|
||||
@Excel(name = "空载重量实际值")
|
||||
private String emptyWeightRealityValue;
|
||||
|
||||
/** 负载重量AD值 */
|
||||
@Excel(name = "负载重量AD值")
|
||||
private String loadWeightAdValue;
|
||||
|
||||
/** 负载重量实际值 */
|
||||
@Excel(name = "负载重量实际值")
|
||||
private String loadWeightRealityValue;
|
||||
|
||||
/** 回转起点AD值 */
|
||||
@Excel(name = "回转起点AD值")
|
||||
private String rotationStartAdValue;
|
||||
|
||||
/** 回转起点实际角度 */
|
||||
@Excel(name = "回转起点实际角度")
|
||||
private String rotationStartRealityValue;
|
||||
|
||||
/** 回转终点AD值 */
|
||||
@Excel(name = "回转终点AD值")
|
||||
private String rotationEndAdValue;
|
||||
|
||||
/** 回转终点实际角度 */
|
||||
@Excel(name = "回转终点实际角度")
|
||||
private String rotationEndRealityValue;
|
||||
|
||||
/** 风速校准系数 */
|
||||
@Excel(name = "风速校准系数")
|
||||
private String windSpeedFactor;
|
||||
|
||||
/** 倾斜校准系数 */
|
||||
@Excel(name = "倾斜校准系数")
|
||||
private String tiltFactor;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public Long getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(Long comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public void setDeviceKey(String deviceKey)
|
||||
{
|
||||
this.deviceKey = deviceKey;
|
||||
}
|
||||
|
||||
public String getDeviceKey()
|
||||
{
|
||||
return deviceKey;
|
||||
}
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
public void setTowerId(String towerId)
|
||||
{
|
||||
this.towerId = towerId;
|
||||
}
|
||||
|
||||
public String getTowerId()
|
||||
{
|
||||
return towerId;
|
||||
}
|
||||
public void setRangeNearEndAdValue(String rangeNearEndAdValue)
|
||||
{
|
||||
this.rangeNearEndAdValue = rangeNearEndAdValue;
|
||||
}
|
||||
|
||||
public String getRangeNearEndAdValue()
|
||||
{
|
||||
return rangeNearEndAdValue;
|
||||
}
|
||||
public void setRangeNearEndRealityValue(String rangeNearEndRealityValue)
|
||||
{
|
||||
this.rangeNearEndRealityValue = rangeNearEndRealityValue;
|
||||
}
|
||||
|
||||
public String getRangeNearEndRealityValue()
|
||||
{
|
||||
return rangeNearEndRealityValue;
|
||||
}
|
||||
public void setRangeFarEndAdValue(String rangeFarEndAdValue)
|
||||
{
|
||||
this.rangeFarEndAdValue = rangeFarEndAdValue;
|
||||
}
|
||||
|
||||
public String getRangeFarEndAdValue()
|
||||
{
|
||||
return rangeFarEndAdValue;
|
||||
}
|
||||
public void setRangeFarEndRealityValue(String rangeFarEndRealityValue)
|
||||
{
|
||||
this.rangeFarEndRealityValue = rangeFarEndRealityValue;
|
||||
}
|
||||
|
||||
public String getRangeFarEndRealityValue()
|
||||
{
|
||||
return rangeFarEndRealityValue;
|
||||
}
|
||||
public void setHighNearEndAdValue(String highNearEndAdValue)
|
||||
{
|
||||
this.highNearEndAdValue = highNearEndAdValue;
|
||||
}
|
||||
|
||||
public String getHighNearEndAdValue()
|
||||
{
|
||||
return highNearEndAdValue;
|
||||
}
|
||||
public void setHighNearEndRealityValue(String highNearEndRealityValue)
|
||||
{
|
||||
this.highNearEndRealityValue = highNearEndRealityValue;
|
||||
}
|
||||
|
||||
public String getHighNearEndRealityValue()
|
||||
{
|
||||
return highNearEndRealityValue;
|
||||
}
|
||||
public void setHighFarEndAdValue(String highFarEndAdValue)
|
||||
{
|
||||
this.highFarEndAdValue = highFarEndAdValue;
|
||||
}
|
||||
|
||||
public String getHighFarEndAdValue()
|
||||
{
|
||||
return highFarEndAdValue;
|
||||
}
|
||||
public void setHighFarEndRealityValue(String highFarEndRealityValue)
|
||||
{
|
||||
this.highFarEndRealityValue = highFarEndRealityValue;
|
||||
}
|
||||
|
||||
public String getHighFarEndRealityValue()
|
||||
{
|
||||
return highFarEndRealityValue;
|
||||
}
|
||||
public void setEmptyWeightAdValue(String emptyWeightAdValue)
|
||||
{
|
||||
this.emptyWeightAdValue = emptyWeightAdValue;
|
||||
}
|
||||
|
||||
public String getEmptyWeightAdValue()
|
||||
{
|
||||
return emptyWeightAdValue;
|
||||
}
|
||||
public void setEmptyWeightRealityValue(String emptyWeightRealityValue)
|
||||
{
|
||||
this.emptyWeightRealityValue = emptyWeightRealityValue;
|
||||
}
|
||||
|
||||
public String getEmptyWeightRealityValue()
|
||||
{
|
||||
return emptyWeightRealityValue;
|
||||
}
|
||||
public void setLoadWeightAdValue(String loadWeightAdValue)
|
||||
{
|
||||
this.loadWeightAdValue = loadWeightAdValue;
|
||||
}
|
||||
|
||||
public String getLoadWeightAdValue()
|
||||
{
|
||||
return loadWeightAdValue;
|
||||
}
|
||||
public void setLoadWeightRealityValue(String loadWeightRealityValue)
|
||||
{
|
||||
this.loadWeightRealityValue = loadWeightRealityValue;
|
||||
}
|
||||
|
||||
public String getLoadWeightRealityValue()
|
||||
{
|
||||
return loadWeightRealityValue;
|
||||
}
|
||||
public void setRotationStartAdValue(String rotationStartAdValue)
|
||||
{
|
||||
this.rotationStartAdValue = rotationStartAdValue;
|
||||
}
|
||||
|
||||
public String getRotationStartAdValue()
|
||||
{
|
||||
return rotationStartAdValue;
|
||||
}
|
||||
public void setRotationStartRealityValue(String rotationStartRealityValue)
|
||||
{
|
||||
this.rotationStartRealityValue = rotationStartRealityValue;
|
||||
}
|
||||
|
||||
public String getRotationStartRealityValue()
|
||||
{
|
||||
return rotationStartRealityValue;
|
||||
}
|
||||
public void setRotationEndAdValue(String rotationEndAdValue)
|
||||
{
|
||||
this.rotationEndAdValue = rotationEndAdValue;
|
||||
}
|
||||
|
||||
public String getRotationEndAdValue()
|
||||
{
|
||||
return rotationEndAdValue;
|
||||
}
|
||||
public void setRotationEndRealityValue(String rotationEndRealityValue)
|
||||
{
|
||||
this.rotationEndRealityValue = rotationEndRealityValue;
|
||||
}
|
||||
|
||||
public String getRotationEndRealityValue()
|
||||
{
|
||||
return rotationEndRealityValue;
|
||||
}
|
||||
public void setWindSpeedFactor(String windSpeedFactor)
|
||||
{
|
||||
this.windSpeedFactor = windSpeedFactor;
|
||||
}
|
||||
|
||||
public String getWindSpeedFactor()
|
||||
{
|
||||
return windSpeedFactor;
|
||||
}
|
||||
public void setTiltFactor(String tiltFactor)
|
||||
{
|
||||
this.tiltFactor = tiltFactor;
|
||||
}
|
||||
|
||||
public String getTiltFactor()
|
||||
{
|
||||
return tiltFactor;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getComName() {
|
||||
return comName;
|
||||
}
|
||||
|
||||
public void setComName(String comName) {
|
||||
this.comName = comName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comId", getComId())
|
||||
.append("deviceKey", getDeviceKey())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("towerId", getTowerId())
|
||||
.append("rangeNearEndAdValue", getRangeNearEndAdValue())
|
||||
.append("rangeNearEndRealityValue", getRangeNearEndRealityValue())
|
||||
.append("rangeFarEndAdValue", getRangeFarEndAdValue())
|
||||
.append("rangeFarEndRealityValue", getRangeFarEndRealityValue())
|
||||
.append("highNearEndAdValue", getHighNearEndAdValue())
|
||||
.append("highNearEndRealityValue", getHighNearEndRealityValue())
|
||||
.append("highFarEndAdValue", getHighFarEndAdValue())
|
||||
.append("highFarEndRealityValue", getHighFarEndRealityValue())
|
||||
.append("emptyWeightAdValue", getEmptyWeightAdValue())
|
||||
.append("emptyWeightRealityValue", getEmptyWeightRealityValue())
|
||||
.append("loadWeightAdValue", getLoadWeightAdValue())
|
||||
.append("loadWeightRealityValue", getLoadWeightRealityValue())
|
||||
.append("rotationStartAdValue", getRotationStartAdValue())
|
||||
.append("rotationStartRealityValue", getRotationStartRealityValue())
|
||||
.append("rotationEndAdValue", getRotationEndAdValue())
|
||||
.append("rotationEndRealityValue", getRotationEndRealityValue())
|
||||
.append("windSpeedFactor", getWindSpeedFactor())
|
||||
.append("tiltFactor", getTiltFactor())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,534 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 塔机工作循环对象 dev_tower_data_round
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerDataRound extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 配置编号 */
|
||||
private Long cfgId;
|
||||
|
||||
/** 项目主键 */
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 总包单位主键 */
|
||||
private Long comId;
|
||||
|
||||
/** 总包单位名称 */
|
||||
@Excel(name = "总包单位名称")
|
||||
private String comName;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceKey;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 塔吊编号 */
|
||||
@Excel(name = "塔吊编号")
|
||||
private String towerId;
|
||||
|
||||
/** 工作循环开始 */
|
||||
@Excel(name = "工作循环开始")
|
||||
private String workStartTime;
|
||||
|
||||
/** 工作循环结束 */
|
||||
@Excel(name = "工作循环结束")
|
||||
private String workEndTime;
|
||||
|
||||
/** 工作循环最小高度 */
|
||||
@Excel(name = "工作循环最小高度")
|
||||
private String minHeight;
|
||||
|
||||
/** 工作循环最大高度 */
|
||||
@Excel(name = "工作循环最大高度")
|
||||
private String maxHeight;
|
||||
|
||||
/** 工作循环最小幅度 */
|
||||
@Excel(name = "工作循环最小幅度")
|
||||
private String minRange;
|
||||
|
||||
/** 工作循环最大幅度 */
|
||||
@Excel(name = "工作循环最大幅度")
|
||||
private String maxRange;
|
||||
|
||||
/** 工作循环开始高度 */
|
||||
@Excel(name = "工作循环开始高度")
|
||||
private String startHeight;
|
||||
|
||||
/** 工作循环结束高度 */
|
||||
@Excel(name = "工作循环结束高度")
|
||||
private String endHeight;
|
||||
|
||||
/** 工作循环开始幅度 */
|
||||
@Excel(name = "工作循环开始幅度")
|
||||
private String startRange;
|
||||
|
||||
/** 工作循环结束幅度单位米 */
|
||||
@Excel(name = "工作循环结束幅度单位米")
|
||||
private String endRange;
|
||||
|
||||
/** 工作循环开始回转角度单位度 */
|
||||
@Excel(name = "工作循环开始回转角度单位度")
|
||||
private String startRotation;
|
||||
|
||||
/** 工作循环结束回转角度单位度 */
|
||||
@Excel(name = "工作循环结束回转角度单位度")
|
||||
private String endRotation;
|
||||
|
||||
/** 工作循环最大吊重单位吨 */
|
||||
@Excel(name = "工作循环最大吊重单位吨")
|
||||
private String maxLoad;
|
||||
|
||||
/** 工作循环最大重量百分比 */
|
||||
@Excel(name = "工作循环最大重量百分比")
|
||||
private String maxLoadPercent;
|
||||
|
||||
/** 工作循环最大力矩 */
|
||||
@Excel(name = "工作循环最大力矩")
|
||||
private String maxMoment;
|
||||
|
||||
/** 工作循环最大力矩百分比 */
|
||||
@Excel(name = "工作循环最大力矩百分比")
|
||||
private String maxMomentPercent;
|
||||
|
||||
/** 工作循环开始风速 */
|
||||
@Excel(name = "工作循环开始风速")
|
||||
private String startWindSpeed;
|
||||
|
||||
/** 工作循环结束风速 */
|
||||
@Excel(name = "工作循环结束风速")
|
||||
private String endWindSpeed;
|
||||
|
||||
/** 工作循环开始风速等级 */
|
||||
@Excel(name = "工作循环开始风速等级")
|
||||
private String startWindSpeedPercent;
|
||||
|
||||
/** 工作循环结束风速等级 */
|
||||
@Excel(name = "工作循环结束风速等级")
|
||||
private String endWindSpeedPercent;
|
||||
|
||||
/** 工作循环开始水平倾角 */
|
||||
@Excel(name = "工作循环开始水平倾角")
|
||||
private String startLeanAngleX;
|
||||
|
||||
/** 工作循环结束水平倾角 */
|
||||
@Excel(name = "工作循环结束水平倾角")
|
||||
private String endLeanAngleX;
|
||||
|
||||
/** 工作循环开始垂直倾角 */
|
||||
@Excel(name = "工作循环开始垂直倾角")
|
||||
private String startLeanAngleY;
|
||||
|
||||
/** 工作循环结束垂直倾角 */
|
||||
@Excel(name = "工作循环结束垂直倾角")
|
||||
private String endLeanAngleY;
|
||||
|
||||
/** 警报信息 */
|
||||
@Excel(name = "警报信息")
|
||||
private String warnings;
|
||||
|
||||
/** 是否告警 */
|
||||
@Excel(name = "是否告警")
|
||||
private Long isAlarm;
|
||||
|
||||
/** 是否告警 */
|
||||
@Excel(name = "是否告警")
|
||||
private Long isOverload;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public Long getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(Long comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public void setDeviceKey(String deviceKey)
|
||||
{
|
||||
this.deviceKey = deviceKey;
|
||||
}
|
||||
|
||||
public String getDeviceKey()
|
||||
{
|
||||
return deviceKey;
|
||||
}
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
public void setTowerId(String towerId)
|
||||
{
|
||||
this.towerId = towerId;
|
||||
}
|
||||
|
||||
public String getTowerId()
|
||||
{
|
||||
return towerId;
|
||||
}
|
||||
public void setWorkStartTime(String workStartTime)
|
||||
{
|
||||
this.workStartTime = workStartTime;
|
||||
}
|
||||
|
||||
public String getWorkStartTime()
|
||||
{
|
||||
return workStartTime;
|
||||
}
|
||||
public void setWorkEndTime(String workEndTime)
|
||||
{
|
||||
this.workEndTime = workEndTime;
|
||||
}
|
||||
|
||||
public String getWorkEndTime()
|
||||
{
|
||||
return workEndTime;
|
||||
}
|
||||
public void setMinHeight(String minHeight)
|
||||
{
|
||||
this.minHeight = minHeight;
|
||||
}
|
||||
|
||||
public String getMinHeight()
|
||||
{
|
||||
return minHeight;
|
||||
}
|
||||
public void setMaxHeight(String maxHeight)
|
||||
{
|
||||
this.maxHeight = maxHeight;
|
||||
}
|
||||
|
||||
public String getMaxHeight()
|
||||
{
|
||||
return maxHeight;
|
||||
}
|
||||
public void setMinRange(String minRange)
|
||||
{
|
||||
this.minRange = minRange;
|
||||
}
|
||||
|
||||
public String getMinRange()
|
||||
{
|
||||
return minRange;
|
||||
}
|
||||
public void setMaxRange(String maxRange)
|
||||
{
|
||||
this.maxRange = maxRange;
|
||||
}
|
||||
|
||||
public String getMaxRange()
|
||||
{
|
||||
return maxRange;
|
||||
}
|
||||
public void setStartHeight(String startHeight)
|
||||
{
|
||||
this.startHeight = startHeight;
|
||||
}
|
||||
|
||||
public String getStartHeight()
|
||||
{
|
||||
return startHeight;
|
||||
}
|
||||
public void setEndHeight(String endHeight)
|
||||
{
|
||||
this.endHeight = endHeight;
|
||||
}
|
||||
|
||||
public String getEndHeight()
|
||||
{
|
||||
return endHeight;
|
||||
}
|
||||
public void setStartRange(String startRange)
|
||||
{
|
||||
this.startRange = startRange;
|
||||
}
|
||||
|
||||
public String getStartRange()
|
||||
{
|
||||
return startRange;
|
||||
}
|
||||
public void setEndRange(String endRange)
|
||||
{
|
||||
this.endRange = endRange;
|
||||
}
|
||||
|
||||
public String getEndRange()
|
||||
{
|
||||
return endRange;
|
||||
}
|
||||
public void setStartRotation(String startRotation)
|
||||
{
|
||||
this.startRotation = startRotation;
|
||||
}
|
||||
|
||||
public String getStartRotation()
|
||||
{
|
||||
return startRotation;
|
||||
}
|
||||
public void setEndRotation(String endRotation)
|
||||
{
|
||||
this.endRotation = endRotation;
|
||||
}
|
||||
|
||||
public String getEndRotation()
|
||||
{
|
||||
return endRotation;
|
||||
}
|
||||
public void setMaxLoad(String maxLoad)
|
||||
{
|
||||
this.maxLoad = maxLoad;
|
||||
}
|
||||
|
||||
public String getMaxLoad()
|
||||
{
|
||||
return maxLoad;
|
||||
}
|
||||
public void setMaxLoadPercent(String maxLoadPercent)
|
||||
{
|
||||
this.maxLoadPercent = maxLoadPercent;
|
||||
}
|
||||
|
||||
public String getMaxLoadPercent()
|
||||
{
|
||||
return maxLoadPercent;
|
||||
}
|
||||
public void setMaxMoment(String maxMoment)
|
||||
{
|
||||
this.maxMoment = maxMoment;
|
||||
}
|
||||
|
||||
public String getMaxMoment()
|
||||
{
|
||||
return maxMoment;
|
||||
}
|
||||
public void setMaxMomentPercent(String maxMomentPercent)
|
||||
{
|
||||
this.maxMomentPercent = maxMomentPercent;
|
||||
}
|
||||
|
||||
public String getMaxMomentPercent()
|
||||
{
|
||||
return maxMomentPercent;
|
||||
}
|
||||
public void setStartWindSpeed(String startWindSpeed)
|
||||
{
|
||||
this.startWindSpeed = startWindSpeed;
|
||||
}
|
||||
|
||||
public String getStartWindSpeed()
|
||||
{
|
||||
return startWindSpeed;
|
||||
}
|
||||
public void setEndWindSpeed(String endWindSpeed)
|
||||
{
|
||||
this.endWindSpeed = endWindSpeed;
|
||||
}
|
||||
|
||||
public String getEndWindSpeed()
|
||||
{
|
||||
return endWindSpeed;
|
||||
}
|
||||
public void setStartWindSpeedPercent(String startWindSpeedPercent)
|
||||
{
|
||||
this.startWindSpeedPercent = startWindSpeedPercent;
|
||||
}
|
||||
|
||||
public String getStartWindSpeedPercent()
|
||||
{
|
||||
return startWindSpeedPercent;
|
||||
}
|
||||
public void setEndWindSpeedPercent(String endWindSpeedPercent)
|
||||
{
|
||||
this.endWindSpeedPercent = endWindSpeedPercent;
|
||||
}
|
||||
|
||||
public String getEndWindSpeedPercent()
|
||||
{
|
||||
return endWindSpeedPercent;
|
||||
}
|
||||
public void setStartLeanAngleX(String startLeanAngleX)
|
||||
{
|
||||
this.startLeanAngleX = startLeanAngleX;
|
||||
}
|
||||
|
||||
public String getStartLeanAngleX()
|
||||
{
|
||||
return startLeanAngleX;
|
||||
}
|
||||
public void setEndLeanAngleX(String endLeanAngleX)
|
||||
{
|
||||
this.endLeanAngleX = endLeanAngleX;
|
||||
}
|
||||
|
||||
public String getEndLeanAngleX()
|
||||
{
|
||||
return endLeanAngleX;
|
||||
}
|
||||
public void setStartLeanAngleY(String startLeanAngleY)
|
||||
{
|
||||
this.startLeanAngleY = startLeanAngleY;
|
||||
}
|
||||
|
||||
public String getStartLeanAngleY()
|
||||
{
|
||||
return startLeanAngleY;
|
||||
}
|
||||
public void setEndLeanAngleY(String endLeanAngleY)
|
||||
{
|
||||
this.endLeanAngleY = endLeanAngleY;
|
||||
}
|
||||
|
||||
public String getEndLeanAngleY()
|
||||
{
|
||||
return endLeanAngleY;
|
||||
}
|
||||
public void setWarnings(String warnings)
|
||||
{
|
||||
this.warnings = warnings;
|
||||
}
|
||||
|
||||
public String getWarnings()
|
||||
{
|
||||
return warnings;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getComName() {
|
||||
return comName;
|
||||
}
|
||||
|
||||
public void setComName(String comName) {
|
||||
this.comName = comName;
|
||||
}
|
||||
|
||||
public Long getIsAlarm() {
|
||||
return isAlarm;
|
||||
}
|
||||
|
||||
public void setIsAlarm(Long isAlarm) {
|
||||
this.isAlarm = isAlarm;
|
||||
}
|
||||
|
||||
public Long getIsOverload() {
|
||||
return isOverload;
|
||||
}
|
||||
|
||||
public void setIsOverload(Long isOverload) {
|
||||
this.isOverload = isOverload;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comId", getComId())
|
||||
.append("deviceKey", getDeviceKey())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("towerId", getTowerId())
|
||||
.append("workStartTime", getWorkStartTime())
|
||||
.append("workEndTime", getWorkEndTime())
|
||||
.append("minHeight", getMinHeight())
|
||||
.append("maxHeight", getMaxHeight())
|
||||
.append("minRange", getMinRange())
|
||||
.append("maxRange", getMaxRange())
|
||||
.append("startHeight", getStartHeight())
|
||||
.append("endHeight", getEndHeight())
|
||||
.append("startRange", getStartRange())
|
||||
.append("endRange", getEndRange())
|
||||
.append("startRotation", getStartRotation())
|
||||
.append("endRotation", getEndRotation())
|
||||
.append("maxLoad", getMaxLoad())
|
||||
.append("maxLoadPercent", getMaxLoadPercent())
|
||||
.append("maxMoment", getMaxMoment())
|
||||
.append("maxMomentPercent", getMaxMomentPercent())
|
||||
.append("startWindSpeed", getStartWindSpeed())
|
||||
.append("endWindSpeed", getEndWindSpeed())
|
||||
.append("startWindSpeedPercent", getStartWindSpeedPercent())
|
||||
.append("endWindSpeedPercent", getEndWindSpeedPercent())
|
||||
.append("startLeanAngleX", getStartLeanAngleX())
|
||||
.append("endLeanAngleX", getEndLeanAngleX())
|
||||
.append("startLeanAngleY", getStartLeanAngleY())
|
||||
.append("endLeanAngleY", getEndLeanAngleY())
|
||||
.append("warnings", getWarnings())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,452 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 塔机实时数据对象 dev_tower_data_run
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerDataRun extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 配置编号 */
|
||||
private Long cfgId;
|
||||
|
||||
/** 项目主键 */
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 总包单位主键 */
|
||||
private Long comId;
|
||||
|
||||
/** 总包单位名称 */
|
||||
@Excel(name = "总包单位名称")
|
||||
private String comName;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceKey;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 当前高度 */
|
||||
@Excel(name = "当前高度")
|
||||
private String height;
|
||||
|
||||
/** 当前幅度 */
|
||||
@Excel(name = "当前幅度")
|
||||
private String range;
|
||||
|
||||
/** 回转 */
|
||||
@Excel(name = "回转")
|
||||
private String rotation;
|
||||
|
||||
/** 当前吊重 */
|
||||
@Excel(name = "当前吊重")
|
||||
private String load;
|
||||
|
||||
/** 风速 */
|
||||
@Excel(name = "风速")
|
||||
private String windSpeed;
|
||||
|
||||
/** 水平倾角 */
|
||||
@Excel(name = "水平倾角")
|
||||
private String leanAngleX;
|
||||
|
||||
/** 垂直倾角 */
|
||||
@Excel(name = "垂直倾角")
|
||||
private String leanAngleY;
|
||||
|
||||
/** 重量百分比 */
|
||||
@Excel(name = "重量百分比")
|
||||
private String loadPercent;
|
||||
|
||||
/** 力矩百分比 */
|
||||
@Excel(name = "力矩百分比")
|
||||
private String momentPercent;
|
||||
|
||||
/** 风速等级 */
|
||||
@Excel(name = "风速等级")
|
||||
private String windSpeedPercent;
|
||||
|
||||
/** 倾斜百分比 */
|
||||
@Excel(name = "倾斜百分比")
|
||||
private String leanAnglePercent;
|
||||
|
||||
/** 警报信息 */
|
||||
@Excel(name = "警报信息")
|
||||
private String warnings;
|
||||
|
||||
/** 倍率 */
|
||||
@Excel(name = "倍率")
|
||||
private String rate;
|
||||
|
||||
/** 回转传感器状态 */
|
||||
@Excel(name = "回转传感器状态")
|
||||
private String rotationSensorState;
|
||||
|
||||
/** 重量传感器状态 */
|
||||
@Excel(name = "重量传感器状态")
|
||||
private String loadSensorState;
|
||||
|
||||
/** 风速传感器状态 */
|
||||
@Excel(name = "风速传感器状态")
|
||||
private String windSpeedSensorState;
|
||||
|
||||
/** 倾角传感器状态 */
|
||||
@Excel(name = "倾角传感器状态")
|
||||
private String leanAngleSensorState;
|
||||
|
||||
/** 幅度传感器状态 */
|
||||
@Excel(name = "幅度传感器状态")
|
||||
private String rangeSensorState;
|
||||
|
||||
/** 高度传感器状态 */
|
||||
@Excel(name = "高度传感器状态")
|
||||
private String heightSensorState;
|
||||
|
||||
/** 控制状态 */
|
||||
@Excel(name = "控制状态")
|
||||
private String brakingStatus;
|
||||
|
||||
/** 时间戳 */
|
||||
@Excel(name = "时间戳")
|
||||
private Long timeLongs;
|
||||
|
||||
/** 是否告警 */
|
||||
@Excel(name = "是否告警")
|
||||
private Long isAlarm;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public Long getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(Long comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public void setDeviceKey(String deviceKey)
|
||||
{
|
||||
this.deviceKey = deviceKey;
|
||||
}
|
||||
|
||||
public String getDeviceKey()
|
||||
{
|
||||
return deviceKey;
|
||||
}
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
public void setHeight(String height)
|
||||
{
|
||||
this.height = height;
|
||||
}
|
||||
|
||||
public String getHeight()
|
||||
{
|
||||
return height;
|
||||
}
|
||||
public void setRange(String range)
|
||||
{
|
||||
this.range = range;
|
||||
}
|
||||
|
||||
public String getRange()
|
||||
{
|
||||
return range;
|
||||
}
|
||||
public void setRotation(String rotation)
|
||||
{
|
||||
this.rotation = rotation;
|
||||
}
|
||||
|
||||
public String getRotation()
|
||||
{
|
||||
return rotation;
|
||||
}
|
||||
public void setLoad(String load)
|
||||
{
|
||||
this.load = load;
|
||||
}
|
||||
|
||||
public String getLoad()
|
||||
{
|
||||
return load;
|
||||
}
|
||||
public void setWindSpeed(String windSpeed)
|
||||
{
|
||||
this.windSpeed = windSpeed;
|
||||
}
|
||||
|
||||
public String getWindSpeed()
|
||||
{
|
||||
return windSpeed;
|
||||
}
|
||||
public void setLeanAngleX(String leanAngleX)
|
||||
{
|
||||
this.leanAngleX = leanAngleX;
|
||||
}
|
||||
|
||||
public String getLeanAngleX()
|
||||
{
|
||||
return leanAngleX;
|
||||
}
|
||||
public void setLeanAngleY(String leanAngleY)
|
||||
{
|
||||
this.leanAngleY = leanAngleY;
|
||||
}
|
||||
|
||||
public String getLeanAngleY()
|
||||
{
|
||||
return leanAngleY;
|
||||
}
|
||||
public void setLoadPercent(String loadPercent)
|
||||
{
|
||||
this.loadPercent = loadPercent;
|
||||
}
|
||||
|
||||
public String getLoadPercent()
|
||||
{
|
||||
return loadPercent;
|
||||
}
|
||||
public void setMomentPercent(String momentPercent)
|
||||
{
|
||||
this.momentPercent = momentPercent;
|
||||
}
|
||||
|
||||
public String getMomentPercent()
|
||||
{
|
||||
return momentPercent;
|
||||
}
|
||||
public void setWindSpeedPercent(String windSpeedPercent)
|
||||
{
|
||||
this.windSpeedPercent = windSpeedPercent;
|
||||
}
|
||||
|
||||
public String getWindSpeedPercent()
|
||||
{
|
||||
return windSpeedPercent;
|
||||
}
|
||||
public void setLeanAnglePercent(String leanAnglePercent)
|
||||
{
|
||||
this.leanAnglePercent = leanAnglePercent;
|
||||
}
|
||||
|
||||
public String getLeanAnglePercent()
|
||||
{
|
||||
return leanAnglePercent;
|
||||
}
|
||||
public void setWarnings(String warnings)
|
||||
{
|
||||
this.warnings = warnings;
|
||||
}
|
||||
|
||||
public String getWarnings()
|
||||
{
|
||||
return warnings;
|
||||
}
|
||||
public void setRate(String rate)
|
||||
{
|
||||
this.rate = rate;
|
||||
}
|
||||
|
||||
public String getRate()
|
||||
{
|
||||
return rate;
|
||||
}
|
||||
public void setRotationSensorState(String rotationSensorState)
|
||||
{
|
||||
this.rotationSensorState = rotationSensorState;
|
||||
}
|
||||
|
||||
public String getRotationSensorState()
|
||||
{
|
||||
return rotationSensorState;
|
||||
}
|
||||
public void setLoadSensorState(String loadSensorState)
|
||||
{
|
||||
this.loadSensorState = loadSensorState;
|
||||
}
|
||||
|
||||
public String getLoadSensorState()
|
||||
{
|
||||
return loadSensorState;
|
||||
}
|
||||
public void setWindSpeedSensorState(String windSpeedSensorState)
|
||||
{
|
||||
this.windSpeedSensorState = windSpeedSensorState;
|
||||
}
|
||||
|
||||
public String getWindSpeedSensorState()
|
||||
{
|
||||
return windSpeedSensorState;
|
||||
}
|
||||
public void setLeanAngleSensorState(String leanAngleSensorState)
|
||||
{
|
||||
this.leanAngleSensorState = leanAngleSensorState;
|
||||
}
|
||||
|
||||
public String getLeanAngleSensorState()
|
||||
{
|
||||
return leanAngleSensorState;
|
||||
}
|
||||
public void setRangeSensorState(String rangeSensorState)
|
||||
{
|
||||
this.rangeSensorState = rangeSensorState;
|
||||
}
|
||||
|
||||
public String getRangeSensorState()
|
||||
{
|
||||
return rangeSensorState;
|
||||
}
|
||||
public void setHeightSensorState(String heightSensorState)
|
||||
{
|
||||
this.heightSensorState = heightSensorState;
|
||||
}
|
||||
|
||||
public String getHeightSensorState()
|
||||
{
|
||||
return heightSensorState;
|
||||
}
|
||||
public void setBrakingStatus(String brakingStatus)
|
||||
{
|
||||
this.brakingStatus = brakingStatus;
|
||||
}
|
||||
|
||||
public String getBrakingStatus()
|
||||
{
|
||||
return brakingStatus;
|
||||
}
|
||||
public void setTimeLongs(Long timeLongs)
|
||||
{
|
||||
this.timeLongs = timeLongs;
|
||||
}
|
||||
|
||||
public Long getTimeLongs()
|
||||
{
|
||||
return timeLongs;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getComName() {
|
||||
return comName;
|
||||
}
|
||||
|
||||
public void setComName(String comName) {
|
||||
this.comName = comName;
|
||||
}
|
||||
|
||||
public Long getIsAlarm() {
|
||||
return isAlarm;
|
||||
}
|
||||
|
||||
public void setIsAlarm(Long isAlarm) {
|
||||
this.isAlarm = isAlarm;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comId", getComId())
|
||||
.append("deviceKey", getDeviceKey())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("height", getHeight())
|
||||
.append("range", getRange())
|
||||
.append("rotation", getRotation())
|
||||
.append("load", getLoad())
|
||||
.append("windSpeed", getWindSpeed())
|
||||
.append("leanAngleX", getLeanAngleX())
|
||||
.append("leanAngleY", getLeanAngleY())
|
||||
.append("loadPercent", getLoadPercent())
|
||||
.append("momentPercent", getMomentPercent())
|
||||
.append("windSpeedPercent", getWindSpeedPercent())
|
||||
.append("leanAnglePercent", getLeanAnglePercent())
|
||||
.append("warnings", getWarnings())
|
||||
.append("rate", getRate())
|
||||
.append("rotationSensorState", getRotationSensorState())
|
||||
.append("loadSensorState", getLoadSensorState())
|
||||
.append("windSpeedSensorState", getWindSpeedSensorState())
|
||||
.append("leanAngleSensorState", getLeanAngleSensorState())
|
||||
.append("rangeSensorState", getRangeSensorState())
|
||||
.append("heightSensorState", getHeightSensorState())
|
||||
.append("brakingStatus", getBrakingStatus())
|
||||
.append("timeLongs", getTimeLongs())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,230 @@
|
|||
package com.yanzhu.device.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 塔机预警管理对象 dev_tower_data_warning
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerDataWarning extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 配置编号 */
|
||||
private Long cfgId;
|
||||
|
||||
/** 项目主键 */
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 总包单位主键 */
|
||||
private Long comId;
|
||||
|
||||
/** 总包单位名称 */
|
||||
@Excel(name = "总包单位名称")
|
||||
private String comName;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceKey;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 塔机编号 */
|
||||
@Excel(name = "塔机编号")
|
||||
private String towerId;
|
||||
|
||||
/** 预警类型 */
|
||||
@Excel(name = "预警类型")
|
||||
private Long warnType;
|
||||
|
||||
/** 预警名称 */
|
||||
@Excel(name = "预警名称")
|
||||
private String warnName;
|
||||
|
||||
/** 预警内容 */
|
||||
@Excel(name = "预警内容")
|
||||
private String warnNote;
|
||||
|
||||
/** 预警值 */
|
||||
@Excel(name = "预警值")
|
||||
private String warnData;
|
||||
|
||||
/** 实际值 */
|
||||
@Excel(name = "实际值")
|
||||
private String realData;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public Long getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(Long comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public void setDeviceKey(String deviceKey)
|
||||
{
|
||||
this.deviceKey = deviceKey;
|
||||
}
|
||||
|
||||
public String getDeviceKey()
|
||||
{
|
||||
return deviceKey;
|
||||
}
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
public void setTowerId(String towerId)
|
||||
{
|
||||
this.towerId = towerId;
|
||||
}
|
||||
|
||||
public String getTowerId()
|
||||
{
|
||||
return towerId;
|
||||
}
|
||||
public void setWarnType(Long warnType)
|
||||
{
|
||||
this.warnType = warnType;
|
||||
}
|
||||
|
||||
public Long getWarnType()
|
||||
{
|
||||
return warnType;
|
||||
}
|
||||
public void setWarnName(String warnName)
|
||||
{
|
||||
this.warnName = warnName;
|
||||
}
|
||||
|
||||
public String getWarnName()
|
||||
{
|
||||
return warnName;
|
||||
}
|
||||
public void setWarnNote(String warnNote)
|
||||
{
|
||||
this.warnNote = warnNote;
|
||||
}
|
||||
|
||||
public String getWarnNote()
|
||||
{
|
||||
return warnNote;
|
||||
}
|
||||
public void setWarnData(String warnData)
|
||||
{
|
||||
this.warnData = warnData;
|
||||
}
|
||||
|
||||
public String getWarnData()
|
||||
{
|
||||
return warnData;
|
||||
}
|
||||
public void setRealData(String realData)
|
||||
{
|
||||
this.realData = realData;
|
||||
}
|
||||
|
||||
public String getRealData()
|
||||
{
|
||||
return realData;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getComName() {
|
||||
return comName;
|
||||
}
|
||||
|
||||
public void setComName(String comName) {
|
||||
this.comName = comName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comId", getComId())
|
||||
.append("deviceKey", getDeviceKey())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("towerId", getTowerId())
|
||||
.append("warnType", getWarnType())
|
||||
.append("warnName", getWarnName())
|
||||
.append("warnNote", getWarnNote())
|
||||
.append("warnData", getWarnData())
|
||||
.append("realData", getRealData())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,338 @@
|
|||
package com.yanzhu.device.domain;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 塔基检测配置对象 dev_tower_project_config
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public class DevTowerProjectConfig extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long id;
|
||||
|
||||
/** 项目主键 */
|
||||
private Long projectId;
|
||||
|
||||
/** 项目名称 */
|
||||
@Excel(name = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
/** 总包单位主键 */
|
||||
private Long comId;
|
||||
|
||||
/** 总包单位名称 */
|
||||
@Excel(name = "总包单位名称")
|
||||
private String comName;
|
||||
|
||||
/** 设备序列号 */
|
||||
@Excel(name = "设备序列号")
|
||||
private String deviceSn;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备来源 */
|
||||
@Excel(name = "设备来源")
|
||||
private String deviceSource;
|
||||
|
||||
/** 塔机编号 */
|
||||
@Excel(name = "塔机编号")
|
||||
private String towerId;
|
||||
|
||||
/** 塔机类型 */
|
||||
@Excel(name = "塔机类型")
|
||||
private String towerType;
|
||||
|
||||
/** 塔机坐标x */
|
||||
@Excel(name = "塔机坐标x")
|
||||
private String coordinateX;
|
||||
|
||||
/** 塔机坐标y */
|
||||
@Excel(name = "塔机坐标y")
|
||||
private String coordinateY;
|
||||
|
||||
/** 前臂长度 */
|
||||
@Excel(name = "前臂长度")
|
||||
private String frontBrachium;
|
||||
|
||||
/** 平衡臂长度 */
|
||||
@Excel(name = "平衡臂长度")
|
||||
private String afterBrachium;
|
||||
|
||||
/** 塔身高度 */
|
||||
@Excel(name = "塔身高度")
|
||||
private String towerBodyHeight;
|
||||
|
||||
/** 塔帽高度 */
|
||||
@Excel(name = "塔帽高度")
|
||||
private String towerCapHeight;
|
||||
|
||||
/** 塔节高度 */
|
||||
@Excel(name = "塔节高度")
|
||||
private String towerSectionHeight;
|
||||
|
||||
/** 设备状态 */
|
||||
@Excel(name = "设备状态")
|
||||
private String online;
|
||||
|
||||
/** 司机名称 */
|
||||
@Excel(name = "司机名称")
|
||||
private String driName;
|
||||
|
||||
/** 司机电话 */
|
||||
@Excel(name = "司机电话")
|
||||
private String driPhone;
|
||||
|
||||
/** 安全员名称 */
|
||||
@Excel(name = "安全员名称")
|
||||
private String safName;
|
||||
|
||||
/** 安全员电话 */
|
||||
@Excel(name = "安全员电话")
|
||||
private String safPhone;
|
||||
|
||||
/** 是否有效 */
|
||||
@Excel(name = "是否有效")
|
||||
private Long isDel;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
|
||||
public Long getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(Long comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public void setDeviceSn(String deviceSn)
|
||||
{
|
||||
this.deviceSn = deviceSn;
|
||||
}
|
||||
|
||||
public String getDeviceSn()
|
||||
{
|
||||
return deviceSn;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceSource(String deviceSource)
|
||||
{
|
||||
this.deviceSource = deviceSource;
|
||||
}
|
||||
|
||||
public String getDeviceSource()
|
||||
{
|
||||
return deviceSource;
|
||||
}
|
||||
|
||||
public String getTowerId() {
|
||||
return towerId;
|
||||
}
|
||||
|
||||
public void setTowerId(String towerId) {
|
||||
this.towerId = towerId;
|
||||
}
|
||||
|
||||
public void setTowerType(String towerType)
|
||||
{
|
||||
this.towerType = towerType;
|
||||
}
|
||||
|
||||
public String getTowerType()
|
||||
{
|
||||
return towerType;
|
||||
}
|
||||
public void setCoordinateX(String coordinateX)
|
||||
{
|
||||
this.coordinateX = coordinateX;
|
||||
}
|
||||
|
||||
public String getCoordinateX()
|
||||
{
|
||||
return coordinateX;
|
||||
}
|
||||
public void setCoordinateY(String coordinateY)
|
||||
{
|
||||
this.coordinateY = coordinateY;
|
||||
}
|
||||
|
||||
public String getCoordinateY()
|
||||
{
|
||||
return coordinateY;
|
||||
}
|
||||
public void setFrontBrachium(String frontBrachium)
|
||||
{
|
||||
this.frontBrachium = frontBrachium;
|
||||
}
|
||||
|
||||
public String getFrontBrachium()
|
||||
{
|
||||
return frontBrachium;
|
||||
}
|
||||
public void setAfterBrachium(String afterBrachium)
|
||||
{
|
||||
this.afterBrachium = afterBrachium;
|
||||
}
|
||||
|
||||
public String getAfterBrachium()
|
||||
{
|
||||
return afterBrachium;
|
||||
}
|
||||
public void setTowerBodyHeight(String towerBodyHeight)
|
||||
{
|
||||
this.towerBodyHeight = towerBodyHeight;
|
||||
}
|
||||
|
||||
public String getTowerBodyHeight()
|
||||
{
|
||||
return towerBodyHeight;
|
||||
}
|
||||
public void setTowerCapHeight(String towerCapHeight)
|
||||
{
|
||||
this.towerCapHeight = towerCapHeight;
|
||||
}
|
||||
|
||||
public String getTowerCapHeight()
|
||||
{
|
||||
return towerCapHeight;
|
||||
}
|
||||
public void setTowerSectionHeight(String towerSectionHeight)
|
||||
{
|
||||
this.towerSectionHeight = towerSectionHeight;
|
||||
}
|
||||
|
||||
public String getTowerSectionHeight()
|
||||
{
|
||||
return towerSectionHeight;
|
||||
}
|
||||
|
||||
public String getOnline() {
|
||||
return online;
|
||||
}
|
||||
|
||||
public void setOnline(String online) {
|
||||
this.online = online;
|
||||
}
|
||||
|
||||
public String getDriName() {
|
||||
return driName;
|
||||
}
|
||||
|
||||
public void setDriName(String driName) {
|
||||
this.driName = driName;
|
||||
}
|
||||
|
||||
public String getDriPhone() {
|
||||
return driPhone;
|
||||
}
|
||||
|
||||
public void setDriPhone(String driPhone) {
|
||||
this.driPhone = driPhone;
|
||||
}
|
||||
|
||||
public String getSafName() {
|
||||
return safName;
|
||||
}
|
||||
|
||||
public void setSafName(String safName) {
|
||||
this.safName = safName;
|
||||
}
|
||||
|
||||
public String getSafPhone() {
|
||||
return safPhone;
|
||||
}
|
||||
|
||||
public void setSafPhone(String safPhone) {
|
||||
this.safPhone = safPhone;
|
||||
}
|
||||
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getComName() {
|
||||
return comName;
|
||||
}
|
||||
|
||||
public void setComName(String comName) {
|
||||
this.comName = comName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("comId", getComId())
|
||||
.append("deviceSn", getDeviceSn())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("deviceSource", getDeviceSource())
|
||||
.append("towerType", getTowerType())
|
||||
.append("coordinateX", getCoordinateX())
|
||||
.append("coordinateY", getCoordinateY())
|
||||
.append("frontBrachium", getFrontBrachium())
|
||||
.append("afterBrachium", getAfterBrachium())
|
||||
.append("towerBodyHeight", getTowerBodyHeight())
|
||||
.append("towerCapHeight", getTowerCapHeight())
|
||||
.append("towerSectionHeight", getTowerSectionHeight())
|
||||
.append("online", getOnline())
|
||||
.append("driName", getDriName())
|
||||
.append("driPhone", getDriPhone())
|
||||
.append("safName", getSafName())
|
||||
.append("safPhone", getSafPhone())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
|
||||
import com.yanzhu.device.domain.DevTowerDataCollide;
|
||||
import com.yanzhu.device.domain.DevTowerDataCollideDetail;
|
||||
import com.yanzhu.device.domain.DevTowerDataRound;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔机碰撞信息Mapper接口
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public interface DevTowerDataCollideMapper
|
||||
{
|
||||
/**
|
||||
* 查询塔机碰撞信息
|
||||
*
|
||||
* @param id 塔机碰撞信息主键
|
||||
* @return 塔机碰撞信息
|
||||
*/
|
||||
public DevTowerDataCollide selectDevTowerDataCollideById(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔机碰撞信息列表
|
||||
*
|
||||
* @param devTowerDataCollide 塔机碰撞信息
|
||||
* @return 塔机碰撞信息集合
|
||||
*/
|
||||
public List<DevTowerDataCollide> selectDevTowerDataCollideList(DevTowerDataCollide devTowerDataCollide);
|
||||
|
||||
/**
|
||||
* 新增塔机碰撞信息
|
||||
*
|
||||
* @param devTowerDataCollide 塔机碰撞信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevTowerDataCollide(DevTowerDataCollide devTowerDataCollide);
|
||||
|
||||
/**
|
||||
* 修改塔机碰撞信息
|
||||
*
|
||||
* @param devTowerDataCollide 塔机碰撞信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevTowerDataCollide(DevTowerDataCollide devTowerDataCollide);
|
||||
|
||||
/**
|
||||
* 删除塔机碰撞信息
|
||||
*
|
||||
* @param id 塔机碰撞信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataCollideById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除塔机碰撞信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataCollideByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量删除碰撞详情
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataCollideDetailByCollideIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量新增碰撞详情
|
||||
*
|
||||
* @param devTowerDataCollideDetailList 碰撞详情列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchDevTowerDataCollideDetail(List<DevTowerDataCollideDetail> devTowerDataCollideDetailList);
|
||||
|
||||
|
||||
/**
|
||||
* 通过塔机碰撞信息主键删除碰撞详情信息
|
||||
*
|
||||
* @param id 塔机碰撞信息ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataCollideDetailByCollideId(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔机碰撞数据
|
||||
*
|
||||
* @param DevTowerDataRound 设备循环信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int findCollideCountByDeviceKey(DevTowerDataRound DevTowerDataRound);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
|
||||
|
||||
import com.yanzhu.device.domain.DevTowerDataLimit;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔机限位信息Mapper接口
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public interface DevTowerDataLimitMapper
|
||||
{
|
||||
/**
|
||||
* 查询塔机限位信息
|
||||
*
|
||||
* @param id 塔机限位信息主键
|
||||
* @return 塔机限位信息
|
||||
*/
|
||||
public DevTowerDataLimit selectDevTowerDataLimitById(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔机限位信息列表
|
||||
*
|
||||
* @param devTowerDataLimit 塔机限位信息
|
||||
* @return 塔机限位信息集合
|
||||
*/
|
||||
public List<DevTowerDataLimit> selectDevTowerDataLimitList(DevTowerDataLimit devTowerDataLimit);
|
||||
|
||||
/**
|
||||
* 新增塔机限位信息
|
||||
*
|
||||
* @param devTowerDataLimit 塔机限位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevTowerDataLimit(DevTowerDataLimit devTowerDataLimit);
|
||||
|
||||
/**
|
||||
* 修改塔机限位信息
|
||||
*
|
||||
* @param devTowerDataLimit 塔机限位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevTowerDataLimit(DevTowerDataLimit devTowerDataLimit);
|
||||
|
||||
/**
|
||||
* 删除塔机限位信息
|
||||
*
|
||||
* @param id 塔机限位信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataLimitById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除塔机限位信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataLimitByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
|
||||
|
||||
import com.yanzhu.device.domain.DevTowerDataLocal;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔机定位信息Mapper接口
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public interface DevTowerDataLocalMapper
|
||||
{
|
||||
/**
|
||||
* 查询塔机定位信息
|
||||
*
|
||||
* @param id 塔机定位信息主键
|
||||
* @return 塔机定位信息
|
||||
*/
|
||||
public DevTowerDataLocal selectDevTowerDataLocalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔机定位信息列表
|
||||
*
|
||||
* @param devTowerDataLocal 塔机定位信息
|
||||
* @return 塔机定位信息集合
|
||||
*/
|
||||
public List<DevTowerDataLocal> selectDevTowerDataLocalList(DevTowerDataLocal devTowerDataLocal);
|
||||
|
||||
/**
|
||||
* 新增塔机定位信息
|
||||
*
|
||||
* @param devTowerDataLocal 塔机定位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevTowerDataLocal(DevTowerDataLocal devTowerDataLocal);
|
||||
|
||||
/**
|
||||
* 修改塔机定位信息
|
||||
*
|
||||
* @param devTowerDataLocal 塔机定位信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevTowerDataLocal(DevTowerDataLocal devTowerDataLocal);
|
||||
|
||||
/**
|
||||
* 删除塔机定位信息
|
||||
*
|
||||
* @param id 塔机定位信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataLocalById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除塔机定位信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataLocalByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
|
||||
|
||||
import com.yanzhu.device.domain.DevTowerDataRound;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔机工作循环Mapper接口
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public interface DevTowerDataRoundMapper
|
||||
{
|
||||
/**
|
||||
* 查询塔机工作循环
|
||||
*
|
||||
* @param id 塔机工作循环主键
|
||||
* @return 塔机工作循环
|
||||
*/
|
||||
public DevTowerDataRound selectDevTowerDataRoundById(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔机工作循环列表
|
||||
*
|
||||
* @param devTowerDataRound 塔机工作循环
|
||||
* @return 塔机工作循环集合
|
||||
*/
|
||||
public List<DevTowerDataRound> selectDevTowerDataRoundList(DevTowerDataRound devTowerDataRound);
|
||||
|
||||
/**
|
||||
* 新增塔机工作循环
|
||||
*
|
||||
* @param devTowerDataRound 塔机工作循环
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevTowerDataRound(DevTowerDataRound devTowerDataRound);
|
||||
|
||||
/**
|
||||
* 修改塔机工作循环
|
||||
*
|
||||
* @param devTowerDataRound 塔机工作循环
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevTowerDataRound(DevTowerDataRound devTowerDataRound);
|
||||
|
||||
/**
|
||||
* 删除塔机工作循环
|
||||
*
|
||||
* @param id 塔机工作循环主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataRoundById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除塔机工作循环
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataRoundByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询塔机工作循环数据
|
||||
*
|
||||
* @param devTowerDataRound 设备循环信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int findRoundCountByDeviceKey(DevTowerDataRound devTowerDataRound);
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.DevTowerDataRound;
|
||||
import com.yanzhu.device.domain.DevTowerDataRun;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔机实时数据Mapper接口
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public interface DevTowerDataRunMapper
|
||||
{
|
||||
/**
|
||||
* 查询塔机实时数据
|
||||
*
|
||||
* @param id 塔机实时数据主键
|
||||
* @return 塔机实时数据
|
||||
*/
|
||||
public DevTowerDataRun selectDevTowerDataRunById(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔机实时数据列表
|
||||
*
|
||||
* @param devTowerDataRun 塔机实时数据
|
||||
* @return 塔机实时数据集合
|
||||
*/
|
||||
public List<DevTowerDataRun> selectDevTowerDataRunList(DevTowerDataRun devTowerDataRun);
|
||||
|
||||
/**
|
||||
* 新增塔机实时数据
|
||||
*
|
||||
* @param devTowerDataRun 塔机实时数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevTowerDataRun(DevTowerDataRun devTowerDataRun);
|
||||
|
||||
/**
|
||||
* 修改塔机实时数据
|
||||
*
|
||||
* @param devTowerDataRun 塔机实时数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevTowerDataRun(DevTowerDataRun devTowerDataRun);
|
||||
|
||||
/**
|
||||
* 删除塔机实时数据
|
||||
*
|
||||
* @param id 塔机实时数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataRunById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除塔机实时数据
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataRunByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询塔机实时数据
|
||||
*
|
||||
* @param DevTowerDataRound 设备循环信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int findRunCountByDeviceKey(DevTowerDataRound DevTowerDataRound);
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.DevTowerDataWarning;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 塔机预警管理Mapper接口
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public interface DevTowerDataWarningMapper
|
||||
{
|
||||
/**
|
||||
* 查询塔机预警管理
|
||||
*
|
||||
* @param id 塔机预警管理主键
|
||||
* @return 塔机预警管理
|
||||
*/
|
||||
public DevTowerDataWarning selectDevTowerDataWarningById(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔机预警管理列表
|
||||
*
|
||||
* @param devTowerDataWarning 塔机预警管理
|
||||
* @return 塔机预警管理集合
|
||||
*/
|
||||
public List<DevTowerDataWarning> selectDevTowerDataWarningList(DevTowerDataWarning devTowerDataWarning);
|
||||
|
||||
/**
|
||||
* 新增塔机预警管理
|
||||
*
|
||||
* @param devTowerDataWarning 塔机预警管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevTowerDataWarning(DevTowerDataWarning devTowerDataWarning);
|
||||
|
||||
/**
|
||||
* 修改塔机预警管理
|
||||
*
|
||||
* @param devTowerDataWarning 塔机预警管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevTowerDataWarning(DevTowerDataWarning devTowerDataWarning);
|
||||
|
||||
/**
|
||||
* 删除塔机预警管理
|
||||
*
|
||||
* @param id 塔机预警管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataWarningById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除塔机预警管理
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerDataWarningByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
package com.yanzhu.device.mapper;
|
||||
|
||||
import com.yanzhu.device.domain.DevTowerProjectConfig;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 塔基检测配置Mapper接口
|
||||
*
|
||||
* @author JiangYuQi
|
||||
* @date 2024-08-04
|
||||
*/
|
||||
public interface DevTowerProjectConfigMapper
|
||||
{
|
||||
/**
|
||||
* 查询塔基检测配置
|
||||
*
|
||||
* @param id 塔基检测配置主键
|
||||
* @return 塔基检测配置
|
||||
*/
|
||||
public DevTowerProjectConfig selectDevTowerProjectConfigById(Long id);
|
||||
|
||||
/**
|
||||
* 查询塔基检测配置列表
|
||||
*
|
||||
* @param devTowerProjectConfig 塔基检测配置
|
||||
* @return 塔基检测配置集合
|
||||
*/
|
||||
public List<DevTowerProjectConfig> selectDevTowerProjectConfigList(DevTowerProjectConfig devTowerProjectConfig);
|
||||
|
||||
/**
|
||||
* 新增塔基检测配置
|
||||
*
|
||||
* @param devTowerProjectConfig 塔基检测配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig);
|
||||
|
||||
/**
|
||||
* 修改塔基检测配置
|
||||
*
|
||||
* @param devTowerProjectConfig 塔基检测配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDevTowerProjectConfig(DevTowerProjectConfig devTowerProjectConfig);
|
||||
|
||||
/**
|
||||
* 删除塔基检测配置
|
||||
*
|
||||
* @param id 塔基检测配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerProjectConfigById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除塔基检测配置
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDevTowerProjectConfigByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 根据设备状态统计设备
|
||||
* @param devTowerProjectConfig
|
||||
* @return
|
||||
*/
|
||||
public List<Map<String, Object>> findtowerConfigGroupOnline(DevTowerProjectConfig devTowerProjectConfig);
|
||||
}
|
|
@ -0,0 +1,211 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.device.mapper.DevTowerDataCollideMapper">
|
||||
|
||||
<resultMap type="DevTowerDataCollide" id="DevTowerDataCollideResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfg_id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="comName" column="com_name" />
|
||||
<result property="deviceKey" column="device_key" />
|
||||
<result property="deviceSource" column="device_source" />
|
||||
<result property="towerId" column="tower_id" />
|
||||
<result property="coordinateX" column="coordinate_x" />
|
||||
<result property="coordinateY" column="coordinate_y" />
|
||||
<result property="frontBrachium" column="front_brachium" />
|
||||
<result property="afterBrachium" column="after_brachium" />
|
||||
<result property="towerBodyHeight" column="tower_body_height" />
|
||||
<result property="height" column="height" />
|
||||
<result property="angle" column="angle" />
|
||||
<result property="range" column="range" />
|
||||
<result property="earlyWarningDistance" column="early_warning_distance" />
|
||||
<result property="alarmWarningDistance" column="alarm_warning_distance" />
|
||||
<result property="contourValue" column="contour_value" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="DevTowerDataCollideDevTowerDataCollideDetailResult" type="DevTowerDataCollide" extends="DevTowerDataCollideResult">
|
||||
<collection property="devTowerDataCollideDetailList" notNullColumn="sub_id" javaType="java.util.List" resultMap="DevTowerDataCollideDetailResult" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="DevTowerDataCollideDetail" id="DevTowerDataCollideDetailResult">
|
||||
<result property="id" column="sub_id" />
|
||||
<result property="collideId" column="sub_collide_id" />
|
||||
<result property="deviceKey" column="sub_device_key" />
|
||||
<result property="deviceSource" column="sub_device_source" />
|
||||
<result property="towerId" column="sub_tower_id" />
|
||||
<result property="coordinateX" column="sub_coordinate_x" />
|
||||
<result property="coordinateY" column="sub_coordinate_y" />
|
||||
<result property="frontBrachium" column="sub_front_brachium" />
|
||||
<result property="afterBrachium" column="sub_after_brachium" />
|
||||
<result property="towerBodyHeight" column="sub_tower_body_height" />
|
||||
<result property="height" column="sub_height" />
|
||||
<result property="angle" column="sub_angle" />
|
||||
<result property="range" column="sub_range" />
|
||||
<result property="collideHorizontalDistance" column="sub_collide_horizontal_distance" />
|
||||
<result property="collideVerticalDistance" column="sub_collide_vertical_distance" />
|
||||
<result property="collideState" column="sub_collide_state" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevTowerDataCollideVo">
|
||||
select dtdc.id, dtdc.cfg_id, dtdc.project_id, dtdc.com_id, sp.dept_name projectName, sd.dept_name com_name, dtdc.device_key, dtdc.device_source, dtdc.tower_id, dtdc.coordinate_x, dtdc.coordinate_y, dtdc.front_brachium, dtdc.after_brachium, dtdc.tower_body_height, dtdc.height, dtdc.angle, dtdc.range, dtdc.early_warning_distance, dtdc.alarm_warning_distance, dtdc.contour_value, dtdc.is_del, dtdc.create_by, dtdc.create_time, dtdc.update_by, dtdc.update_time, dtdc.remark
|
||||
from dev_tower_data_collide dtdc
|
||||
left join sys_dept sp on sp.dept_id = dtdc.project_id
|
||||
left join sys_dept sd on sd.dept_id = dtdc.com_id
|
||||
</sql>
|
||||
|
||||
<select id="selectDevTowerDataCollideList" parameterType="DevTowerDataCollide" resultMap="DevTowerDataCollideResult">
|
||||
<include refid="selectDevTowerDataCollideVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null">and dtdc.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdc.project_id = #{projectId}</if>
|
||||
<if test="comId != null "> and dtdc.com_id = #{comId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="comName != null and comName != ''"> and dtdc.com_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdc.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdc.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdc.tower_id = #{towerId}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and dtdc.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
order by dtdc.id desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevTowerDataCollideById" parameterType="Long" resultMap="DevTowerDataCollideDevTowerDataCollideDetailResult">
|
||||
select a.id, a.project_id, a.com_id, a.device_key, a.device_source, a.tower_id, a.coordinate_x, a.coordinate_y, a.front_brachium, a.after_brachium, a.tower_body_height, a.height, a.angle, a.range, a.early_warning_distance, a.alarm_warning_distance, a.contour_value, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,
|
||||
b.id as sub_id, b.collide_id as sub_collide_id, b.device_key as sub_device_key, b.device_source as sub_device_source, b.tower_id as sub_tower_id, b.coordinate_x as sub_coordinate_x, b.coordinate_y as sub_coordinate_y, b.front_brachium as sub_front_brachium, b.after_brachium as sub_after_brachium, b.tower_body_height as sub_tower_body_height, b.height as sub_height, b.angle as sub_angle, b.range as sub_range, b.collide_horizontal_distance as sub_collide_horizontal_distance, b.collide_vertical_distance as sub_collide_vertical_distance, b.collide_state as sub_collide_state
|
||||
from dev_tower_data_collide a
|
||||
left join dev_tower_data_collide_detail b on b.collide_id = a.id
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevTowerDataCollide" parameterType="DevTowerDataCollide" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_tower_data_collide
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="deviceKey != null">device_key,</if>
|
||||
<if test="deviceSource != null">device_source,</if>
|
||||
<if test="towerId != null">tower_id,</if>
|
||||
<if test="coordinateX != null">coordinate_x,</if>
|
||||
<if test="coordinateY != null">coordinate_y,</if>
|
||||
<if test="frontBrachium != null">front_brachium,</if>
|
||||
<if test="afterBrachium != null">after_brachium,</if>
|
||||
<if test="towerBodyHeight != null">tower_body_height,</if>
|
||||
<if test="height != null">height,</if>
|
||||
<if test="angle != null">angle,</if>
|
||||
<if test="range != null">`range`,</if>
|
||||
<if test="earlyWarningDistance != null">early_warning_distance,</if>
|
||||
<if test="alarmWarningDistance != null">alarm_warning_distance,</if>
|
||||
<if test="contourValue != null">contour_value,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="deviceKey != null">#{deviceKey},</if>
|
||||
<if test="deviceSource != null">#{deviceSource},</if>
|
||||
<if test="towerId != null">#{towerId},</if>
|
||||
<if test="coordinateX != null">#{coordinateX},</if>
|
||||
<if test="coordinateY != null">#{coordinateY},</if>
|
||||
<if test="frontBrachium != null">#{frontBrachium},</if>
|
||||
<if test="afterBrachium != null">#{afterBrachium},</if>
|
||||
<if test="towerBodyHeight != null">#{towerBodyHeight},</if>
|
||||
<if test="height != null">#{height},</if>
|
||||
<if test="angle != null">#{angle},</if>
|
||||
<if test="range != null">#{range},</if>
|
||||
<if test="earlyWarningDistance != null">#{earlyWarningDistance},</if>
|
||||
<if test="alarmWarningDistance != null">#{alarmWarningDistance},</if>
|
||||
<if test="contourValue != null">#{contourValue},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevTowerDataCollide" parameterType="DevTowerDataCollide">
|
||||
update dev_tower_data_collide
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id = #{cfgId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="deviceKey != null">device_key = #{deviceKey},</if>
|
||||
<if test="deviceSource != null">device_source = #{deviceSource},</if>
|
||||
<if test="towerId != null">tower_id = #{towerId},</if>
|
||||
<if test="coordinateX != null">coordinate_x = #{coordinateX},</if>
|
||||
<if test="coordinateY != null">coordinate_y = #{coordinateY},</if>
|
||||
<if test="frontBrachium != null">front_brachium = #{frontBrachium},</if>
|
||||
<if test="afterBrachium != null">after_brachium = #{afterBrachium},</if>
|
||||
<if test="towerBodyHeight != null">tower_body_height = #{towerBodyHeight},</if>
|
||||
<if test="height != null">height = #{height},</if>
|
||||
<if test="angle != null">angle = #{angle},</if>
|
||||
<if test="range != null">`range` = #{range},</if>
|
||||
<if test="earlyWarningDistance != null">early_warning_distance = #{earlyWarningDistance},</if>
|
||||
<if test="alarmWarningDistance != null">alarm_warning_distance = #{alarmWarningDistance},</if>
|
||||
<if test="contourValue != null">contour_value = #{contourValue},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevTowerDataCollideById" parameterType="Long">
|
||||
delete from dev_tower_data_collide where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataCollideByIds" parameterType="String">
|
||||
delete from dev_tower_data_collide where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataCollideDetailByCollideIds" parameterType="String">
|
||||
delete from dev_tower_data_collide_detail where collide_id in
|
||||
<foreach item="collideId" collection="array" open="(" separator="," close=")">
|
||||
#{collideId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataCollideDetailByCollideId" parameterType="Long">
|
||||
delete from dev_tower_data_collide_detail where collide_id = #{collideId}
|
||||
</delete>
|
||||
|
||||
<insert id="batchDevTowerDataCollideDetail">
|
||||
insert into dev_tower_data_collide_detail( id, collide_id, device_key, device_source, tower_id, coordinate_x, coordinate_y, front_brachium, after_brachium, tower_body_height, height, angle, range, collide_horizontal_distance, collide_vertical_distance, collide_state) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.collideId}, #{item.deviceKey}, #{item.deviceSource}, #{item.towerId}, #{item.coordinateX}, #{item.coordinateY}, #{item.frontBrachium}, #{item.afterBrachium}, #{item.towerBodyHeight}, #{item.height}, #{item.angle}, #{item.range}, #{item.collideHorizontalDistance}, #{item.collideVerticalDistance}, #{item.collideState})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="findCollideCountByDeviceKey" parameterType="DevTowerDataRound" resultType="Int">
|
||||
select count(1) as total from dev_tower_data_collide
|
||||
<where>
|
||||
<if test="deviceKey != null and deviceKey != ''">and cfg_id = (select dc.id from dev_tower_project_config dc where dc.device_sn=#{deviceKey}) and device_key = #{deviceKey}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and date(create_time) between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,251 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.device.mapper.DevTowerDataLimitMapper">
|
||||
|
||||
<resultMap type="DevTowerDataLimit" id="DevTowerDataLimitResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfg_id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="comName" column="com_name" />
|
||||
<result property="deviceKey" column="device_key" />
|
||||
<result property="deviceSource" column="device_source" />
|
||||
<result property="towerId" column="tower_id" />
|
||||
<result property="windSpeedWarning" column="wind_speed_warning" />
|
||||
<result property="windSpeedAlarm" column="wind_speed_alarm" />
|
||||
<result property="loadWarning" column="load_warning" />
|
||||
<result property="loadAlarm" column="load_alarm" />
|
||||
<result property="momentWarning" column="moment_warning" />
|
||||
<result property="momentAlarm" column="moment_alarm" />
|
||||
<result property="highLimitWarning" column="high_limit_warning" />
|
||||
<result property="highLimitAlarm" column="high_limit_alarm" />
|
||||
<result property="lowLimitWarning" column="low_limit_warning" />
|
||||
<result property="lowLimitAlarm" column="low_limit_alarm" />
|
||||
<result property="leftLimitWarning" column="left_limit_warning" />
|
||||
<result property="leftLimitAlarm" column="left_limit_alarm" />
|
||||
<result property="rightLimitWarning" column="right_limit_warning" />
|
||||
<result property="rightLimitAlarm" column="right_limit_alarm" />
|
||||
<result property="frontLimitWarning" column="front_limit_warning" />
|
||||
<result property="frontLimitAlarm" column="front_limit_alarm" />
|
||||
<result property="backLimitWarning" column="back_limit_warning" />
|
||||
<result property="backLimitAlarm" column="back_limit_alarm" />
|
||||
<result property="collisionAngleWarning" column="collision_angle_warning" />
|
||||
<result property="collisionAngleAlarm" column="collision_angle_alarm" />
|
||||
<result property="collisionDistanceWarning" column="collision_distance_warning" />
|
||||
<result property="collisionDistanceAlarm" column="collision_distance_alarm" />
|
||||
<result property="hDistanceWarning" column="h_distance_warning" />
|
||||
<result property="hDistanceAlarm" column="h_distance_alarm" />
|
||||
<result property="vDistanceWarning" column="v_distance_warning" />
|
||||
<result property="vDistanceAlarm" column="v_distance_alarm" />
|
||||
<result property="leanWarning" column="lean_warning" />
|
||||
<result property="leanAlarm" column="lean_alarm" />
|
||||
<result property="rangeLimitStart" column="range_limit_start" />
|
||||
<result property="rangeLimitEnd" column="range_limit_end" />
|
||||
<result property="heightLimitStart" column="height_limit_start" />
|
||||
<result property="heightLimitEnd" column="height_limit_end" />
|
||||
<result property="rotationLimitStart" column="rotation_limit_start" />
|
||||
<result property="rotationLimitEnd" column="rotation_limit_end" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevTowerDataLimitVo">
|
||||
select dtdl.id, dtdl.cfg_id, dtdl.project_id, dtdl.com_id, sp.dept_name projectName, sd.dept_name com_name, dtdl.device_key, dtdl.device_source, dtdl.tower_id, dtdl.wind_speed_warning, dtdl.wind_speed_alarm, dtdl.load_warning, dtdl.load_alarm, dtdl.moment_warning, dtdl.moment_alarm, dtdl.high_limit_warning, dtdl.high_limit_alarm, dtdl.low_limit_warning, dtdl.low_limit_alarm, dtdl.left_limit_warning, dtdl.left_limit_alarm, dtdl.right_limit_warning, dtdl.right_limit_alarm, dtdl.front_limit_warning, dtdl.front_limit_alarm, dtdl.back_limit_warning, dtdl.back_limit_alarm, dtdl.collision_angle_warning, dtdl.collision_angle_alarm, dtdl.collision_distance_warning, dtdl.collision_distance_alarm, dtdl.h_distance_warning, dtdl.h_distance_alarm, dtdl.v_distance_warning, dtdl.v_distance_alarm, dtdl.lean_warning, dtdl.lean_alarm, dtdl.range_limit_start, dtdl.range_limit_end, dtdl.height_limit_start, dtdl.height_limit_end, dtdl.rotation_limit_start, dtdl.rotation_limit_end, dtdl.is_del, dtdl.create_by, dtdl.create_time, dtdl.update_by, dtdl.update_time, dtdl.remark
|
||||
from dev_tower_data_limit dtdl
|
||||
left join sys_dept sp on sp.dept_id = dtdl.project_id
|
||||
left join sys_dept sd on sd.dept_id = dtdl.com_id
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectDevTowerDataLimitList" parameterType="DevTowerDataLimit" resultMap="DevTowerDataLimitResult">
|
||||
<include refid="selectDevTowerDataLimitVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null">and dtdl.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdl.project_id = #{projectId}</if>
|
||||
<if test="comId != null "> and dtdl.com_id = #{comId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdl.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="comName != null and comName != ''"> and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdl.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdl.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdl.tower_id = #{towerId}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and dtdl.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
order by dtdl.id desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevTowerDataLimitById" parameterType="Long" resultMap="DevTowerDataLimitResult">
|
||||
<include refid="selectDevTowerDataLimitVo"/>
|
||||
where dtdl.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevTowerDataLimit" parameterType="DevTowerDataLimit" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_tower_data_limit
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="deviceKey != null">device_key,</if>
|
||||
<if test="deviceSource != null">device_source,</if>
|
||||
<if test="towerId != null">tower_id,</if>
|
||||
<if test="windSpeedWarning != null">wind_speed_warning,</if>
|
||||
<if test="windSpeedAlarm != null">wind_speed_alarm,</if>
|
||||
<if test="loadWarning != null">load_warning,</if>
|
||||
<if test="loadAlarm != null">load_alarm,</if>
|
||||
<if test="momentWarning != null">moment_warning,</if>
|
||||
<if test="momentAlarm != null">moment_alarm,</if>
|
||||
<if test="highLimitWarning != null">high_limit_warning,</if>
|
||||
<if test="highLimitAlarm != null">high_limit_alarm,</if>
|
||||
<if test="lowLimitWarning != null">low_limit_warning,</if>
|
||||
<if test="lowLimitAlarm != null">low_limit_alarm,</if>
|
||||
<if test="leftLimitWarning != null">left_limit_warning,</if>
|
||||
<if test="leftLimitAlarm != null">left_limit_alarm,</if>
|
||||
<if test="rightLimitWarning != null">right_limit_warning,</if>
|
||||
<if test="rightLimitAlarm != null">right_limit_alarm,</if>
|
||||
<if test="frontLimitWarning != null">front_limit_warning,</if>
|
||||
<if test="frontLimitAlarm != null">front_limit_alarm,</if>
|
||||
<if test="backLimitWarning != null">back_limit_warning,</if>
|
||||
<if test="backLimitAlarm != null">back_limit_alarm,</if>
|
||||
<if test="collisionAngleWarning != null">collision_angle_warning,</if>
|
||||
<if test="collisionAngleAlarm != null">collision_angle_alarm,</if>
|
||||
<if test="collisionDistanceWarning != null">collision_distance_warning,</if>
|
||||
<if test="collisionDistanceAlarm != null">collision_distance_alarm,</if>
|
||||
<if test="hDistanceWarning != null">h_distance_warning,</if>
|
||||
<if test="hDistanceAlarm != null">h_distance_alarm,</if>
|
||||
<if test="vDistanceWarning != null">v_distance_warning,</if>
|
||||
<if test="vDistanceAlarm != null">v_distance_alarm,</if>
|
||||
<if test="leanWarning != null">lean_warning,</if>
|
||||
<if test="leanAlarm != null">lean_alarm,</if>
|
||||
<if test="rangeLimitStart != null">range_limit_start,</if>
|
||||
<if test="rangeLimitEnd != null">range_limit_end,</if>
|
||||
<if test="heightLimitStart != null">height_limit_start,</if>
|
||||
<if test="heightLimitEnd != null">height_limit_end,</if>
|
||||
<if test="rotationLimitStart != null">rotation_limit_start,</if>
|
||||
<if test="rotationLimitEnd != null">rotation_limit_end,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="deviceKey != null">#{deviceKey},</if>
|
||||
<if test="deviceSource != null">#{deviceSource},</if>
|
||||
<if test="towerId != null">#{towerId},</if>
|
||||
<if test="windSpeedWarning != null">#{windSpeedWarning},</if>
|
||||
<if test="windSpeedAlarm != null">#{windSpeedAlarm},</if>
|
||||
<if test="loadWarning != null">#{loadWarning},</if>
|
||||
<if test="loadAlarm != null">#{loadAlarm},</if>
|
||||
<if test="momentWarning != null">#{momentWarning},</if>
|
||||
<if test="momentAlarm != null">#{momentAlarm},</if>
|
||||
<if test="highLimitWarning != null">#{highLimitWarning},</if>
|
||||
<if test="highLimitAlarm != null">#{highLimitAlarm},</if>
|
||||
<if test="lowLimitWarning != null">#{lowLimitWarning},</if>
|
||||
<if test="lowLimitAlarm != null">#{lowLimitAlarm},</if>
|
||||
<if test="leftLimitWarning != null">#{leftLimitWarning},</if>
|
||||
<if test="leftLimitAlarm != null">#{leftLimitAlarm},</if>
|
||||
<if test="rightLimitWarning != null">#{rightLimitWarning},</if>
|
||||
<if test="rightLimitAlarm != null">#{rightLimitAlarm},</if>
|
||||
<if test="frontLimitWarning != null">#{frontLimitWarning},</if>
|
||||
<if test="frontLimitAlarm != null">#{frontLimitAlarm},</if>
|
||||
<if test="backLimitWarning != null">#{backLimitWarning},</if>
|
||||
<if test="backLimitAlarm != null">#{backLimitAlarm},</if>
|
||||
<if test="collisionAngleWarning != null">#{collisionAngleWarning},</if>
|
||||
<if test="collisionAngleAlarm != null">#{collisionAngleAlarm},</if>
|
||||
<if test="collisionDistanceWarning != null">#{collisionDistanceWarning},</if>
|
||||
<if test="collisionDistanceAlarm != null">#{collisionDistanceAlarm},</if>
|
||||
<if test="hDistanceWarning != null">#{hDistanceWarning},</if>
|
||||
<if test="hDistanceAlarm != null">#{hDistanceAlarm},</if>
|
||||
<if test="vDistanceWarning != null">#{vDistanceWarning},</if>
|
||||
<if test="vDistanceAlarm != null">#{vDistanceAlarm},</if>
|
||||
<if test="leanWarning != null">#{leanWarning},</if>
|
||||
<if test="leanAlarm != null">#{leanAlarm},</if>
|
||||
<if test="rangeLimitStart != null">#{rangeLimitStart},</if>
|
||||
<if test="rangeLimitEnd != null">#{rangeLimitEnd},</if>
|
||||
<if test="heightLimitStart != null">#{heightLimitStart},</if>
|
||||
<if test="heightLimitEnd != null">#{heightLimitEnd},</if>
|
||||
<if test="rotationLimitStart != null">#{rotationLimitStart},</if>
|
||||
<if test="rotationLimitEnd != null">#{rotationLimitEnd},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevTowerDataLimit" parameterType="DevTowerDataLimit">
|
||||
update dev_tower_data_limit
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id = #{cfgId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="deviceKey != null">device_key = #{deviceKey},</if>
|
||||
<if test="deviceSource != null">device_source = #{deviceSource},</if>
|
||||
<if test="towerId != null">tower_id = #{towerId},</if>
|
||||
<if test="windSpeedWarning != null">wind_speed_warning = #{windSpeedWarning},</if>
|
||||
<if test="windSpeedAlarm != null">wind_speed_alarm = #{windSpeedAlarm},</if>
|
||||
<if test="loadWarning != null">load_warning = #{loadWarning},</if>
|
||||
<if test="loadAlarm != null">load_alarm = #{loadAlarm},</if>
|
||||
<if test="momentWarning != null">moment_warning = #{momentWarning},</if>
|
||||
<if test="momentAlarm != null">moment_alarm = #{momentAlarm},</if>
|
||||
<if test="highLimitWarning != null">high_limit_warning = #{highLimitWarning},</if>
|
||||
<if test="highLimitAlarm != null">high_limit_alarm = #{highLimitAlarm},</if>
|
||||
<if test="lowLimitWarning != null">low_limit_warning = #{lowLimitWarning},</if>
|
||||
<if test="lowLimitAlarm != null">low_limit_alarm = #{lowLimitAlarm},</if>
|
||||
<if test="leftLimitWarning != null">left_limit_warning = #{leftLimitWarning},</if>
|
||||
<if test="leftLimitAlarm != null">left_limit_alarm = #{leftLimitAlarm},</if>
|
||||
<if test="rightLimitWarning != null">right_limit_warning = #{rightLimitWarning},</if>
|
||||
<if test="rightLimitAlarm != null">right_limit_alarm = #{rightLimitAlarm},</if>
|
||||
<if test="frontLimitWarning != null">front_limit_warning = #{frontLimitWarning},</if>
|
||||
<if test="frontLimitAlarm != null">front_limit_alarm = #{frontLimitAlarm},</if>
|
||||
<if test="backLimitWarning != null">back_limit_warning = #{backLimitWarning},</if>
|
||||
<if test="backLimitAlarm != null">back_limit_alarm = #{backLimitAlarm},</if>
|
||||
<if test="collisionAngleWarning != null">collision_angle_warning = #{collisionAngleWarning},</if>
|
||||
<if test="collisionAngleAlarm != null">collision_angle_alarm = #{collisionAngleAlarm},</if>
|
||||
<if test="collisionDistanceWarning != null">collision_distance_warning = #{collisionDistanceWarning},</if>
|
||||
<if test="collisionDistanceAlarm != null">collision_distance_alarm = #{collisionDistanceAlarm},</if>
|
||||
<if test="hDistanceWarning != null">h_distance_warning = #{hDistanceWarning},</if>
|
||||
<if test="hDistanceAlarm != null">h_distance_alarm = #{hDistanceAlarm},</if>
|
||||
<if test="vDistanceWarning != null">v_distance_warning = #{vDistanceWarning},</if>
|
||||
<if test="vDistanceAlarm != null">v_distance_alarm = #{vDistanceAlarm},</if>
|
||||
<if test="leanWarning != null">lean_warning = #{leanWarning},</if>
|
||||
<if test="leanAlarm != null">lean_alarm = #{leanAlarm},</if>
|
||||
<if test="rangeLimitStart != null">range_limit_start = #{rangeLimitStart},</if>
|
||||
<if test="rangeLimitEnd != null">range_limit_end = #{rangeLimitEnd},</if>
|
||||
<if test="heightLimitStart != null">height_limit_start = #{heightLimitStart},</if>
|
||||
<if test="heightLimitEnd != null">height_limit_end = #{heightLimitEnd},</if>
|
||||
<if test="rotationLimitStart != null">rotation_limit_start = #{rotationLimitStart},</if>
|
||||
<if test="rotationLimitEnd != null">rotation_limit_end = #{rotationLimitEnd},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevTowerDataLimitById" parameterType="Long">
|
||||
delete from dev_tower_data_limit where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataLimitByIds" parameterType="String">
|
||||
delete from dev_tower_data_limit where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,218 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.device.mapper.DevTowerDataLocalMapper">
|
||||
|
||||
<resultMap type="DevTowerDataLocal" id="DevTowerDataLocalResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfg_id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="comName" column="com_name" />
|
||||
<result property="deviceKey" column="device_key" />
|
||||
<result property="deviceSource" column="device_source" />
|
||||
<result property="towerId" column="tower_id" />
|
||||
<result property="rangeNearEndAdValue" column="range_near_end_ad_value" />
|
||||
<result property="rangeNearEndRealityValue" column="range_near_end_reality_value" />
|
||||
<result property="rangeFarEndAdValue" column="range_far_end_ad_value" />
|
||||
<result property="rangeFarEndRealityValue" column="range_far_end_reality_value" />
|
||||
<result property="highNearEndAdValue" column="high_near_end_ad_value" />
|
||||
<result property="highNearEndRealityValue" column="high_near_end_reality_value" />
|
||||
<result property="highFarEndAdValue" column="high_far_end_ad_value" />
|
||||
<result property="highFarEndRealityValue" column="high_far_end_reality_value" />
|
||||
<result property="emptyWeightAdValue" column="empty_weight_ad_value" />
|
||||
<result property="emptyWeightRealityValue" column="empty_weight_reality_value" />
|
||||
<result property="loadWeightAdValue" column="load_weight_ad_value" />
|
||||
<result property="loadWeightRealityValue" column="load_weight_reality_value" />
|
||||
<result property="rotationStartAdValue" column="rotation_start_ad_value" />
|
||||
<result property="rotationStartRealityValue" column="rotation_start_reality_value" />
|
||||
<result property="rotationEndAdValue" column="rotation_end_ad_value" />
|
||||
<result property="rotationEndRealityValue" column="rotation_end_reality_value" />
|
||||
<result property="windSpeedFactor" column="wind_speed_factor" />
|
||||
<result property="tiltFactor" column="tilt_factor" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevTowerDataLocalVo">
|
||||
select dtdl.id,
|
||||
dtdl.cfg_id,
|
||||
dtdl.project_id,
|
||||
dtdl.com_id,
|
||||
sp.dept_name projectName,
|
||||
sd.dept_name com_name,
|
||||
dtdl.device_key,
|
||||
dtdl.device_source,
|
||||
dtdl.tower_id,
|
||||
dtdl.range_near_end_ad_value,
|
||||
dtdl.range_near_end_reality_value,
|
||||
dtdl.range_far_end_ad_value,
|
||||
dtdl.range_far_end_reality_value,
|
||||
dtdl.high_near_end_ad_value,
|
||||
dtdl.high_near_end_reality_value,
|
||||
dtdl.high_far_end_ad_value,
|
||||
dtdl.high_far_end_reality_value,
|
||||
dtdl.empty_weight_ad_value,
|
||||
dtdl.empty_weight_reality_value,
|
||||
dtdl.load_weight_ad_value,
|
||||
dtdl.load_weight_reality_value,
|
||||
dtdl.rotation_start_ad_value,
|
||||
dtdl.rotation_start_reality_value,
|
||||
dtdl.rotation_end_ad_value,
|
||||
dtdl.rotation_end_reality_value,
|
||||
dtdl.wind_speed_factor,
|
||||
dtdl.tilt_factor,
|
||||
dtdl.is_del,
|
||||
dtdl.create_by,
|
||||
dtdl.create_time,
|
||||
dtdl.update_by,
|
||||
dtdl.update_time,
|
||||
dtdl.remark
|
||||
from dev_tower_data_local dtdl
|
||||
left join sys_dept sp on sp.dept_id = dtdl.project_id
|
||||
left join sys_dept sd on sd.dept_id = dtdl.com_id
|
||||
</sql>
|
||||
|
||||
<select id="selectDevTowerDataLocalList" parameterType="DevTowerDataLocal" resultMap="DevTowerDataLocalResult">
|
||||
<include refid="selectDevTowerDataLocalVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null">and dtdl.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdl.project_id = #{projectId}</if>
|
||||
<if test="comId != null "> and dtdl.com_id = #{comId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdl.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="comName != null and comName != ''"> and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdl.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdl.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdl.tower_id = #{towerId}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and dtdl.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
order by dtdl.id desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevTowerDataLocalById" parameterType="Long" resultMap="DevTowerDataLocalResult">
|
||||
<include refid="selectDevTowerDataLocalVo"/>
|
||||
where dtdl.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevTowerDataLocal" parameterType="DevTowerDataLocal" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_tower_data_local
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="deviceKey != null">device_key,</if>
|
||||
<if test="deviceSource != null">device_source,</if>
|
||||
<if test="towerId != null">tower_id,</if>
|
||||
<if test="rangeNearEndAdValue != null">range_near_end_ad_value,</if>
|
||||
<if test="rangeNearEndRealityValue != null">range_near_end_reality_value,</if>
|
||||
<if test="rangeFarEndAdValue != null">range_far_end_ad_value,</if>
|
||||
<if test="rangeFarEndRealityValue != null">range_far_end_reality_value,</if>
|
||||
<if test="highNearEndAdValue != null">high_near_end_ad_value,</if>
|
||||
<if test="highNearEndRealityValue != null">high_near_end_reality_value,</if>
|
||||
<if test="highFarEndAdValue != null">high_far_end_ad_value,</if>
|
||||
<if test="highFarEndRealityValue != null">high_far_end_reality_value,</if>
|
||||
<if test="emptyWeightAdValue != null">empty_weight_ad_value,</if>
|
||||
<if test="emptyWeightRealityValue != null">empty_weight_reality_value,</if>
|
||||
<if test="loadWeightAdValue != null">load_weight_ad_value,</if>
|
||||
<if test="loadWeightRealityValue != null">load_weight_reality_value,</if>
|
||||
<if test="rotationStartAdValue != null">rotation_start_ad_value,</if>
|
||||
<if test="rotationStartRealityValue != null">rotation_start_reality_value,</if>
|
||||
<if test="rotationEndAdValue != null">rotation_end_ad_value,</if>
|
||||
<if test="rotationEndRealityValue != null">rotation_end_reality_value,</if>
|
||||
<if test="windSpeedFactor != null">wind_speed_factor,</if>
|
||||
<if test="tiltFactor != null">tilt_factor,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="deviceKey != null">#{deviceKey},</if>
|
||||
<if test="deviceSource != null">#{deviceSource},</if>
|
||||
<if test="towerId != null">#{towerId},</if>
|
||||
<if test="rangeNearEndAdValue != null">#{rangeNearEndAdValue},</if>
|
||||
<if test="rangeNearEndRealityValue != null">#{rangeNearEndRealityValue},</if>
|
||||
<if test="rangeFarEndAdValue != null">#{rangeFarEndAdValue},</if>
|
||||
<if test="rangeFarEndRealityValue != null">#{rangeFarEndRealityValue},</if>
|
||||
<if test="highNearEndAdValue != null">#{highNearEndAdValue},</if>
|
||||
<if test="highNearEndRealityValue != null">#{highNearEndRealityValue},</if>
|
||||
<if test="highFarEndAdValue != null">#{highFarEndAdValue},</if>
|
||||
<if test="highFarEndRealityValue != null">#{highFarEndRealityValue},</if>
|
||||
<if test="emptyWeightAdValue != null">#{emptyWeightAdValue},</if>
|
||||
<if test="emptyWeightRealityValue != null">#{emptyWeightRealityValue},</if>
|
||||
<if test="loadWeightAdValue != null">#{loadWeightAdValue},</if>
|
||||
<if test="loadWeightRealityValue != null">#{loadWeightRealityValue},</if>
|
||||
<if test="rotationStartAdValue != null">#{rotationStartAdValue},</if>
|
||||
<if test="rotationStartRealityValue != null">#{rotationStartRealityValue},</if>
|
||||
<if test="rotationEndAdValue != null">#{rotationEndAdValue},</if>
|
||||
<if test="rotationEndRealityValue != null">#{rotationEndRealityValue},</if>
|
||||
<if test="windSpeedFactor != null">#{windSpeedFactor},</if>
|
||||
<if test="tiltFactor != null">#{tiltFactor},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevTowerDataLocal" parameterType="DevTowerDataLocal">
|
||||
update dev_tower_data_local
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id = #{cfgId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="deviceKey != null">device_key = #{deviceKey},</if>
|
||||
<if test="deviceSource != null">device_source = #{deviceSource},</if>
|
||||
<if test="towerId != null">tower_id = #{towerId},</if>
|
||||
<if test="rangeNearEndAdValue != null">range_near_end_ad_value = #{rangeNearEndAdValue},</if>
|
||||
<if test="rangeNearEndRealityValue != null">range_near_end_reality_value = #{rangeNearEndRealityValue},</if>
|
||||
<if test="rangeFarEndAdValue != null">range_far_end_ad_value = #{rangeFarEndAdValue},</if>
|
||||
<if test="rangeFarEndRealityValue != null">range_far_end_reality_value = #{rangeFarEndRealityValue},</if>
|
||||
<if test="highNearEndAdValue != null">high_near_end_ad_value = #{highNearEndAdValue},</if>
|
||||
<if test="highNearEndRealityValue != null">high_near_end_reality_value = #{highNearEndRealityValue},</if>
|
||||
<if test="highFarEndAdValue != null">high_far_end_ad_value = #{highFarEndAdValue},</if>
|
||||
<if test="highFarEndRealityValue != null">high_far_end_reality_value = #{highFarEndRealityValue},</if>
|
||||
<if test="emptyWeightAdValue != null">empty_weight_ad_value = #{emptyWeightAdValue},</if>
|
||||
<if test="emptyWeightRealityValue != null">empty_weight_reality_value = #{emptyWeightRealityValue},</if>
|
||||
<if test="loadWeightAdValue != null">load_weight_ad_value = #{loadWeightAdValue},</if>
|
||||
<if test="loadWeightRealityValue != null">load_weight_reality_value = #{loadWeightRealityValue},</if>
|
||||
<if test="rotationStartAdValue != null">rotation_start_ad_value = #{rotationStartAdValue},</if>
|
||||
<if test="rotationStartRealityValue != null">rotation_start_reality_value = #{rotationStartRealityValue},</if>
|
||||
<if test="rotationEndAdValue != null">rotation_end_ad_value = #{rotationEndAdValue},</if>
|
||||
<if test="rotationEndRealityValue != null">rotation_end_reality_value = #{rotationEndRealityValue},</if>
|
||||
<if test="windSpeedFactor != null">wind_speed_factor = #{windSpeedFactor},</if>
|
||||
<if test="tiltFactor != null">tilt_factor = #{tiltFactor},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevTowerDataLocalById" parameterType="Long">
|
||||
delete from dev_tower_data_local where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataLocalByIds" parameterType="String">
|
||||
delete from dev_tower_data_local where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,273 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.device.mapper.DevTowerDataRoundMapper">
|
||||
|
||||
<resultMap type="DevTowerDataRound" id="DevTowerDataRoundResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfg_id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="comName" column="com_name" />
|
||||
<result property="deviceKey" column="device_key" />
|
||||
<result property="deviceSource" column="device_source" />
|
||||
<result property="towerId" column="tower_id" />
|
||||
<result property="workStartTime" column="work_start_time" />
|
||||
<result property="workEndTime" column="work_end_time" />
|
||||
<result property="minHeight" column="min_height" />
|
||||
<result property="maxHeight" column="max_height" />
|
||||
<result property="minRange" column="min_range" />
|
||||
<result property="maxRange" column="max_range" />
|
||||
<result property="startHeight" column="start_height" />
|
||||
<result property="endHeight" column="end_height" />
|
||||
<result property="startRange" column="start_range" />
|
||||
<result property="endRange" column="end_range" />
|
||||
<result property="startRotation" column="start_rotation" />
|
||||
<result property="endRotation" column="end_rotation" />
|
||||
<result property="maxLoad" column="max_load" />
|
||||
<result property="maxLoadPercent" column="max_load_percent" />
|
||||
<result property="maxMoment" column="max_moment" />
|
||||
<result property="maxMomentPercent" column="max_moment_percent" />
|
||||
<result property="startWindSpeed" column="start_wind_speed" />
|
||||
<result property="endWindSpeed" column="end_wind_speed" />
|
||||
<result property="startWindSpeedPercent" column="start_wind_speed_percent" />
|
||||
<result property="endWindSpeedPercent" column="end_wind_speed_percent" />
|
||||
<result property="startLeanAngleX" column="start_lean_angle_x" />
|
||||
<result property="endLeanAngleX" column="end_lean_angle_x" />
|
||||
<result property="startLeanAngleY" column="start_lean_angle_y" />
|
||||
<result property="endLeanAngleY" column="end_lean_angle_y" />
|
||||
<result property="warnings" column="warnings" />
|
||||
<result property="isAlarm" column="is_alarm" />
|
||||
<result property="isOverload" column="is_overload" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevTowerDataRoundVo">
|
||||
select dtdr.id,
|
||||
dtdr.cfg_id,
|
||||
dtdr.project_id,
|
||||
dtdr.com_id,
|
||||
sp.dept_name projectName,
|
||||
sd.dept_name com_name,
|
||||
dtdr.device_key,
|
||||
dtdr.device_source,
|
||||
dtdr.tower_id,
|
||||
dtdr.work_start_time,
|
||||
dtdr.work_end_time,
|
||||
dtdr.min_height,
|
||||
dtdr.max_height,
|
||||
dtdr.min_range,
|
||||
dtdr.max_range,
|
||||
dtdr.start_height,
|
||||
dtdr.end_height,
|
||||
dtdr.start_range,
|
||||
dtdr.end_range,
|
||||
dtdr.start_rotation,
|
||||
dtdr.end_rotation,
|
||||
dtdr.max_load,
|
||||
dtdr.max_load_percent,
|
||||
dtdr.max_moment,
|
||||
dtdr.max_moment_percent,
|
||||
dtdr.start_wind_speed,
|
||||
dtdr.end_wind_speed,
|
||||
dtdr.start_wind_speed_percent,
|
||||
dtdr.end_wind_speed_percent,
|
||||
dtdr.start_lean_angle_x,
|
||||
dtdr.end_lean_angle_x,
|
||||
dtdr.start_lean_angle_y,
|
||||
dtdr.end_lean_angle_y,
|
||||
dtdr.warnings,
|
||||
dtdr.is_alarm,
|
||||
dtdr.is_del,
|
||||
dtdr.create_by,
|
||||
dtdr.create_time,
|
||||
dtdr.update_by,
|
||||
dtdr.update_time,
|
||||
dtdr.remark
|
||||
from dev_tower_data_round dtdr
|
||||
left join sys_dept sp on sp.dept_id = dtdr.project_id
|
||||
left join sys_dept sd on sd.dept_id = dtdr.com_id
|
||||
</sql>
|
||||
|
||||
<select id="selectDevTowerDataRoundList" parameterType="DevTowerDataRound" resultMap="DevTowerDataRoundResult">
|
||||
<include refid="selectDevTowerDataRoundVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null">and dtdr.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdr.project_id = #{projectId}</if>
|
||||
<if test="comId != null "> and dtdr.com_id = #{comId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdr.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="comName != null and comName != ''"> and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdr.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdr.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdr.tower_id = #{towerId}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and dtdr.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
order by dtdr.id desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevTowerDataRoundById" parameterType="Long" resultMap="DevTowerDataRoundResult">
|
||||
<include refid="selectDevTowerDataRoundVo"/>
|
||||
where dtdr.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevTowerDataRound" parameterType="DevTowerDataRound" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_tower_data_round
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="deviceKey != null">device_key,</if>
|
||||
<if test="deviceSource != null">device_source,</if>
|
||||
<if test="towerId != null">tower_id,</if>
|
||||
<if test="workStartTime != null">work_start_time,</if>
|
||||
<if test="workEndTime != null">work_end_time,</if>
|
||||
<if test="minHeight != null">min_height,</if>
|
||||
<if test="maxHeight != null">max_height,</if>
|
||||
<if test="minRange != null">min_range,</if>
|
||||
<if test="maxRange != null">max_range,</if>
|
||||
<if test="startHeight != null">start_height,</if>
|
||||
<if test="endHeight != null">end_height,</if>
|
||||
<if test="startRange != null">start_range,</if>
|
||||
<if test="endRange != null">end_range,</if>
|
||||
<if test="startRotation != null">start_rotation,</if>
|
||||
<if test="endRotation != null">end_rotation,</if>
|
||||
<if test="maxLoad != null">max_load,</if>
|
||||
<if test="maxLoadPercent != null">max_load_percent,</if>
|
||||
<if test="maxMoment != null">max_moment,</if>
|
||||
<if test="maxMomentPercent != null">max_moment_percent,</if>
|
||||
<if test="startWindSpeed != null">start_wind_speed,</if>
|
||||
<if test="endWindSpeed != null">end_wind_speed,</if>
|
||||
<if test="startWindSpeedPercent != null">start_wind_speed_percent,</if>
|
||||
<if test="endWindSpeedPercent != null">end_wind_speed_percent,</if>
|
||||
<if test="startLeanAngleX != null">start_lean_angle_x,</if>
|
||||
<if test="endLeanAngleX != null">end_lean_angle_x,</if>
|
||||
<if test="startLeanAngleY != null">start_lean_angle_y,</if>
|
||||
<if test="endLeanAngleY != null">end_lean_angle_y,</if>
|
||||
<if test="warnings != null">warnings,</if>
|
||||
<if test="isAlarm != null">is_alarm,</if>
|
||||
<if test="isOverload != null">is_overload,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="deviceKey != null">#{deviceKey},</if>
|
||||
<if test="deviceSource != null">#{deviceSource},</if>
|
||||
<if test="towerId != null">#{towerId},</if>
|
||||
<if test="workStartTime != null">#{workStartTime},</if>
|
||||
<if test="workEndTime != null">#{workEndTime},</if>
|
||||
<if test="minHeight != null">#{minHeight},</if>
|
||||
<if test="maxHeight != null">#{maxHeight},</if>
|
||||
<if test="minRange != null">#{minRange},</if>
|
||||
<if test="maxRange != null">#{maxRange},</if>
|
||||
<if test="startHeight != null">#{startHeight},</if>
|
||||
<if test="endHeight != null">#{endHeight},</if>
|
||||
<if test="startRange != null">#{startRange},</if>
|
||||
<if test="endRange != null">#{endRange},</if>
|
||||
<if test="startRotation != null">#{startRotation},</if>
|
||||
<if test="endRotation != null">#{endRotation},</if>
|
||||
<if test="maxLoad != null">#{maxLoad},</if>
|
||||
<if test="maxLoadPercent != null">#{maxLoadPercent},</if>
|
||||
<if test="maxMoment != null">#{maxMoment},</if>
|
||||
<if test="maxMomentPercent != null">#{maxMomentPercent},</if>
|
||||
<if test="startWindSpeed != null">#{startWindSpeed},</if>
|
||||
<if test="endWindSpeed != null">#{endWindSpeed},</if>
|
||||
<if test="startWindSpeedPercent != null">#{startWindSpeedPercent},</if>
|
||||
<if test="endWindSpeedPercent != null">#{endWindSpeedPercent},</if>
|
||||
<if test="startLeanAngleX != null">#{startLeanAngleX},</if>
|
||||
<if test="endLeanAngleX != null">#{endLeanAngleX},</if>
|
||||
<if test="startLeanAngleY != null">#{startLeanAngleY},</if>
|
||||
<if test="endLeanAngleY != null">#{endLeanAngleY},</if>
|
||||
<if test="warnings != null">#{warnings},</if>
|
||||
<if test="isAlarm != null">#{isAlarm},</if>
|
||||
<if test="isOverload != null">#{isOverload},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevTowerDataRound" parameterType="DevTowerDataRound">
|
||||
update dev_tower_data_round
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id = #{cfgId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="deviceKey != null">device_key = #{deviceKey},</if>
|
||||
<if test="deviceSource != null">device_source = #{deviceSource},</if>
|
||||
<if test="towerId != null">tower_id = #{towerId},</if>
|
||||
<if test="workStartTime != null">work_start_time = #{workStartTime},</if>
|
||||
<if test="workEndTime != null">work_end_time = #{workEndTime},</if>
|
||||
<if test="minHeight != null">min_height = #{minHeight},</if>
|
||||
<if test="maxHeight != null">max_height = #{maxHeight},</if>
|
||||
<if test="minRange != null">min_range = #{minRange},</if>
|
||||
<if test="maxRange != null">max_range = #{maxRange},</if>
|
||||
<if test="startHeight != null">start_height = #{startHeight},</if>
|
||||
<if test="endHeight != null">end_height = #{endHeight},</if>
|
||||
<if test="startRange != null">start_range = #{startRange},</if>
|
||||
<if test="endRange != null">end_range = #{endRange},</if>
|
||||
<if test="startRotation != null">start_rotation = #{startRotation},</if>
|
||||
<if test="endRotation != null">end_rotation = #{endRotation},</if>
|
||||
<if test="maxLoad != null">max_load = #{maxLoad},</if>
|
||||
<if test="maxLoadPercent != null">max_load_percent = #{maxLoadPercent},</if>
|
||||
<if test="maxMoment != null">max_moment = #{maxMoment},</if>
|
||||
<if test="maxMomentPercent != null">max_moment_percent = #{maxMomentPercent},</if>
|
||||
<if test="startWindSpeed != null">start_wind_speed = #{startWindSpeed},</if>
|
||||
<if test="endWindSpeed != null">end_wind_speed = #{endWindSpeed},</if>
|
||||
<if test="startWindSpeedPercent != null">start_wind_speed_percent = #{startWindSpeedPercent},</if>
|
||||
<if test="endWindSpeedPercent != null">end_wind_speed_percent = #{endWindSpeedPercent},</if>
|
||||
<if test="startLeanAngleX != null">start_lean_angle_x = #{startLeanAngleX},</if>
|
||||
<if test="endLeanAngleX != null">end_lean_angle_x = #{endLeanAngleX},</if>
|
||||
<if test="startLeanAngleY != null">start_lean_angle_y = #{startLeanAngleY},</if>
|
||||
<if test="endLeanAngleY != null">end_lean_angle_y = #{endLeanAngleY},</if>
|
||||
<if test="warnings != null">warnings = #{warnings},</if>
|
||||
<if test="isAlarm != null">is_alarm = #{isAlarm},</if>
|
||||
<if test="isOverload != null">is_overload = #{isOverload},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevTowerDataRoundById" parameterType="Long">
|
||||
delete from dev_tower_data_round where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataRoundByIds" parameterType="String">
|
||||
delete from dev_tower_data_round where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="findRoundCountByDeviceKey" parameterType="DevTowerDataRound" resultType="Int">
|
||||
select count(1) as total from dev_tower_data_round
|
||||
<where>
|
||||
<if test="deviceKey != null and deviceKey != ''">and cfg_id = (select dc.id from dev_tower_project_config dc where dc.device_sn=#{deviceKey}) and device_key = #{deviceKey}</if>
|
||||
<if test='activeName == "cz"'> and is_overload = 1 </if>
|
||||
<if test='activeName == "gj"'> and is_alarm = 1 </if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and date(create_time) between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,244 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.device.mapper.DevTowerDataRunMapper">
|
||||
|
||||
<resultMap type="DevTowerDataRun" id="DevTowerDataRunResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfg_id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="comName" column="com_name" />
|
||||
<result property="deviceKey" column="device_key" />
|
||||
<result property="deviceSource" column="device_source" />
|
||||
<result property="height" column="height" />
|
||||
<result property="range" column="range" />
|
||||
<result property="rotation" column="rotation" />
|
||||
<result property="load" column="load" />
|
||||
<result property="windSpeed" column="wind_speed" />
|
||||
<result property="leanAngleX" column="lean_angle_x" />
|
||||
<result property="leanAngleY" column="lean_angle_y" />
|
||||
<result property="loadPercent" column="load_percent" />
|
||||
<result property="momentPercent" column="moment_percent" />
|
||||
<result property="windSpeedPercent" column="wind_speed_percent" />
|
||||
<result property="leanAnglePercent" column="lean_angle_percent" />
|
||||
<result property="warnings" column="warnings" />
|
||||
<result property="rate" column="rate" />
|
||||
<result property="rotationSensorState" column="rotation_sensor_state" />
|
||||
<result property="loadSensorState" column="load_sensor_state" />
|
||||
<result property="windSpeedSensorState" column="wind_speed_sensor_state" />
|
||||
<result property="leanAngleSensorState" column="lean_angle_sensor_state" />
|
||||
<result property="rangeSensorState" column="range_sensor_state" />
|
||||
<result property="heightSensorState" column="height_sensor_state" />
|
||||
<result property="brakingStatus" column="braking_status" />
|
||||
<result property="timeLongs" column="time_longs" />
|
||||
<result property="isAlarm" column="is_alarm" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevTowerDataRunVo">
|
||||
select dtdr.id,
|
||||
dtdr.cfg_id,
|
||||
dtdr.project_id,
|
||||
dtdr.com_id,
|
||||
sp.dept_name projectName,
|
||||
sd.dept_name com_name,
|
||||
dtdr.device_key,
|
||||
dtdr.device_source,
|
||||
dtdr.height,
|
||||
dtdr.range,
|
||||
dtdr.rotation,
|
||||
dtdr.load,
|
||||
dtdr.wind_speed,
|
||||
dtdr.lean_angle_x,
|
||||
dtdr.lean_angle_y,
|
||||
dtdr.load_percent,
|
||||
dtdr.moment_percent,
|
||||
dtdr.wind_speed_percent,
|
||||
dtdr.lean_angle_percent,
|
||||
dtdr.warnings,
|
||||
dtdr.rate,
|
||||
dtdr.rotation_sensor_state,
|
||||
dtdr.load_sensor_state,
|
||||
dtdr.wind_speed_sensor_state,
|
||||
dtdr.lean_angle_sensor_state,
|
||||
dtdr.range_sensor_state,
|
||||
dtdr.height_sensor_state,
|
||||
dtdr.braking_status,
|
||||
dtdr.time_longs,
|
||||
dtdr.is_alarm,
|
||||
dtdr.is_del,
|
||||
dtdr.create_by,
|
||||
dtdr.create_time,
|
||||
dtdr.update_by,
|
||||
dtdr.update_time,
|
||||
dtdr.remark
|
||||
from dev_tower_data_run dtdr
|
||||
left join sys_dept sp on sp.dept_id = dtdr.project_id
|
||||
left join sys_dept sd on sd.dept_id = dtdr.com_id
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectDevTowerDataRunList" parameterType="DevTowerDataRun" resultMap="DevTowerDataRunResult">
|
||||
<include refid="selectDevTowerDataRunVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null">and dtdr.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdr.project_id = #{projectId}</if>
|
||||
<if test="comId != null "> and dtdr.com_id = #{comId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdr.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="comName != null and comName != ''"> and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdr.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdr.device_source = #{deviceSource}</if>
|
||||
<if test="warnings != null and warnings != ''"> and dtdr.warnings is not null </if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and dtdr.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
order by dtdr.id desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevTowerDataRunById" parameterType="Long" resultMap="DevTowerDataRunResult">
|
||||
<include refid="selectDevTowerDataRunVo"/>
|
||||
where dtdr.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevTowerDataRun" parameterType="DevTowerDataRun" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_tower_data_run
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="deviceKey != null">device_key,</if>
|
||||
<if test="deviceSource != null">device_source,</if>
|
||||
<if test="height != null">height,</if>
|
||||
<if test="range != null">`range`,</if>
|
||||
<if test="rotation != null">rotation,</if>
|
||||
<if test="load != null">`load`,</if>
|
||||
<if test="windSpeed != null">wind_speed,</if>
|
||||
<if test="leanAngleX != null">lean_angle_x,</if>
|
||||
<if test="leanAngleY != null">lean_angle_y,</if>
|
||||
<if test="loadPercent != null">load_percent,</if>
|
||||
<if test="momentPercent != null">moment_percent,</if>
|
||||
<if test="windSpeedPercent != null">wind_speed_percent,</if>
|
||||
<if test="leanAnglePercent != null">lean_angle_percent,</if>
|
||||
<if test="warnings != null">warnings,</if>
|
||||
<if test="rate != null">rate,</if>
|
||||
<if test="rotationSensorState != null">rotation_sensor_state,</if>
|
||||
<if test="loadSensorState != null">load_sensor_state,</if>
|
||||
<if test="windSpeedSensorState != null">wind_speed_sensor_state,</if>
|
||||
<if test="leanAngleSensorState != null">lean_angle_sensor_state,</if>
|
||||
<if test="rangeSensorState != null">range_sensor_state,</if>
|
||||
<if test="heightSensorState != null">height_sensor_state,</if>
|
||||
<if test="brakingStatus != null">braking_status,</if>
|
||||
<if test="timeLongs != null">time_longs,</if>
|
||||
<if test="isAlarm != null">is_alarm,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="deviceKey != null">#{deviceKey},</if>
|
||||
<if test="deviceSource != null">#{deviceSource},</if>
|
||||
<if test="height != null">#{height},</if>
|
||||
<if test="range != null">#{range},</if>
|
||||
<if test="rotation != null">#{rotation},</if>
|
||||
<if test="load != null">#{load},</if>
|
||||
<if test="windSpeed != null">#{windSpeed},</if>
|
||||
<if test="leanAngleX != null">#{leanAngleX},</if>
|
||||
<if test="leanAngleY != null">#{leanAngleY},</if>
|
||||
<if test="loadPercent != null">#{loadPercent},</if>
|
||||
<if test="momentPercent != null">#{momentPercent},</if>
|
||||
<if test="windSpeedPercent != null">#{windSpeedPercent},</if>
|
||||
<if test="leanAnglePercent != null">#{leanAnglePercent},</if>
|
||||
<if test="warnings != null">#{warnings},</if>
|
||||
<if test="rate != null">#{rate},</if>
|
||||
<if test="rotationSensorState != null">#{rotationSensorState},</if>
|
||||
<if test="loadSensorState != null">#{loadSensorState},</if>
|
||||
<if test="windSpeedSensorState != null">#{windSpeedSensorState},</if>
|
||||
<if test="leanAngleSensorState != null">#{leanAngleSensorState},</if>
|
||||
<if test="rangeSensorState != null">#{rangeSensorState},</if>
|
||||
<if test="heightSensorState != null">#{heightSensorState},</if>
|
||||
<if test="brakingStatus != null">#{brakingStatus},</if>
|
||||
<if test="timeLongs != null">#{timeLongs},</if>
|
||||
<if test="isAlarm != null">#{isAlarm},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevTowerDataRun" parameterType="DevTowerDataRun">
|
||||
update dev_tower_data_run
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id = #{cfgId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="deviceKey != null">device_key = #{deviceKey},</if>
|
||||
<if test="deviceSource != null">device_source = #{deviceSource},</if>
|
||||
<if test="height != null">height = #{height},</if>
|
||||
<if test="range != null">`range` = #{range},</if>
|
||||
<if test="rotation != null">rotation = #{rotation},</if>
|
||||
<if test="load != null">`load` = #{load},</if>
|
||||
<if test="windSpeed != null">wind_speed = #{windSpeed},</if>
|
||||
<if test="leanAngleX != null">lean_angle_x = #{leanAngleX},</if>
|
||||
<if test="leanAngleY != null">lean_angle_y = #{leanAngleY},</if>
|
||||
<if test="loadPercent != null">load_percent = #{loadPercent},</if>
|
||||
<if test="momentPercent != null">moment_percent = #{momentPercent},</if>
|
||||
<if test="windSpeedPercent != null">wind_speed_percent = #{windSpeedPercent},</if>
|
||||
<if test="leanAnglePercent != null">lean_angle_percent = #{leanAnglePercent},</if>
|
||||
<if test="warnings != null">warnings = #{warnings},</if>
|
||||
<if test="rate != null">rate = #{rate},</if>
|
||||
<if test="rotationSensorState != null">rotation_sensor_state = #{rotationSensorState},</if>
|
||||
<if test="loadSensorState != null">load_sensor_state = #{loadSensorState},</if>
|
||||
<if test="windSpeedSensorState != null">wind_speed_sensor_state = #{windSpeedSensorState},</if>
|
||||
<if test="leanAngleSensorState != null">lean_angle_sensor_state = #{leanAngleSensorState},</if>
|
||||
<if test="rangeSensorState != null">range_sensor_state = #{rangeSensorState},</if>
|
||||
<if test="heightSensorState != null">height_sensor_state = #{heightSensorState},</if>
|
||||
<if test="brakingStatus != null">braking_status = #{brakingStatus},</if>
|
||||
<if test="timeLongs != null">time_longs = #{timeLongs},</if>
|
||||
<if test="isAlarm != null">is_alarm = #{isAlarm},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevTowerDataRunById" parameterType="Long">
|
||||
delete from dev_tower_data_run where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataRunByIds" parameterType="String">
|
||||
delete from dev_tower_data_run where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="findRunCountByDeviceKey" parameterType="DevTowerDataRound" resultType="Int">
|
||||
select count(1) as total from dev_tower_data_run
|
||||
<where>
|
||||
<if test="deviceKey != null and deviceKey != ''">and cfg_id = (select dc.id from dev_tower_project_config dc where dc.device_sn=#{deviceKey}) and device_key = #{deviceKey}</if>
|
||||
<if test='activeName == "gj"'> and is_alarm = 1 </if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and date(create_time) between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,154 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.device.mapper.DevTowerDataWarningMapper">
|
||||
|
||||
<resultMap type="DevTowerDataWarning" id="DevTowerDataWarningResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfg_id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="comName" column="com_name" />
|
||||
<result property="deviceKey" column="device_key" />
|
||||
<result property="deviceSource" column="device_source" />
|
||||
<result property="towerId" column="tower_id" />
|
||||
<result property="warnType" column="warn_type" />
|
||||
<result property="warnName" column="warn_name" />
|
||||
<result property="warnNote" column="warn_note" />
|
||||
<result property="warnData" column="warn_data" />
|
||||
<result property="realData" column="real_data" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevTowerDataWarningVo">
|
||||
select dtdw.id,
|
||||
dtdw.cfg_id,
|
||||
dtdw.project_id,
|
||||
dtdw.com_id,
|
||||
sp.dept_name projectName,
|
||||
sd.dept_name com_name,
|
||||
dtdw.device_key,
|
||||
dtdw.device_source,
|
||||
dtdw.tower_id,
|
||||
dtdw.warn_type,
|
||||
dtdw.warn_name,
|
||||
dtdw.warn_note,
|
||||
dtdw.warn_data,
|
||||
dtdw.real_data,
|
||||
dtdw.is_del,
|
||||
dtdw.create_by,
|
||||
dtdw.create_time,
|
||||
dtdw.update_by,
|
||||
dtdw.update_time,
|
||||
dtdw.remark
|
||||
from dev_tower_data_warning dtdw
|
||||
left join sys_dept sp on sp.dept_id = dtdw.project_id
|
||||
left join sys_dept sd on sd.dept_id = dtdw.com_id
|
||||
</sql>
|
||||
|
||||
<select id="selectDevTowerDataWarningList" parameterType="DevTowerDataWarning" resultMap="DevTowerDataWarningResult">
|
||||
<include refid="selectDevTowerDataWarningVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null">and dtdw.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdw.project_id = #{projectId}</if>
|
||||
<if test="comId != null "> and dtdw.com_id = #{comId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdw.project_id in (select spv.dept_id from sys_dept spv where spv.dept_name like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="comName != null and comName != ''"> and dtdw.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{comName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdw.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdw.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdw.tower_id = #{towerId}</if>
|
||||
<if test="warnType != null "> and dtdw.warn_type = #{warnType}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and dtdw.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
order by dtdw.id desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevTowerDataWarningById" parameterType="Long" resultMap="DevTowerDataWarningResult">
|
||||
<include refid="selectDevTowerDataWarningVo"/>
|
||||
where dtdw.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevTowerDataWarning" parameterType="DevTowerDataWarning" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_tower_data_warning
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="cfgId != null">cfg_id,</if>
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="deviceKey != null">device_key,</if>
|
||||
<if test="deviceSource != null">device_source,</if>
|
||||
<if test="towerId != null">tower_id,</if>
|
||||
<if test="warnType != null">warn_type,</if>
|
||||
<if test="warnName != null">warn_name,</if>
|
||||
<if test="warnNote != null">warn_note,</if>
|
||||
<if test="warnData != null">warn_data,</if>
|
||||
<if test="realData != null">real_data,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="deviceKey != null">#{deviceKey},</if>
|
||||
<if test="deviceSource != null">#{deviceSource},</if>
|
||||
<if test="towerId != null">#{towerId},</if>
|
||||
<if test="warnType != null">#{warnType},</if>
|
||||
<if test="warnName != null">#{warnName},</if>
|
||||
<if test="warnNote != null">#{warnNote},</if>
|
||||
<if test="warnData != null">#{warnData},</if>
|
||||
<if test="realData != null">#{realData},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevTowerDataWarning" parameterType="DevTowerDataWarning">
|
||||
update dev_tower_data_warning
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id = #{cfgId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="deviceKey != null">device_key = #{deviceKey},</if>
|
||||
<if test="deviceSource != null">device_source = #{deviceSource},</if>
|
||||
<if test="towerId != null">tower_id = #{towerId},</if>
|
||||
<if test="warnType != null">warn_type = #{warnType},</if>
|
||||
<if test="warnName != null">warn_name = #{warnName},</if>
|
||||
<if test="warnNote != null">warn_note = #{warnNote},</if>
|
||||
<if test="warnData != null">warn_data = #{warnData},</if>
|
||||
<if test="realData != null">real_data = #{realData},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDevTowerDataWarningById" parameterType="Long">
|
||||
delete from dev_tower_data_warning where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDevTowerDataWarningByIds" parameterType="String">
|
||||
delete from dev_tower_data_warning where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,204 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.device.mapper.DevTowerProjectConfigMapper">
|
||||
|
||||
<resultMap type="DevTowerProjectConfig" id="DevTowerProjectConfigResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="comName" column="com_name" />
|
||||
<result property="deviceSn" column="device_sn" />
|
||||
<result property="deviceName" column="device_name" />
|
||||
<result property="deviceSource" column="device_source" />
|
||||
<result property="towerId" column="tower_id" />
|
||||
<result property="towerType" column="tower_type" />
|
||||
<result property="coordinateX" column="coordinate_x" />
|
||||
<result property="coordinateY" column="coordinate_y" />
|
||||
<result property="frontBrachium" column="front_brachium" />
|
||||
<result property="afterBrachium" column="after_brachium" />
|
||||
<result property="towerBodyHeight" column="tower_body_height" />
|
||||
<result property="towerCapHeight" column="tower_cap_height" />
|
||||
<result property="towerSectionHeight" column="tower_section_height" />
|
||||
<result property="online" column="online" />
|
||||
<result property="driName" column="dri_name" />
|
||||
<result property="driPhone" column="dri_phone" />
|
||||
<result property="safName" column="saf_name" />
|
||||
<result property="safPhone" column="saf_phone" />
|
||||
<result property="isDel" column="is_del" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDevTowerProjectConfigVo">
|
||||
select dtpc.id,
|
||||
dtpc.project_id,
|
||||
dtpc.com_id,
|
||||
sp.dept_name projectName,
|
||||
sd.dept_name com_name,
|
||||
dtpc.device_sn,
|
||||
dtpc.device_name,
|
||||
dtpc.device_source,
|
||||
dtpc.tower_id,
|
||||
dtpc.tower_type,
|
||||
dtpc.coordinate_x,
|
||||
dtpc.coordinate_y,
|
||||
dtpc.front_brachium,
|
||||
dtpc.after_brachium,
|
||||
dtpc.tower_body_height,
|
||||
dtpc.tower_cap_height,
|
||||
dtpc.tower_section_height,
|
||||
dtpc.online,
|
||||
dtpc.dri_name,
|
||||
dtpc.dri_phone,
|
||||
dtpc.saf_name,
|
||||
dtpc.saf_phone,
|
||||
dtpc.is_del,
|
||||
dtpc.create_by,
|
||||
dtpc.create_time,
|
||||
dtpc.update_by,
|
||||
dtpc.update_time,
|
||||
dtpc.remark
|
||||
from dev_tower_project_config dtpc
|
||||
left join sys_dept sp on sp.dept_id = dtpc.project_id
|
||||
left join sys_dept sd on sd.dept_id = dtpc.com_id
|
||||
</sql>
|
||||
|
||||
<select id="selectDevTowerProjectConfigList" parameterType="DevTowerProjectConfig" resultMap="DevTowerProjectConfigResult">
|
||||
<include refid="selectDevTowerProjectConfigVo"/>
|
||||
<where>
|
||||
<if test="projectId != null "> and dtpc.project_id = #{projectId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and sp.projectName like concat('%', #{projectName}, '%')</if>
|
||||
<if test="comId != null "> and dtpc.com_id = #{comId}</if>
|
||||
<if test="comName != null and comName != ''"> and sd.dept_name like concat('%', #{comName}, '%')</if>
|
||||
<if test="deviceSn != null and deviceSn != ''"> and dtpc.device_sn = #{deviceSn}</if>
|
||||
<if test="deviceName != null and deviceName != ''"> and dtpc.device_name like concat('%', #{deviceName}, '%')</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtpc.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtpc.tower_id = #{towerId}</if>
|
||||
<if test="towerType != null and towerType != ''"> and dtpc.tower_type = #{towerType}</if>
|
||||
<if test="isDel != null "> and dtpc.is_del = #{isDel}</if>
|
||||
</where>
|
||||
order by dtpc.id desc
|
||||
</select>
|
||||
|
||||
<select id="selectDevTowerProjectConfigById" parameterType="Long" resultMap="DevTowerProjectConfigResult">
|
||||
<include refid="selectDevTowerProjectConfigVo"/>
|
||||
where dtpc.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDevTowerProjectConfig" parameterType="DevTowerProjectConfig" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into dev_tower_project_config
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="deviceSn != null">device_sn,</if>
|
||||
<if test="deviceName != null">device_name,</if>
|
||||
<if test="deviceSource != null">device_source,</if>
|
||||
<if test="towerType != null">tower_type,</if>
|
||||
<if test="towerId != null">tower_id,</if>
|
||||
<if test="coordinateX != null">coordinate_x,</if>
|
||||
<if test="coordinateY != null">coordinate_y,</if>
|
||||
<if test="frontBrachium != null">front_brachium,</if>
|
||||
<if test="afterBrachium != null">after_brachium,</if>
|
||||
<if test="towerBodyHeight != null">tower_body_height,</if>
|
||||
<if test="towerCapHeight != null">tower_cap_height,</if>
|
||||
<if test="towerSectionHeight != null">tower_section_height,</if>
|
||||
<if test="online != null">online,</if>
|
||||
<if test="driName != null">dri_name,</if>
|
||||
<if test="driPhone != null">dri_phone,</if>
|
||||
<if test="safName != null">saf_name,</if>
|
||||
<if test="safPhone != null">saf_phone,</if>
|
||||
<if test="isDel != null">is_del,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="deviceSn != null">#{deviceSn},</if>
|
||||
<if test="deviceName != null">#{deviceName},</if>
|
||||
<if test="deviceSource != null">#{deviceSource},</if>
|
||||
<if test="towerType != null">#{towerType},</if>
|
||||
<if test="towerId != null">#{towerId},</if>
|
||||
<if test="coordinateX != null">#{coordinateX},</if>
|
||||
<if test="coordinateY != null">#{coordinateY},</if>
|
||||
<if test="frontBrachium != null">#{frontBrachium},</if>
|
||||
<if test="afterBrachium != null">#{afterBrachium},</if>
|
||||
<if test="towerBodyHeight != null">#{towerBodyHeight},</if>
|
||||
<if test="towerCapHeight != null">#{towerCapHeight},</if>
|
||||
<if test="towerSectionHeight != null">#{towerSectionHeight},</if>
|
||||
<if test="online != null">#{online},</if>
|
||||
<if test="driName != null">#{driName},</if>
|
||||
<if test="driPhone != null">#{driPhone},</if>
|
||||
<if test="safName != null">#{safName},</if>
|
||||
<if test="safPhone != null">#{safPhone},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDevTowerProjectConfig" parameterType="DevTowerProjectConfig">
|
||||
update dev_tower_project_config
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="deviceSn != null">device_sn = #{deviceSn},</if>
|
||||
<if test="deviceName != null">device_name = #{deviceName},</if>
|
||||
<if test="deviceSource != null">device_source = #{deviceSource},</if>
|
||||
<if test="towerType != null">tower_type = #{towerType},</if>
|
||||
<if test="towerId != null">tower_id = #{towerId},</if>
|
||||
<if test="coordinateX != null">coordinate_x = #{coordinateX},</if>
|
||||
<if test="coordinateY != null">coordinate_y = #{coordinateY},</if>
|
||||
<if test="frontBrachium != null">front_brachium = #{frontBrachium},</if>
|
||||
<if test="afterBrachium != null">after_brachium = #{afterBrachium},</if>
|
||||
<if test="towerBodyHeight != null">tower_body_height = #{towerBodyHeight},</if>
|
||||
<if test="towerCapHeight != null">tower_cap_height = #{towerCapHeight},</if>
|
||||
<if test="towerSectionHeight != null">tower_section_height = #{towerSectionHeight},</if>
|
||||
<if test="online != null">online = #{online},</if>
|
||||
<if test="driName != null">dri_name = #{driName},</if>
|
||||
<if test="driPhone != null">dri_phone = #{driPhone},</if>
|
||||
<if test="safName != null">saf_name = #{safName},</if>
|
||||
<if test="safPhone != null">saf_phone = #{safPhone},</if>
|
||||
<if test="isDel != null">is_del = #{isDel},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteDevTowerProjectConfigById" parameterType="Long">
|
||||
update dev_tower_project_config set is_del=1 where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deleteDevTowerProjectConfigByIds" parameterType="String">
|
||||
update dev_tower_project_config set is_del=1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="findtowerConfigGroupOnline" parameterType="DevTowerProjectConfig" resultType="Map">
|
||||
select online, count(1) as total from dev_tower_project_config
|
||||
<where>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="comId != null "> and com_id = #{comId}</if>
|
||||
</where>
|
||||
group by online
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -456,6 +456,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="projectName==5">
|
||||
and a.checkState not in (4) and date(nickedTime) <= curdate()
|
||||
</if>
|
||||
<if test="projectName==6">
|
||||
and a.checkState in (0)
|
||||
</if>
|
||||
<if test="projectName==7">
|
||||
and a.checkState in (3)
|
||||
</if>
|
||||
<include refid="countUserWhere"></include>
|
||||
<if test="isNew!=null and isNew!=0">
|
||||
order by a.id desc
|
||||
|
|
|
@ -253,8 +253,8 @@ let data = reactive({
|
|||
]
|
||||
},
|
||||
checkStates: [{ value: "0", label: '待整改' }, { value: "1", label: '待复检' },
|
||||
{ value: "2", label: '复检驳回' },
|
||||
{ value: "3", label: '复检通过' }]
|
||||
{ value: "3", label: '复检驳回' },
|
||||
{ value: "4", label: '复检通过' }]
|
||||
});
|
||||
const { step2Form, step2Rules, step3Form, step3Rules } = toRefs(data);
|
||||
function validateStep2Images(rule, value, callback) {
|
||||
|
|
|
@ -130,8 +130,8 @@ const data = reactive({
|
|||
activeName: 'a',
|
||||
tabInfo: {},
|
||||
checkStates: [{ value: "0", label: '待整改' }, { value: "1", label: '待复检' },
|
||||
{ value: "2", label: '复检驳回' },
|
||||
{ value: "3", label: '复检通过' }]
|
||||
{ value: "3", label: '复检驳回' },
|
||||
{ value: "4", label: '复检通过' }]
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
|
Loading…
Reference in New Issue