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
dbb07f2f
Commit
dbb07f2f
authored
Jul 24, 2024
by
史志龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钢轨探伤初始化以及道岔以及派工逻辑提交--shizhilong
parent
15c6601b
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
688 additions
and
75 deletions
+688
-75
CodeGenerate.java
...em/src/main/java/org/jeecg/codegenerate/CodeGenerate.java
+1
-2
AnalysisAlgorithmLine.java
...ules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
+8
-0
AnalysisLineBatchController.java
...seaseAnalysis/controller/AnalysisLineBatchController.java
+66
-13
AnalysisLineBatchUnitDeviceRailWearInfoController.java
...er/AnalysisLineBatchUnitDeviceRailWearInfoController.java
+22
-0
AnalysisLineBatchUnitDeviceRailWearInfoDTO.java
...lysis/dto/AnalysisLineBatchUnitDeviceRailWearInfoDTO.java
+89
-0
AnalysisLineBatchUnitDeviceRailWearInfo.java
...lysis/entity/AnalysisLineBatchUnitDeviceRailWearInfo.java
+111
-0
AnalysisLineBatchUnitDeviceRailWearInfoMapper.java
...mapper/AnalysisLineBatchUnitDeviceRailWearInfoMapper.java
+16
-0
AnalysisLineBatchMapper.xml
...es/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
+1
-1
AnalysisLineBatchUnitDeviceRailWearInfoMapper.xml
...per/xml/AnalysisLineBatchUnitDeviceRailWearInfoMapper.xml
+5
-0
IAnalysisLineBatchService.java
...es/diseaseAnalysis/service/IAnalysisLineBatchService.java
+12
-0
IAnalysisLineBatchUnitDeviceRailWearInfoService.java
...vice/IAnalysisLineBatchUnitDeviceRailWearInfoService.java
+16
-0
AnalysisLineBatchServiceImpl.java
...seAnalysis/service/impl/AnalysisLineBatchServiceImpl.java
+81
-1
AnalysisLineBatchUnitDeviceRailWearInfoServiceImpl.java
...l/AnalysisLineBatchUnitDeviceRailWearInfoServiceImpl.java
+20
-0
AnalysisLineBatchUnitDeviceRailWearInfoVO.java
...nalysis/vo/AnalysisLineBatchUnitDeviceRailWearInfoVO.java
+88
-0
AnalysisBatchSaveDTO.java
...ecg/modules/maintenanceWork/dto/AnalysisBatchSaveDTO.java
+4
-0
WorkBatchDTO.java
...a/org/jeecg/modules/maintenanceWork/dto/WorkBatchDTO.java
+3
-0
WorkBatchTransfiniteSaveDTO.java
...ules/maintenanceWork/dto/WorkBatchTransfiniteSaveDTO.java
+4
-0
WorkBatch.java
...a/org/jeecg/modules/maintenanceWork/entity/WorkBatch.java
+6
-0
WorkBatchMapper.xml
...cg/modules/maintenanceWork/mapper/xml/WorkBatchMapper.xml
+1
-0
WorkBatchServiceImpl.java
...es/maintenanceWork/service/impl/WorkBatchServiceImpl.java
+130
-58
WorkBatchVO.java
...ava/org/jeecg/modules/maintenanceWork/vo/WorkBatchVO.java
+4
-0
No files found.
jeecg-module-system/src/main/java/org/jeecg/codegenerate/CodeGenerate.java
View file @
dbb07f2f
...
...
@@ -29,8 +29,7 @@ public class CodeGenerate {
// 表名
String
[]
tables
=
{
"t_dsa_analysis_line_batch"
,
"t_dsa_analysis_line_batch_check_data_map"
,
"t_dsa_analysis_line_batch_unit_device"
,
"t_dsa_analysis_line_batch_unit_device_turnout_info"
"t_dsa_analysis_line_batch_unit_device_rail_wear_info"
};
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/algorithm/AnalysisAlgorithmLine.java
View file @
dbb07f2f
...
...
@@ -75,6 +75,10 @@ public class AnalysisAlgorithmLine {
unitDeviceTable
.
put
(
unitDevice
.
get
(
"unitCode"
).
toString
(),
unitDevice
);
}
//原来单元信息删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDevice
>
wrapper2
=
Wrappers
.
lambdaQuery
();
wrapper2
.
eq
(
AnalysisLineBatchUnitDevice:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
unitDeviceService
.
remove
(
wrapper2
);
// 1.4 循环分析检查项目
for
(
AnalysisLineBatchCheckDataMap
checkDataMap
:
analysisLineBatchCheckDataMapList
)
{
...
...
@@ -82,6 +86,10 @@ public class AnalysisAlgorithmLine {
// 4-钢轨波磨检查 5-道床检查 6-线路检查
if
(
"1"
==
checkDataMap
.
getEkType
())
{
//1-道岔检查
//原来道岔检查单元信息详情删除
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceTurnoutInfo
>
wrapper3
=
Wrappers
.
lambdaQuery
();
wrapper3
.
eq
(
AnalysisLineBatchUnitDeviceTurnoutInfo:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
analysisLineBatchUnitDeviceTurnoutInfoService
.
remove
(
wrapper3
);
turnoutCheckDataLineAnalysis
(
analysisLineBatch
,
checkDataMap
,
unitDeviceList
);
}
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/controller/AnalysisLineBatchController.java
View file @
dbb07f2f
...
...
@@ -15,11 +15,12 @@ import org.jeecg.modules.diseaseAnalysis.dto.EkRecordsMasterCheckDTO;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatch
;
import
org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchService
;
import
org.jeecg.modules.diseaseAnalysis.vo.*
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatch
;
import
org.springframework.web.bind.annotation.*
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
...
...
@@ -37,6 +38,7 @@ import java.util.stream.Collectors;
public
class
AnalysisLineBatchController
extends
JeecgController
<
AnalysisLineBatch
,
IAnalysisLineBatchService
>
{
/**
* 线路质量分析-其他病害分析-检查记录(除去线路巡查)-分页列表查询
*
* @param pageNo
* @param pageSize
* @param dto
...
...
@@ -46,14 +48,16 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
@ApiOperation
(
value
=
"线路质量分析-其他病害分析-检查记录(除去线路巡查)-分页列表查询"
,
notes
=
"线路质量分析-其他病害分析-检查记录(除去线路巡查)-分页列表查询"
)
@GetMapping
(
value
=
"/ekList"
)
public
Result
<
IPage
<
EkRecordsMasterCheckVO
>>
queryPageEkList
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
EkRecordsMasterCheckDTO
dto
)
{
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
EkRecordsMasterCheckDTO
dto
)
{
Page
<
EkRecordsMasterCheckVO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
pageData
=
this
.
service
.
queryPageEkList
(
pageData
,
dto
);
return
Result
.
OK
(
pageData
);
}
/**
* 线路质量分析-其他病害分析-线路巡查检查记录-分页列表查询
*
* @param pageNo
* @param pageSize
* @param dto
...
...
@@ -69,8 +73,10 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
pageData
=
this
.
service
.
queryPageEkPatrolList
(
pageData
,
dto
);
return
Result
.
OK
(
pageData
);
}
/**
* 线路质量分析-其他病害分析-分页列表查询
*
* @param pageNo
* @param pageSize
* @param dto
...
...
@@ -100,15 +106,17 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
}
return
Result
.
OK
(
pageData
);
}
/**
* 线路质量分析-其他病害分析-详情查询-分页列表查询
* 线路质量分析-其他病害分析-单元查询-分页列表查询
*
* @param pageNo
* @param pageSize
* @param dto
* @return
*/
@AutoLog
(
value
=
"线路质量分析-其他病害分析-
详情
查询-分页列表查询"
)
@ApiOperation
(
value
=
"线路质量分析-其他病害分析-
详情查询-分页列表查询"
,
notes
=
"线路质量分析-其他病害分析-详情
查询-分页列表查询"
)
@AutoLog
(
value
=
"线路质量分析-其他病害分析-
单元
查询-分页列表查询"
)
@ApiOperation
(
value
=
"线路质量分析-其他病害分析-
单元查询-分页列表查询"
,
notes
=
"线路质量分析-其他病害分析-单元
查询-分页列表查询"
)
@GetMapping
(
value
=
"/getInfoPageList"
)
public
Result
<
IPage
<
AnalysisLineBatchUnitDeviceVO
>>
getInfoPageList
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
...
...
@@ -119,19 +127,21 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
}
/**
* 线路质量分析-其他病害分析-详情检查记录查询
* 线路质量分析-其他病害分析-道岔检查单元详情检查记录查询
*
* @param analysisBatchId 分析批次id
* @param ekId 检查批次id
* @param deviceId 线路质量分析-其他病害分析-单元表id
* @param ekId
检查批次id
* @param deviceId
线路质量分析-其他病害分析-单元表id
* @return
*/
@AutoLog
(
value
=
"线路质量分析-其他病害分析-详情检查记录查询"
)
@ApiOperation
(
value
=
"线路质量分析-其他病害分析-
详情检查记录查询"
,
notes
=
"线路质量分析-其他病害分析-
详情检查记录查询"
)
@AutoLog
(
value
=
"线路质量分析-其他病害分析-
道岔检查单元
详情检查记录查询"
)
@ApiOperation
(
value
=
"线路质量分析-其他病害分析-
道岔检查单元详情检查记录查询"
,
notes
=
"线路质量分析-其他病害分析-道岔检查单元
详情检查记录查询"
)
@GetMapping
(
value
=
"/getAnalysisLineBatchUnitEkInfoList"
)
public
Result
<
List
<
AnalysisLineBatchUnitDeviceTurnoutInfoVO
>>
getAnalysisLineBatchUnitEkInfoList
(
@RequestParam
String
analysisBatchId
,
@RequestParam
String
ekId
,
@RequestParam
String
deviceId
)
{
List
<
AnalysisLineBatchUnitDeviceTurnoutInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitEkInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
public
Result
<
List
<
AnalysisLineBatchUnitDeviceTurnoutInfoVO
>>
getAnalysisLineBatchUnitEkInfoList
(
@RequestParam
String
analysisBatchId
,
@RequestParam
String
ekId
,
@RequestParam
String
deviceId
)
{
List
<
AnalysisLineBatchUnitDeviceTurnoutInfoVO
>
list
=
this
.
service
.
getAnalysisLineBatchUnitEkInfoList
(
analysisBatchId
,
ekId
,
deviceId
);
return
Result
.
OK
(
list
);
}
//***********************************分析新增编辑接口*************************************************************************************************************
@AutoLog
(
value
=
"其他病害分析-分析批次-新增分析批次"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-新增分析批次"
,
notes
=
"其他病害分析-分析批次-新增分析批次"
)
...
...
@@ -153,4 +163,47 @@ public class AnalysisLineBatchController extends JeecgController<AnalysisLineBat
return
Result
.
OK
(
"操作成功"
);
}
@AutoLog
(
value
=
"其他病害分析-分析批次-更新分析批次"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-更新分析批次"
,
notes
=
"其他病害分析-分析批次-更新分析批次"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
AnalysisLineBatchSaveOrUpdateDTO
dto
)
{
if
(
dto
.
getStartingMileage
().
compareTo
(
dto
.
getEndMileage
())
>
0
)
{
throw
new
JeecgBootException
(
"起始里程不能大于结束里程"
);
}
// 去重
AnalysisLineBatch
exist
=
this
.
service
.
lambdaQuery
()
.
eq
(
AnalysisLineBatch:
:
getAnalysisBatchCode
,
dto
.
getAnalysisBatchCode
())
.
ne
(
AnalysisLineBatch:
:
getId
,
dto
.
getId
())
.
last
(
"limit 1"
)
.
one
();
if
(
exist
!=
null
)
{
throw
new
JeecgBootException
(
"【"
+
dto
.
getAnalysisBatchCode
()
+
"】分析批次已存在"
);
}
this
.
service
.
updateRecord
(
dto
);
return
Result
.
OK
(
"操作成功"
);
}
/**
* 其他病害分析-分析批次-删除
*
* @param ids
* @return
*/
@AutoLog
(
value
=
"其他病害分析-分析批次-删除"
)
@ApiOperation
(
value
=
"其他病害分析-分析批次-删除"
,
notes
=
"其他病害分析-分析批次-删除"
)
@GetMapping
(
value
=
"/deleteBatchRecord"
)
public
Result
<
String
>
deleteBatchRecord
(
@RequestParam
(
name
=
"ids"
,
required
=
true
)
String
ids
)
{
List
<
String
>
idList
=
new
ArrayList
<>();
if
(
ids
.
contains
(
","
))
{
idList
=
Arrays
.
asList
(
ids
.
split
(
","
));
}
else
{
idList
.
add
(
ids
);
}
this
.
service
.
deleteBatchRecord
(
idList
);
return
Result
.
OK
(
"批量删除成功!"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/controller/AnalysisLineBatchUnitDeviceRailWearInfoController.java
0 → 100644
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
controller
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceRailWearInfo
;
import
org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchUnitDeviceRailWearInfoService
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* <p>
* 线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查 前端控制器
* </p>
*
* @author hkl
* @since 2024-07-24
*/
@RestController
@RequestMapping
(
"/analysisLineBatchUnitDeviceRailWearInfo"
)
public
class
AnalysisLineBatchUnitDeviceRailWearInfoController
extends
JeecgController
<
AnalysisLineBatchUnitDeviceRailWearInfo
,
IAnalysisLineBatchUnitDeviceRailWearInfoService
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/dto/AnalysisLineBatchUnitDeviceRailWearInfoDTO.java
0 → 100644
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* <p>
* 线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查
* </p>
*
* @author hkl
* @since 2024-07-24
*/
@Getter
@Setter
@ApiModel
(
value
=
"AnalysisLineBatchUnitDeviceRailWearInfo对象"
,
description
=
"线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查"
)
public
class
AnalysisLineBatchUnitDeviceRailWearInfoDTO
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
"分析批id"
)
private
String
analysisBatchId
;
@ApiModelProperty
(
"分析批次号"
)
private
String
analysisBatchCode
;
@ApiModelProperty
(
"设备检查记录主表id(t_ek_records_master_check)"
)
private
String
ekId
;
@ApiModelProperty
(
"检查批次号(t_ek_records_master_check)"
)
private
String
ekCode
;
@ApiModelProperty
(
"单元表id(t_dsa_analysis_line_batch_unit_device)"
)
private
String
deviceId
;
@ApiModelProperty
(
"检查设备id(设备资产四种表的主键)"
)
private
String
deviceProjectId
;
@ApiModelProperty
(
"检查设备编码(设备资产四种表的switch_code)"
)
private
String
deviceProjectCode
;
@ApiModelProperty
(
"检查设备类型(1-钢轨,2-曲线,3-竖曲线,4-道岔)"
)
private
Integer
deviceProjectType
;
@ApiModelProperty
(
"股别(1-左股,2-右股)"
)
private
Integer
damageLevel
;
@ApiModelProperty
(
"伤损钢轨数量"
)
private
Integer
damageNum
;
@ApiModelProperty
(
"伤损种类(1-鱼鳞纹,2-剥落掉块,3-表面疲劳裂纹,4-轨底掉块,5-灼伤,6-核伤,7-焊缝,8-其他)"
)
private
Integer
damageType
;
@ApiModelProperty
(
"伤损里程"
)
private
BigDecimal
damageMileage
;
@ApiModelProperty
(
"伤损程度(1-轻伤,2-轻伤有发展,3-重伤)"
)
private
Integer
damageDegree
;
@ApiModelProperty
(
"换轨计划"
)
private
String
damagePlan
;
@ApiModelProperty
(
"是否删除(0:未删除,1:已删除)"
)
private
String
delFlag
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/entity/AnalysisLineBatchUnitDeviceRailWearInfo.java
0 → 100644
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* <p>
* 线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查
* </p>
*
* @author hkl
* @since 2024-07-24
*/
@Getter
@Setter
@TableName
(
"t_dsa_analysis_line_batch_unit_device_rail_wear_info"
)
@ApiModel
(
value
=
"AnalysisLineBatchUnitDeviceRailWearInfo对象"
,
description
=
"线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查"
)
public
class
AnalysisLineBatchUnitDeviceRailWearInfo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@TableField
(
"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
(
"分析批id"
)
@TableField
(
"analysis_batch_id"
)
private
String
analysisBatchId
;
@ApiModelProperty
(
"分析批次号"
)
@TableField
(
"analysis_batch_code"
)
private
String
analysisBatchCode
;
@ApiModelProperty
(
"设备检查记录主表id(t_ek_records_master_check)"
)
@TableField
(
"ek_id"
)
private
String
ekId
;
@ApiModelProperty
(
"检查批次号(t_ek_records_master_check)"
)
@TableField
(
"ek_code"
)
private
String
ekCode
;
@ApiModelProperty
(
"单元表id(t_dsa_analysis_line_batch_unit_device)"
)
@TableField
(
"device_id"
)
private
String
deviceId
;
@ApiModelProperty
(
"检查设备id(设备资产四种表的主键)"
)
@TableField
(
"device_project_id"
)
private
String
deviceProjectId
;
@ApiModelProperty
(
"检查设备编码(设备资产四种表的switch_code)"
)
@TableField
(
"device_project_code"
)
private
String
deviceProjectCode
;
@ApiModelProperty
(
"检查设备类型(1-钢轨,2-曲线,3-竖曲线,4-道岔)"
)
@TableField
(
"device_project_type"
)
private
Integer
deviceProjectType
;
@ApiModelProperty
(
"股别(1-左股,2-右股)"
)
@TableField
(
"damage_level"
)
private
Integer
damageLevel
;
@ApiModelProperty
(
"伤损钢轨数量"
)
@TableField
(
"damage_num"
)
private
Integer
damageNum
;
@ApiModelProperty
(
"伤损种类(1-鱼鳞纹,2-剥落掉块,3-表面疲劳裂纹,4-轨底掉块,5-灼伤,6-核伤,7-焊缝,8-其他)"
)
@TableField
(
"damage_type"
)
private
Integer
damageType
;
@ApiModelProperty
(
"伤损里程"
)
@TableField
(
"damage_mileage"
)
private
BigDecimal
damageMileage
;
@ApiModelProperty
(
"伤损程度(1-轻伤,2-轻伤有发展,3-重伤)"
)
@TableField
(
"damage_degree"
)
private
Integer
damageDegree
;
@ApiModelProperty
(
"换轨计划"
)
@TableField
(
"damage_plan"
)
private
String
damagePlan
;
@ApiModelProperty
(
"是否删除(0:未删除,1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/mapper/AnalysisLineBatchUnitDeviceRailWearInfoMapper.java
0 → 100644
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceRailWearInfo
;
/**
* <p>
* 线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查 Mapper 接口
* </p>
*
* @author hkl
* @since 2024-07-24
*/
public
interface
AnalysisLineBatchUnitDeviceRailWearInfoMapper
extends
BaseMapper
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/mapper/xml/AnalysisLineBatchMapper.xml
View file @
dbb07f2f
...
...
@@ -98,7 +98,7 @@
<if
test=
"dto.workStatus != null"
>
AND t1.work_status = #{dto.workStatus}
</if>
ORDER BY t1.u
pdate_time DE
SC
ORDER BY t1.u
nit_center_mileage A
SC
</select>
<select
id=
"getAnalysisLineBatchUnitEkInfoList"
resultType=
"org.jeecg.modules.diseaseAnalysis.vo.AnalysisLineBatchUnitDeviceTurnoutInfoVO"
>
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/mapper/xml/AnalysisLineBatchUnitDeviceRailWearInfoMapper.xml
0 → 100644
View file @
dbb07f2f
<?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.diseaseAnalysis.mapper.AnalysisLineBatchUnitDeviceRailWearInfoMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/IAnalysisLineBatchService.java
View file @
dbb07f2f
...
...
@@ -77,4 +77,16 @@ public interface IAnalysisLineBatchService extends IService<AnalysisLineBatch> {
* @param dto
*/
void
saveRecord
(
AnalysisLineBatchSaveOrUpdateDTO
dto
);
/**
* 其他病害分析-分析批次-更新分析批次
* @param dto
*/
void
updateRecord
(
AnalysisLineBatchSaveOrUpdateDTO
dto
);
/**
* 其他病害分析-分析批次-删除
* @param idList
*/
void
deleteBatchRecord
(
List
<
String
>
idList
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/IAnalysisLineBatchUnitDeviceRailWearInfoService.java
0 → 100644
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceRailWearInfo
;
/**
* <p>
* 线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查 服务类
* </p>
*
* @author hkl
* @since 2024-07-24
*/
public
interface
IAnalysisLineBatchUnitDeviceRailWearInfoService
extends
IService
<
AnalysisLineBatchUnitDeviceRailWearInfo
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/impl/AnalysisLineBatchServiceImpl.java
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
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.diseaseAnalysis.algorithm.MultiProducerLine
;
...
...
@@ -10,12 +12,17 @@ import org.jeecg.modules.diseaseAnalysis.dto.AnalysisLineBatchSaveOrUpdateDTO;
import
org.jeecg.modules.diseaseAnalysis.dto.EkRecordsMasterCheckDTO
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatch
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchCheckDataMap
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDevice
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceTurnoutInfo
;
import
org.jeecg.modules.diseaseAnalysis.mapper.AnalysisLineBatchCheckDataMapMapper
;
import
org.jeecg.modules.diseaseAnalysis.mapper.AnalysisLineBatchMapper
;
import
org.jeecg.modules.diseaseAnalysis.mapper.AnalysisLineBatchUnitDeviceMapper
;
import
org.jeecg.modules.diseaseAnalysis.mapper.AnalysisLineBatchUnitDeviceTurnoutInfoMapper
;
import
org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.diseaseAnalysis.vo.*
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
...
...
@@ -33,7 +40,10 @@ import java.util.List;
public
class
AnalysisLineBatchServiceImpl
extends
ServiceImpl
<
AnalysisLineBatchMapper
,
AnalysisLineBatch
>
implements
IAnalysisLineBatchService
{
@Resource
private
AnalysisLineBatchCheckDataMapMapper
analysisLineBatchCheckDataMapMapper
;
@Resource
private
AnalysisLineBatchUnitDeviceMapper
analysisLineBatchUnitDeviceMapper
;
@Resource
private
AnalysisLineBatchUnitDeviceTurnoutInfoMapper
analysisLineBatchUnitDeviceTurnoutInfoMapper
;
/**
* 线路质量分析-其他病害分析-检查记录-分页列表查询
*
...
...
@@ -150,4 +160,74 @@ public class AnalysisLineBatchServiceImpl extends ServiceImpl<AnalysisLineBatchM
// 执行分析
MultiProducerLine
.
produce
(
analysisLineBatch
.
getId
());
}
/**
* 其他病害分析-分析批次-更新分析批次
* @param dto
*/
@Override
public
void
updateRecord
(
AnalysisLineBatchSaveOrUpdateDTO
dto
)
{
// 主表
AnalysisLineBatch
analysisLineBatch
=
BeanUtil
.
copyProperties
(
dto
,
AnalysisLineBatch
.
class
);
analysisLineBatch
.
setAnalysisStatus
(
1
);
// 1-分析中
// 明细
// 1.先删除
LambdaQueryWrapper
<
AnalysisLineBatchCheckDataMap
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
eq
(
AnalysisLineBatchCheckDataMap:
:
getAnalysisBatchId
,
analysisLineBatch
.
getId
());
analysisLineBatchCheckDataMapMapper
.
delete
(
wrapper
);
// 2.后新增
List
<
AnalysisLineBatchCheckDataMap
>
analysisLineBatchCheckDataMaps
=
new
ArrayList
<>();
List
<
AnalysisLineBatchSaveOrUpdateDTO
.
CheckDataDTO
>
checkDataList
=
dto
.
getCheckDataList
();
for
(
AnalysisLineBatchSaveOrUpdateDTO
.
CheckDataDTO
checkDataDTO
:
checkDataList
)
{
AnalysisLineBatchCheckDataMap
analysisLineBatchCheckDataMap
=
new
AnalysisLineBatchCheckDataMap
();
analysisLineBatchCheckDataMap
.
setId
(
UUIDGenerator
.
generate
());
analysisLineBatchCheckDataMap
.
setAnalysisBatchId
(
analysisLineBatch
.
getId
());
analysisLineBatchCheckDataMap
.
setAnalysisBatchCode
(
analysisLineBatch
.
getAnalysisBatchCode
());
analysisLineBatchCheckDataMap
.
setEkCode
(
checkDataDTO
.
getEkCode
());
analysisLineBatchCheckDataMap
.
setEkId
(
checkDataDTO
.
getEkId
());
analysisLineBatchCheckDataMap
.
setStartingMileage
(
checkDataDTO
.
getStartingMileage
());
analysisLineBatchCheckDataMap
.
setEndMileage
(
checkDataDTO
.
getEndMileage
());
analysisLineBatchCheckDataMap
.
setCheckTime
(
checkDataDTO
.
getCheckTime
());
analysisLineBatchCheckDataMap
.
setEkType
(
checkDataDTO
.
getEkType
());
analysisLineBatchCheckDataMap
.
setAnalysisStatus
(
1
);
// 分析中
analysisLineBatchCheckDataMap
.
setRemark
(
dto
.
getRemark
());
analysisLineBatchCheckDataMaps
.
add
(
analysisLineBatchCheckDataMap
);
}
this
.
updateById
(
analysisLineBatch
);
for
(
AnalysisLineBatchCheckDataMap
analysisLineBatchCheckDataMap
:
analysisLineBatchCheckDataMaps
)
{
analysisLineBatchCheckDataMapMapper
.
insert
(
analysisLineBatchCheckDataMap
);
}
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
// 执行分析
MultiProducerLine
.
produce
(
analysisLineBatch
.
getId
());
}
/**
* 其他病害分析-分析批次-删除
* @param idList
*/
@Override
@Transactional
public
void
deleteBatchRecord
(
List
<
String
>
idList
)
{
// 1.先删除病害分析主表与检查记录主表之间的关系表
LambdaQueryWrapper
<
AnalysisLineBatchCheckDataMap
>
wrapper
=
Wrappers
.
lambdaQuery
();
wrapper
.
in
(
AnalysisLineBatchCheckDataMap:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchCheckDataMapMapper
.
delete
(
wrapper
);
// 2.删除单元表
LambdaQueryWrapper
<
AnalysisLineBatchUnitDevice
>
wrapper1
=
Wrappers
.
lambdaQuery
();
wrapper1
.
in
(
AnalysisLineBatchUnitDevice:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchUnitDeviceMapper
.
delete
(
wrapper1
);
//3.删除道岔单元详情表
LambdaQueryWrapper
<
AnalysisLineBatchUnitDeviceTurnoutInfo
>
wrapper2
=
Wrappers
.
lambdaQuery
();
wrapper2
.
in
(
AnalysisLineBatchUnitDeviceTurnoutInfo:
:
getAnalysisBatchId
,
idList
);
analysisLineBatchUnitDeviceTurnoutInfoMapper
.
delete
(
wrapper2
);
//4.删除分析主表
this
.
baseMapper
.
deleteBatchIds
(
idList
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/service/impl/AnalysisLineBatchUnitDeviceRailWearInfoServiceImpl.java
0 → 100644
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.diseaseAnalysis.entity.AnalysisLineBatchUnitDeviceRailWearInfo
;
import
org.jeecg.modules.diseaseAnalysis.mapper.AnalysisLineBatchUnitDeviceRailWearInfoMapper
;
import
org.jeecg.modules.diseaseAnalysis.service.IAnalysisLineBatchUnitDeviceRailWearInfoService
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查 服务实现类
* </p>
*
* @author hkl
* @since 2024-07-24
*/
@Service
public
class
AnalysisLineBatchUnitDeviceRailWearInfoServiceImpl
extends
ServiceImpl
<
AnalysisLineBatchUnitDeviceRailWearInfoMapper
,
AnalysisLineBatchUnitDeviceRailWearInfo
>
implements
IAnalysisLineBatchUnitDeviceRailWearInfoService
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/diseaseAnalysis/vo/AnalysisLineBatchUnitDeviceRailWearInfoVO.java
0 → 100644
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
diseaseAnalysis
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* <p>
* 线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查
* </p>
*
* @author hkl
* @since 2024-07-24
*/
@Getter
@Setter
@ApiModel
(
value
=
"AnalysisLineBatchUnitDeviceRailWearInfo对象"
,
description
=
"线路质量分析-分析批次表-单元设备详情(1个分析批次有多个检查批次,1个检查批次有多个单位设备,1个单元设备有多个详情)---钢轨探伤检查"
)
public
class
AnalysisLineBatchUnitDeviceRailWearInfoVO
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
"分析批id"
)
private
String
analysisBatchId
;
@ApiModelProperty
(
"分析批次号"
)
private
String
analysisBatchCode
;
@ApiModelProperty
(
"设备检查记录主表id(t_ek_records_master_check)"
)
private
String
ekId
;
@ApiModelProperty
(
"检查批次号(t_ek_records_master_check)"
)
private
String
ekCode
;
@ApiModelProperty
(
"单元表id(t_dsa_analysis_line_batch_unit_device)"
)
private
String
deviceId
;
@ApiModelProperty
(
"检查设备id(设备资产四种表的主键)"
)
private
String
deviceProjectId
;
@ApiModelProperty
(
"检查设备编码(设备资产四种表的switch_code)"
)
private
String
deviceProjectCode
;
@ApiModelProperty
(
"检查设备类型(1-钢轨,2-曲线,3-竖曲线,4-道岔)"
)
private
Integer
deviceProjectType
;
@ApiModelProperty
(
"股别(1-左股,2-右股)"
)
private
Integer
damageLevel
;
@ApiModelProperty
(
"伤损钢轨数量"
)
private
Integer
damageNum
;
@ApiModelProperty
(
"伤损种类(1-鱼鳞纹,2-剥落掉块,3-表面疲劳裂纹,4-轨底掉块,5-灼伤,6-核伤,7-焊缝,8-其他)"
)
private
Integer
damageType
;
@ApiModelProperty
(
"伤损里程"
)
private
BigDecimal
damageMileage
;
@ApiModelProperty
(
"伤损程度(1-轻伤,2-轻伤有发展,3-重伤)"
)
private
Integer
damageDegree
;
@ApiModelProperty
(
"换轨计划"
)
private
String
damagePlan
;
@ApiModelProperty
(
"是否删除(0:未删除,1:已删除)"
)
private
String
delFlag
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/dto/AnalysisBatchSaveDTO.java
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
maintenanceWork
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -54,6 +55,9 @@ public class AnalysisBatchSaveDTO {
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
@ApiModelProperty
(
"分析类型(1-动静态分析2:其他病害分析)"
)
private
Integer
analysisType
;
@ApiModelProperty
(
"作业状态 0-未作业 1-已作业"
)
private
Integer
workStatus
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/dto/WorkBatchDTO.java
View file @
dbb07f2f
...
...
@@ -43,6 +43,9 @@ public class WorkBatchDTO {
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
@ApiModelProperty
(
"分析类型(1-动静态分析2:其他病害分析)"
)
private
Integer
analysisType
;
@ApiModelProperty
(
"来源 1-页面添加 2-超限派工添加"
)
private
Integer
source
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/dto/WorkBatchTransfiniteSaveDTO.java
View file @
dbb07f2f
package
org
.
jeecg
.
modules
.
maintenanceWork
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -54,6 +55,9 @@ public class WorkBatchTransfiniteSaveDTO {
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
@ApiModelProperty
(
"分析类型(1-动静态分析2:其他病害分析)"
)
private
Integer
analysisType
;
@ApiModelProperty
(
"派工列表"
)
private
List
<
DispatchDTO
>
detailList
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/entity/WorkBatch.java
View file @
dbb07f2f
...
...
@@ -3,9 +3,11 @@ package org.jeecg.modules.maintenanceWork.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.math.BigDecimal
;
import
java.util.Date
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
...
...
@@ -87,6 +89,10 @@ public class WorkBatch implements Serializable {
@TableField
(
"team"
)
private
String
team
;
@ApiModelProperty
(
"分析类型(1-动静态分析2:其他病害分析)"
)
@TableField
(
"analysis_type"
)
private
Integer
analysisType
;
@ApiModelProperty
(
"来源 1-页面添加 2-超限派工添加"
)
@TableField
(
"source"
)
private
Integer
source
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/mapper/xml/WorkBatchMapper.xml
View file @
dbb07f2f
...
...
@@ -22,6 +22,7 @@
t1.source,
t1.work_status,
t1.del_flag,
t1.analysis_type,
(SELECT count(1) FROM t_mw_work_batch_detail WHERE work_batch_id = t1.id) work_unit_device_num
FROM
t_mw_work_batch t1
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/service/impl/WorkBatchServiceImpl.java
View file @
dbb07f2f
This diff is collapsed.
Click to expand it.
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/vo/WorkBatchVO.java
View file @
dbb07f2f
...
...
@@ -61,6 +61,10 @@ public class WorkBatchVO {
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
@ApiModelProperty
(
"分析类型(1-动静态分析2:其他病害分析)"
)
@TableField
(
"analysis_type"
)
private
Integer
analysisType
;
@ApiModelProperty
(
"来源 1-页面添加 2-超限派工添加"
)
private
Integer
source
;
...
...
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