Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
H
hzsomms
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZTGK
hzsomms
Commits
eb673a44
Commit
eb673a44
authored
Jul 29, 2024
by
史志龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改--shizhilong
parent
41ea2c3b
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
86 additions
and
37 deletions
+86
-37
pom.xml
jeecg-module-system/pom.xml
+4
-4
AnalysisAlgorithmLine.java
...ules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
+23
-28
AnalysisLineBatchController.java
...seaseAnalysis/controller/AnalysisLineBatchController.java
+14
-4
AnalysisLineBatchInfoDTO.java
...modules/diseaseAnalysis/dto/AnalysisLineBatchInfoDTO.java
+3
-0
AnalysisLineBatchUnitDeviceDTO.java
...s/diseaseAnalysis/dto/AnalysisLineBatchUnitDeviceDTO.java
+3
-0
AnalysisLineBatchUnitDevice.java
...s/diseaseAnalysis/entity/AnalysisLineBatchUnitDevice.java
+8
-0
AnalysisLineBatchMapper.xml
...es/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
+4
-1
IAnalysisLineBatchService.java
...es/diseaseAnalysis/service/IAnalysisLineBatchService.java
+7
-0
AnalysisLineBatchServiceImpl.java
...seAnalysis/service/impl/AnalysisLineBatchServiceImpl.java
+13
-0
AnalysisLineBatchUnitDeviceVO.java
...les/diseaseAnalysis/vo/AnalysisLineBatchUnitDeviceVO.java
+7
-0
No files found.
jeecg-module-system/pom.xml
View file @
eb673a44
...
@@ -65,6 +65,10 @@
...
@@ -65,6 +65,10 @@
<properties>
<properties>
<package.environment>
dev
</package.environment>
<package.environment>
dev
</package.environment>
</properties>
</properties>
<!-- 是否默认 true表示默认-->
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
</profile>
</profile>
<!-- 测试环境 -->
<!-- 测试环境 -->
...
@@ -73,10 +77,6 @@
...
@@ -73,10 +77,6 @@
<properties>
<properties>
<package.environment>
test
</package.environment>
<package.environment>
test
</package.environment>
</properties>
</properties>
<!-- 是否默认 true表示默认-->
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
</profile>
</profile>
<!-- 生成环境环境-->
<!-- 生成环境环境-->
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
View file @
eb673a44
...
@@ -54,23 +54,14 @@ public class AnalysisAlgorithmLine {
...
@@ -54,23 +54,14 @@ public class AnalysisAlgorithmLine {
@Transactional
@Transactional
public
void
analysisLine
(
String
analysisLineBatchId
)
{
public
void
analysisLine
(
String
analysisLineBatchId
)
{
Map
<
String
,
Map
<
String
,
Object
>>
unitDeviceTable
=
new
LinkedHashMap
<>();
// 1.1 获取分析基础数据
// 1.1 获取分析基础数据
AnalysisLineBatch
analysisLineBatch
=
analysisLineBatchService
.
getById
(
analysisLineBatchId
);
AnalysisLineBatch
analysisLineBatch
=
analysisLineBatchService
.
getById
(
analysisLineBatchId
);
//查询该批次所需要分析得采集信息批次
//查询该批次所需要分析得采集信息批次
List
<
AnalysisLineBatchCheckDataMap
>
analysisLineBatchCheckDataMapList
=
analysisLineBatchCheckDataMapService
.
lambdaQuery
().
eq
(
AnalysisLineBatchCheckDataMap:
:
getAnalysisBatchId
,
analysisLineBatchId
).
list
();
List
<
AnalysisLineBatchCheckDataMap
>
analysisLineBatchCheckDataMapList
=
analysisLineBatchCheckDataMapService
.
lambdaQuery
().
eq
(
AnalysisLineBatchCheckDataMap:
:
getAnalysisBatchId
,
analysisLineBatchId
).
list
();
// 1.2 按公里数正序排序所有1-钢轨,2-曲线,3-竖曲线,4-道岔
// 1.2 按公里数正序排序所有1-钢轨,2-曲线,3-竖曲线,4-道岔
List
<
Map
<
String
,
Object
>>
unitDeviceList
=
analysisAlgorithmMapper
.
getUnitDevice
(
analysisLineBatch
.
getLightRailId
(),
analysisLineBatch
.
getLineAliasId
(),
analysisLineBatch
.
getStartingMileage
(),
analysisLineBatch
.
getEndMileage
());
List
<
Map
<
String
,
Object
>>
unitDeviceList
=
analysisAlgorithmMapper
.
getUnitDevice
(
analysisLineBatch
.
getLightRailId
(),
analysisLineBatch
.
getLineAliasId
(),
analysisLineBatch
.
getStartingMileage
(),
analysisLineBatch
.
getEndMileage
());
// 1.3 关联关系-封装1-钢轨,2-曲线,3-竖曲线,4-道岔得单位编号
for
(
Map
<
String
,
Object
>
unitDevice
:
unitDeviceList
)
{
unitDeviceTable
.
put
(
unitDevice
.
get
(
"unitCode"
).
toString
(),
unitDevice
);
}
//原来单元信息删除
//原来单元信息删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDevice
>
wrapper2
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDevice
>
wrapper2
=
Wrappers
.
lambdaQuery
();
wrapper2
.
eq
(
AnalysisLineBatchUnitDevice:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
wrapper2
.
eq
(
AnalysisLineBatchUnitDevice:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
...
@@ -80,7 +71,7 @@ public class AnalysisAlgorithmLine {
...
@@ -80,7 +71,7 @@ public class AnalysisAlgorithmLine {
for
(
AnalysisLineBatchCheckDataMap
checkDataMap
:
analysisLineBatchCheckDataMapList
)
{
for
(
AnalysisLineBatchCheckDataMap
checkDataMap
:
analysisLineBatchCheckDataMapList
)
{
// 检查数据类型 1-道岔检查 2-钢轨常规探伤检查 3-曲线钢轨磨耗检查
// 检查数据类型 1-道岔检查 2-钢轨常规探伤检查 3-曲线钢轨磨耗检查
// 4-钢轨波磨检查 5-道床检查 6-线路检查
// 4-钢轨波磨检查 5-道床检查 6-线路检查
if
(
"1"
==
checkDataMap
.
getEkType
(
))
{
if
(
"1"
.
equals
(
checkDataMap
.
getEkType
()
))
{
//1-道岔检查
//1-道岔检查
//原来道岔检查单元信息详情删除
//原来道岔检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceTurnoutInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceTurnoutInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
...
@@ -88,7 +79,7 @@ public class AnalysisAlgorithmLine {
...
@@ -88,7 +79,7 @@ public class AnalysisAlgorithmLine {
analysisLineBatchUnitDeviceTurnoutInfoService
.
remove
(
wrapper3
);
analysisLineBatchUnitDeviceTurnoutInfoService
.
remove
(
wrapper3
);
turnoutCheckDataLineAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
turnoutCheckDataLineAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
}
else
if
(
"2"
==
checkDataMap
.
getEkType
(
))
{
}
else
if
(
"2"
.
equals
(
checkDataMap
.
getEkType
()
))
{
//2-钢轨常规探伤检查
//2-钢轨常规探伤检查
//原来钢轨常规探伤检查单元信息详情删除
//原来钢轨常规探伤检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
...
@@ -96,7 +87,7 @@ public class AnalysisAlgorithmLine {
...
@@ -96,7 +87,7 @@ public class AnalysisAlgorithmLine {
analysisLineBatchUnitDeviceRailWearInfoService
.
remove
(
wrapper3
);
analysisLineBatchUnitDeviceRailWearInfoService
.
remove
(
wrapper3
);
railWearInfoCheckDataLineAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
railWearInfoCheckDataLineAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
}
else
if
(
"3"
==
checkDataMap
.
getEkType
(
))
{
}
else
if
(
"3"
.
equals
(
checkDataMap
.
getEkType
()
))
{
//3-曲线钢轨磨耗检查
//3-曲线钢轨磨耗检查
//原来曲线钢轨磨耗检查单元信息详情删除
//原来曲线钢轨磨耗检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCurveWearInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCurveWearInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
...
@@ -104,7 +95,7 @@ public class AnalysisAlgorithmLine {
...
@@ -104,7 +95,7 @@ public class AnalysisAlgorithmLine {
analysisLineBatchUnitDeviceCurveWearInfoService
.
remove
(
wrapper3
);
analysisLineBatchUnitDeviceCurveWearInfoService
.
remove
(
wrapper3
);
curveWearInfoCheckDataAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
curveWearInfoCheckDataAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
}
else
if
(
"4"
==
checkDataMap
.
getEkType
(
))
{
}
else
if
(
"4"
.
equals
(
checkDataMap
.
getEkType
()
))
{
//4-钢轨波磨检查
//4-钢轨波磨检查
//原来钢轨波磨检查单元信息详情删除
//原来钢轨波磨检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCorrugationInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCorrugationInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
...
@@ -144,12 +135,12 @@ public class AnalysisAlgorithmLine {
...
@@ -144,12 +135,12 @@ public class AnalysisAlgorithmLine {
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
//获取分析批次筛选的单元设备编码
//获取分析批次筛选的单元设备编码
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
//判断分析批次的设备与检查时维护的设备是同一个设备
//判断分析批次的设备与检查时维护的设备是同一个设备
List
<
CorrugationRecord
>
corrugationRecordList
=
deviceProjectList
.
get
(
unitCode
);
List
<
CorrugationRecord
>
corrugationRecordList
=
deviceProjectList
.
get
(
unitCode
);
if
(
CollectionUtils
.
isNotEmpty
(
corrugationRecordList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
corrugationRecordList
))
{
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
corrugationRecordList
.
forEach
(
model
->
{
corrugationRecordList
.
forEach
(
model
->
{
//保存道岔单元信息详情
//保存道岔单元信息详情
saveCorrugationRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
saveCorrugationRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
...
@@ -183,12 +174,12 @@ public class AnalysisAlgorithmLine {
...
@@ -183,12 +174,12 @@ public class AnalysisAlgorithmLine {
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
//获取分析批次筛选的单元设备编码
//获取分析批次筛选的单元设备编码
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
//判断分析批次的设备与检查时维护的设备是同一个设备
//判断分析批次的设备与检查时维护的设备是同一个设备
List
<
CurveWearRecord
>
curveWearRecordList
=
deviceProjectList
.
get
(
unitCode
);
List
<
CurveWearRecord
>
curveWearRecordList
=
deviceProjectList
.
get
(
unitCode
);
if
(
CollectionUtils
.
isNotEmpty
(
curveWearRecordList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
curveWearRecordList
))
{
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
curveWearRecordList
.
forEach
(
model
->
{
curveWearRecordList
.
forEach
(
model
->
{
//保存道岔单元信息详情
//保存道岔单元信息详情
saveCurveWearRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
saveCurveWearRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
...
@@ -222,12 +213,12 @@ public class AnalysisAlgorithmLine {
...
@@ -222,12 +213,12 @@ public class AnalysisAlgorithmLine {
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
//获取分析批次筛选的单元设备编码
//获取分析批次筛选的单元设备编码
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
//判断分析批次的设备与检查时维护的设备是同一个设备
//判断分析批次的设备与检查时维护的设备是同一个设备
List
<
RailWearRecord
>
railWearRecordList
=
deviceProjectList
.
get
(
unitCode
);
List
<
RailWearRecord
>
railWearRecordList
=
deviceProjectList
.
get
(
unitCode
);
if
(
CollectionUtils
.
isNotEmpty
(
railWearRecordList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
railWearRecordList
))
{
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
railWearRecordList
.
forEach
(
model
->
{
railWearRecordList
.
forEach
(
model
->
{
//保存道岔单元信息详情
//保存道岔单元信息详情
saveRailWearRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
saveRailWearRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
...
@@ -248,6 +239,9 @@ public class AnalysisAlgorithmLine {
...
@@ -248,6 +239,9 @@ public class AnalysisAlgorithmLine {
*/
*/
public
void
turnoutCheckDataLineAnalysis
(
AnalysisLineBatch
analysisLineBatch
,
AnalysisLineBatchCheckDataMap
public
void
turnoutCheckDataLineAnalysis
(
AnalysisLineBatch
analysisLineBatch
,
AnalysisLineBatchCheckDataMap
checkDataMap
,
List
<
Map
<
String
,
Object
>>
unitDeviceList
)
{
checkDataMap
,
List
<
Map
<
String
,
Object
>>
unitDeviceList
)
{
//刷选出道岔的设备
unitDeviceList
=
unitDeviceList
.
stream
().
filter
(
map
->
"4"
.
equals
(
map
.
get
(
"type"
).
toString
())).
collect
(
Collectors
.
toList
());
//初始化单元表
//初始化单元表
List
<
AnalysisLineBatchUnitDevice
>
unitList
=
new
ArrayList
<>();
List
<
AnalysisLineBatchUnitDevice
>
unitList
=
new
ArrayList
<>();
//初始化单元表道岔详情
//初始化单元表道岔详情
...
@@ -261,11 +255,11 @@ public class AnalysisAlgorithmLine {
...
@@ -261,11 +255,11 @@ public class AnalysisAlgorithmLine {
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
//获取分析批次筛选的道岔编号
//获取分析批次筛选的道岔编号
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
//判断分析批次的道岔编号在检查时维护的道岔编号是同一个编号
//判断分析批次的道岔编号在检查时维护的道岔编号是同一个编号
List
<
RecordsMasterTurnoutInfo
>
recordsMasterTurnoutInfoList
=
switchCodeList
.
get
(
deviceCode
);
List
<
RecordsMasterTurnoutInfo
>
recordsMasterTurnoutInfoList
=
switchCodeList
.
get
(
deviceCode
);
if
(
CollectionUtils
.
isNotEmpty
(
recordsMasterTurnoutInfoList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
recordsMasterTurnoutInfoList
))
{
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
recordsMasterTurnoutInfoList
.
forEach
(
model
->
{
recordsMasterTurnoutInfoList
.
forEach
(
model
->
{
//保存道岔单元信息详情
//保存道岔单元信息详情
saveUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
saveUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
...
@@ -308,6 +302,7 @@ public class AnalysisAlgorithmLine {
...
@@ -308,6 +302,7 @@ public class AnalysisAlgorithmLine {
unit
.
setUnitCenterMileage
(
new
BigDecimal
(
map
.
get
(
"centerMileage"
).
toString
()));
unit
.
setUnitCenterMileage
(
new
BigDecimal
(
map
.
get
(
"centerMileage"
).
toString
()));
unit
.
setUnitEndMileage
(
new
BigDecimal
(
map
.
get
(
"endMileage"
).
toString
()));
unit
.
setUnitEndMileage
(
new
BigDecimal
(
map
.
get
(
"endMileage"
).
toString
()));
unit
.
setWorkStatus
(
1
);
unit
.
setWorkStatus
(
1
);
unit
.
setMarkStatus
(
1
);
unit
.
setRemark
(
analysisLineBatch
.
getRemark
());
unit
.
setRemark
(
analysisLineBatch
.
getRemark
());
unitList
.
add
(
unit
);
unitList
.
add
(
unit
);
return
unit
.
getId
();
return
unit
.
getId
();
...
@@ -327,7 +322,7 @@ public class AnalysisAlgorithmLine {
...
@@ -327,7 +322,7 @@ public class AnalysisAlgorithmLine {
//维护单元详情表
//维护单元详情表
AnalysisLineBatchUnitDeviceTurnoutInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceTurnoutInfo
();
AnalysisLineBatchUnitDeviceTurnoutInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceTurnoutInfo
();
BeanCopyUtil
.
copyProperties
(
info
,
AnalysisLineBatchUnitDeviceTurnoutInfo
.
class
);
BeanCopyUtil
.
copyProperties
(
info
,
unitInfo
);
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
...
@@ -353,7 +348,7 @@ public class AnalysisAlgorithmLine {
...
@@ -353,7 +348,7 @@ public class AnalysisAlgorithmLine {
//维护单元详情表
//维护单元详情表
AnalysisLineBatchUnitDeviceRailWearInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceRailWearInfo
();
AnalysisLineBatchUnitDeviceRailWearInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceRailWearInfo
();
BeanCopyUtil
.
copyProperties
(
info
,
AnalysisLineBatchUnitDeviceRailWearInfo
.
class
);
BeanCopyUtil
.
copyProperties
(
info
,
unitInfo
);
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
...
@@ -377,7 +372,7 @@ public class AnalysisAlgorithmLine {
...
@@ -377,7 +372,7 @@ public class AnalysisAlgorithmLine {
//维护单元详情表
//维护单元详情表
AnalysisLineBatchUnitDeviceCurveWearInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceCurveWearInfo
();
AnalysisLineBatchUnitDeviceCurveWearInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceCurveWearInfo
();
BeanCopyUtil
.
copyProperties
(
info
,
AnalysisLineBatchUnitDeviceRailWearInfo
.
class
);
BeanCopyUtil
.
copyProperties
(
info
,
unitInfo
);
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
...
@@ -404,7 +399,7 @@ public class AnalysisAlgorithmLine {
...
@@ -404,7 +399,7 @@ public class AnalysisAlgorithmLine {
//维护单元详情表
//维护单元详情表
AnalysisLineBatchUnitDeviceCorrugationInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceCorrugationInfo
();
AnalysisLineBatchUnitDeviceCorrugationInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceCorrugationInfo
();
BeanCopyUtil
.
copyProperties
(
info
,
AnalysisLineBatchUnitDeviceRailWearInfo
.
class
);
BeanCopyUtil
.
copyProperties
(
info
,
unitInfo
);
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/controller/AnalysisLineBatchController.java
View file @
eb673a44
...
@@ -14,8 +14,6 @@ import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchInfoDTO;
...
@@ -14,8 +14,6 @@ import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchInfoDTO;
import
org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.diseaseAnalysis.dto.EkRecordsMasterCheckDTO
;
import
org.jeecg.modules.diseaseAnalysis.dto.EkRecordsMasterCheckDTO
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatch
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatch
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceCorrugationInfo
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceCurveWearInfo
;
import
org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchService
;
import
org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchService
;
import
org.jeecg.modules.diseaseAnalysis.vo.*
;
import
org.jeecg.modules.diseaseAnalysis.vo.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -157,6 +155,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
...
@@ -157,6 +155,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List
<
AnalysisLineBatchUnitDeviceTurnoutInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitEkInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
List
<
AnalysisLineBatchUnitDeviceTurnoutInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitEkInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
Result
.
OK
(
list
);
return
Result
.
OK
(
list
);
}
}
/**
/**
* 线路质量分析-其他病害分析-钢轨探伤单元详情检查记录查询
* 线路质量分析-其他病害分析-钢轨探伤单元详情检查记录查询
*
*
...
@@ -172,6 +171,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
...
@@ -172,6 +171,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List
<
AnalysisLineBatchUnitDeviceRailWearInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceRailWearInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
List
<
AnalysisLineBatchUnitDeviceRailWearInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceRailWearInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
Result
.
OK
(
list
);
return
Result
.
OK
(
list
);
}
}
/**
/**
* 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询
* 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询
*
*
...
@@ -187,6 +187,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
...
@@ -187,6 +187,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
Result
.
OK
(
list
);
return
Result
.
OK
(
list
);
}
}
/**
/**
* 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询
* 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询
*
*
...
@@ -202,6 +203,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
...
@@ -202,6 +203,7 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
Result
.
OK
(
list
);
return
Result
.
OK
(
list
);
}
}
//***********************************分析新增编辑接口*************************************************************************************************************
//***********************************分析新增编辑接口*************************************************************************************************************
@AutoLog
(
value
=
"其他病害分析-分析批次-新增分析批次"
)
@AutoLog
(
value
=
"其他病害分析-分析批次-新增分析批次"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-新增分析批次"
,
notes
=
"其他病害分析-分析批次-新增分析批次"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-新增分析批次"
,
notes
=
"其他病害分析-分析批次-新增分析批次"
)
...
@@ -255,15 +257,23 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
...
@@ -255,15 +257,23 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
@AutoLog
(
value
=
"其他病害分析-分析批次-删除"
)
@AutoLog
(
value
=
"其他病害分析-分析批次-删除"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-删除"
,
notes
=
"其他病害分析-分析批次-删除"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-删除"
,
notes
=
"其他病害分析-分析批次-删除"
)
@GetMapping
(
value
=
"/deleteBatchRecord"
)
@GetMapping
(
value
=
"/deleteBatchRecord"
)
public
Result
<
String
>
deleteBatchRecord
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
,
@RequestParam
(
name
=
"type"
,
required
=
true
)
Integer
type
)
{
public
Result
<
String
>
deleteBatchRecord
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
,
@RequestParam
(
name
=
"type"
,
required
=
true
)
Integer
type
)
{
List
<
String
>
idList
=
new
ArrayList
<>();
List
<
String
>
idList
=
new
ArrayList
<>();
if
(
ids
.
contains
(
","
))
{
if
(
ids
.
contains
(
","
))
{
idList
=
Arrays
.
asList
(
ids
.
split
(
","
));
idList
=
Arrays
.
asList
(
ids
.
split
(
","
));
}
else
{
}
else
{
idList
.
add
(
ids
);
idList
.
add
(
ids
);
}
}
this
.
service
.
deleteBatchRecord
(
idList
,
type
);
this
.
service
.
deleteBatchRecord
(
idList
,
type
);
return
Result
.
OK
(
"批量删除成功!"
);
return
Result
.
OK
(
"批量删除成功!"
);
}
}
@AutoLog
(
value
=
"其他病害分析-分析批次-更新分析单元标记状态"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-更新分析单元标记状态"
,
notes
=
"其他病害分析-分析批次-更新分析单元标记状态"
)
@GetMapping
(
value
=
"/updateRecordMarkStatus"
)
public
Result
<
String
>
updateRecordMarkStatus
(
@RequestParam
(
"id"
)
String
id
,
@RequestParam
(
"status"
)
Integer
status
)
{
this
.
service
.
updateRecordMarkStatus
(
id
,
status
);
return
Result
.
OK
(
"操作成功"
);
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/dto/AnalysisLineBatchInfoDTO.java
View file @
eb673a44
...
@@ -32,4 +32,7 @@ public class AnalysisLineBatchInfoDTO {
...
@@ -32,4 +32,7 @@ public class AnalysisLineBatchInfoDTO {
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
private
Integer
workStatus
;
private
Integer
workStatus
;
@ApiModelProperty
(
"标记状态(1:未标记,2:异常,3:正常)"
)
private
Integer
markStatus
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/dto/AnalysisLineBatchUnitDeviceDTO.java
View file @
eb673a44
...
@@ -82,6 +82,9 @@ public class AnalysisLineBatchUnitDeviceDTO {
...
@@ -82,6 +82,9 @@ public class AnalysisLineBatchUnitDeviceDTO {
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
private
Integer
workStatus
;
private
Integer
workStatus
;
@ApiModelProperty
(
"标记状态(1:未标记,1:异常,2:正常)"
)
private
Integer
markStatus
;
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
private
String
remark
;
private
String
remark
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/entity/AnalysisLineBatchUnitDevice.java
View file @
eb673a44
...
@@ -100,6 +100,14 @@ public class AnalysisLineBatchUnitDevice implements Serializable {
...
@@ -100,6 +100,14 @@ public class AnalysisLineBatchUnitDevice implements Serializable {
@TableField
(
"work_status"
)
@TableField
(
"work_status"
)
private
Integer
workStatus
;
private
Integer
workStatus
;
@ApiModelProperty
(
"标记状态(1:未标记,1:异常,2:正常)"
)
@TableField
(
"mark_status"
)
private
Integer
markStatus
;
@ApiModelProperty
(
"检查结果:1:正常,2:异常(线路巡查时才有值)"
)
@TableField
(
"check_status"
)
private
Integer
checkStatus
;
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
@TableField
(
"remark"
)
private
String
remark
;
private
String
remark
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
View file @
eb673a44
...
@@ -112,7 +112,10 @@
...
@@ -112,7 +112,10 @@
<if
test=
"dto.workStatus != null"
>
<if
test=
"dto.workStatus != null"
>
AND t1.work_status = #{dto.workStatus}
AND t1.work_status = #{dto.workStatus}
</if>
</if>
ORDER BY t1.unit_center_mileage ASC
<if
test=
"dto.markStatus != null"
>
AND t1.mark_status = #{dto.markStatus}
</if>
ORDER BY t1.unit_start_mileage ASC
</select>
</select>
<select
id=
"getAnalysisLineBatchUnitEkInfoList"
resultType=
"org.jeecg.modules.diseaseAnalysis.vo.AnalysisLineBatchUnitDeviceTurnoutInfoVO"
>
<select
id=
"getAnalysisLineBatchUnitEkInfoList"
resultType=
"org.jeecg.modules.diseaseAnalysis.vo.AnalysisLineBatchUnitDeviceTurnoutInfoVO"
>
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/IAnalysisLineBatchService.java
View file @
eb673a44
...
@@ -122,4 +122,11 @@ public interface IAnalysisLineBatchService extends IService<AnalysisLineBatch> {
...
@@ -122,4 +122,11 @@ public interface IAnalysisLineBatchService extends IService<AnalysisLineBatch> {
* @param idList
* @param idList
*/
*/
void
deleteBatchRecord
(
List
<
String
>
idList
,
Integer
type
);
void
deleteBatchRecord
(
List
<
String
>
idList
,
Integer
type
);
/**
* 其他病害分析-分析批次-更新分析单元标记状态
* @param id
* @param status
*/
void
updateRecordMarkStatus
(
String
id
,
Integer
status
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/impl/AnalysisLineBatchServiceImpl.java
View file @
eb673a44
...
@@ -298,4 +298,17 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
...
@@ -298,4 +298,17 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
//4.删除分析主表
//4.删除分析主表
this
.
baseMapper
.
deleteBatchIds
(
idList
);
this
.
baseMapper
.
deleteBatchIds
(
idList
);
}
}
/**
* 其他病害分析-分析批次-更新分析单元标记状态
* @param id
* @param status
*/
@Override
@Transactional
public
void
updateRecordMarkStatus
(
String
id
,
Integer
status
)
{
AnalysisLineBatchUnitDevice
analysisLineBatchUnitDevice
=
new
AnalysisLineBatchUnitDevice
();
analysisLineBatchUnitDevice
.
setId
(
id
);
analysisLineBatchUnitDevice
.
setMarkStatus
(
status
);
analysisLineBatchUnitDeviceMapper
.
updateById
(
analysisLineBatchUnitDevice
);
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/vo/AnalysisLineBatchUnitDeviceVO.java
View file @
eb673a44
...
@@ -4,6 +4,7 @@ package org.jeecg.modules.diseaseAnalysis.vo;
...
@@ -4,6 +4,7 @@ package org.jeecg.modules.diseaseAnalysis.vo;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Getter
;
...
@@ -80,6 +81,12 @@ public class AnalysisLineBatchUnitDeviceVO {
...
@@ -80,6 +81,12 @@ public class AnalysisLineBatchUnitDeviceVO {
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
@ApiModelProperty
(
"派工状态(1:未派工,2:已派工)"
)
private
Integer
workStatus
;
private
Integer
workStatus
;
@ApiModelProperty
(
"标记状态(1:未标记,2:异常,3:正常)"
)
private
Integer
markStatus
;
@ApiModelProperty
(
"检查结果:1:正常,2:异常(线路巡查时才有值)"
)
private
Integer
checkStatus
;
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
private
String
remark
;
private
String
remark
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment