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
41ea2c3b
Commit
41ea2c3b
authored
Jul 26, 2024
by
史志龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钢轨破模和曲线破模分析相关接口提交--shizhilong
parent
ab27c935
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
312 additions
and
18 deletions
+312
-18
AnalysisAlgorithmLine.java
...ules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
+165
-15
AnalysisLineBatchController.java
...seaseAnalysis/controller/AnalysisLineBatchController.java
+32
-1
AnalysisLineBatchMapper.java
...dules/diseaseAnalysis/mapper/AnalysisLineBatchMapper.java
+17
-0
AnalysisLineBatchMapper.xml
...es/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
+39
-0
IAnalysisLineBatchService.java
...es/diseaseAnalysis/service/IAnalysisLineBatchService.java
+18
-0
AnalysisLineBatchServiceImpl.java
...seAnalysis/service/impl/AnalysisLineBatchServiceImpl.java
+41
-2
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
View file @
41ea2c3b
...
@@ -36,10 +36,18 @@ public class AnalysisAlgorithmLine {
...
@@ -36,10 +36,18 @@ public class AnalysisAlgorithmLine {
@Resource
@Resource
private
IAnalysisLineBatchUnitDeviceRailWearInfoService
analysisLineBatchUnitDeviceRailWearInfoService
;
private
IAnalysisLineBatchUnitDeviceRailWearInfoService
analysisLineBatchUnitDeviceRailWearInfoService
;
@Resource
@Resource
private
IAnalysisLineBatchUnitDeviceCurveWearInfoService
analysisLineBatchUnitDeviceCurveWearInfoService
;
@Resource
private
IAnalysisLineBatchUnitDeviceCorrugationInfoService
analysisLineBatchUnitDeviceCorrugationInfoService
;
@Resource
private
IRecordsMasterTurnoutInfoService
turnoutInfoService
;
private
IRecordsMasterTurnoutInfoService
turnoutInfoService
;
@Resource
@Resource
private
IRailWearRecordService
railWearRecordService
;
private
IRailWearRecordService
railWearRecordService
;
@Resource
@Resource
private
ICorrugationRecordService
corrugationRecordService
;
@Resource
private
ICurveWearRecordService
curveWearRecordService
;
@Resource
private
IAnalysisLineBatchUnitDeviceService
unitDeviceService
;
private
IAnalysisLineBatchUnitDeviceService
unitDeviceService
;
@Resource
@Resource
private
IRecordsMasterCheckService
masterCheckService
;
private
IRecordsMasterCheckService
masterCheckService
;
...
@@ -82,21 +90,29 @@ public class AnalysisAlgorithmLine {
...
@@ -82,21 +90,29 @@ public class AnalysisAlgorithmLine {
}
else
if
(
"2"
==
checkDataMap
.
getEkType
())
{
}
else
if
(
"2"
==
checkDataMap
.
getEkType
())
{
//2-钢轨常规探伤检查
//2-钢轨常规探伤检查
//原来
道岔
检查单元信息详情删除
//原来
钢轨常规探伤
检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
wrapper3
.
eq
(
AnalysisLineBatchUnitDeviceRailWearInfo:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
wrapper3
.
eq
(
AnalysisLineBatchUnitDeviceRailWearInfo:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
analysisLineBatchUnitDeviceRailWearInfoService
.
remove
(
wrapper3
);
analysisLineBatchUnitDeviceRailWearInfoService
.
remove
(
wrapper3
);
railWearInfoCheckDataLineAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
railWearInfoCheckDataLineAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
}
else
if
(
"3"
==
checkDataMap
.
getEkType
())
{
//3-曲线钢轨磨耗检查
//原来曲线钢轨磨耗检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCurveWearInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
wrapper3
.
eq
(
AnalysisLineBatchUnitDeviceCurveWearInfo:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
analysisLineBatchUnitDeviceCurveWearInfoService
.
remove
(
wrapper3
);
curveWearInfoCheckDataAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
}
else
if
(
"4"
==
checkDataMap
.
getEkType
())
{
//4-钢轨波磨检查
//原来钢轨波磨检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCorrugationInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
wrapper3
.
eq
(
AnalysisLineBatchUnitDeviceCorrugationInfo:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
analysisLineBatchUnitDeviceCorrugationInfoService
.
remove
(
wrapper3
);
corrugationInfoCheckDataAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
}
}
// else if ("3" == checkDataMap.getEkType()) {
// else if ("5" == checkDataMap.getEkType()) {
// //3-曲线钢轨磨耗检查
// railVehicleCheckDataAnalysis(analysisBatch, checkDataMap, unitDeviceList);
//
// } else if ("4" == checkDataMap.getEkType()) {
// //4-钢轨波磨检查
// addInstrumentAnalysis(analysisBatch, checkDataMap, unitDeviceList);
// } else if ("5" == checkDataMap.getEkType()) {
// //5-道床检查
// //5-道床检查
//
//
// } else {
// } else {
...
@@ -110,6 +126,84 @@ public class AnalysisAlgorithmLine {
...
@@ -110,6 +126,84 @@ public class AnalysisAlgorithmLine {
log
.
info
(
"[分析完成]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】=============分析批次ID:【"
+
analysisLineBatchId
+
"】"
);
log
.
info
(
"[分析完成]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】=============分析批次ID:【"
+
analysisLineBatchId
+
"】"
);
}
}
/**
* 病害分析->钢轨波磨病害分析批次数据、检查批次、1-钢轨,2-曲线,3-竖曲线,4-道岔
*/
public
void
corrugationInfoCheckDataAnalysis
(
AnalysisLineBatch
analysisLineBatch
,
AnalysisLineBatchCheckDataMap
checkDataMap
,
List
<
Map
<
String
,
Object
>>
unitDeviceList
)
{
//初始化单元表
List
<
AnalysisLineBatchUnitDevice
>
unitList
=
new
ArrayList
<>();
//初始化钢轨波磨病害分析单元表详情
List
<
AnalysisLineBatchUnitDeviceCorrugationInfo
>
unitInfoList
=
new
ArrayList
<>();
//获取检查记录详情
List
<
CorrugationRecord
>
ekList
=
corrugationRecordService
.
lambdaQuery
().
eq
(
CorrugationRecord:
:
getRecordsMasterCheckId
,
checkDataMap
.
getEkId
()).
eq
(
CorrugationRecord:
:
getDelFlag
,
"0"
)
.
list
();
//按设备单元编号分组检查记录详情
Map
<
String
,
List
<
CorrugationRecord
>>
deviceProjectList
=
ekList
.
stream
().
collect
(
Collectors
.
groupingBy
(
CorrugationRecord:
:
getDeviceProjectCode
));
if
(
CollectionUtils
.
isNotEmpty
(
ekList
))
{
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
//获取分析批次筛选的单元设备编码
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
//判断分析批次的设备与检查时维护的设备是同一个设备
List
<
CorrugationRecord
>
corrugationRecordList
=
deviceProjectList
.
get
(
unitCode
);
if
(
CollectionUtils
.
isNotEmpty
(
corrugationRecordList
))
{
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
corrugationRecordList
.
forEach
(
model
->
{
//保存道岔单元信息详情
saveCorrugationRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
});
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
unitList
))
{
unitDeviceService
.
saveBatch
(
unitList
);
}
if
(
CollectionUtils
.
isNotEmpty
(
unitInfoList
))
{
analysisLineBatchUnitDeviceCorrugationInfoService
.
saveBatch
(
unitInfoList
);
}
}
/**
* 病害分析->曲线磨耗病害分析批次数据、检查批次、1-钢轨,2-曲线,3-竖曲线,4-道岔
*/
public
void
curveWearInfoCheckDataAnalysis
(
AnalysisLineBatch
analysisLineBatch
,
AnalysisLineBatchCheckDataMap
checkDataMap
,
List
<
Map
<
String
,
Object
>>
unitDeviceList
)
{
//初始化单元表
List
<
AnalysisLineBatchUnitDevice
>
unitList
=
new
ArrayList
<>();
//初始化曲线钢轨磨耗病害分析单元表详情
List
<
AnalysisLineBatchUnitDeviceCurveWearInfo
>
unitInfoList
=
new
ArrayList
<>();
//获取检查记录详情
List
<
CurveWearRecord
>
ekList
=
curveWearRecordService
.
lambdaQuery
().
eq
(
CurveWearRecord:
:
getRecordsMasterCheckId
,
checkDataMap
.
getEkId
()).
eq
(
CurveWearRecord:
:
getDelFlag
,
"0"
)
.
list
();
//按设备单元编号分组检查记录详情
Map
<
String
,
List
<
CurveWearRecord
>>
deviceProjectList
=
ekList
.
stream
().
collect
(
Collectors
.
groupingBy
(
CurveWearRecord:
:
getCurveCode
));
if
(
CollectionUtils
.
isNotEmpty
(
ekList
))
{
for
(
Map
<
String
,
Object
>
map
:
unitDeviceList
)
{
//获取分析批次筛选的单元设备编码
String
unitCode
=
map
.
get
(
"unitCode"
).
toString
();
//判断分析批次的设备与检查时维护的设备是同一个设备
List
<
CurveWearRecord
>
curveWearRecordList
=
deviceProjectList
.
get
(
unitCode
);
if
(
CollectionUtils
.
isNotEmpty
(
curveWearRecordList
))
{
String
deviceCode
=
map
.
get
(
"deviceCode"
).
toString
();
//保存单元信息
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
curveWearRecordList
.
forEach
(
model
->
{
//保存道岔单元信息详情
saveCurveWearRecordUnitInfo
(
analysisLineBatch
,
checkDataMap
,
unitInfoList
,
model
,
deviceId
);
});
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
unitList
))
{
unitDeviceService
.
saveBatch
(
unitList
);
}
if
(
CollectionUtils
.
isNotEmpty
(
unitInfoList
))
{
analysisLineBatchUnitDeviceCurveWearInfoService
.
saveBatch
(
unitInfoList
);
}
}
/**
/**
* 病害分析->钢轨探伤病害分析批次数据、检查批次、1-钢轨,2-曲线,3-竖曲线,4-道岔
* 病害分析->钢轨探伤病害分析批次数据、检查批次、1-钢轨,2-曲线,3-竖曲线,4-道岔
*/
*/
...
@@ -136,18 +230,19 @@ public class AnalysisAlgorithmLine {
...
@@ -136,18 +230,19 @@ public class AnalysisAlgorithmLine {
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
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
);
});
});
}
}
}
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
unitList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
unitList
))
{
unitDeviceService
.
saveBatch
(
unitList
);
unitDeviceService
.
saveBatch
(
unitList
);
}
}
if
(
CollectionUtils
.
isNotEmpty
(
unitInfoList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
unitInfoList
))
{
analysisLineBatchUnitDeviceRailWearInfoService
.
saveBatch
(
unitInfoList
);
analysisLineBatchUnitDeviceRailWearInfoService
.
saveBatch
(
unitInfoList
);
}
}
}
}
/**
/**
* 病害分析->道岔病害分析批次数据、检查批次、1-钢轨,2-曲线,3-竖曲线,4-道岔
* 病害分析->道岔病害分析批次数据、检查批次、1-钢轨,2-曲线,3-竖曲线,4-道岔
*/
*/
...
@@ -173,15 +268,15 @@ public class AnalysisAlgorithmLine {
...
@@ -173,15 +268,15 @@ public class AnalysisAlgorithmLine {
String
deviceId
=
saveUnit
(
analysisLineBatch
,
checkDataMap
,
map
,
unitList
,
deviceCode
);
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
);
});
});
}
}
}
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
unitList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
unitList
))
{
unitDeviceService
.
saveBatch
(
unitList
);
unitDeviceService
.
saveBatch
(
unitList
);
}
}
if
(
CollectionUtils
.
isNotEmpty
(
unitInfoList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
unitInfoList
))
{
analysisLineBatchUnitDeviceTurnoutInfoService
.
saveBatch
(
unitInfoList
);
analysisLineBatchUnitDeviceTurnoutInfoService
.
saveBatch
(
unitInfoList
);
}
}
}
}
...
@@ -219,6 +314,8 @@ public class AnalysisAlgorithmLine {
...
@@ -219,6 +314,8 @@ public class AnalysisAlgorithmLine {
}
}
/**
/**
* 道岔病害分析数据存储
*
* @param analysisLineBatch 分析主表
* @param analysisLineBatch 分析主表
* @param checkDataMap 分析表对应的检查表关系表
* @param checkDataMap 分析表对应的检查表关系表
* @param unitInfoList 最终封装到的集合
* @param unitInfoList 最终封装到的集合
...
@@ -241,8 +338,10 @@ public class AnalysisAlgorithmLine {
...
@@ -241,8 +338,10 @@ public class AnalysisAlgorithmLine {
unitInfo
.
setType
(
info
.
getType
());
unitInfo
.
setType
(
info
.
getType
());
unitInfoList
.
add
(
unitInfo
);
unitInfoList
.
add
(
unitInfo
);
}
}
/**
/**
* 钢轨探伤病害分析单元详情维护
* 钢轨探伤病害分析单元详情维护
*
* @param analysisLineBatch 分析主表
* @param analysisLineBatch 分析主表
* @param checkDataMap 分析表对应的检查表关系表
* @param checkDataMap 分析表对应的检查表关系表
* @param unitInfoList 最终封装到的集合
* @param unitInfoList 最终封装到的集合
...
@@ -263,4 +362,55 @@ public class AnalysisAlgorithmLine {
...
@@ -263,4 +362,55 @@ public class AnalysisAlgorithmLine {
unitInfo
.
setEkId
(
checkDataMap
.
getEkId
());
unitInfo
.
setEkId
(
checkDataMap
.
getEkId
());
unitInfoList
.
add
(
unitInfo
);
unitInfoList
.
add
(
unitInfo
);
}
}
/**
* 曲线磨耗病害分析单元详情维护
*
* @param analysisLineBatch 分析主表
* @param checkDataMap 分析表对应的检查表关系表
* @param unitInfoList 最终封装到的集合
* @param info 检查记录详情
* @param deviceId 单元表id
*/
public
void
saveCurveWearRecordUnitInfo
(
AnalysisLineBatch
analysisLineBatch
,
AnalysisLineBatchCheckDataMap
checkDataMap
,
List
<
AnalysisLineBatchUnitDeviceCurveWearInfo
>
unitInfoList
,
CurveWearRecord
info
,
String
deviceId
)
{
//维护单元详情表
AnalysisLineBatchUnitDeviceCurveWearInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceCurveWearInfo
();
BeanCopyUtil
.
copyProperties
(
info
,
AnalysisLineBatchUnitDeviceRailWearInfo
.
class
);
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
unitInfo
.
setAnalysisBatchCode
(
analysisLineBatch
.
getAnalysisBatchCode
());
unitInfo
.
setEkCode
(
checkDataMap
.
getEkCode
());
unitInfo
.
setEkId
(
checkDataMap
.
getEkId
());
unitInfo
.
setDeviceProjectId
(
info
.
getCurveId
());
unitInfo
.
setDeviceProjectCode
(
info
.
getCurveCode
());
unitInfo
.
setDeviceProjectType
(
info
.
getProjectType
());
unitInfoList
.
add
(
unitInfo
);
}
/**
* 钢轨波磨病害分析单元详情维护
*
* @param analysisLineBatch 分析主表
* @param checkDataMap 分析表对应的检查表关系表
* @param unitInfoList 最终封装到的集合
* @param info 检查记录详情
* @param deviceId 单元表id
*/
public
void
saveCorrugationRecordUnitInfo
(
AnalysisLineBatch
analysisLineBatch
,
AnalysisLineBatchCheckDataMap
checkDataMap
,
List
<
AnalysisLineBatchUnitDeviceCorrugationInfo
>
unitInfoList
,
CorrugationRecord
info
,
String
deviceId
)
{
//维护单元详情表
AnalysisLineBatchUnitDeviceCorrugationInfo
unitInfo
=
new
AnalysisLineBatchUnitDeviceCorrugationInfo
();
BeanCopyUtil
.
copyProperties
(
info
,
AnalysisLineBatchUnitDeviceRailWearInfo
.
class
);
unitInfo
.
setId
(
UUIDGenerator
.
generate
());
unitInfo
.
setDeviceId
(
deviceId
);
unitInfo
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
unitInfo
.
setAnalysisBatchCode
(
analysisLineBatch
.
getAnalysisBatchCode
());
unitInfo
.
setEkCode
(
checkDataMap
.
getEkCode
());
unitInfo
.
setEkId
(
checkDataMap
.
getEkId
());
unitInfoList
.
add
(
unitInfo
);
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/controller/AnalysisLineBatchController.java
View file @
41ea2c3b
...
@@ -14,6 +14,8 @@ import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchInfoDTO;
...
@@ -14,6 +14,8 @@ 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.*
;
...
@@ -170,7 +172,36 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
...
@@ -170,7 +172,36 @@ 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
);
}
}
/**
* 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询
*
* @param analysisBatchId 分析批次id
* @param ekId 检查批次id
* @param deviceId 线路质量分析-其他病害分析-单元表id
* @return
*/
@AutoLog
(
value
=
"线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询"
)
@ApiOperation
(
value
=
"线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询"
,
notes
=
"线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询"
)
@GetMapping
(
value
=
"/getAnalysisLineBatchUnitDeviceCorrugationInfoList"
)
public
Result
<
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>>
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
@RequestParam
String
analysisBatchId
,
@RequestParam
String
ekId
,
@RequestParam
String
deviceId
)
{
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
Result
.
OK
(
list
);
}
/**
* 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询
*
* @param analysisBatchId 分析批次id
* @param ekId 检查批次id
* @param deviceId 线路质量分析-其他病害分析-单元表id
* @return
*/
@AutoLog
(
value
=
"线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询"
)
@ApiOperation
(
value
=
"线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询"
,
notes
=
"线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询"
)
@GetMapping
(
value
=
"/getAnalysisLineBatchUnitDeviceCurveWearInfoList"
)
public
Result
<
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>>
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
@RequestParam
String
analysisBatchId
,
@RequestParam
String
ekId
,
@RequestParam
String
deviceId
)
{
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
Result
.
OK
(
list
);
}
//***********************************分析新增编辑接口*************************************************************************************************************
//***********************************分析新增编辑接口*************************************************************************************************************
@AutoLog
(
value
=
"其他病害分析-分析批次-新增分析批次"
)
@AutoLog
(
value
=
"其他病害分析-分析批次-新增分析批次"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-新增分析批次"
,
notes
=
"其他病害分析-分析批次-新增分析批次"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-新增分析批次"
,
notes
=
"其他病害分析-分析批次-新增分析批次"
)
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/mapper/AnalysisLineBatchMapper.java
View file @
41ea2c3b
...
@@ -86,4 +86,21 @@ public interface AnalysisLineBatchMapper extends BaseMapper<AnalysisLineBatch> {
...
@@ -86,4 +86,21 @@ public interface AnalysisLineBatchMapper extends BaseMapper<AnalysisLineBatch> {
*/
*/
List
<
AnalysisLineBatchUnitDeviceRailWearInfoVO
>
getAnalysisLineBatchUnitDeviceRailWearInfoList
(
@Param
(
"analysisBatchId"
)
String
analysisBatchId
,
@Param
(
"ekId"
)
String
ekId
,
@Param
(
"deviceId"
)
String
deviceId
);
List
<
AnalysisLineBatchUnitDeviceRailWearInfoVO
>
getAnalysisLineBatchUnitDeviceRailWearInfoList
(
@Param
(
"analysisBatchId"
)
String
analysisBatchId
,
@Param
(
"ekId"
)
String
ekId
,
@Param
(
"deviceId"
)
String
deviceId
);
/**
* 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询
* @param analysisBatchId
* @param ekId
* @param deviceId
* @return
*/
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
@Param
(
"analysisBatchId"
)
String
analysisBatchId
,
@Param
(
"ekId"
)
String
ekId
,
@Param
(
"deviceId"
)
String
deviceId
);
/**
* 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询
* @param analysisBatchId
* @param ekId
* @param deviceId
* @return
*/
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
@Param
(
"analysisBatchId"
)
String
analysisBatchId
,
@Param
(
"ekId"
)
String
ekId
,
@Param
(
"deviceId"
)
String
deviceId
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
View file @
41ea2c3b
...
@@ -154,4 +154,43 @@
...
@@ -154,4 +154,43 @@
</if>
</if>
ORDER BY t1.update_time DESC
ORDER BY t1.update_time DESC
</select>
</select>
<select
id=
"getAnalysisLineBatchUnitDeviceCorrugationInfoList"
resultType=
"org.jeecg.modules.diseaseAnalysis.vo.AnalysisLineBatchUnitDeviceCorrugationInfoVO"
>
SELECT
t1.*
FROM
t_dsa_analysis_line_batch_unit_device_corrugation_info t1
WHERE
1=1
AND t1.del_flag = '0'
<if
test=
"analysisBatchId != null and analysisBatchId != ''"
>
AND t1.analysis_batch_id = #{analysisBatchId}
</if>
<if
test=
"ekId != null and ekId != ''"
>
AND t1.ek_id = #{ekId}
</if>
<if
test=
"deviceId != null and deviceId != ''"
>
AND t1.device_id = #{deviceId}
</if>
ORDER BY t1.update_time DESC
</select>
<select
id=
"getAnalysisLineBatchUnitDeviceCurveWearInfoList"
resultType=
"org.jeecg.modules.diseaseAnalysis.vo.AnalysisLineBatchUnitDeviceCurveWearInfoVO"
>
SELECT
t1.*
FROM
t_dsa_analysis_line_batch_unit_device_curve_wear_info t1
WHERE
1=1
AND t1.del_flag = '0'
<if
test=
"analysisBatchId != null and analysisBatchId != ''"
>
AND t1.analysis_batch_id = #{analysisBatchId}
</if>
<if
test=
"ekId != null and ekId != ''"
>
AND t1.ek_id = #{ekId}
</if>
<if
test=
"deviceId != null and deviceId != ''"
>
AND t1.device_id = #{deviceId}
</if>
ORDER BY t1.update_time DESC
</select>
</mapper>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/IAnalysisLineBatchService.java
View file @
41ea2c3b
...
@@ -87,6 +87,24 @@ public interface IAnalysisLineBatchService extends IService<AnalysisLineBatch> {
...
@@ -87,6 +87,24 @@ public interface IAnalysisLineBatchService extends IService<AnalysisLineBatch> {
* @return
* @return
*/
*/
List
<
AnalysisLineBatchUnitDeviceRailWearInfoVO
>
getAnalysisLineBatchUnitDeviceRailWearInfoList
(
String
analysisBatchId
,
String
ekId
,
String
deviceId
);
List
<
AnalysisLineBatchUnitDeviceRailWearInfoVO
>
getAnalysisLineBatchUnitDeviceRailWearInfoList
(
String
analysisBatchId
,
String
ekId
,
String
deviceId
);
/**
* 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询
* @param analysisBatchId
* @param ekId
* @param deviceId
* @return
*/
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
String
analysisBatchId
,
String
ekId
,
String
deviceId
);
/**
* 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询
* @param analysisBatchId
* @param ekId
* @param deviceId
* @return
*/
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
String
analysisBatchId
,
String
ekId
,
String
deviceId
);
/**
/**
*其他病害分析-分析批次-新增分析批次
*其他病害分析-分析批次-新增分析批次
* @param dto
* @param dto
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/impl/AnalysisLineBatchServiceImpl.java
View file @
41ea2c3b
...
@@ -41,6 +41,10 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
...
@@ -41,6 +41,10 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
private
AnalysisLineBatchUnitDeviceTurnoutInfoMapper
analysisLineBatchUnitDeviceTurnoutInfoMapper
;
private
AnalysisLineBatchUnitDeviceTurnoutInfoMapper
analysisLineBatchUnitDeviceTurnoutInfoMapper
;
@Resource
@Resource
private
AnalysisLineBatchUnitDeviceRailWearInfoMapper
analysisLineBatchUnitDeviceRailWearInfoMapper
;
private
AnalysisLineBatchUnitDeviceRailWearInfoMapper
analysisLineBatchUnitDeviceRailWearInfoMapper
;
@Resource
private
AnalysisLineBatchUnitDeviceCurveWearInfoMapper
analysisLineBatchUnitDeviceCurveWearInfoMapper
;
@Resource
private
AnalysisLineBatchUnitDeviceCorrugationInfoMapper
analysisLineBatchUnitDeviceCorrugationInfoMapper
;
/**
/**
* 线路质量分析-其他病害分析-检查记录-分页列表查询
* 线路质量分析-其他病害分析-检查记录-分页列表查询
*
*
...
@@ -137,6 +141,31 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
...
@@ -137,6 +141,31 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
return
list
;
return
list
;
}
}
/**
* 线路质量分析-其他病害分析-钢轨波磨单元详情检查记录查询
* @param analysisBatchId
* @param ekId
* @param deviceId
* @return
*/
@Override
public
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
String
analysisBatchId
,
String
ekId
,
String
deviceId
)
{
List
<
AnalysisLineBatchUnitDeviceCorrugationInfoVO
>
list
=
this
.
baseMapper
.
getAnalysisLineBatchUnitDeviceCorrugationInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
list
;
}
/**
* 线路质量分析-其他病害分析-曲线波磨单元详情检查记录查询
* @param analysisBatchId
* @param ekId
* @param deviceId
* @return
*/
@Override
public
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
String
analysisBatchId
,
String
ekId
,
String
deviceId
)
{
List
<
AnalysisLineBatchUnitDeviceCurveWearInfoVO
>
list
=
this
.
baseMapper
.
getAnalysisLineBatchUnitDeviceCurveWearInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
list
;
}
/**
/**
*其他病害分析-分析批次-新增分析批次
*其他病害分析-分析批次-新增分析批次
* @param dto
* @param dto
...
@@ -244,17 +273,27 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
...
@@ -244,17 +273,27 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
LambdaQueryWrapper
<
AnalysisLineBatchUnitDevice
>
wrapper1
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDevice
>
wrapper1
=
Wrappers
.
lambdaQuery
();
wrapper1
.
in
(
AnalysisLineBatchUnitDevice:
:
getAnalysisBatchId
,
idList
);
wrapper1
.
in
(
AnalysisLineBatchUnitDevice:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchUnitDeviceMapper
.
delete
(
wrapper1
);
analysisLineBatchUnitDeviceMapper
.
delete
(
wrapper1
);
//type值检查数据类型 1-道岔检查 2-钢轨常规探伤检查 3-曲线
钢轨
磨耗检查 4-钢轨波磨检查 5-道床检查 6-线路检查
//type值检查数据类型 1-道岔检查 2-钢轨常规探伤检查 3-曲线磨耗检查 4-钢轨波磨检查 5-道床检查 6-线路检查
if
(
type
==
1
){
if
(
type
==
1
){
//3.删除道岔单元详情表
//3.删除道岔单元详情表
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceTurnoutInfo
>
wrapper2
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceTurnoutInfo
>
wrapper2
=
Wrappers
.
lambdaQuery
();
wrapper2
.
in
(
AnalysisLineBatchUnitDeviceTurnoutInfo:
:
getAnalysisBatchId
,
idList
);
wrapper2
.
in
(
AnalysisLineBatchUnitDeviceTurnoutInfo:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchUnitDeviceTurnoutInfoMapper
.
delete
(
wrapper2
);
analysisLineBatchUnitDeviceTurnoutInfoMapper
.
delete
(
wrapper2
);
}
else
if
(
type
==
2
){
}
else
if
(
type
==
2
){
//3.删除
道岔
单元详情表
//3.删除
钢轨常规探伤
单元详情表
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
wrapper2
=
Wrappers
.
lambdaQuery
();
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
wrapper2
=
Wrappers
.
lambdaQuery
();
wrapper2
.
in
(
AnalysisLineBatchUnitDeviceRailWearInfo:
:
getAnalysisBatchId
,
idList
);
wrapper2
.
in
(
AnalysisLineBatchUnitDeviceRailWearInfo:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchUnitDeviceRailWearInfoMapper
.
delete
(
wrapper2
);
analysisLineBatchUnitDeviceRailWearInfoMapper
.
delete
(
wrapper2
);
}
else
if
(
type
==
3
){
//3.删除曲线磨耗单元详情表
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCurveWearInfo
>
wrapper2
=
Wrappers
.
lambdaQuery
();
wrapper2
.
in
(
AnalysisLineBatchUnitDeviceCurveWearInfo:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchUnitDeviceCurveWearInfoMapper
.
delete
(
wrapper2
);
}
else
if
(
type
==
4
){
//3.删除钢轨波磨单元详情表
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceCorrugationInfo
>
wrapper2
=
Wrappers
.
lambdaQuery
();
wrapper2
.
in
(
AnalysisLineBatchUnitDeviceCorrugationInfo:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchUnitDeviceCorrugationInfoMapper
.
delete
(
wrapper2
);
}
}
//4.删除分析主表
//4.删除分析主表
this
.
baseMapper
.
deleteBatchIds
(
idList
);
this
.
baseMapper
.
deleteBatchIds
(
idList
);
...
...
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