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
a7ffe6ed
Commit
a7ffe6ed
authored
Aug 01, 2023
by
hkl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-hkl' into 'dev'
Dev hkl See merge request
!44
parents
84b4f9fd
4e3cfb57
Changes
77
Show whitespace changes
Inline
Side-by-side
Showing
77 changed files
with
1839 additions
and
81 deletions
+1839
-81
CodeGenerate.java
...em/src/main/java/org/jeecg/codegenerate/CodeGenerate.java
+2
-3
InitData.java
...-system/src/main/java/org/jeecg/config/init/InitData.java
+8
-1
SystemInitRunner.java
...src/main/java/org/jeecg/config/init/SystemInitRunner.java
+1
-1
DictConstant.java
...rc/main/java/org/jeecg/modules/constant/DictConstant.java
+13
-0
RailManagementMapper.java
...eecg/modules/deviceAsset/mapper/RailManagementMapper.java
+1
-1
RailManagementMapper.xml
...g/modules/deviceAsset/mapper/xml/RailManagementMapper.xml
+23
-13
IRailManagementService.java
...g/modules/deviceAsset/service/IRailManagementService.java
+1
-1
RailManagementServiceImpl.java
...s/deviceAsset/service/impl/RailManagementServiceImpl.java
+3
-6
AnalysisAlgorithm.java
...es/dynamicStaticAnalysis/algorithm/AnalysisAlgorithm.java
+187
-0
Buffer.java
...jeecg/modules/dynamicStaticAnalysis/algorithm/Buffer.java
+5
-1
MultiProducer.java
...odules/dynamicStaticAnalysis/algorithm/MultiProducer.java
+2
-2
SingleConsumer.java
...dules/dynamicStaticAnalysis/algorithm/SingleConsumer.java
+18
-5
ConfigGradeLimitController.java
...StaticAnalysis/controller/ConfigGradeLimitController.java
+47
-0
ConfigInstrumentCheckController.java
...cAnalysis/controller/ConfigInstrumentCheckController.java
+51
-0
ConfigLabourCheckController.java
...taticAnalysis/controller/ConfigLabourCheckController.java
+46
-0
ConfigRailDeviceCheckController.java
...cAnalysis/controller/ConfigRailDeviceCheckController.java
+48
-0
ConfigRailVehicleCheckController.java
...Analysis/controller/ConfigRailVehicleCheckController.java
+45
-0
ConfigRailVehicleTqlController.java
...icAnalysis/controller/ConfigRailVehicleTqlController.java
+45
-0
AnalysisBatch.java
...g/modules/dynamicStaticAnalysis/entity/AnalysisBatch.java
+6
-6
ConfigGradeLimit.java
...odules/dynamicStaticAnalysis/entity/ConfigGradeLimit.java
+90
-0
ConfigInstrumentCheck.java
...s/dynamicStaticAnalysis/entity/ConfigInstrumentCheck.java
+74
-0
ConfigLabourCheck.java
...dules/dynamicStaticAnalysis/entity/ConfigLabourCheck.java
+76
-0
ConfigRailDeviceCheck.java
...s/dynamicStaticAnalysis/entity/ConfigRailDeviceCheck.java
+74
-0
ConfigRailVehicleCheck.java
.../dynamicStaticAnalysis/entity/ConfigRailVehicleCheck.java
+94
-0
ConfigRailVehicleTql.java
...es/dynamicStaticAnalysis/entity/ConfigRailVehicleTql.java
+96
-0
AnalysisAlgorithmMapper.java
...dynamicStaticAnalysis/mapper/AnalysisAlgorithmMapper.java
+23
-0
ConfigGradeLimitMapper.java
.../dynamicStaticAnalysis/mapper/ConfigGradeLimitMapper.java
+16
-0
ConfigInstrumentCheckMapper.java
...micStaticAnalysis/mapper/ConfigInstrumentCheckMapper.java
+16
-0
ConfigLabourCheckMapper.java
...dynamicStaticAnalysis/mapper/ConfigLabourCheckMapper.java
+16
-0
ConfigRailDeviceCheckMapper.java
...micStaticAnalysis/mapper/ConfigRailDeviceCheckMapper.java
+16
-0
ConfigRailVehicleCheckMapper.java
...icStaticAnalysis/mapper/ConfigRailVehicleCheckMapper.java
+16
-0
ConfigRailVehicleTqlMapper.java
...amicStaticAnalysis/mapper/ConfigRailVehicleTqlMapper.java
+16
-0
AnalysisAlgorithmMapper.xml
...amicStaticAnalysis/mapper/xml/AnalysisAlgorithmMapper.xml
+57
-0
ConfigGradeLimitMapper.xml
...namicStaticAnalysis/mapper/xml/ConfigGradeLimitMapper.xml
+5
-0
ConfigInstrumentCheckMapper.xml
...StaticAnalysis/mapper/xml/ConfigInstrumentCheckMapper.xml
+5
-0
ConfigLabourCheckMapper.xml
...amicStaticAnalysis/mapper/xml/ConfigLabourCheckMapper.xml
+5
-0
ConfigRailDeviceCheckMapper.xml
...StaticAnalysis/mapper/xml/ConfigRailDeviceCheckMapper.xml
+5
-0
ConfigRailVehicleCheckMapper.xml
...taticAnalysis/mapper/xml/ConfigRailVehicleCheckMapper.xml
+5
-0
ConfigRailVehicleTqlMapper.xml
...cStaticAnalysis/mapper/xml/ConfigRailVehicleTqlMapper.xml
+5
-0
IConfigGradeLimitService.java
...namicStaticAnalysis/service/IConfigGradeLimitService.java
+19
-0
IConfigInstrumentCheckService.java
...StaticAnalysis/service/IConfigInstrumentCheckService.java
+19
-0
IConfigLabourCheckService.java
...amicStaticAnalysis/service/IConfigLabourCheckService.java
+16
-0
IConfigRailDeviceCheckService.java
...StaticAnalysis/service/IConfigRailDeviceCheckService.java
+16
-0
IConfigRailVehicleCheckService.java
...taticAnalysis/service/IConfigRailVehicleCheckService.java
+19
-0
IConfigRailVehicleTqlService.java
...cStaticAnalysis/service/IConfigRailVehicleTqlService.java
+19
-0
AnalysisBatchServiceImpl.java
...StaticAnalysis/service/impl/AnalysisBatchServiceImpl.java
+7
-0
ConfigGradeLimitServiceImpl.java
...ticAnalysis/service/impl/ConfigGradeLimitServiceImpl.java
+118
-0
ConfigInstrumentCheckServiceImpl.java
...alysis/service/impl/ConfigInstrumentCheckServiceImpl.java
+28
-0
ConfigLabourCheckServiceImpl.java
...icAnalysis/service/impl/ConfigLabourCheckServiceImpl.java
+20
-0
ConfigRailDeviceCheckServiceImpl.java
...alysis/service/impl/ConfigRailDeviceCheckServiceImpl.java
+20
-0
ConfigRailVehicleCheckServiceImpl.java
...lysis/service/impl/ConfigRailVehicleCheckServiceImpl.java
+36
-0
ConfigRailVehicleTqlServiceImpl.java
...nalysis/service/impl/ConfigRailVehicleTqlServiceImpl.java
+27
-0
人工检查超限权值-曲线.json
...g/modules/dynamicStaticAnalysis/template/人工检查超限权值-曲线.json
+9
-0
人工检查超限权值-竖曲线.json
.../modules/dynamicStaticAnalysis/template/人工检查超限权值-竖曲线.json
+9
-0
人工检查超限权值-道岔.json
...g/modules/dynamicStaticAnalysis/template/人工检查超限权值-道岔.json
+9
-0
人工检查超限权值-钢轨.json
...g/modules/dynamicStaticAnalysis/template/人工检查超限权值-钢轨.json
+9
-0
添乘仪检查超限权值-曲线.json
.../modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-曲线.json
+6
-0
添乘仪检查超限权值-竖曲线.json
...modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-竖曲线.json
+6
-0
添乘仪检查超限权值-道岔.json
.../modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-道岔.json
+6
-0
添乘仪检查超限权值-钢轨.json
.../modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-钢轨.json
+6
-0
轨检仪检查超限权值-曲线.json
.../modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-曲线.json
+9
-0
轨检仪检查超限权值-竖曲线.json
...modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-竖曲线.json
+9
-0
轨检仪检查超限权值-道岔.json
.../modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-道岔.json
+9
-0
轨检仪检查超限权值-钢轨.json
.../modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-钢轨.json
+9
-0
轨检车TQI超限权值-曲线.json
...modules/dynamicStaticAnalysis/template/轨检车TQI超限权值-曲线.json
+10
-0
轨检车TQI超限权值-竖曲线.json
...odules/dynamicStaticAnalysis/template/轨检车TQI超限权值-竖曲线.json
+10
-0
轨检车TQI超限权值-道岔.json
...modules/dynamicStaticAnalysis/template/轨检车TQI超限权值-道岔.json
+10
-0
轨检车TQI超限权值-钢轨.json
...modules/dynamicStaticAnalysis/template/轨检车TQI超限权值-钢轨.json
+10
-0
轨检车检查超限权值-曲线.json
.../modules/dynamicStaticAnalysis/template/轨检车检查超限权值-曲线.json
+14
-0
轨检车检查超限权值-竖曲线.json
...modules/dynamicStaticAnalysis/template/轨检车检查超限权值-竖曲线.json
+14
-0
轨检车检查超限权值-道岔.json
.../modules/dynamicStaticAnalysis/template/轨检车检查超限权值-道岔.json
+14
-0
轨检车检查超限权值-钢轨.json
.../modules/dynamicStaticAnalysis/template/轨检车检查超限权值-钢轨.json
+14
-0
LightRailMapper.xml
...eecg/modules/subwayNetwork/mapper/xml/LightRailMapper.xml
+1
-4
SubwaySectionMapper.xml
.../modules/subwayNetwork/mapper/xml/SubwaySectionMapper.xml
+11
-11
TrainStationMapper.xml
...g/modules/subwayNetwork/mapper/xml/TrainStationMapper.xml
+6
-7
SectionStationNode.java
...rg/jeecg/modules/subwayNetwork/vo/SectionStationNode.java
+3
-2
UnitCodeUtil.java
...m/src/main/java/org/jeecg/modules/utils/UnitCodeUtil.java
+0
-17
No files found.
jeecg-module-system/src/main/java/org/jeecg/codegenerate/CodeGenerate.java
View file @
a7ffe6ed
...
...
@@ -29,8 +29,7 @@ public class CodeGenerate {
// 表名
String
[]
tables
=
{
"t_dsa_analysis_batch"
,
"t_dsa_analysis_batch_check_data_map"
,
"t_dsa_config_grade_limit"
,
};
...
...
@@ -58,7 +57,7 @@ public class CodeGenerate {
// 设置过滤前缀
.
strategyConfig
(
builder
->
{
builder
.
addInclude
(
tables
)
// 设置需要生成的表名
.
addTablePrefix
(
"t_sn"
,
"t_da"
,
"t_ek"
,
"t_xd"
,
"t_dsg"
,
"t_djt"
,
"t_jh"
,
"t_dsa"
);
// 设置过滤表前缀
.
addTablePrefix
(
"t_sn"
,
"t_da"
,
"t_ek"
,
"t_xd"
,
"t_dsg"
,
"t_djt"
,
"t_jh"
,
"t_dsa"
);
// 设置过滤表前缀
// entity实体策略
builder
.
entityBuilder
()
...
...
jeecg-module-system/src/main/java/org/jeecg/config/init/InitData.java
View file @
a7ffe6ed
...
...
@@ -4,7 +4,8 @@ import org.jeecg.modules.deviceAsset.service.ICurveManagementService;
import
org.jeecg.modules.deviceAsset.service.IRailManagementService
;
import
org.jeecg.modules.deviceAsset.service.ISwitchManagementService
;
import
org.jeecg.modules.deviceAsset.service.IVerticalCurveManagementService
;
import
org.jeecg.modules.deviceAsset.service.impl.RailManagementServiceImpl
;
import
org.jeecg.modules.dynamicStaticAnalysis.algorithm.AnalysisAlgorithm
;
import
org.jeecg.modules.dynamicStaticAnalysis.algorithm.SingleConsumer
;
import
org.jeecg.modules.subwayNetwork.service.ILineAliasService
;
import
org.jeecg.modules.utils.UnitCodeUtil
;
import
org.springframework.beans.factory.InitializingBean
;
...
...
@@ -32,6 +33,10 @@ public class InitData implements InitializingBean {
@Resource
private
IRailManagementService
railManagementService
;
@Resource
private
AnalysisAlgorithm
analysisAlgorithm
;
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
UnitCodeUtil
.
setService
(
lineAliasService
,
...
...
@@ -39,5 +44,7 @@ public class InitData implements InitializingBean {
curveManagementService
,
verticalCurveManagementService
,
railManagementService
);
SingleConsumer
.
setService
(
analysisAlgorithm
);
}
}
jeecg-module-system/src/main/java/org/jeecg/config/init/SystemInitRunner.java
View file @
a7ffe6ed
...
...
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
public
class
SystemInitRunner
implements
ApplicationRunner
{
@Override
public
void
run
(
ApplicationArguments
args
)
throws
Exception
{
//
开启消费者
//
单独开启消费者线程
new
Thread
(
SingleConsumer:
:
consume
).
start
();
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/constant/DictConstant.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
constant
;
/**
* @Description: 通用常量
* @author: hkl
* @data: 2023-08-01 16:41:33
*/
public
class
DictConstant
{
/**
* 设备速度等级
*/
public
static
final
String
EQUIPMENT_SPEED_OPTS
=
"equipment_speed_opts"
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/mapper/RailManagementMapper.java
View file @
a7ffe6ed
...
...
@@ -21,5 +21,5 @@ public interface RailManagementMapper extends BaseMapper<RailManagement> {
Page
<
RailManagementVO
>
queryPageList
(
Page
<
RailManagementVO
>
pageData
,
RailManagementDTO
dto
);
List
<
Map
<
String
,
Object
>>
getLineSpecialRail
(
String
lineAliasId
);
List
<
Map
<
String
,
Object
>>
getLineSpecialRail
(
String
li
ghtRailId
,
String
li
neAliasId
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/mapper/xml/RailManagementMapper.xml
View file @
a7ffe6ed
...
...
@@ -28,6 +28,7 @@
</select>
<select
id=
"getLineSpecialRail"
resultType=
"java.util.Map"
>
SELECT
id,
unitCode,
startMileage,
endMileage,
...
...
@@ -35,38 +36,47 @@
FROM
(
SELECT
t1.id,
t1.unit_code unitCode,
t1.curve_mileage_zh startMileage,
t1.curve_mileage_hz endMileage,
'曲线' type
FROM
t_da_curve_management t1
LEFT JOIN t_sn_train_station t2 ON t1.section_id = t1.id
WHERE
t1.line_alias_id = #{lineAliasId}
AND t2.light_rail_id = #{lightRailId}
UNION ALL
SELECT
unit_code unitCode,
starting_mileage startMileage,
end_mileage endMileage,
t1.id,
t1.unit_code unitCode,
t1.starting_mileage startMileage,
t1.end_mileage endMileage,
'竖曲线' type
FROM
t_da_vertical_curve_management
t_da_vertical_curve_management t1
LEFT JOIN t_sn_train_station t2 ON t1.section_id = t1.id
WHERE
line_alias_id = #{lineAliasId}
t1.line_alias_id = #{lineAliasId}
AND t2.light_rail_id = #{lightRailId}
UNION ALL
SELECT
unit_code unitCode,
byroad_pre_mileage startMileage,
byroad_end_mileage endMileage,
t1.id,
t1.unit_code unitCode,
t1.byroad_pre_mileage startMileage,
t1.byroad_end_mileage endMileage,
'道岔' type
FROM
t_da_switch_management
t_da_switch_management t1
LEFT JOIN t_sn_section_station_map t2 ON t1.section_station_map_id = t2.id
LEFT JOIN t_sn_subway_section t3 ON t2.section_id = t3.id
AND t3.line_alias_id = t1.line_alias_id
WHERE
line_alias_id = #{lineAliasId}
t1.line_alias_id = #{lineAliasId}
AND t2.light_rail_id = #{lightRailId}
) t
ORDER BY
t.startMileage
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/service/IRailManagementService.java
View file @
a7ffe6ed
...
...
@@ -30,5 +30,5 @@ public interface IRailManagementService extends IService<RailManagement> {
*
* @param lineAliasId 线别ID
*/
List
<
Map
<
String
,
Object
>>
getLineSpecialRail
(
String
lineAliasId
);
List
<
Map
<
String
,
Object
>>
getLineSpecialRail
(
String
li
ghtRailId
,
String
li
neAliasId
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/deviceAsset/service/impl/RailManagementServiceImpl.java
View file @
a7ffe6ed
...
...
@@ -2,12 +2,9 @@ package org.jeecg.modules.deviceAsset.service.impl;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
ognl.IntHashMap
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.deviceAsset.dto.RailManagementDTO
;
import
org.jeecg.modules.deviceAsset.entity.RailManagement
;
...
...
@@ -188,7 +185,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
* @param lineAliasId
*/
private
void
generationCore
(
LightRail
lightRail
,
List
<
RailManagement
>
allRailList
,
String
lineAliasId
)
{
List
<
Map
<
String
,
Object
>>
lineSpecialRailList
=
this
.
getLineSpecialRail
(
lineAliasId
);
List
<
Map
<
String
,
Object
>>
lineSpecialRailList
=
this
.
getLineSpecialRail
(
li
ghtRail
.
getId
(),
li
neAliasId
);
BigDecimal
lineStartMileage
=
BigDecimal
.
ZERO
;
BigDecimal
endMileage
=
lightRail
.
getUpLineMileage
();
...
...
@@ -271,7 +268,7 @@ public class RailManagementServiceImpl extends ServiceImpl<RailManagementMapper,
@Override
public
List
<
Map
<
String
,
Object
>>
getLineSpecialRail
(
String
lineAliasId
)
{
return
this
.
baseMapper
.
getLineSpecialRail
(
lineAliasId
);
public
List
<
Map
<
String
,
Object
>>
getLineSpecialRail
(
String
li
ghtRailId
,
String
li
neAliasId
)
{
return
this
.
baseMapper
.
getLineSpecialRail
(
li
ghtRailId
,
li
neAliasId
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/algorithm/AnalysisAlgorithm.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
algorithm
;
import
cn.hutool.core.convert.Convert
;
import
cn.hutool.core.convert.Converter
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItem
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.entity.RailInspectionEquipmentItemDetail
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.service.IRailInspectionEquipmentItemDetailService
;
import
org.jeecg.modules.checkData.dynamicStaticGeometricData.service.IRailInspectionEquipmentItemService
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementCourse
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementCourseInfo
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IMovementCourseInfoService
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IMovementCourseService
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchCheckDataMap
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisAlgorithmMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchCheckDataMapService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.TreeMap
;
import
java.util.stream.Collectors
;
/**
* 分析算法
*/
@Service
public
class
AnalysisAlgorithm
{
@Resource
private
AnalysisAlgorithmMapper
analysisAlgorithmMapper
;
@Resource
private
IAnalysisBatchService
analysisBatchService
;
@Resource
private
IAnalysisBatchCheckDataMapService
analysisBatchCheckDataMapService
;
@Resource
private
IMovementCourseInfoService
movementCourseInfoService
;
@Resource
private
IMovementCourseService
movementCourseService
;
@Resource
private
IRailInspectionEquipmentItemService
railInspectionEquipmentItemService
;
@Resource
private
IRailInspectionEquipmentItemDetailService
railInspectionEquipmentItemDetailService
;
/**
* 分析
*/
public
void
analysis
(
String
analysisBatchId
)
{
// 1.映射单元格
// 1.1 获取分析批次数据
AnalysisBatch
analysisBatch
=
analysisBatchService
.
getById
(
analysisBatchId
);
List
<
AnalysisBatchCheckDataMap
>
analysisBatchCheckDataMapList
=
analysisBatchCheckDataMapService
.
lambdaQuery
()
.
eq
(
AnalysisBatchCheckDataMap:
:
getAnalysisBatchId
,
analysisBatchId
)
.
list
();
// 1.2 按公里数正序排序所有道岔,钢轨,曲线,竖曲线
List
<
Map
<
String
,
Object
>>
unitDeviceList
=
analysisAlgorithmMapper
.
getUnitDevice
(
analysisBatch
.
getLightRailId
(),
analysisBatch
.
getLineAliasId
());
Map
<
String
,
Map
<
String
,
Object
>>
unitDeviceTable
=
new
TreeMap
<>();
// 1.3 获取检查数据
for
(
AnalysisBatchCheckDataMap
checkDataMap
:
analysisBatchCheckDataMapList
)
{
// 检查数据类型 1-人工静态检查 2-轨检仪静态检查 3-轨检车检查 4-添乘仪检查
if
(
1
==
checkDataMap
.
getEkType
())
{
// 1 获取人工检查数据
List
<
MovementCourse
>
checkItemList
=
movementCourseService
.
lambdaQuery
()
.
eq
(
MovementCourse:
:
getMovementMasterId
,
checkDataMap
.
getEkId
())
.
list
();
List
<
MovementCourseInfo
>
checkItemItemDetailList
=
movementCourseInfoService
.
lambdaQuery
()
.
eq
(
MovementCourseInfo:
:
getMovementMasterId
,
checkDataMap
.
getEkId
())
.
list
();
Map
<
String
,
List
<
MovementCourseInfo
>>
checkItemItemDetailMap
=
checkItemItemDetailList
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
MovementCourseInfo:
:
getMovementCourseId
));
// 2 循环遍历检查项目比较【开始-结束】来映射关联关系
for
(
MovementCourse
checkItem
:
checkItemList
)
{
// 2.1 这里可能出现开始时间比结束时间大的情况
BigDecimal
checkItemStartingMileage
=
checkItem
.
getCourseStartingMileage
();
BigDecimal
checkItemEndMileage
=
checkItem
.
getCourseEndMileage
();
if
(
checkItemStartingMileage
.
compareTo
(
checkItemEndMileage
)
>
0
)
{
checkItemStartingMileage
=
checkItem
.
getCourseEndMileage
();
checkItemEndMileage
=
checkItem
.
getCourseStartingMileage
();
}
// 2.2 单元设备中心里程落在检查项目【开始-结束】这个区间视为这个区间的单元设备
for
(
Map
<
String
,
Object
>
unitDevice
:
unitDeviceList
)
{
BigDecimal
startMileage
=
Convert
.
toBigDecimal
(
unitDevice
.
get
(
"startMileage"
));
BigDecimal
endMileage
=
Convert
.
toBigDecimal
(
unitDevice
.
get
(
"endMileage"
));
BigDecimal
centerMileage
=
startMileage
.
add
(
endMileage
).
divide
(
new
BigDecimal
(
"2"
),
3
,
RoundingMode
.
HALF_UP
);
unitDevice
.
put
(
"centerMileage"
,
centerMileage
);
// 2.2.1 命中检查项目
if
(
checkItemStartingMileage
.
compareTo
(
centerMileage
)
<=
0
&&
checkItemEndMileage
.
compareTo
(
centerMileage
)
>
0
)
{
List
<
MovementCourseInfo
>
movementCourseInfos
=
checkItemItemDetailMap
.
get
(
checkItem
.
getId
());
if
(
ObjectUtil
.
isNotEmpty
(
movementCourseInfos
))
{
// 1 处理3个格子映射问题
Map
<
String
,
List
<
MovementCourseInfo
>>
trackCodeMap
=
movementCourseInfos
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
MovementCourseInfo:
:
getTrackCode
));
int
size
=
trackCodeMap
.
size
();
BigDecimal
averageDec
=
checkItemEndMileage
.
subtract
(
checkItemStartingMileage
).
divide
(
new
BigDecimal
(
size
),
3
,
RoundingMode
.
HALF_UP
);
List
<
String
>
trackCodes
=
trackCodeMap
.
keySet
().
stream
()
.
mapToInt
(
Integer:
:
valueOf
)
.
sorted
()
.
mapToObj
(
String:
:
valueOf
)
.
collect
(
Collectors
.
toList
());
BigDecimal
currentStartMileage
=
checkItemStartingMileage
;
BigDecimal
currentEndEndMileage
=
checkItemStartingMileage
.
add
(
averageDec
);
for
(
String
trackCode
:
trackCodes
)
{
// 2.命中格子
if
(
currentStartMileage
.
compareTo
(
centerMileage
)
<=
0
&&
currentEndEndMileage
.
compareTo
(
centerMileage
)
>
0
)
{
String
unitCode
=
Convert
.
toStr
(
unitDevice
.
get
(
"unitCode"
));
// 人工检查数据
List
<
MovementCourseInfo
>
labourCheck
=
trackCodeMap
.
get
(
trackCode
);
unitDevice
.
put
(
"labourCheck"
,
labourCheck
);
unitDeviceTable
.
putIfAbsent
(
unitCode
,
unitDevice
);
}
else
{
currentStartMileage
=
currentEndEndMileage
;
currentEndEndMileage
=
currentEndEndMileage
.
add
(
averageDec
);
}
}
}
}
}
}
}
else
if
(
2
==
checkDataMap
.
getEkType
())
{
// 1 获取轨检仪静态检查
List
<
RailInspectionEquipmentItem
>
checkItemList
=
railInspectionEquipmentItemService
.
lambdaQuery
()
.
eq
(
RailInspectionEquipmentItem:
:
getRailInspectionEquipmentId
,
checkDataMap
.
getEkId
())
.
list
();
List
<
RailInspectionEquipmentItemDetail
>
checkItemItemDetailList
=
railInspectionEquipmentItemDetailService
.
lambdaQuery
()
.
eq
(
RailInspectionEquipmentItemDetail:
:
getRailInspectionEquipmentId
,
checkDataMap
.
getEkId
())
.
list
();
Map
<
String
,
List
<
RailInspectionEquipmentItemDetail
>>
checkItemItemDetailMap
=
checkItemItemDetailList
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
RailInspectionEquipmentItemDetail:
:
getRailInspectionEquipmentId
));
// 2 循环遍历检查项目比较【开始-结束】来映射关联关系
for
(
RailInspectionEquipmentItem
checkItem
:
checkItemList
)
{
// 2.1 这里可能出现开始时间比结束时间大的情况
BigDecimal
checkItemStartingMileage
=
checkItem
.
getCourseStartingMileage
();
BigDecimal
checkItemEndMileage
=
checkItem
.
getCourseEndMileage
();
if
(
checkItemStartingMileage
.
compareTo
(
checkItemEndMileage
)
>
0
)
{
checkItemStartingMileage
=
checkItem
.
getCourseEndMileage
();
checkItemEndMileage
=
checkItem
.
getCourseStartingMileage
();
}
// 2.2 单元设备中心里程落在检查项目【开始-结束】这个区间视为这个区间的单元设备
for
(
Map
<
String
,
Object
>
unitDevice
:
unitDeviceList
)
{
BigDecimal
startMileage
=
Convert
.
toBigDecimal
(
unitDevice
.
get
(
"startMileage"
));
BigDecimal
endMileage
=
Convert
.
toBigDecimal
(
unitDevice
.
get
(
"endMileage"
));
BigDecimal
centerMileage
=
startMileage
.
add
(
endMileage
).
divide
(
new
BigDecimal
(
"2"
),
3
,
RoundingMode
.
HALF_UP
);
unitDevice
.
put
(
"centerMileage"
,
centerMileage
);
// 2.2.1 命中检查项目
if
(
checkItemStartingMileage
.
compareTo
(
centerMileage
)
<=
0
&&
checkItemEndMileage
.
compareTo
(
centerMileage
)
>
0
)
{
List
<
RailInspectionEquipmentItemDetail
>
movementCourseInfos
=
checkItemItemDetailMap
.
get
(
checkItem
.
getId
());
if
(
ObjectUtil
.
isNotEmpty
(
movementCourseInfos
))
{
}
}
}
}
}
else
if
(
3
==
checkDataMap
.
getEkType
())
{
}
else
{
}
}
System
.
out
.
println
(
"JSONObject.toJSONString(unitDeviceTable) = "
+
JSONObject
.
toJSONString
(
unitDeviceTable
));
// 1.映射单元格
// 2.评分
}
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/algorithm/Buffer.java
View file @
a7ffe6ed
...
...
@@ -3,6 +3,10 @@ package org.jeecg.modules.dynamicStaticAnalysis.algorithm;
import
java.util.concurrent.BlockingQueue
;
import
java.util.concurrent.LinkedBlockingQueue
;
/**
* @author hkl
* 换冲区
*/
public
class
Buffer
{
/**
* 缓冲队列最大缓存能力
...
...
@@ -11,7 +15,7 @@ public class Buffer {
/**
* 缓冲队列
* 这个队列是一个基于链表的阻塞队列,它的容量可以是有界的或无界的。
* 当使用有界容量时,如果队列已满,新
的
插入操作会被阻塞,直到有空间可用。
* 当使用有界容量时,如果队列已满,新插入操作会被阻塞,直到有空间可用。
* 因为队列可以无限增长(无界),所以在插入元素时不会发生阻塞。
*/
public
static
final
BlockingQueue
<
String
>
queue
=
new
LinkedBlockingQueue
<>(
MAX_CAPACITY
);
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/algorithm/MultiProducer.java
View file @
a7ffe6ed
...
...
@@ -13,10 +13,10 @@ public class MultiProducer {
public
static
void
produce
(
String
analysisBatchId
)
{
try
{
Buffer
.
queue
.
put
(
analysisBatchId
);
log
.
info
(
"MultiProducer[生产者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】=============分析批次ID:【"
+
analysisBatchId
+
"】"
);
log
.
info
(
"MultiProducer[生产者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】=============分析批次ID:【"
+
analysisBatchId
+
"】"
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
log
.
error
(
"MultiProducer:"
);
log
.
info
(
"MultiProducer[生产者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】=============分析批次ID:【"
+
analysisBatchId
+
"】异常信息:"
+
e
.
getMessage
()
);
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/algorithm/SingleConsumer.java
View file @
a7ffe6ed
...
...
@@ -8,16 +8,29 @@ import lombok.extern.slf4j.Slf4j;
*/
@Slf4j
public
class
SingleConsumer
{
private
static
AnalysisAlgorithm
analysisAlgorithm
;
public
static
void
setService
(
AnalysisAlgorithm
analysisAlgorithm
)
{
SingleConsumer
.
analysisAlgorithm
=
analysisAlgorithm
;
}
public
static
void
consume
()
{
try
{
while
(
true
)
{
try
{
String
analysisBatchId
=
Buffer
.
queue
.
take
();
log
.
info
(
"SingleConsumer[消费者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】=============分析批次ID:【"
+
analysisBatchId
+
"】"
);
}
}
catch
(
InterruptedException
e
)
{
log
.
info
(
"SingleConsumer[消费者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】=============分析批次ID:【"
+
analysisBatchId
+
"】"
);
analysisAlgorithm
.
analysis
(
analysisBatchId
);
}
catch
(
Exception
e
)
{
log
.
info
(
"SingleConsumer[消费者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】异常信息:"
+
e
.
getCause
());
e
.
printStackTrace
();
}
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/ConfigGradeLimitController.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigGradeLimitService
;
import
org.springframework.web.bind.annotation.*
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@RestController
@RequestMapping
(
"/dynamicStaticAnalysis/configGradeLimit"
)
@Api
(
tags
=
"动静态分析-配置参数-单元化管理阈值"
)
public
class
ConfigGradeLimitController
extends
JeecgController
<
ConfigGradeLimit
,
IConfigGradeLimitService
>
{
@AutoLog
(
value
=
"动静态分析-配置参数-单元化管理阈值-获取记录"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-单元化管理阈值-获取记录"
,
notes
=
"动静态分析-配置参数-单元化管理阈值-获取记录"
)
@GetMapping
(
value
=
"/listRecord"
)
public
Result
<
List
<
ConfigGradeLimit
>>
listRecord
()
{
List
<
ConfigGradeLimit
>
records
=
this
.
service
.
listRecord
();
return
Result
.
OK
(
records
);
}
@AutoLog
(
value
=
"动静态分析-配置参数-单元化管理阈值-更新参数"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-单元化管理阈值-更新参数"
,
notes
=
"动静态分析-配置参数-单元化管理阈值-更新参数"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
ConfigGradeLimit
record
)
{
this
.
service
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/ConfigInstrumentCheckController.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigInstrumentCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailDeviceCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigInstrumentCheckService
;
import
org.springframework.web.bind.annotation.*
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-添乘仪检查超限权值 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@RestController
@RequestMapping
(
"/dynamicStaticAnalysis/configInstrumentCheck"
)
@Api
(
tags
=
"动静态分析-配置参数-添乘仪检查超限权值"
)
public
class
ConfigInstrumentCheckController
extends
JeecgController
<
ConfigInstrumentCheck
,
IConfigInstrumentCheckService
>
{
@AutoLog
(
value
=
"动静态分析-配置参数-添乘仪检查超限权值-获取记录"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-添乘仪检查超限权值-获取记录"
,
notes
=
"动静态分析-配置参数-添乘仪检查超限权值-获取记录"
)
@GetMapping
(
value
=
"/oneRecord"
)
public
Result
<
ConfigInstrumentCheck
>
oneRecord
()
{
ConfigInstrumentCheck
oneRecord
=
this
.
service
.
lambdaQuery
()
.
eq
(
ConfigInstrumentCheck:
:
getDelFlag
,
0
)
.
last
(
"limit 1"
)
.
one
();
return
Result
.
OK
(
oneRecord
);
}
@AutoLog
(
value
=
"动静态分析-配置参数-添乘仪检查超限权值-更新参数"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-添乘仪检查超限权值-更新参数"
,
notes
=
"动静态分析-配置参数-添乘仪检查超限权值-更新参数"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
ConfigInstrumentCheck
record
)
{
this
.
service
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/ConfigLabourCheckController.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigLabourCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigLabourCheckService
;
import
org.springframework.web.bind.annotation.*
;
/**
* <p>
* 动静态分析-配置-人工检查超限权值 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@RestController
@RequestMapping
(
"/dynamicStaticAnalysis/config/labourCheck"
)
@Api
(
tags
=
"动静态分析-配置参数-人工检查超限权值"
)
public
class
ConfigLabourCheckController
extends
JeecgController
<
ConfigLabourCheck
,
IConfigLabourCheckService
>
{
@AutoLog
(
value
=
"动静态分析-配置参数-人工检查超限权值-获取记录"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-人工检查超限权值-获取记录"
,
notes
=
"动静态分析-配置参数-人工检查超限权值-获取记录"
)
@GetMapping
(
value
=
"/oneRecord"
)
public
Result
<
ConfigLabourCheck
>
oneRecord
()
{
ConfigLabourCheck
oneRecord
=
this
.
service
.
lambdaQuery
()
.
eq
(
ConfigLabourCheck:
:
getDelFlag
,
0
)
.
last
(
"limit 1"
)
.
one
();
return
Result
.
OK
(
oneRecord
);
}
@AutoLog
(
value
=
"动静态分析-配置参数-人工检查超限权值-更新参数"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-人工检查超限权值-更新参数"
,
notes
=
"动静态分析-配置参数-人工检查超限权值-更新参数"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
ConfigLabourCheck
record
)
{
this
.
service
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/ConfigRailDeviceCheckController.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigLabourCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailDeviceCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigRailDeviceCheckService
;
import
org.springframework.web.bind.annotation.*
;
import
org.jeecg.common.system.base.controller.JeecgController
;
/**
* <p>
* 动静态分析-配置-轨检仪检查超限权值 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@RestController
@RequestMapping
(
"/dynamicStaticAnalysis/configRailDeviceCheck"
)
@Api
(
tags
=
"动静态分析-配置参数-轨检仪检查超限权值"
)
public
class
ConfigRailDeviceCheckController
extends
JeecgController
<
ConfigRailDeviceCheck
,
IConfigRailDeviceCheckService
>
{
@AutoLog
(
value
=
"动静态分析-配置参数-人工检查超限权值-获取记录"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-人工检查超限权值-获取记录"
,
notes
=
"动静态分析-配置参数-人工检查超限权值-获取记录"
)
@GetMapping
(
value
=
"/oneRecord"
)
public
Result
<
ConfigRailDeviceCheck
>
oneRecord
()
{
ConfigRailDeviceCheck
oneRecord
=
this
.
service
.
lambdaQuery
()
.
eq
(
ConfigRailDeviceCheck:
:
getDelFlag
,
0
)
.
last
(
"limit 1"
)
.
one
();
return
Result
.
OK
(
oneRecord
);
}
@AutoLog
(
value
=
"动静态分析-配置参数-人工检查超限权值-更新参数"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-人工检查超限权值-更新参数"
,
notes
=
"动静态分析-配置参数-人工检查超限权值-更新参数"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
ConfigRailDeviceCheck
record
)
{
this
.
service
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/ConfigRailVehicleCheckController.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigRailVehicleCheckService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-轨检车检查超限权值 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@RestController
@RequestMapping
(
"/dynamicStaticAnalysis/configRailVehicleCheck"
)
@Api
(
tags
=
"动静态分析-配置参数-轨检车检查超限权值"
)
public
class
ConfigRailVehicleCheckController
extends
JeecgController
<
ConfigRailVehicleCheck
,
IConfigRailVehicleCheckService
>
{
@AutoLog
(
value
=
"动静态分析-配置参数-轨检车检查超限权值-获取记录"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-轨检车检查超限权值-获取记录"
,
notes
=
"动静态分析-配置参数-轨检车检查超限权值-获取记录"
)
@GetMapping
(
value
=
"/listRecord"
)
public
Result
<
List
<
ConfigRailVehicleCheck
>>
listRecord
()
{
List
<
ConfigRailVehicleCheck
>
records
=
this
.
service
.
listRecord
();
return
Result
.
OK
(
records
);
}
@AutoLog
(
value
=
"动静态分析-配置参数-轨检车检查超限权值-更新参数"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-轨检车检查超限权值-更新参数"
,
notes
=
"动静态分析-配置参数-轨检车检查超限权值-更新参数"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
ConfigRailVehicleCheck
record
)
{
this
.
service
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/ConfigRailVehicleTqlController.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleTql
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigRailVehicleTqlService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-轨检车TQI超限权值 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@RestController
@RequestMapping
(
"/dynamicStaticAnalysis/configRailVehicleTql"
)
@Api
(
tags
=
"动静态分析-配置参数-轨检车TQI超限权值"
)
public
class
ConfigRailVehicleTqlController
extends
JeecgController
<
ConfigRailVehicleTql
,
IConfigRailVehicleTqlService
>
{
@AutoLog
(
value
=
"动静态分析-配置参数-轨检车TQI超限权值-获取记录"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-轨检车TQI超限权值-获取记录"
,
notes
=
"动静态分析-配置参数-轨检车TQI超限权值-获取记录"
)
@GetMapping
(
value
=
"/listRecord"
)
public
Result
<
List
<
ConfigRailVehicleTql
>>
listRecord
()
{
List
<
ConfigRailVehicleTql
>
records
=
this
.
service
.
listRecord
();
return
Result
.
OK
(
records
);
}
@AutoLog
(
value
=
"动静态分析-配置参数-轨检车TQI超限权值-更新参数"
)
@ApiOperation
(
value
=
"动静态分析-配置参数-轨检车TQI超限权值-更新参数"
,
notes
=
"动静态分析-配置参数-轨检车TQI超限权值-更新参数"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
ConfigRailVehicleTql
record
)
{
this
.
service
.
updateById
(
record
);
return
Result
.
OK
(
"操作成功"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/AnalysisBatch.java
View file @
a7ffe6ed
...
...
@@ -55,17 +55,17 @@ public class AnalysisBatch implements Serializable {
@TableField
(
"light_rail_id"
)
private
String
lightRailId
;
//
@ApiModelProperty("所属线路名称")
//
@TableField("light_rail_name")
//
private String lightRailName;
@ApiModelProperty
(
"所属线路名称"
)
@TableField
(
"light_rail_name"
)
private
String
lightRailName
;
@ApiModelProperty
(
"所属线别id"
)
@TableField
(
"line_alias_id"
)
private
String
lineAliasId
;
//
@ApiModelProperty("所属线别名称")
//
@TableField("line_alias_name")
//
private String lineAliasName;
@ApiModelProperty
(
"所属线别名称"
)
@TableField
(
"line_alias_name"
)
private
String
lineAliasName
;
@ApiModelProperty
(
"起始里程"
)
@TableField
(
"starting_mileage"
)
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/ConfigGradeLimit.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 动静态分析-配置-单元化管理阈值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName
(
"t_dsa_config_grade_limit"
)
@ApiModel
(
value
=
"ConfigGradeLimit对象"
,
description
=
"动静态分析-配置-单元化管理阈值"
)
public
class
ConfigGradeLimit
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@TableId
(
"id"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
private
Date
updateTime
;
@ApiModelProperty
(
"速度下限"
)
@TableField
(
"speed_min"
)
private
Integer
speedMin
;
@ApiModelProperty
(
"速度上限"
)
@TableField
(
"speed_max"
)
private
Integer
speedMax
;
@ApiModelProperty
(
"数据字典值"
)
@TableField
(
"dict_value"
)
private
String
dictValue
;
@ApiModelProperty
(
"数据字典标签"
)
@TableField
(
"dict_label"
)
private
String
dictLabel
;
@ApiModelProperty
(
"评价等级 1-优良 2-合格 3-失格 "
)
@TableField
(
"grade_level"
)
private
Integer
gradeLevel
;
@ApiModelProperty
(
"最小评分"
)
@TableField
(
"grade_min"
)
private
Integer
gradeMin
;
@ApiModelProperty
(
"最大评分"
)
@TableField
(
"grade_max"
)
private
Integer
gradeMax
;
@ApiModelProperty
(
"设备类型 1-钢轨 2-道岔 3-曲线 4-竖曲线"
)
@TableField
(
"device_type"
)
private
Integer
deviceType
;
@ApiModelProperty
(
"是否删除(0:未删除; 1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/ConfigInstrumentCheck.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 动静态分析-配置-添乘仪检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName
(
"t_dsa_config_instrument_check"
)
@ApiModel
(
value
=
"ConfigInstrumentCheck对象"
,
description
=
"动静态分析-配置-添乘仪检查超限权值"
)
public
class
ConfigInstrumentCheck
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@TableId
(
"id"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
private
Date
updateTime
;
@ApiModelProperty
(
"钢轨"
)
@TableField
(
"rail"
)
private
String
rail
;
@ApiModelProperty
(
"曲线"
)
@TableField
(
"curve"
)
private
String
curve
;
@ApiModelProperty
(
"竖曲线"
)
@TableField
(
"vertical_curve"
)
private
String
verticalCurve
;
@ApiModelProperty
(
"道岔"
)
@TableField
(
"rail_switch"
)
private
String
railSwitch
;
@ApiModelProperty
(
"是否删除(0:未删除; 1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/ConfigLabourCheck.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 动静态分析-配置-人工检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName
(
"t_dsa_config_labour_check"
)
@ApiModel
(
value
=
"ConfigLabourCheck对象"
,
description
=
"动静态分析-配置-人工检查超限权值"
)
public
class
ConfigLabourCheck
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@TableId
(
"id"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
private
Date
updateTime
;
@ApiModelProperty
(
"钢轨"
)
@TableField
(
"rail"
)
private
String
rail
;
@ApiModelProperty
(
"曲线"
)
@TableField
(
"curve"
)
private
String
curve
;
@ApiModelProperty
(
"竖曲线"
)
@TableField
(
"vertical_curve"
)
private
String
verticalCurve
;
@ApiModelProperty
(
"道岔"
)
@TableField
(
"rail_switch"
)
private
String
railSwitch
;
@ApiModelProperty
(
"是否删除(0:未删除; 1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/ConfigRailDeviceCheck.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 动静态分析-配置-轨检仪检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName
(
"t_dsa_config_rail_device_check"
)
@ApiModel
(
value
=
"ConfigRailDeviceCheck对象"
,
description
=
"动静态分析-配置-轨检仪检查超限权值"
)
public
class
ConfigRailDeviceCheck
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@TableId
(
"id"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
private
Date
updateTime
;
@ApiModelProperty
(
"钢轨"
)
@TableField
(
"rail"
)
private
String
rail
;
@ApiModelProperty
(
"曲线"
)
@TableField
(
"curve"
)
private
String
curve
;
@ApiModelProperty
(
"竖曲线"
)
@TableField
(
"vertical_curve"
)
private
String
verticalCurve
;
@ApiModelProperty
(
"道岔"
)
@TableField
(
"rail_switch"
)
private
String
railSwitch
;
@ApiModelProperty
(
"是否删除(0:未删除; 1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/ConfigRailVehicleCheck.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 动静态分析-配置-轨检车检查超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName
(
"t_dsa_config_rail_vehicle_check"
)
@ApiModel
(
value
=
"ConfigRailVehicleCheck对象"
,
description
=
"动静态分析-配置-轨检车检查超限权值"
)
public
class
ConfigRailVehicleCheck
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@TableId
(
"id"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
private
Date
updateTime
;
@ApiModelProperty
(
"速度等级"
)
@TableField
(
"speed_expression"
)
private
String
speedExpression
;
@ApiModelProperty
(
"数据字典值"
)
@TableField
(
"dict_value"
)
private
String
dictValue
;
@ApiModelProperty
(
"数据字典标签"
)
@TableField
(
"dict_label"
)
private
String
dictLabel
;
@ApiModelProperty
(
"速度下限"
)
@TableField
(
"speed_min"
)
private
Integer
speedMin
;
@ApiModelProperty
(
"速度上限"
)
@TableField
(
"speed_max"
)
private
Integer
speedMax
;
@ApiModelProperty
(
"钢轨"
)
@TableField
(
"rail"
)
private
String
rail
;
@ApiModelProperty
(
"曲线"
)
@TableField
(
"curve"
)
private
String
curve
;
@ApiModelProperty
(
"竖曲线"
)
@TableField
(
"vertical_curve"
)
private
String
verticalCurve
;
@ApiModelProperty
(
"道岔"
)
@TableField
(
"rail_switch"
)
private
String
railSwitch
;
@ApiModelProperty
(
"是否删除(0:未删除; 1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/ConfigRailVehicleTql.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
java.io.Serializable
;
import
java.util.Date
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 动静态分析-配置-轨检车TQI超限权值
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Getter
@Setter
@TableName
(
"t_dsa_config_rail_vehicle_tql"
)
@ApiModel
(
value
=
"ConfigRailVehicleTql对象"
,
description
=
"动静态分析-配置-轨检车TQI超限权值"
)
public
class
ConfigRailVehicleTql
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@TableId
(
"id"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
private
Date
updateTime
;
@ApiModelProperty
(
"速度等级"
)
@TableField
(
"speed_expression"
)
private
String
speedExpression
;
@ApiModelProperty
(
"速度下限"
)
@TableField
(
"speed_min"
)
private
Integer
speedMin
;
@ApiModelProperty
(
"速度上限"
)
@TableField
(
"speed_max"
)
private
Integer
speedMax
;
@ApiModelProperty
(
"数据字典值"
)
@TableField
(
"dict_value"
)
private
String
dictValue
;
@ApiModelProperty
(
"数据字典标签"
)
@TableField
(
"dict_label"
)
private
String
dictLabel
;
@ApiModelProperty
(
"钢轨"
)
@TableField
(
"rail"
)
private
String
rail
;
@ApiModelProperty
(
"曲线"
)
@TableField
(
"curve"
)
private
String
curve
;
@ApiModelProperty
(
"竖曲线"
)
@TableField
(
"vertical_curve"
)
private
String
verticalCurve
;
@ApiModelProperty
(
"道岔"
)
@TableField
(
"rail_switch"
)
private
String
railSwitch
;
@ApiModelProperty
(
"是否删除(0:未删除; 1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/AnalysisAlgorithmMapper.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
java.util.List
;
import
java.util.Map
;
/**
* <p>
* 动静态分析-算法sql
* </p>
*
* @author hkl
* @since 2023-07-25
*/
public
interface
AnalysisAlgorithmMapper
{
/**
* 获取单元设备
*
* @param lightRailId 线路id
* @param lineAliasId 线别id
*/
List
<
Map
<
String
,
Object
>>
getUnitDevice
(
String
lightRailId
,
String
lineAliasId
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/ConfigGradeLimitMapper.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
ConfigGradeLimitMapper
extends
BaseMapper
<
ConfigGradeLimit
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/ConfigInstrumentCheckMapper.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigInstrumentCheck
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 动静态分析-配置-添乘仪检查超限权值 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
ConfigInstrumentCheckMapper
extends
BaseMapper
<
ConfigInstrumentCheck
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/ConfigLabourCheckMapper.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigLabourCheck
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 动静态分析-配置-人工检查超限权值 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
ConfigLabourCheckMapper
extends
BaseMapper
<
ConfigLabourCheck
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/ConfigRailDeviceCheckMapper.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailDeviceCheck
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 动静态分析-配置-轨检仪检查超限权值 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
ConfigRailDeviceCheckMapper
extends
BaseMapper
<
ConfigRailDeviceCheck
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/ConfigRailVehicleCheckMapper.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 动静态分析-配置-轨检车检查超限权值 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
ConfigRailVehicleCheckMapper
extends
BaseMapper
<
ConfigRailVehicleCheck
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/ConfigRailVehicleTqlMapper.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleTql
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 动静态分析-配置-轨检车TQI超限权值 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
ConfigRailVehicleTqlMapper
extends
BaseMapper
<
ConfigRailVehicleTql
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisAlgorithmMapper.xml
0 → 100644
View file @
a7ffe6ed
<?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=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisAlgorithmMapper"
>
<select
id=
"getUnitDevice"
resultType=
"java.util.Map"
>
SELECT id,
unitCode,
startMileage,
endMileage,
type
FROM (SELECT t1.id,
t1.unit_code unitCode,
t1.starting_mileage startMileage,
t1.end_mileage endMileage,
'钢轨' type
FROM t_da_rail_management t1
WHERE t1.line_alias_id = #{lineAliasId}
AND t1.light_rail_id = #{lightRailId}
UNION ALL
SELECT t1.id,
t1.unit_code unitCode,
t1.curve_mileage_zh startMileage,
t1.curve_mileage_hz endMileage,
'曲线' type
FROM t_da_curve_management t1
LEFT JOIN t_sn_train_station t2 ON t1.section_id = t1.id
WHERE t1.line_alias_id = #{lineAliasId}
AND t2.light_rail_id = #{lightRailId}
UNION ALL
SELECT t1.id,
t1.unit_code unitCode,
t1.starting_mileage startMileage,
t1.end_mileage endMileage,
'竖曲线' type
FROM t_da_vertical_curve_management t1
LEFT JOIN t_sn_train_station t2 ON t1.section_id = t1.id
WHERE t1.line_alias_id = #{lineAliasId}
AND t2.light_rail_id = #{lightRailId}
UNION ALL
SELECT t1.id,
t1.unit_code unitCode,
t1.byroad_pre_mileage startMileage,
t1.byroad_end_mileage endMileage,
'道岔' type
FROM t_da_switch_management t1
LEFT JOIN t_sn_section_station_map t2 ON t1.section_station_map_id = t2.id
LEFT JOIN t_sn_subway_section t3 ON t2.section_id = t3.id
AND t3.line_alias_id = t1.line_alias_id
WHERE t1.line_alias_id = #{lineAliasId}
AND t2.light_rail_id = #{lightRailId}) t
ORDER BY t.startMileage
</select>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/ConfigGradeLimitMapper.xml
0 → 100644
View file @
a7ffe6ed
<?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=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigGradeLimitMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/ConfigInstrumentCheckMapper.xml
0 → 100644
View file @
a7ffe6ed
<?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=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigInstrumentCheckMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/ConfigLabourCheckMapper.xml
0 → 100644
View file @
a7ffe6ed
<?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=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigLabourCheckMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/ConfigRailDeviceCheckMapper.xml
0 → 100644
View file @
a7ffe6ed
<?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=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigRailDeviceCheckMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/ConfigRailVehicleCheckMapper.xml
0 → 100644
View file @
a7ffe6ed
<?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=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigRailVehicleCheckMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/ConfigRailVehicleTqlMapper.xml
0 → 100644
View file @
a7ffe6ed
<?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=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigRailVehicleTqlMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IConfigGradeLimitService.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
IConfigGradeLimitService
extends
IService
<
ConfigGradeLimit
>
{
List
<
ConfigGradeLimit
>
listRecord
();
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IConfigInstrumentCheckService.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigInstrumentCheck
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-添乘仪检查超限权值 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
IConfigInstrumentCheckService
extends
IService
<
ConfigInstrumentCheck
>
{
List
<
ConfigInstrumentCheck
>
listRecord
();
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IConfigLabourCheckService.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigLabourCheck
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 动静态分析-配置-人工检查超限权值 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
IConfigLabourCheckService
extends
IService
<
ConfigLabourCheck
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IConfigRailDeviceCheckService.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailDeviceCheck
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 动静态分析-配置-轨检仪检查超限权值 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
IConfigRailDeviceCheckService
extends
IService
<
ConfigRailDeviceCheck
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IConfigRailVehicleCheckService.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-轨检车检查超限权值 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
IConfigRailVehicleCheckService
extends
IService
<
ConfigRailVehicleCheck
>
{
List
<
ConfigRailVehicleCheck
>
listRecord
();
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IConfigRailVehicleTqlService.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleTql
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-轨检车TQI超限权值 服务类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
public
interface
IConfigRailVehicleTqlService
extends
IService
<
ConfigRailVehicleTql
>
{
List
<
ConfigRailVehicleTql
>
listRecord
();
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/AnalysisBatchServiceImpl.java
View file @
a7ffe6ed
...
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.dynamicStaticAnalysis.algorithm.MultiProducer
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchQueryDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.CheckBatchDTO
;
...
...
@@ -73,6 +74,9 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
for
(
AnalysisBatchCheckDataMap
analysisBatchCheckDataMap
:
analysisBatchCheckDataMaps
)
{
analysisBatchCheckDataMapMapper
.
insert
(
analysisBatchCheckDataMap
);
}
// 执行分析
MultiProducer
.
produce
(
analysisBatch
.
getId
());
}
@Override
...
...
@@ -111,6 +115,9 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
for
(
AnalysisBatchCheckDataMap
analysisBatchCheckDataMap
:
analysisBatchCheckDataMaps
)
{
analysisBatchCheckDataMapMapper
.
insert
(
analysisBatchCheckDataMap
);
}
// 执行分析
MultiProducer
.
produce
(
analysisBatch
.
getId
());
}
@Override
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/ConfigGradeLimitServiceImpl.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.constant.DictConstant
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigGradeLimit
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigGradeLimitMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigGradeLimitService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.system.entity.SysDict
;
import
org.jeecg.modules.system.entity.SysDictItem
;
import
org.jeecg.modules.system.mapper.SysDictItemMapper
;
import
org.jeecg.modules.system.mapper.SysDictMapper
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.IntStream
;
/**
* <p>
* 动静态分析-配置-单元化管理阈值 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public
class
ConfigGradeLimitServiceImpl
extends
ServiceImpl
<
ConfigGradeLimitMapper
,
ConfigGradeLimit
>
implements
IConfigGradeLimitService
{
@Resource
private
SysDictMapper
sysDictMapper
;
@Resource
private
SysDictItemMapper
sysDictItemMapper
;
@Override
public
List
<
ConfigGradeLimit
>
listRecord
()
{
List
<
ConfigGradeLimit
>
records
=
this
.
lambdaQuery
().
eq
(
ConfigGradeLimit:
:
getDelFlag
,
"0"
).
list
();
if
(
ObjectUtil
.
isEmpty
(
records
))
{
records
=
this
.
initConfigGradeLimit
();
}
return
records
;
}
/**
* 初始化参数
*
* @return
*/
private
List
<
ConfigGradeLimit
>
initConfigGradeLimit
()
{
List
<
ConfigGradeLimit
>
result
=
new
ArrayList
<>(
64
);
// 1.动态查找速度等级
// 字典
LambdaQueryWrapper
<
SysDict
>
sysDictWrapper
=
Wrappers
.
lambdaQuery
();
sysDictWrapper
.
eq
(
SysDict:
:
getDictCode
,
DictConstant
.
EQUIPMENT_SPEED_OPTS
).
last
(
"limit 1"
);
SysDict
sysDict
=
sysDictMapper
.
selectOne
(
sysDictWrapper
);
// 字典项目
LambdaQueryWrapper
<
SysDictItem
>
sysDictItemWrapper
=
Wrappers
.
lambdaQuery
();
sysDictItemWrapper
.
eq
(
SysDictItem:
:
getDictId
,
sysDict
.
getId
());
List
<
SysDictItem
>
sysDictItems
=
sysDictItemMapper
.
selectList
(
sysDictItemWrapper
);
// 2.循环生成
// 1-钢轨 2-道岔 3-曲线 4-竖曲线
List
<
Integer
>
deviceTypeList
=
IntStream
.
range
(
1
,
5
).
boxed
().
collect
(
Collectors
.
toList
());
for
(
Integer
deviceType
:
deviceTypeList
)
{
for
(
SysDictItem
sysDictItem
:
sysDictItems
)
{
// 优良
ConfigGradeLimit
a
=
new
ConfigGradeLimit
();
a
.
setId
(
UUIDGenerator
.
generate
());
a
.
setDictLabel
(
sysDictItem
.
getItemText
());
a
.
setDictValue
(
sysDictItem
.
getItemValue
());
a
.
setDeviceType
(
deviceType
);
a
.
setGradeLevel
(
1
);
//1-优良
a
.
setGradeMin
(
0
);
a
.
setGradeMax
(
100
);
result
.
add
(
a
);
// 合格
ConfigGradeLimit
b
=
new
ConfigGradeLimit
();
b
.
setId
(
UUIDGenerator
.
generate
());
b
.
setDictLabel
(
sysDictItem
.
getItemText
());
b
.
setDictValue
(
sysDictItem
.
getItemValue
());
b
.
setDeviceType
(
deviceType
);
b
.
setGradeLevel
(
1
);
//2-合格
b
.
setGradeMin
(
100
);
b
.
setGradeMax
(
200
);
result
.
add
(
b
);
// 失格
ConfigGradeLimit
c
=
new
ConfigGradeLimit
();
c
.
setId
(
UUIDGenerator
.
generate
());
c
.
setDictLabel
(
sysDictItem
.
getItemText
());
c
.
setDictValue
(
sysDictItem
.
getItemValue
());
c
.
setDeviceType
(
deviceType
);
c
.
setGradeLevel
(
3
);
//3-失格
c
.
setGradeMin
(
200
);
c
.
setGradeMax
(
99999
);
result
.
add
(
c
);
}
}
this
.
saveBatch
(
result
);
return
result
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/ConfigInstrumentCheckServiceImpl.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigInstrumentCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleTql
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigInstrumentCheckMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigInstrumentCheckService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-添乘仪检查超限权值 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public
class
ConfigInstrumentCheckServiceImpl
extends
ServiceImpl
<
ConfigInstrumentCheckMapper
,
ConfigInstrumentCheck
>
implements
IConfigInstrumentCheckService
{
@Override
public
List
<
ConfigInstrumentCheck
>
listRecord
()
{
List
<
ConfigInstrumentCheck
>
records
=
this
.
lambdaQuery
().
eq
(
ConfigInstrumentCheck:
:
getDelFlag
,
"0"
).
list
();
return
records
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/ConfigLabourCheckServiceImpl.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigLabourCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigLabourCheckMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigLabourCheckService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 动静态分析-配置-人工检查超限权值 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public
class
ConfigLabourCheckServiceImpl
extends
ServiceImpl
<
ConfigLabourCheckMapper
,
ConfigLabourCheck
>
implements
IConfigLabourCheckService
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/ConfigRailDeviceCheckServiceImpl.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailDeviceCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigRailDeviceCheckMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigRailDeviceCheckService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 动静态分析-配置-轨检仪检查超限权值 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public
class
ConfigRailDeviceCheckServiceImpl
extends
ServiceImpl
<
ConfigRailDeviceCheckMapper
,
ConfigRailDeviceCheck
>
implements
IConfigRailDeviceCheckService
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/ConfigRailVehicleCheckServiceImpl.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleCheck
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigRailVehicleCheckMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigRailVehicleCheckService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-轨检车检查超限权值 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public
class
ConfigRailVehicleCheckServiceImpl
extends
ServiceImpl
<
ConfigRailVehicleCheckMapper
,
ConfigRailVehicleCheck
>
implements
IConfigRailVehicleCheckService
{
/**
* 获取json资源path
*/
public
String
getResourcePath
()
{
String
jsonPath
=
"org/jeecg/modules/dynamicStaticAnalysis/template"
;
return
Thread
.
currentThread
().
getContextClassLoader
().
getResource
(
jsonPath
).
getPath
();
}
@Override
public
List
<
ConfigRailVehicleCheck
>
listRecord
()
{
List
<
ConfigRailVehicleCheck
>
records
=
this
.
lambdaQuery
().
eq
(
ConfigRailVehicleCheck:
:
getDelFlag
,
"0"
).
list
();
return
records
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/ConfigRailVehicleTqlServiceImpl.java
0 → 100644
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.ConfigRailVehicleTql
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.ConfigRailVehicleTqlMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IConfigRailVehicleTqlService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 动静态分析-配置-轨检车TQI超限权值 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-01
*/
@Service
public
class
ConfigRailVehicleTqlServiceImpl
extends
ServiceImpl
<
ConfigRailVehicleTqlMapper
,
ConfigRailVehicleTql
>
implements
IConfigRailVehicleTqlService
{
@Override
public
List
<
ConfigRailVehicleTql
>
listRecord
()
{
List
<
ConfigRailVehicleTql
>
records
=
this
.
lambdaQuery
().
eq
(
ConfigRailVehicleTql:
:
getDelFlag
,
"0"
).
list
();
return
records
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/人工检查超限权值-曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"人工检查超限权值-曲线"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/人工检查超限权值-竖曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"人工检查超限权值-竖曲线"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/人工检查超限权值-道岔.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"人工检查超限权值-道岔"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/人工检查超限权值-钢轨.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"人工检查超限权值-钢轨"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"添乘仪检查超限权值-曲线"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-竖曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"添乘仪检查超限权值-竖曲线"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-道岔.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"添乘仪检查超限权值-道岔"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/添乘仪检查超限权值-钢轨.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"添乘仪检查超限权值-钢轨"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检仪检查超限权值-曲线"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-竖曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检仪检查超限权值-竖曲线"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-道岔.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检仪检查超限权值-道岔"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检仪检查超限权值-钢轨.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检仪检查超限权值-钢轨"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车TQI超限权值-曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车TQI超限权值-曲线"
,
"tqi"
:
"0.01"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车TQI超限权值-竖曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车TQI超限权值-竖曲线"
,
"tqi"
:
"0.01"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车TQI超限权值-道岔.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车TQI超限权值-道岔"
,
"tqi"
:
"0.01"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车TQI超限权值-钢轨.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车TQI超限权值-钢轨"
,
"tqi"
:
"0.01"
,
"height"
:
"0.01"
,
"trackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车检查超限权值-曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车检查超限权值-曲线"
,
"height"
:
"0.01"
,
"bigTrackGauge"
:
"0.01"
,
"smallTrackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
,
"gaugeChange"
:
"0.01"
,
"curvatureChange"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车检查超限权值-竖曲线.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车检查超限权值-竖曲线"
,
"height"
:
"0.01"
,
"bigTrackGauge"
:
"0.01"
,
"smallTrackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
,
"gaugeChange"
:
"0.01"
,
"curvatureChange"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车检查超限权值-道岔.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车检查超限权值-道岔"
,
"height"
:
"0.01"
,
"bigTrackGauge"
:
"0.01"
,
"smallTrackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
,
"gaugeChange"
:
"0.01"
,
"curvatureChange"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/template/轨检车检查超限权值-钢轨.json
0 → 100644
View file @
a7ffe6ed
{
"name"
:
"轨检车检查超限权值-钢轨"
,
"height"
:
"0.01"
,
"bigTrackGauge"
:
"0.01"
,
"smallTrackGauge"
:
"0.01"
,
"direction"
:
"0.01"
,
"triangularPit"
:
"0.01"
,
"level"
:
"0.01"
,
"verticalSpend"
:
"0.01"
,
"transverseSpend"
:
"0.01"
,
"gaugeChange"
:
"0.01"
,
"curvatureChange"
:
"0.01"
}
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/mapper/xml/LightRailMapper.xml
View file @
a7ffe6ed
...
...
@@ -59,10 +59,7 @@
true isLeaf
FROM
t_sn_light_rail
<where>
1=1
AND status = 1
</where>
WHERE status = 1
<!-- UNION ALL
SELECT
concat(id,'-2') id,
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/mapper/xml/SubwaySectionMapper.xml
View file @
a7ffe6ed
...
...
@@ -40,15 +40,15 @@
'2' level,
t.light_rail_id parent,
t.line_alias_id,
t3.line_alias_code,
t.light_rail_id,
t.section_starting_mileage startMileage,
TRUNCATE((t.section_end_mileage + t.section_starting_mileage) / 2, 3) centerMileage,
t.section_end_mileage endMileage,
true isLeaf
FROM t_sn_subway_section t left join t_sn_light_rail t2 ON t.light_rail_id = t2.id
<where>
1=1
AND t2.status = 1
</where>
FROM t_sn_subway_section t
LEFT JOIN t_sn_light_rail t2 ON t.light_rail_id = t2.id
LEFT JOIN t_sn_line_alias t3 ON t.line_alias_id = t3.id
WHERE t2.status = 1
</select>
</mapper>
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/mapper/xml/TrainStationMapper.xml
View file @
a7ffe6ed
...
...
@@ -39,16 +39,15 @@
'3' level,
t2.section_id parent,
t1.line_alias_id,
t4.line_alias_code,
t1.starting_mileage startMileage,
t1.center_mileage centerMileage,
t1.end_mileage endMileage,
true isLeaf
FROM
t_sn_train_station t1
LEFT JOIN t_sn_section_station_map t2 ON t1.id = t2.station_id
FROM
t_sn_train_station t1
LEFT JOIN t_sn_section_station_map t2 ON t1.id = t2.station_id
LEFT JOIN t_sn_light_rail t3 on t1.light_rail_id = t3.id and t2.light_rail_id = t3.id
<where>
1=1
AND t3.status = 1
</where>
LEFT JOIN t_sn_line_alias t4 ON t1.line_alias_id = t4.id
WHERE t3.status = 1
</select>
</mapper>
\ No newline at end of file
jeecg-module-system/src/main/java/org/jeecg/modules/subwayNetwork/vo/SectionStationNode.java
View file @
a7ffe6ed
package
org
.
jeecg
.
modules
.
subwayNetwork
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -28,6 +26,9 @@ public class SectionStationNode {
@ApiModelProperty
(
value
=
"线别id"
)
private
String
lineAliasId
;
@ApiModelProperty
(
value
=
"线别code【冠号】"
)
private
String
lineAliasCode
;
@ApiModelProperty
(
value
=
"起始里程"
)
private
BigDecimal
startMileage
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/utils/UnitCodeUtil.java
View file @
a7ffe6ed
...
...
@@ -12,9 +12,6 @@ import org.jeecg.modules.deviceAsset.service.IVerticalCurveManagementService;
import
org.jeecg.modules.subwayNetwork.entity.LineAlias
;
import
org.jeecg.modules.subwayNetwork.service.ILineAliasService
;
import
java.util.List
;
import
java.util.Map
;
/**
* @describe:单元编码生成工具
*/
...
...
@@ -184,18 +181,4 @@ public class UnitCodeUtil {
return
String
.
format
(
"%0"
+
numLength
+
"d"
,
num
);
}
/**
* 钢轨智能单元生成
*
* @param lineAliasId 线别ID
*/
public
static
void
railIntelligentGeneration
(
String
lineAliasId
)
{
List
<
Map
<
String
,
Object
>>
lineSpecialRail
=
railManagementService
.
getLineSpecialRail
(
lineAliasId
);
// 1.判断完整的线路有没有空白部分(指剩余区间既不是道岔、曲线、竖曲线、钢轨的部分),只需要填空白部分,空白部分一定是钢轨,按照25一根的逻辑余数自成一根;
// 2.如果不存在空白部分,则定义道岔曲线竖曲线为绝对正确里程值,并且定义为特殊钢轨,相邻两个特殊钢轨之间的里程区间按照25一根的逻辑余数自成一根。
}
}
\ No newline at end of file
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