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
2246fff3
Commit
2246fff3
authored
Aug 10, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.算法
parent
2f3437b6
Changes
50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
2040 additions
and
417 deletions
+2040
-417
.gitignore
.gitignore
+1
-0
CodeGenerate.java
...em/src/main/java/org/jeecg/codegenerate/CodeGenerate.java
+4
-4
AnalysisAlgorithm.java
...es/dynamicStaticAnalysis/algorithm/AnalysisAlgorithm.java
+521
-11
SingleConsumer.java
...dules/dynamicStaticAnalysis/algorithm/SingleConsumer.java
+10
-1
AnalysisBatchUnitDeviceController.java
...nalysis/controller/AnalysisBatchUnitDeviceController.java
+13
-9
AnalysisBatchSaveOrUpdateDTO.java
...namicStaticAnalysis/dto/AnalysisBatchSaveOrUpdateDTO.java
+12
-0
AnalysisBatchUnitDeviceDTO.java
...dynamicStaticAnalysis/dto/AnalysisBatchUnitDeviceDTO.java
+21
-6
AnalysisBatch.java
...g/modules/dynamicStaticAnalysis/entity/AnalysisBatch.java
+16
-0
AnalysisBatchUnitDevice.java
...dynamicStaticAnalysis/entity/AnalysisBatchUnitDevice.java
+21
-8
AnalysisBatchUnitDevicePointScore.java
...ticAnalysis/entity/AnalysisBatchUnitDevicePointScore.java
+111
-0
AnalysisBatchUnitDeviceTransfinite.java
...icAnalysis/entity/AnalysisBatchUnitDeviceTransfinite.java
+108
-0
AnalysisBatchUnitDevicePointScoreMapper.java
...lysis/mapper/AnalysisBatchUnitDevicePointScoreMapper.java
+16
-0
AnalysisBatchUnitDeviceTransfiniteMapper.java
...ysis/mapper/AnalysisBatchUnitDeviceTransfiniteMapper.java
+20
-0
AnalysisAlgorithmMapper.xml
...amicStaticAnalysis/mapper/xml/AnalysisAlgorithmMapper.xml
+10
-5
AnalysisBatchMapper.xml
.../dynamicStaticAnalysis/mapper/xml/AnalysisBatchMapper.xml
+2
-0
AnalysisBatchUnitDeviceMapper.xml
...aticAnalysis/mapper/xml/AnalysisBatchUnitDeviceMapper.xml
+41
-26
AnalysisBatchUnitDevicePointScoreMapper.xml
...is/mapper/xml/AnalysisBatchUnitDevicePointScoreMapper.xml
+5
-0
AnalysisBatchUnitDeviceTransfiniteMapper.xml
...s/mapper/xml/AnalysisBatchUnitDeviceTransfiniteMapper.xml
+31
-0
IAnalysisBatchUnitDevicePointScoreService.java
...is/service/IAnalysisBatchUnitDevicePointScoreService.java
+16
-0
IAnalysisBatchUnitDeviceTransfiniteService.java
...s/service/IAnalysisBatchUnitDeviceTransfiniteService.java
+16
-0
AnalysisBatchServiceImpl.java
...StaticAnalysis/service/impl/AnalysisBatchServiceImpl.java
+8
-0
AnalysisBatchUnitDevicePointScoreServiceImpl.java
...ce/impl/AnalysisBatchUnitDevicePointScoreServiceImpl.java
+20
-0
AnalysisBatchUnitDeviceServiceImpl.java
...ysis/service/impl/AnalysisBatchUnitDeviceServiceImpl.java
+16
-1
AnalysisBatchUnitDeviceTransfiniteServiceImpl.java
...e/impl/AnalysisBatchUnitDeviceTransfiniteServiceImpl.java
+20
-0
StrUtil.java
...org/jeecg/modules/dynamicStaticAnalysis/util/StrUtil.java
+33
-0
AnalysisBatchQueryVO.java
...odules/dynamicStaticAnalysis/vo/AnalysisBatchQueryVO.java
+6
-0
AnalysisBatchUnitDeviceTransfiniteVO.java
...aticAnalysis/vo/AnalysisBatchUnitDeviceTransfiniteVO.java
+50
-0
AnalysisBatchUnitDeviceVO.java
...s/dynamicStaticAnalysis/vo/AnalysisBatchUnitDeviceVO.java
+17
-24
WorkBatchController.java
...dules/maintenanceWork/controller/WorkBatchController.java
+73
-0
WorkBatchDTO.java
...a/org/jeecg/modules/maintenanceWork/dto/WorkBatchDTO.java
+62
-0
WorkBatchDetailDTO.java
...jeecg/modules/maintenanceWork/dto/WorkBatchDetailDTO.java
+104
-0
WorkBatchSaveOrUpdateDTO.java
...modules/maintenanceWork/dto/WorkBatchSaveOrUpdateDTO.java
+55
-0
WorkBatch.java
...a/org/jeecg/modules/maintenanceWork/entity/WorkBatch.java
+103
-0
WorkBatchDetail.java
...jeecg/modules/maintenanceWork/entity/WorkBatchDetail.java
+127
-0
WorkBatchDetailMapper.java
...modules/maintenanceWork/mapper/WorkBatchDetailMapper.java
+16
-0
WorkBatchMapper.java
...jeecg/modules/maintenanceWork/mapper/WorkBatchMapper.java
+20
-0
WorkBatchDetailMapper.xml
...ules/maintenanceWork/mapper/xml/WorkBatchDetailMapper.xml
+5
-0
WorkBatchMapper.xml
...cg/modules/maintenanceWork/mapper/xml/WorkBatchMapper.xml
+33
-0
IWorkBatchDetailService.java
...ules/maintenanceWork/service/IWorkBatchDetailService.java
+16
-0
IWorkBatchService.java
...cg/modules/maintenanceWork/service/IWorkBatchService.java
+27
-0
WorkBatchDetailServiceImpl.java
...ntenanceWork/service/impl/WorkBatchDetailServiceImpl.java
+20
-0
WorkBatchServiceImpl.java
...es/maintenanceWork/service/impl/WorkBatchServiceImpl.java
+55
-0
WorkBatchDetailVO.java
...g/jeecg/modules/maintenanceWork/vo/WorkBatchDetailVO.java
+103
-0
WorkBatchVO.java
...ava/org/jeecg/modules/maintenanceWork/vo/WorkBatchVO.java
+56
-0
SchoolPlanBatchMasterController.java
...es/school/controller/SchoolPlanBatchMasterController.java
+0
-92
SchoolPlanBatchMasterMapper.java
...cg/modules/school/mapper/SchoolPlanBatchMasterMapper.java
+0
-27
SchoolPlanBatchMasterMapper.xml
...modules/school/mapper/xml/SchoolPlanBatchMasterMapper.xml
+0
-34
ISchoolPlanBatchMasterService.java
...modules/school/service/ISchoolPlanBatchMasterService.java
+0
-29
SchoolPlanBatchMasterServiceImpl.java
...school/service/impl/SchoolPlanBatchMasterServiceImpl.java
+0
-33
SchoolPlanBatchMasterVO.java
.../org/jeecg/modules/school/vo/SchoolPlanBatchMasterVO.java
+0
-107
No files found.
.gitignore
View file @
2246fff3
...
@@ -10,3 +10,4 @@ rebel.xml
...
@@ -10,3 +10,4 @@ rebel.xml
## front
## front
**/*.lock
**/*.lock
/jeecg-module-system/src/main/java/org/jeecg/modules/test/
/jeecg-module-system/src/main/java/org/jeecg/modules/test/
/jeecg-module-system/src/main/resources/application-hkl.yml
jeecg-module-system/src/main/java/org/jeecg/codegenerate/CodeGenerate.java
View file @
2246fff3
...
@@ -25,12 +25,12 @@ public class CodeGenerate {
...
@@ -25,12 +25,12 @@ public class CodeGenerate {
String
outputDir
=
projectPath
+
"\\jeecg-module-system\\src\\main\\java\\"
;
String
outputDir
=
projectPath
+
"\\jeecg-module-system\\src\\main\\java\\"
;
// 模块名
// 模块名
String
moduleName
=
"
dynamicStaticAnalysis
"
;
String
moduleName
=
"
maintenanceWork
"
;
// 表名
// 表名
String
[]
tables
=
{
String
[]
tables
=
{
"t_
dsa_config_allow_value
"
,
"t_
mw_work_batch
"
,
"t_
dsa_config_dispatching
"
,
"t_
mw_work_batch_detail
"
,
};
};
...
@@ -58,7 +58,7 @@ public class CodeGenerate {
...
@@ -58,7 +58,7 @@ public class CodeGenerate {
// 设置过滤前缀
// 设置过滤前缀
.
strategyConfig
(
builder
->
{
.
strategyConfig
(
builder
->
{
builder
.
addInclude
(
tables
)
// 设置需要生成的表名
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"
,
"t_mw"
);
// 设置过滤表前缀
// entity实体策略
// entity实体策略
builder
.
entityBuilder
()
builder
.
entityBuilder
()
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/algorithm/AnalysisAlgorithm.java
View file @
2246fff3
This diff is collapsed.
Click to expand it.
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/algorithm/SingleConsumer.java
View file @
2246fff3
...
@@ -25,7 +25,16 @@ public class SingleConsumer {
...
@@ -25,7 +25,16 @@ public class SingleConsumer {
analysisAlgorithm
.
analysis
(
analysisBatchId
);
analysisAlgorithm
.
analysis
(
analysisBatchId
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
info
(
"SingleConsumer[消费者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】异常信息:"
+
e
.
getCause
());
StackTraceElement
[]
stackTrace
=
e
.
getStackTrace
();
String
exceptionMessage
=
"错误类名:"
+
stackTrace
[
0
].
getClassName
()
+
".错误方法名:"
+
stackTrace
[
0
].
getMethodName
()
+
".错误行号:"
+
stackTrace
[
0
].
getLineNumber
()
+
".异常:"
+
e
.
toString
();
log
.
error
(
"SingleConsumer[消费者]|线程id:【"
+
Thread
.
currentThread
().
getId
()
+
"】异常信息:"
+
exceptionMessage
);
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/controller/AnalysisBatchUnitDeviceController.java
View file @
2246fff3
...
@@ -10,12 +10,14 @@ import org.jeecg.common.aspect.annotation.AutoLog;
...
@@ -10,12 +10,14 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchUnitDeviceDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchUnitDeviceDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevice
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevice
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDeviceTransfinite
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceTransfiniteService
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO
;
import
org.springframework.web.bind.annotation.
GetMapping
;
import
org.springframework.web.bind.annotation.
*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
javax.annotation.Resource
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
/**
* <p>
* <p>
...
@@ -33,12 +35,14 @@ public class AnalysisBatchUnitDeviceController extends JeecgController<AnalysisB
...
@@ -33,12 +35,14 @@ public class AnalysisBatchUnitDeviceController extends JeecgController<AnalysisB
@AutoLog
(
value
=
"动静态分析-分析批次-单元设备-获取列表数据"
)
@AutoLog
(
value
=
"动静态分析-分析批次-单元设备-获取列表数据"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-单元设备-获取列表数据"
,
notes
=
"动静态分析-分析批次-单元设备-获取列表数据"
)
@ApiOperation
(
value
=
"动静态分析-分析批次-单元设备-获取列表数据"
,
notes
=
"动静态分析-分析批次-单元设备-获取列表数据"
)
@GetMapping
(
value
=
"/listRecord"
)
@PostMapping
(
value
=
"/listRecord"
)
public
Result
<
IPage
<
AnalysisBatchUnitDeviceVO
>>
listRecord
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
public
Result
<
IPage
<
AnalysisBatchUnitDeviceVO
>>
listRecord
(
@RequestBody
AnalysisBatchUnitDeviceDTO
dto
)
{
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
Page
<
AnalysisBatchUnitDeviceVO
>
pageData
=
new
Page
<>(
dto
.
getPageNo
(),
dto
.
getPageSize
());
AnalysisBatchUnitDeviceDTO
dto
)
{
Page
<
AnalysisBatchUnitDeviceVO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
pageData
=
this
.
service
.
listRecord
(
pageData
,
dto
);
pageData
=
this
.
service
.
listRecord
(
pageData
,
dto
);
return
Result
.
OK
(
pageData
);
return
Result
.
OK
(
pageData
);
}
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/dto/AnalysisBatchSaveOrUpdateDTO.java
View file @
2246fff3
...
@@ -41,6 +41,18 @@ public class AnalysisBatchSaveOrUpdateDTO {
...
@@ -41,6 +41,18 @@ public class AnalysisBatchSaveOrUpdateDTO {
@ApiModelProperty
(
"分析类型 1-均值分析 2-峰值分析"
)
@ApiModelProperty
(
"分析类型 1-均值分析 2-峰值分析"
)
private
Integer
analysisType
;
private
Integer
analysisType
;
@ApiModelProperty
(
"评价速度等级字典值"
)
private
String
dictValue
;
@ApiModelProperty
(
"评价速度等级字典名称"
)
private
String
dictLabel
;
// @ApiModelProperty("速度下限")
// private Integer speedMin;
//
// @ApiModelProperty("速度上限")
// private Integer speedMax;
@ApiModelProperty
(
"容许值差"
)
@ApiModelProperty
(
"容许值差"
)
private
String
allowValue
;
private
String
allowValue
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/dto/AnalysisBatchUnitDeviceDTO.java
View file @
2246fff3
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
/**
* <p>
* <p>
...
@@ -19,22 +20,36 @@ import java.math.BigDecimal;
...
@@ -19,22 +20,36 @@ import java.math.BigDecimal;
public
class
AnalysisBatchUnitDeviceDTO
{
public
class
AnalysisBatchUnitDeviceDTO
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"当前页码"
)
private
Integer
pageNo
=
1
;
@ApiModelProperty
(
value
=
"每页记录数"
)
private
Integer
pageSize
=
10
;
@ApiModelProperty
(
"分析批id"
)
@ApiModelProperty
(
"分析批id"
)
private
String
analysisBatchId
;
private
String
analysisBatchId
;
@ApiModelProperty
(
"设备单元类型1-钢轨 2-曲线 3-竖曲线 4-道岔"
)
private
Integer
unitType
;
@ApiModelProperty
(
"设备单元起始里程"
)
@ApiModelProperty
(
"设备单元起始里程"
)
private
BigDecimal
unitStartingMileage
;
private
BigDecimal
unitStartingMileage
;
@ApiModelProperty
(
"设备单元结束里程"
)
@ApiModelProperty
(
"设备单元结束里程"
)
private
BigDecimal
unitEndMileage
;
private
BigDecimal
unitEndMileage
;
@ApiModelProperty
(
"是否存在人工检查数据 0-不存在 1-存在"
)
@ApiModelProperty
(
"是否超限"
)
private
Integer
labourCheck
;
private
int
isTransfinite
;
@ApiModelProperty
(
"单元编号"
)
private
String
unitCode
;
@ApiModelProperty
(
"设备编号"
)
private
String
unitDeviceCode
;
@ApiModelProperty
(
"得分平级"
)
@ApiModelProperty
(
"得分平级"
)
private
String
gradeJudge
;
private
List
<
String
>
gradeJudgeList
;
@ApiModelProperty
(
"派工状态 0-未派工 1-已派工"
)
private
List
<
Integer
>
isWordList
;
@ApiModelProperty
(
"设备单元类型1-钢轨 2-曲线 3-竖曲线 4-道岔"
)
private
List
<
Integer
>
unitTypeList
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/AnalysisBatch.java
View file @
2246fff3
...
@@ -79,6 +79,22 @@ public class AnalysisBatch implements Serializable {
...
@@ -79,6 +79,22 @@ public class AnalysisBatch implements Serializable {
@TableField
(
"analysis_type"
)
@TableField
(
"analysis_type"
)
private
Integer
analysisType
;
private
Integer
analysisType
;
@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
(
"容许值差"
)
@ApiModelProperty
(
"容许值差"
)
@TableField
(
"allow_value"
)
@TableField
(
"allow_value"
)
private
String
allowValue
;
private
String
allowValue
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/AnalysisBatchUnitDevice.java
View file @
2246fff3
...
@@ -73,6 +73,10 @@ public class AnalysisBatchUnitDevice implements Serializable {
...
@@ -73,6 +73,10 @@ public class AnalysisBatchUnitDevice implements Serializable {
@TableField
(
"unit_type_name"
)
@TableField
(
"unit_type_name"
)
private
String
unitTypeName
;
private
String
unitTypeName
;
@ApiModelProperty
(
"设备编号"
)
@TableField
(
"unit_device_code"
)
private
String
unitDeviceCode
;
@ApiModelProperty
(
"设备单元起始里程"
)
@ApiModelProperty
(
"设备单元起始里程"
)
@TableField
(
"unit_starting_mileage"
)
@TableField
(
"unit_starting_mileage"
)
private
BigDecimal
unitStartingMileage
;
private
BigDecimal
unitStartingMileage
;
...
@@ -85,37 +89,46 @@ public class AnalysisBatchUnitDevice implements Serializable {
...
@@ -85,37 +89,46 @@ public class AnalysisBatchUnitDevice implements Serializable {
@TableField
(
"unit_end_mileage"
)
@TableField
(
"unit_end_mileage"
)
private
BigDecimal
unitEndMileage
;
private
BigDecimal
unitEndMileage
;
@ApiModelProperty
(
"单元得分等级 1-优良 2-合格 3-失格"
)
@TableField
(
"unit_score_level"
)
private
Integer
unitScoreLevel
;
@ApiModelProperty
(
"单元得分"
)
@TableField
(
"unit_score"
)
private
BigDecimal
unitScore
;
@ApiModelProperty
(
"是否存在人工检查数据 0-不存在 1-存在"
)
@ApiModelProperty
(
"是否存在人工检查数据 0-不存在 1-存在"
)
@TableField
(
"labour_check"
)
@TableField
(
"labour_check"
)
private
Integer
labourCheck
;
private
Integer
labourCheck
;
@ApiModelProperty
(
"人工检查数据得分"
)
@ApiModelProperty
(
"人工检查数据得分"
)
@TableField
(
"labour_check_
grad
e"
)
@TableField
(
"labour_check_
scor
e"
)
private
BigDecimal
labourCheck
Grad
e
;
private
BigDecimal
labourCheck
Scor
e
;
@ApiModelProperty
(
"是否存在轨检仪检查数据 0-不存在 1-存在"
)
@ApiModelProperty
(
"是否存在轨检仪检查数据 0-不存在 1-存在"
)
@TableField
(
"rail_device_check"
)
@TableField
(
"rail_device_check"
)
private
Integer
railDeviceCheck
;
private
Integer
railDeviceCheck
;
@ApiModelProperty
(
"轨检仪检查数据得分"
)
@ApiModelProperty
(
"轨检仪检查数据得分"
)
@TableField
(
"rail_device_check_
grad
e"
)
@TableField
(
"rail_device_check_
scor
e"
)
private
BigDecimal
railDeviceCheck
Grad
e
;
private
BigDecimal
railDeviceCheck
Scor
e
;
@ApiModelProperty
(
"是否存在轨检车查数据 0-不存在 1-存在"
)
@ApiModelProperty
(
"是否存在轨检车查数据 0-不存在 1-存在"
)
@TableField
(
"rail_vehicle_check"
)
@TableField
(
"rail_vehicle_check"
)
private
Integer
railVehicleCheck
;
private
Integer
railVehicleCheck
;
@ApiModelProperty
(
"轨检车查数据得分"
)
@ApiModelProperty
(
"轨检车查数据得分"
)
@TableField
(
"rail_vehicle_check_
grad
e"
)
@TableField
(
"rail_vehicle_check_
scor
e"
)
private
BigDecimal
railVehicleCheck
Grad
e
;
private
BigDecimal
railVehicleCheck
Scor
e
;
@ApiModelProperty
(
"是否存在添乘仪查数据 0-不存在 1-存在"
)
@ApiModelProperty
(
"是否存在添乘仪查数据 0-不存在 1-存在"
)
@TableField
(
"add_device_check"
)
@TableField
(
"add_device_check"
)
private
Integer
addDeviceCheck
;
private
Integer
addDeviceCheck
;
@ApiModelProperty
(
"添乘仪查数据得分"
)
@ApiModelProperty
(
"添乘仪查数据得分"
)
@TableField
(
"add_device_check_grade"
)
@TableField
(
"add_device_check_score"
)
private
BigDecimal
addDeviceCheckGrade
;
private
BigDecimal
addDeviceCheckScore
;
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
@TableField
(
"remark"
)
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/AnalysisBatchUnitDevicePointScore.java
0 → 100644
View file @
2246fff3
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.math.BigDecimal
;
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-08
*/
@Getter
@Setter
@TableName
(
"t_dsa_analysis_batch_unit_device_point_score"
)
@ApiModel
(
value
=
"AnalysisBatchUnitDevicePointScore对象"
,
description
=
"动静态分析-分析批次-单元设备测点得分"
)
public
class
AnalysisBatchUnitDevicePointScore
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
(
"分析类型 1-均值分析 2-峰值分析"
)
@TableField
(
"analysis_type"
)
private
Integer
analysisType
;
@ApiModelProperty
(
"分析批次单元设备id"
)
@TableField
(
"analysis_batch_unit_device_id"
)
private
String
analysisBatchUnitDeviceId
;
@ApiModelProperty
(
"分析批次号"
)
@TableField
(
"analysis_batch_code"
)
private
String
analysisBatchCode
;
@ApiModelProperty
(
"分析批id"
)
@TableField
(
"analysis_batch_id"
)
private
String
analysisBatchId
;
@ApiModelProperty
(
"单元设备id"
)
@TableField
(
"unit_id"
)
private
String
unitId
;
@ApiModelProperty
(
"单元设备code"
)
@TableField
(
"unit_code"
)
private
String
unitCode
;
@ApiModelProperty
(
"设备单元类型1-钢轨,2-曲线,3-竖曲线,4-道岔"
)
@TableField
(
"unit_type"
)
private
Integer
unitType
;
@ApiModelProperty
(
"设备单元类型名称"
)
@TableField
(
"unit_type_name"
)
private
String
unitTypeName
;
@ApiModelProperty
(
"测点类型"
)
@TableField
(
"point_type_name"
)
private
String
pointTypeName
;
@ApiModelProperty
(
"测点值"
)
@TableField
(
"point_value"
)
private
Integer
pointValue
;
@ApiModelProperty
(
"测点得分"
)
@TableField
(
"point_score"
)
private
BigDecimal
pointScore
;
@ApiModelProperty
(
"权值"
)
@TableField
(
"weight_values"
)
private
BigDecimal
weightValues
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/entity/AnalysisBatchUnitDeviceTransfinite.java
0 → 100644
View file @
2246fff3
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-04
*/
@Getter
@Setter
@TableName
(
"t_dsa_analysis_batch_unit_device_transfinite"
)
@ApiModel
(
value
=
"AnalysisBatchUnitDeviceTransfinite对象"
,
description
=
"动静态分析-分析批次-单元设备超限"
)
public
class
AnalysisBatchUnitDeviceTransfinite
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
(
"分析批次单元设备id"
)
@TableField
(
"analysis_batch_unit_device_id"
)
private
String
analysisBatchUnitDeviceId
;
@ApiModelProperty
(
"分析批次号"
)
@TableField
(
"analysis_batch_code"
)
private
String
analysisBatchCode
;
@ApiModelProperty
(
"分析批id"
)
@TableField
(
"analysis_batch_id"
)
private
String
analysisBatchId
;
@ApiModelProperty
(
"单元设备id"
)
@TableField
(
"unit_id"
)
private
String
unitId
;
@ApiModelProperty
(
"单元设备code"
)
@TableField
(
"unit_code"
)
private
String
unitCode
;
@ApiModelProperty
(
"设备单元类型1-钢轨,2-曲线,3-竖曲线,4-道岔"
)
@TableField
(
"unit_type"
)
private
Integer
unitType
;
@ApiModelProperty
(
"设备单元类型名称"
)
@TableField
(
"unit_type_name"
)
private
String
unitTypeName
;
@ApiModelProperty
(
"超限等级"
)
@TableField
(
"transfinite_grade"
)
private
Integer
transfiniteGrade
;
@ApiModelProperty
(
"超限等级名称"
)
@TableField
(
"transfinite_grade_name"
)
private
String
transfiniteGradeName
;
@ApiModelProperty
(
"超限类型"
)
@TableField
(
"transfinite_type"
)
private
String
transfiniteType
;
@ApiModelProperty
(
"容许值"
)
@TableField
(
"allow_value"
)
private
String
allowValue
;
@ApiModelProperty
(
"测点值"
)
@TableField
(
"measure_point_value"
)
private
String
measurePointValue
;
@ApiModelProperty
(
"是否派工 0-否 1-是"
)
@TableField
(
"is_work"
)
private
Integer
isWork
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/AnalysisBatchUnitDevicePointScoreMapper.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevicePointScore
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 动静态分析-分析批次-单元设备测点得分 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-08
*/
public
interface
AnalysisBatchUnitDevicePointScoreMapper
extends
BaseMapper
<
AnalysisBatchUnitDevicePointScore
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/AnalysisBatchUnitDeviceTransfiniteMapper.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDeviceTransfinite
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceTransfiniteVO
;
import
java.util.List
;
/**
* <p>
* 动静态分析-分析批次-单元设备超限 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-04
*/
public
interface
AnalysisBatchUnitDeviceTransfiniteMapper
extends
BaseMapper
<
AnalysisBatchUnitDeviceTransfinite
>
{
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
getTransfiniteList
(
String
analysisBatchUnitDeviceId
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisAlgorithmMapper.xml
View file @
2246fff3
...
@@ -5,12 +5,14 @@
...
@@ -5,12 +5,14 @@
<select
id=
"getUnitDevice"
resultType=
"java.util.Map"
>
<select
id=
"getUnitDevice"
resultType=
"java.util.Map"
>
SELECT id,
SELECT id,
unitCode,
unitCode,
deviceCode,
startMileage,
startMileage,
endMileage,
endMileage,
type,
type,
typeName
typeName
FROM (SELECT t1.id,
FROM (SELECT t1.id,
t1.unit_code unitCode,
t1.unit_code unitCode,
t1.rail_code deviceCode,
t1.starting_mileage startMileage,
t1.starting_mileage startMileage,
t1.end_mileage endMileage,
t1.end_mileage endMileage,
1 type,
1 type,
...
@@ -23,6 +25,7 @@
...
@@ -23,6 +25,7 @@
SELECT t1.id,
SELECT t1.id,
t1.unit_code unitCode,
t1.unit_code unitCode,
t1.curve_code deviceCode,
t1.curve_mileage_zh startMileage,
t1.curve_mileage_zh startMileage,
t1.curve_mileage_hz endMileage,
t1.curve_mileage_hz endMileage,
2 type,
2 type,
...
@@ -35,11 +38,12 @@
...
@@ -35,11 +38,12 @@
UNION ALL
UNION ALL
SELECT t1.id,
SELECT t1.id,
t1.unit_code unitCode,
t1.unit_code unitCode,
t1.starting_mileage startMileage,
t1.vertical_curve_code deviceCode,
t1.end_mileage endMileage,
t1.starting_mileage startMileage,
3 type,
t1.end_mileage endMileage,
'竖曲线' typeName
3 type,
'竖曲线' typeName
FROM t_da_vertical_curve_management t1
FROM t_da_vertical_curve_management t1
LEFT JOIN t_sn_train_station t2 ON t1.section_id = t1.id
LEFT JOIN t_sn_train_station t2 ON t1.section_id = t1.id
WHERE t1.line_alias_id = #{lineAliasId}
WHERE t1.line_alias_id = #{lineAliasId}
...
@@ -47,6 +51,7 @@
...
@@ -47,6 +51,7 @@
UNION ALL
UNION ALL
SELECT t1.id,
SELECT t1.id,
t1.unit_code unitCode,
t1.unit_code unitCode,
t1.switch_code deviceCode,
t1.byroad_pre_mileage startMileage,
t1.byroad_pre_mileage startMileage,
t1.byroad_end_mileage endMileage,
t1.byroad_end_mileage endMileage,
4 type,
4 type,
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisBatchMapper.xml
View file @
2246fff3
...
@@ -52,6 +52,8 @@
...
@@ -52,6 +52,8 @@
t1.starting_mileage,
t1.starting_mileage,
t1.end_mileage,
t1.end_mileage,
t1.analysis_type,
t1.analysis_type,
t1.dict_value,
t1.dict_label,
t1.allow_value,
t1.allow_value,
t1.dispatching,
t1.dispatching,
t1.analysis_status,
t1.analysis_status,
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisBatchUnitDeviceMapper.xml
View file @
2246fff3
...
@@ -3,32 +3,47 @@
...
@@ -3,32 +3,47 @@
<mapper
namespace=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceMapper"
>
<mapper
namespace=
"org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceMapper"
>
<select
id=
"listRecord"
resultType=
"org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO"
>
<select
id=
"listRecord"
resultType=
"org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO"
>
SELECT
SELECT * FROM
t1.id,
(
t1.create_by,
SELECT
t1.create_time,
t1.id,
t1.update_by,
t1.create_by,
t1.update_time,
t1.create_time,
t1.analysis_batch_code,
t1.update_by,
t1.analysis_batch_id,
t1.update_time,
t1.unit_id,
t1.analysis_batch_code,
t1.unit_code,
t1.analysis_batch_id,
t1.unit_type,
t1.unit_id,
t1.unit_type_name,
t1.unit_code,
t1.unit_starting_mileage,
t1.unit_device_code,
t1.unit_center_mileage,
t1.unit_type,
t1.unit_end_mileage,
t1.unit_type_name,
t1.labour_check,
t1.unit_starting_mileage,
t1.labour_check_grade,
t1.unit_center_mileage,
t1.rail_device_check,
t1.unit_end_mileage,
t1.rail_device_check_grade,
t1.unit_score finalGrade,
t1.rail_vehicle_check,
t1.unit_score_level gradeJudge,
t1.rail_vehicle_check_grade,
t1.remark,
t1.add_device_check,
( SELECT COUNT( 1 ) FROM t_dsa_analysis_batch_unit_device_transfinite WHERE analysis_batch_unit_device_id = t1.id LIMIT 1 ) AS is_work,
t1.add_device_check_grade,
( SELECT COUNT( 1 ) FROM t_dsa_analysis_batch_unit_device_transfinite WHERE analysis_batch_unit_device_id = t1.id LIMIT 1 ) AS is_transfinite
t1.remark
FROM
FROM
t_dsa_analysis_batch_unit_device t1
t_dsa_analysis_batch_unit_device t1
WHERE t1.analysis_batch_id = #{dto.analysisBatchId}
WHERE
t1.analysis_batch_id = #{dto.analysisBatchId}
) analysis
WHERE
1 =1
<if
test=
"dto.isWordList!=null and dto.isWordList.size()>0"
>
AND analysis.is_work in
<foreach
collection=
"dto.isWordList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"dto.unitTypeList!=null and dto.unitTypeList.size()>0"
>
AND analysis.unit_type in
<foreach
collection=
"dto.unitTypeList"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</select>
</select>
</mapper>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisBatchUnitDevicePointScoreMapper.xml
0 → 100644
View file @
2246fff3
<?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.AnalysisBatchUnitDevicePointScoreMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/mapper/xml/AnalysisBatchUnitDeviceTransfiniteMapper.xml
0 → 100644
View file @
2246fff3
<?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.AnalysisBatchUnitDeviceTransfiniteMapper"
>
<select
id=
"getTransfiniteList"
resultType=
"org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceTransfiniteVO"
>
SELECT
t1.id,
t1.create_by,
t1.create_time,
t1.update_by,
t1.update_time,
t1.analysis_batch_unit_device_id,
t1.analysis_batch_code,
t1.analysis_batch_id,
t1.unit_id,
t1.unit_code,
t1.unit_type,
t1.unit_type_name,
t1.transfinite_grade,
t1.transfinite_grade_name,
t1.transfinite_type,
t1.allow_value,
t1.measure_point_value,
t1.is_work,
t1.remark
FROM
t_dsa_analysis_batch_unit_device_transfinite t1
WHERE t1.analysis_batch_unit_device_id = #{analysisBatchUnitDeviceId}
</select>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IAnalysisBatchUnitDevicePointScoreService.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevicePointScore
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 动静态分析-分析批次-单元设备测点得分 服务类
* </p>
*
* @author hkl
* @since 2023-08-08
*/
public
interface
IAnalysisBatchUnitDevicePointScoreService
extends
IService
<
AnalysisBatchUnitDevicePointScore
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/IAnalysisBatchUnitDeviceTransfiniteService.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDeviceTransfinite
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 动静态分析-分析批次-单元设备超限 服务类
* </p>
*
* @author hkl
* @since 2023-08-04
*/
public
interface
IAnalysisBatchUnitDeviceTransfiniteService
extends
IService
<
AnalysisBatchUnitDeviceTransfinite
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/AnalysisBatchServiceImpl.java
View file @
2246fff3
...
@@ -15,6 +15,7 @@ import org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchCheckDataMapM
...
@@ -15,6 +15,7 @@ import org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchCheckDataMapM
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.dynamicStaticAnalysis.util.StrUtil
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchQueryVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchQueryVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.CheckBatchVO
;
import
org.jeecg.modules.utils.BeanCopyUtil
;
import
org.jeecg.modules.utils.BeanCopyUtil
;
...
@@ -49,6 +50,10 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
...
@@ -49,6 +50,10 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
AnalysisBatch
analysisBatch
=
BeanUtil
.
copyProperties
(
dto
,
AnalysisBatch
.
class
);
AnalysisBatch
analysisBatch
=
BeanUtil
.
copyProperties
(
dto
,
AnalysisBatch
.
class
);
analysisBatch
.
setId
(
UUIDGenerator
.
generate
());
analysisBatch
.
setId
(
UUIDGenerator
.
generate
());
analysisBatch
.
setAnalysisStatus
(
1
);
// 1-分析中
analysisBatch
.
setAnalysisStatus
(
1
);
// 1-分析中
Integer
[]
speedLevels
=
StrUtil
.
getSpeedLevel
(
dto
.
getDictLabel
());
analysisBatch
.
setSpeedMin
(
speedLevels
[
0
]);
analysisBatch
.
setSpeedMax
(
speedLevels
[
1
]);
// 明细
// 明细
List
<
AnalysisBatchCheckDataMap
>
analysisBatchCheckDataMaps
=
new
ArrayList
<>();
List
<
AnalysisBatchCheckDataMap
>
analysisBatchCheckDataMaps
=
new
ArrayList
<>();
...
@@ -84,6 +89,9 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
...
@@ -84,6 +89,9 @@ public class AnalysisBatchServiceImpl extends ServiceImpl<AnalysisBatchMapper, A
// 主表
// 主表
AnalysisBatch
analysisBatch
=
BeanUtil
.
copyProperties
(
dto
,
AnalysisBatch
.
class
);
AnalysisBatch
analysisBatch
=
BeanUtil
.
copyProperties
(
dto
,
AnalysisBatch
.
class
);
analysisBatch
.
setAnalysisType
(
1
);
// 1-分析中
analysisBatch
.
setAnalysisType
(
1
);
// 1-分析中
Integer
[]
speedLevels
=
StrUtil
.
getSpeedLevel
(
dto
.
getDictLabel
());
analysisBatch
.
setSpeedMin
(
speedLevels
[
0
]);
analysisBatch
.
setSpeedMax
(
speedLevels
[
1
]);
// 明细
// 明细
// 1.先删除
// 1.先删除
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/AnalysisBatchUnitDevicePointScoreServiceImpl.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevicePointScore
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDevicePointScoreMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDevicePointScoreService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 动静态分析-分析批次-单元设备测点得分 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-08
*/
@Service
public
class
AnalysisBatchUnitDevicePointScoreServiceImpl
extends
ServiceImpl
<
AnalysisBatchUnitDevicePointScoreMapper
,
AnalysisBatchUnitDevicePointScore
>
implements
IAnalysisBatchUnitDevicePointScoreService
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/AnalysisBatchUnitDeviceServiceImpl.java
View file @
2246fff3
...
@@ -4,11 +4,16 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -4,11 +4,16 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchUnitDeviceDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.dto.AnalysisBatchUnitDeviceDTO
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevice
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDevice
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceTransfiniteMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceService
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceTransfiniteVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO
;
import
org.jeecg.modules.dynamicStaticAnalysis.vo.AnalysisBatchUnitDeviceVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
/**
* <p>
* <p>
* 动静态分析-分析批次-单元设备 服务实现类
* 动静态分析-分析批次-单元设备 服务实现类
...
@@ -19,9 +24,19 @@ import org.springframework.stereotype.Service;
...
@@ -19,9 +24,19 @@ import org.springframework.stereotype.Service;
*/
*/
@Service
@Service
public
class
AnalysisBatchUnitDeviceServiceImpl
extends
ServiceImpl
<
AnalysisBatchUnitDeviceMapper
,
AnalysisBatchUnitDevice
>
implements
IAnalysisBatchUnitDeviceService
{
public
class
AnalysisBatchUnitDeviceServiceImpl
extends
ServiceImpl
<
AnalysisBatchUnitDeviceMapper
,
AnalysisBatchUnitDevice
>
implements
IAnalysisBatchUnitDeviceService
{
@Resource
private
AnalysisBatchUnitDeviceTransfiniteMapper
transfiniteMapper
;
@Override
@Override
public
Page
<
AnalysisBatchUnitDeviceVO
>
listRecord
(
Page
<
AnalysisBatchUnitDeviceVO
>
pageData
,
AnalysisBatchUnitDeviceDTO
dto
)
{
public
Page
<
AnalysisBatchUnitDeviceVO
>
listRecord
(
Page
<
AnalysisBatchUnitDeviceVO
>
pageData
,
AnalysisBatchUnitDeviceDTO
dto
)
{
return
this
.
baseMapper
.
listRecord
(
pageData
,
dto
);
Page
<
AnalysisBatchUnitDeviceVO
>
page
=
this
.
baseMapper
.
listRecord
(
pageData
,
dto
);
for
(
AnalysisBatchUnitDeviceVO
record
:
page
.
getRecords
())
{
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
transfiniteList
=
transfiniteMapper
.
getTransfiniteList
(
record
.
getId
());
record
.
setTransfiniteList
(
transfiniteList
);
}
return
page
;
}
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/service/impl/AnalysisBatchUnitDeviceTransfiniteServiceImpl.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
service
.
impl
;
import
org.jeecg.modules.dynamicStaticAnalysis.entity.AnalysisBatchUnitDeviceTransfinite
;
import
org.jeecg.modules.dynamicStaticAnalysis.mapper.AnalysisBatchUnitDeviceTransfiniteMapper
;
import
org.jeecg.modules.dynamicStaticAnalysis.service.IAnalysisBatchUnitDeviceTransfiniteService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 动静态分析-分析批次-单元设备超限 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-04
*/
@Service
public
class
AnalysisBatchUnitDeviceTransfiniteServiceImpl
extends
ServiceImpl
<
AnalysisBatchUnitDeviceTransfiniteMapper
,
AnalysisBatchUnitDeviceTransfinite
>
implements
IAnalysisBatchUnitDeviceTransfiniteService
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/util/StrUtil.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
util
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
/**
* 字符串工具类
*/
public
class
StrUtil
{
/**
* @param expressions
* @return 返回一个速度等级数组:Integer[] speedLevel = new Integer[2]<br/>
* 其中 speedLevel[0]速度下限制,speedLevel[1] 速度上限
*/
public
static
Integer
[]
getSpeedLevel
(
String
expressions
)
{
if
(
null
==
expressions
)
{
return
null
;
}
Integer
[]
speedLevel
=
new
Integer
[
2
];
String
regex
=
"\\d+"
;
Pattern
pattern
=
Pattern
.
compile
(
regex
);
Matcher
matcher
=
pattern
.
matcher
(
expressions
);
int
i
=
0
;
while
(
matcher
.
find
())
{
speedLevel
[
i
]
=
Integer
.
valueOf
(
matcher
.
group
());
i
++;
}
return
speedLevel
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/vo/AnalysisBatchQueryVO.java
View file @
2246fff3
...
@@ -55,6 +55,12 @@ public class AnalysisBatchQueryVO {
...
@@ -55,6 +55,12 @@ public class AnalysisBatchQueryVO {
@ApiModelProperty
(
"分析类型 1-均值分析 2-峰值分析"
)
@ApiModelProperty
(
"分析类型 1-均值分析 2-峰值分析"
)
private
Integer
analysisType
;
private
Integer
analysisType
;
@ApiModelProperty
(
"评价速度等级字典值"
)
private
String
dictValue
;
@ApiModelProperty
(
"评价速度等级字典名称"
)
private
String
dictLabel
;
@ApiModelProperty
(
"容许值差"
)
@ApiModelProperty
(
"容许值差"
)
private
String
allowValue
;
private
String
allowValue
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/vo/AnalysisBatchUnitDeviceTransfiniteVO.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* <p>
* 动静态分析-分析批次表
* </p>
*
* @author hkl
* @since 2023-07-26
*/
@Data
@ApiModel
(
value
=
"AnalysisBatchUnitDeviceTransfiniteVO对象"
,
description
=
"动静态分析-分析批次-单元设备-超限列表"
)
public
class
AnalysisBatchUnitDeviceTransfiniteVO
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
private
String
id
;
@ApiModelProperty
(
"分析批次单元设备id"
)
private
String
analysisBatchUnitDeviceId
;
@ApiModelProperty
(
"超限等级"
)
private
Integer
transfiniteGrade
;
@ApiModelProperty
(
"超限等级名称"
)
private
String
transfiniteGradeName
;
@ApiModelProperty
(
"超限类型"
)
private
String
transfiniteType
;
@ApiModelProperty
(
"容许值"
)
private
String
allowValue
;
@ApiModelProperty
(
"测点值"
)
private
String
measurePointValue
;
@ApiModelProperty
(
"是否派工 0-否 1-是"
)
private
Integer
isWork
;
@ApiModelProperty
(
"备注"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/dynamicStaticAnalysis/vo/AnalysisBatchUnitDeviceVO.java
View file @
2246fff3
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
vo
;
package
org
.
jeecg
.
modules
.
dynamicStaticAnalysis
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
/**
* <p>
* <p>
...
@@ -40,6 +42,9 @@ public class AnalysisBatchUnitDeviceVO {
...
@@ -40,6 +42,9 @@ public class AnalysisBatchUnitDeviceVO {
@ApiModelProperty
(
"设备单元类型名称"
)
@ApiModelProperty
(
"设备单元类型名称"
)
private
String
unitTypeName
;
private
String
unitTypeName
;
@ApiModelProperty
(
"设备编号"
)
private
String
unitDeviceCode
;
@ApiModelProperty
(
"设备单元起始里程"
)
@ApiModelProperty
(
"设备单元起始里程"
)
private
BigDecimal
unitStartingMileage
;
private
BigDecimal
unitStartingMileage
;
...
@@ -49,30 +54,6 @@ public class AnalysisBatchUnitDeviceVO {
...
@@ -49,30 +54,6 @@ public class AnalysisBatchUnitDeviceVO {
@ApiModelProperty
(
"设备单元结束里程"
)
@ApiModelProperty
(
"设备单元结束里程"
)
private
BigDecimal
unitEndMileage
;
private
BigDecimal
unitEndMileage
;
@ApiModelProperty
(
"是否存在人工检查数据 0-不存在 1-存在"
)
private
Integer
labourCheck
;
@ApiModelProperty
(
"人工检查数据得分"
)
private
BigDecimal
labourCheckGrade
;
@ApiModelProperty
(
"是否存在轨检仪检查数据 0-不存在 1-存在"
)
private
Integer
railDeviceCheck
;
@ApiModelProperty
(
"轨检仪检查数据得分"
)
private
BigDecimal
railDeviceCheckGrade
;
@ApiModelProperty
(
"是否存在轨检车查数据 0-不存在 1-存在"
)
private
Integer
railVehicleCheck
;
@ApiModelProperty
(
"轨检车查数据得分"
)
private
BigDecimal
railVehicleCheckGrade
;
@ApiModelProperty
(
"是否存在添乘仪查数据 0-不存在 1-存在"
)
private
Integer
addDeviceCheck
;
@ApiModelProperty
(
"添乘仪查数据得分"
)
private
BigDecimal
addDeviceCheckGrade
;
@ApiModelProperty
(
"最后得分"
)
@ApiModelProperty
(
"最后得分"
)
private
BigDecimal
finalGrade
;
private
BigDecimal
finalGrade
;
...
@@ -82,5 +63,17 @@ public class AnalysisBatchUnitDeviceVO {
...
@@ -82,5 +63,17 @@ public class AnalysisBatchUnitDeviceVO {
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
private
String
remark
;
private
String
remark
;
@ApiModelProperty
(
"超限list"
)
private
List
<
AnalysisBatchUnitDeviceTransfiniteVO
>
transfiniteList
;
@ApiModelProperty
(
"是否超限 0-否 1-是"
)
private
Integer
isTransfinite
;
@ApiModelProperty
(
"是否派工 0-否 1-是"
)
private
Integer
isWork
;
@ApiModelProperty
(
"派工状态 0-未派工 1-派工"
)
private
Integer
workStatus
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/controller/WorkBatchController.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
controller
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
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.dto.AnalysisBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.maintenanceWork.dto.WorkBatchDTO
;
import
org.jeecg.modules.maintenanceWork.dto.WorkBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatch
;
import
org.jeecg.modules.maintenanceWork.service.IWorkBatchService
;
import
org.jeecg.modules.maintenanceWork.vo.WorkBatchVO
;
import
org.springframework.web.bind.annotation.*
;
import
org.jeecg.common.system.base.controller.JeecgController
;
/**
* <p>
* 维修作业管理-作业计划批次管理表 前端控制器
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@RestController
@RequestMapping
(
"/maintenanceWork/workBatch"
)
@Api
(
tags
=
"维修作业管理-作业计划批次管理"
)
public
class
WorkBatchController
extends
JeecgController
<
WorkBatch
,
IWorkBatchService
>
{
@AutoLog
(
value
=
"维修作业管理-作业计划批次管理-分页列表查询"
)
@ApiOperation
(
value
=
"维修作业管理-作业计划批次管理-分页列表查询"
,
notes
=
"维修作业管理-作业计划批次管理-分页列表查询"
)
@GetMapping
(
value
=
"/listRecord"
)
public
Result
<
IPage
<
WorkBatchVO
>>
listRecord
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
WorkBatchDTO
dto
)
{
Page
<
WorkBatchVO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
pageData
=
this
.
service
.
listRecord
(
pageData
,
dto
);
return
Result
.
OK
(
pageData
);
}
@AutoLog
(
value
=
"维修作业管理-作业计划批次管理-维修作业管理页面新增"
)
@ApiOperation
(
value
=
"维修作业管理-作业计划批次管理-维修作业管理页面新增"
,
notes
=
"维修作业管理-作业计划批次管理-维修作业管理页面新增"
)
@PostMapping
(
value
=
"/saveRecord"
)
public
Result
<
String
>
saveRecord
(
@RequestBody
WorkBatchSaveOrUpdateDTO
dto
)
{
this
.
service
.
saveRecord
(
dto
);
return
Result
.
OK
(
"操作成功"
);
}
@AutoLog
(
value
=
"维修作业管理-作业计划批次管理-维修作业管理页面更新"
)
@ApiOperation
(
value
=
"维修作业管理-作业计划批次管理-维修作业管理页面更新"
,
notes
=
"维修作业管理-作业计划批次管理-维修作业管理页面更新"
)
@PostMapping
(
value
=
"/updateRecord"
)
public
Result
<
String
>
updateRecord
(
@RequestBody
WorkBatchSaveOrUpdateDTO
dto
)
{
this
.
service
.
updateRecord
(
dto
);
return
Result
.
OK
(
"操作成功"
);
}
@AutoLog
(
value
=
"维修作业管理-作业计划批次管理-通过id删除"
)
@ApiOperation
(
value
=
"维修作业管理-作业计划批次管理-通过id删除"
,
notes
=
"维修作业管理-作业计划批次管理-通过id删除"
)
@GetMapping
(
value
=
"/deleteRecord"
)
public
Result
<
String
>
deleteRecord
(
@RequestParam
(
name
=
"id"
,
required
=
true
)
String
id
)
{
this
.
service
.
deleteRecord
(
id
);
return
Result
.
OK
(
"删除成功!"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/
school/dto/SchoolPlanBatchMaster
DTO.java
→
jeecg-module-system/src/main/java/org/jeecg/modules/
maintenanceWork/dto/WorkBatch
DTO.java
View file @
2246fff3
package
org
.
jeecg
.
modules
.
school
.
dto
;
package
org
.
jeecg
.
modules
.
maintenanceWork
.
dto
;
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
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
* 作业计划批次管理表
*
维修作业管理-
作业计划批次管理表
* </p>
* </p>
*
*
* @author hkl
* @author hkl
* @since 2023-0
7-24
* @since 2023-0
8-09
*/
*/
@Data
@Data
public
class
SchoolPlanBatchMasterDTO
{
@ApiModel
(
value
=
"WorkBatchDTO对象"
,
description
=
"维修作业管理-作业计划批次管理表"
)
public
class
WorkBatchDTO
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
updateTime
;
@ApiModelProperty
(
"作业计划批次号"
)
@ApiModelProperty
(
"作业计划批次号"
)
private
String
b
atchCode
;
private
String
workB
atchCode
;
@ApiModelProperty
(
"所属线路id"
)
@ApiModelProperty
(
"所属线路id"
)
private
String
lightRailId
;
private
String
lightRailId
;
...
@@ -59,37 +44,19 @@ public class SchoolPlanBatchMasterDTO {
...
@@ -59,37 +44,19 @@ public class SchoolPlanBatchMasterDTO {
@ApiModelProperty
(
"所属线别名称"
)
@ApiModelProperty
(
"所属线别名称"
)
private
String
lineAliasName
;
private
String
lineAliasName
;
@ApiModelProperty
(
"作业起始里程"
)
private
BigDecimal
schoolStartingMileage
;
@ApiModelProperty
(
"作业终点里程"
)
private
BigDecimal
schoolEndMileage
;
@ApiModelProperty
(
"新建日期"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
newlyTime
;
@ApiModelProperty
(
"作业起始时间"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
schoolStartTime
;
@ApiModelProperty
(
"作业终止时间"
)
@ApiModelProperty
(
"作业终止时间"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
workEndTime
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
schoolEndTime
;
@ApiModelProperty
(
"作业班组"
)
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
private
String
team
;
@ApiModelProperty
(
"
派工状态(0:未派工 1:已派工)
"
)
@ApiModelProperty
(
"
来源 1-页面添加 2-超限派工添加
"
)
private
Integer
workerStatus
;
private
Integer
source
;
@ApiModelProperty
(
"作业状态
(0:未作业 1:已作业)
"
)
@ApiModelProperty
(
"作业状态
0-未作业 1-已作业
"
)
private
Integer
school
Status
;
private
Integer
work
Status
;
@ApiModelProperty
(
"是否删除
(0:未删除;1:已删除)
"
)
@ApiModelProperty
(
"是否删除
0-未删除 1-已删除
"
)
private
String
delFlag
;
private
String
delFlag
;
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/dto/WorkBatchDetailDTO.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
dto
;
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.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 维修作业管理-作业计划批次管理明细表
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@Data
@ApiModel
(
value
=
"WorkBatchDetailDTO对象"
,
description
=
"维修作业管理-作业计划批次管理明细表"
)
public
class
WorkBatchDetailDTO
{
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
(
"工作批次code"
)
private
String
workBatchCode
;
@ApiModelProperty
(
"工作批次id"
)
private
String
workBatchId
;
@ApiModelProperty
(
"检查批次号"
)
private
String
ekCode
;
@ApiModelProperty
(
"检查批id"
)
private
String
ekId
;
@ApiModelProperty
(
"检查数据类型 1-人工静态检查 2-轨检仪静态检查 3-轨检车检查 4-添乘仪检查"
)
private
Integer
ekType
;
@ApiModelProperty
(
"检查日期"
)
private
Date
checkTime
;
@ApiModelProperty
(
"起始里程"
)
private
BigDecimal
startingMileage
;
@ApiModelProperty
(
"终点里程"
)
private
BigDecimal
endMileage
;
@ApiModelProperty
(
"单元设备id"
)
private
String
unitId
;
@ApiModelProperty
(
"单元设备code"
)
private
String
unitCode
;
@ApiModelProperty
(
"设备单元类型1-钢轨,2-曲线,3-竖曲线,4-道岔"
)
private
Integer
unitType
;
@ApiModelProperty
(
"设备单元类型名称"
)
private
String
unitTypeName
;
@ApiModelProperty
(
"设备编号"
)
private
String
unitDeviceCode
;
@ApiModelProperty
(
"设备单元起始里程"
)
private
BigDecimal
unitStartingMileage
;
@ApiModelProperty
(
"设备单元中心里程"
)
private
BigDecimal
unitCenterMileage
;
@ApiModelProperty
(
"设备单元结束里程"
)
private
BigDecimal
unitEndMileage
;
@ApiModelProperty
(
"单元得分等级 1-优良 2-合格 3-失格"
)
private
Integer
unitScoreLevel
;
@ApiModelProperty
(
"单元得分"
)
private
BigDecimal
unitScore
;
@ApiModelProperty
(
"备注"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/dto/WorkBatchSaveOrUpdateDTO.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* <p>
* 维修作业管理-作业计划批次管理表
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@Data
@ApiModel
(
value
=
"WorkBatchSaveOrUpdateDTO对象"
,
description
=
"维修作业管理-作业计划批次管理表"
)
public
class
WorkBatchSaveOrUpdateDTO
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
id
;
@ApiModelProperty
(
"作业计划批次号"
)
private
String
workBatchCode
;
@ApiModelProperty
(
"所属线路id"
)
private
String
lightRailId
;
@ApiModelProperty
(
"所属线路名称"
)
private
String
lightRailName
;
@ApiModelProperty
(
"所属线别id"
)
private
String
lineAliasId
;
@ApiModelProperty
(
"所属线别名称"
)
private
String
lineAliasName
;
@ApiModelProperty
(
"作业终止时间"
)
private
Date
workEndTime
;
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
@ApiModelProperty
(
"来源 1-页面添加 2-超限派工添加"
)
private
Integer
source
;
@ApiModelProperty
(
"作业状态 0-未作业 1-已作业"
)
private
Integer
workStatus
;
@ApiModelProperty
(
"是否删除 0-未删除 1-已删除"
)
private
String
delFlag
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/
school/entity/SchoolPlanBatchMaster
.java
→
jeecg-module-system/src/main/java/org/jeecg/modules/
maintenanceWork/entity/WorkBatch
.java
View file @
2246fff3
package
org
.
jeecg
.
modules
.
school
.
entity
;
package
org
.
jeecg
.
modules
.
maintenanceWork
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
...
@@ -6,27 +6,24 @@ import com.baomidou.mybatisplus.annotation.TableName;
...
@@ -6,27 +6,24 @@ import com.baomidou.mybatisplus.annotation.TableName;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
import
org.springframework.format.annotation.DateTimeFormat
;
/**
/**
* <p>
* <p>
* 作业计划批次管理表
*
维修作业管理-
作业计划批次管理表
* </p>
* </p>
*
*
* @author hkl
* @author hkl
* @since 2023-0
7-24
* @since 2023-0
8-09
*/
*/
@Getter
@Getter
@Setter
@Setter
@TableName
(
"t_
jh_school_plan_batch_master
"
)
@TableName
(
"t_
mw_work_batch
"
)
@ApiModel
(
value
=
"
SchoolPlanBatchMaster对象"
,
description
=
"
作业计划批次管理表"
)
@ApiModel
(
value
=
"
WorkBatch对象"
,
description
=
"维修作业管理-
作业计划批次管理表"
)
public
class
SchoolPlanBatchMaster
implements
Serializable
{
public
class
WorkBatch
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -40,8 +37,6 @@ public class SchoolPlanBatchMaster implements Serializable {
...
@@ -40,8 +37,6 @@ public class SchoolPlanBatchMaster implements Serializable {
@ApiModelProperty
(
"创建日期"
)
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
@TableField
(
"create_time"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@ApiModelProperty
(
"更新人"
)
...
@@ -50,13 +45,11 @@ public class SchoolPlanBatchMaster implements Serializable {
...
@@ -50,13 +45,11 @@ public class SchoolPlanBatchMaster implements Serializable {
@ApiModelProperty
(
"更新时间"
)
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
@TableField
(
"update_time"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
updateTime
;
private
Date
updateTime
;
@ApiModelProperty
(
"作业计划批次号"
)
@ApiModelProperty
(
"作业计划批次号"
)
@TableField
(
"batch_code"
)
@TableField
(
"
work_
batch_code"
)
private
String
b
atchCode
;
private
String
workB
atchCode
;
@ApiModelProperty
(
"所属线路id"
)
@ApiModelProperty
(
"所属线路id"
)
@TableField
(
"light_rail_id"
)
@TableField
(
"light_rail_id"
)
...
@@ -75,44 +68,34 @@ public class SchoolPlanBatchMaster implements Serializable {
...
@@ -75,44 +68,34 @@ public class SchoolPlanBatchMaster implements Serializable {
private
String
lineAliasName
;
private
String
lineAliasName
;
@ApiModelProperty
(
"作业起始里程"
)
@ApiModelProperty
(
"作业起始里程"
)
@TableField
(
"
school
_starting_mileage"
)
@TableField
(
"
work
_starting_mileage"
)
private
BigDecimal
school
StartingMileage
;
private
BigDecimal
work
StartingMileage
;
@ApiModelProperty
(
"作业终点里程"
)
@ApiModelProperty
(
"作业终点里程"
)
@TableField
(
"school_end_mileage"
)
@TableField
(
"work_end_mileage"
)
private
BigDecimal
schoolEndMileage
;
private
BigDecimal
workEndMileage
;
@ApiModelProperty
(
"新建日期"
)
@TableField
(
"newly_time"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
newlyTime
;
@ApiModelProperty
(
"作业起始时间"
)
@ApiModelProperty
(
"作业起始时间"
)
@TableField
(
"school_start_time"
)
@TableField
(
"work_start_time"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
workStartTime
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
schoolStartTime
;
@ApiModelProperty
(
"作业终止时间"
)
@ApiModelProperty
(
"作业终止时间"
)
@TableField
(
"school_end_time"
)
@TableField
(
"work_end_time"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
workEndTime
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
schoolEndTime
;
@ApiModelProperty
(
"作业班组"
)
@ApiModelProperty
(
"作业班组"
)
@TableField
(
"team"
)
@TableField
(
"team"
)
private
String
team
;
private
String
team
;
@ApiModelProperty
(
"
派工状态(0:未派工 1:已派工)
"
)
@ApiModelProperty
(
"
来源 1-页面添加 2-超限派工添加
"
)
@TableField
(
"
worker_status
"
)
@TableField
(
"
source
"
)
private
Integer
workerStatus
;
private
Integer
source
;
@ApiModelProperty
(
"作业状态
(0:未作业 1:已作业)
"
)
@ApiModelProperty
(
"作业状态
0-未作业 9-已作业
"
)
@TableField
(
"
school
_status"
)
@TableField
(
"
work
_status"
)
private
Integer
school
Status
;
private
Integer
work
Status
;
@ApiModelProperty
(
"是否删除
(0:未删除;1:已删除)
"
)
@ApiModelProperty
(
"是否删除
0-未删除 1-已删除
"
)
@TableField
(
"del_flag"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
private
String
delFlag
;
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/entity/WorkBatchDetail.java
0 → 100644
View file @
2246fff3
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
;
import
lombok.Setter
;
/**
* <p>
* 维修作业管理-作业计划批次管理明细表
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@Getter
@Setter
@TableName
(
"t_mw_work_batch_detail"
)
@ApiModel
(
value
=
"WorkBatchDetail对象"
,
description
=
"维修作业管理-作业计划批次管理明细表"
)
public
class
WorkBatchDetail
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
(
"工作批次code"
)
@TableField
(
"work_batch_code"
)
private
String
workBatchCode
;
@ApiModelProperty
(
"工作批次id"
)
@TableField
(
"work_batch_id"
)
private
String
workBatchId
;
@ApiModelProperty
(
"检查批次号"
)
@TableField
(
"ek_code"
)
private
String
ekCode
;
@ApiModelProperty
(
"检查批id"
)
@TableField
(
"ek_id"
)
private
String
ekId
;
@ApiModelProperty
(
"检查数据类型 1-人工静态检查 2-轨检仪静态检查 3-轨检车检查 4-添乘仪检查"
)
@TableField
(
"ek_type"
)
private
Integer
ekType
;
@ApiModelProperty
(
"检查日期"
)
@TableField
(
"check_time"
)
private
Date
checkTime
;
@ApiModelProperty
(
"起始里程"
)
@TableField
(
"starting_mileage"
)
private
BigDecimal
startingMileage
;
@ApiModelProperty
(
"终点里程"
)
@TableField
(
"end_mileage"
)
private
BigDecimal
endMileage
;
@ApiModelProperty
(
"单元设备id"
)
@TableField
(
"unit_id"
)
private
String
unitId
;
@ApiModelProperty
(
"单元设备code"
)
@TableField
(
"unit_code"
)
private
String
unitCode
;
@ApiModelProperty
(
"设备单元类型1-钢轨,2-曲线,3-竖曲线,4-道岔"
)
@TableField
(
"unit_type"
)
private
Integer
unitType
;
@ApiModelProperty
(
"设备单元类型名称"
)
@TableField
(
"unit_type_name"
)
private
String
unitTypeName
;
@ApiModelProperty
(
"设备编号"
)
@TableField
(
"unit_device_code"
)
private
String
unitDeviceCode
;
@ApiModelProperty
(
"设备单元起始里程"
)
@TableField
(
"unit_starting_mileage"
)
private
BigDecimal
unitStartingMileage
;
@ApiModelProperty
(
"设备单元中心里程"
)
@TableField
(
"unit_center_mileage"
)
private
BigDecimal
unitCenterMileage
;
@ApiModelProperty
(
"设备单元结束里程"
)
@TableField
(
"unit_end_mileage"
)
private
BigDecimal
unitEndMileage
;
@ApiModelProperty
(
"单元得分等级 1-优良 2-合格 3-失格"
)
@TableField
(
"unit_score_level"
)
private
Integer
unitScoreLevel
;
@ApiModelProperty
(
"单元得分"
)
@TableField
(
"unit_score"
)
private
BigDecimal
unitScore
;
@ApiModelProperty
(
"备注"
)
@TableField
(
"remark"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/mapper/WorkBatchDetailMapper.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
mapper
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatchDetail
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* <p>
* 维修作业管理-作业计划批次管理明细表 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-09
*/
public
interface
WorkBatchDetailMapper
extends
BaseMapper
<
WorkBatchDetail
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/mapper/WorkBatchMapper.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
mapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.maintenanceWork.dto.WorkBatchDTO
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatch
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.maintenanceWork.vo.WorkBatchVO
;
/**
* <p>
* 维修作业管理-作业计划批次管理表 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-08-09
*/
public
interface
WorkBatchMapper
extends
BaseMapper
<
WorkBatch
>
{
Page
<
WorkBatchVO
>
listRecord
(
Page
<
WorkBatchVO
>
pageData
,
WorkBatchDTO
dto
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/mapper/xml/WorkBatchDetailMapper.xml
0 → 100644
View file @
2246fff3
<?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.maintenanceWork.mapper.WorkBatchDetailMapper"
>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/mapper/xml/WorkBatchMapper.xml
0 → 100644
View file @
2246fff3
<?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.maintenanceWork.mapper.WorkBatchMapper"
>
<select
id=
"listRecord"
resultType=
"org.jeecg.modules.maintenanceWork.vo.WorkBatchVO"
>
SELECT
t1.id,
t1.create_by,
t1.create_time,
t1.update_by,
t1.update_time,
t1.work_batch_code,
t1.light_rail_id,
t1.light_rail_name,
t1.line_alias_id,
t1.line_alias_name,
t1.work_starting_mileage,
t1.work_end_mileage,
t1.work_start_time,
t1.work_end_time,
t1.team,
t1.source,
t1.work_status,
t1.del_flag
FROM
t_mw_work_batch t1
WHERE
t1.del_flag = '0'
<if
test=
"dto.workBatchCode != null and dto.workBatchCode != ''"
>
AND t2.work_batch_code like concat('%',#{dto.workBatchCode},'%')
</if>
</select>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/service/IWorkBatchDetailService.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
service
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatchDetail
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
* 维修作业管理-作业计划批次管理明细表 服务类
* </p>
*
* @author hkl
* @since 2023-08-09
*/
public
interface
IWorkBatchDetailService
extends
IService
<
WorkBatchDetail
>
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/service/IWorkBatchService.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.maintenanceWork.dto.WorkBatchDTO
;
import
org.jeecg.modules.maintenanceWork.dto.WorkBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatch
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.modules.maintenanceWork.vo.WorkBatchVO
;
/**
* <p>
* 维修作业管理-作业计划批次管理表 服务类
* </p>
*
* @author hkl
* @since 2023-08-09
*/
public
interface
IWorkBatchService
extends
IService
<
WorkBatch
>
{
Page
<
WorkBatchVO
>
listRecord
(
Page
<
WorkBatchVO
>
pageData
,
WorkBatchDTO
dto
);
void
saveRecord
(
WorkBatchSaveOrUpdateDTO
dto
);
void
updateRecord
(
WorkBatchSaveOrUpdateDTO
dto
);
void
deleteRecord
(
String
id
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/service/impl/WorkBatchDetailServiceImpl.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
service
.
impl
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatchDetail
;
import
org.jeecg.modules.maintenanceWork.mapper.WorkBatchDetailMapper
;
import
org.jeecg.modules.maintenanceWork.service.IWorkBatchDetailService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 维修作业管理-作业计划批次管理明细表 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@Service
public
class
WorkBatchDetailServiceImpl
extends
ServiceImpl
<
WorkBatchDetailMapper
,
WorkBatchDetail
>
implements
IWorkBatchDetailService
{
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/service/impl/WorkBatchServiceImpl.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.common.util.UUIDGenerator
;
import
org.jeecg.modules.maintenanceWork.dto.WorkBatchDTO
;
import
org.jeecg.modules.maintenanceWork.dto.WorkBatchSaveOrUpdateDTO
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatch
;
import
org.jeecg.modules.maintenanceWork.entity.WorkBatchDetail
;
import
org.jeecg.modules.maintenanceWork.mapper.WorkBatchDetailMapper
;
import
org.jeecg.modules.maintenanceWork.mapper.WorkBatchMapper
;
import
org.jeecg.modules.maintenanceWork.service.IWorkBatchService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.maintenanceWork.vo.WorkBatchVO
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
* <p>
* 维修作业管理-作业计划批次管理表 服务实现类
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@Service
public
class
WorkBatchServiceImpl
extends
ServiceImpl
<
WorkBatchMapper
,
WorkBatch
>
implements
IWorkBatchService
{
@Resource
private
WorkBatchDetailMapper
workBatchDetailMapper
;
@Override
public
Page
<
WorkBatchVO
>
listRecord
(
Page
<
WorkBatchVO
>
pageData
,
WorkBatchDTO
dto
)
{
return
this
.
baseMapper
.
listRecord
(
pageData
,
dto
);
}
@Override
public
void
saveRecord
(
WorkBatchSaveOrUpdateDTO
dto
)
{
WorkBatch
workBatch
=
BeanUtil
.
copyProperties
(
dto
,
WorkBatch
.
class
);
workBatch
.
setId
(
UUIDGenerator
.
generate
());
this
.
save
(
workBatch
);
}
@Override
public
void
updateRecord
(
WorkBatchSaveOrUpdateDTO
dto
)
{
WorkBatch
workBatch
=
BeanUtil
.
copyProperties
(
dto
,
WorkBatch
.
class
);
this
.
updateById
(
workBatch
);
}
@Override
public
void
deleteRecord
(
String
id
)
{
this
.
removeById
(
id
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/vo/WorkBatchDetailVO.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
vo
;
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.Data
;
import
lombok.Getter
;
import
lombok.Setter
;
/**
* <p>
* 维修作业管理-作业计划批次管理明细表
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@Data
@ApiModel
(
value
=
"WorkBatchDetail对象"
,
description
=
"维修作业管理-作业计划批次管理明细表"
)
public
class
WorkBatchDetailVO
{
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
(
"工作批次code"
)
private
String
workBatchCode
;
@ApiModelProperty
(
"工作批次id"
)
private
String
workBatchId
;
@ApiModelProperty
(
"检查批次号"
)
private
String
ekCode
;
@ApiModelProperty
(
"检查批id"
)
private
String
ekId
;
@ApiModelProperty
(
"检查数据类型 1-人工静态检查 2-轨检仪静态检查 3-轨检车检查 4-添乘仪检查"
)
private
Integer
ekType
;
@ApiModelProperty
(
"检查日期"
)
private
Date
checkTime
;
@ApiModelProperty
(
"起始里程"
)
private
BigDecimal
startingMileage
;
@ApiModelProperty
(
"终点里程"
)
private
BigDecimal
endMileage
;
@ApiModelProperty
(
"单元设备id"
)
private
String
unitId
;
@ApiModelProperty
(
"单元设备code"
)
private
String
unitCode
;
@ApiModelProperty
(
"设备单元类型1-钢轨,2-曲线,3-竖曲线,4-道岔"
)
private
Integer
unitType
;
@ApiModelProperty
(
"设备单元类型名称"
)
private
String
unitTypeName
;
@ApiModelProperty
(
"设备编号"
)
private
String
unitDeviceCode
;
@ApiModelProperty
(
"设备单元起始里程"
)
private
BigDecimal
unitStartingMileage
;
@ApiModelProperty
(
"设备单元中心里程"
)
private
BigDecimal
unitCenterMileage
;
@ApiModelProperty
(
"设备单元结束里程"
)
private
BigDecimal
unitEndMileage
;
@ApiModelProperty
(
"单元得分等级 1-优良 2-合格 3-失格"
)
private
Integer
unitScoreLevel
;
@ApiModelProperty
(
"单元得分"
)
private
BigDecimal
unitScore
;
@ApiModelProperty
(
"备注"
)
private
String
remark
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/maintenanceWork/vo/WorkBatchVO.java
0 → 100644
View file @
2246fff3
package
org
.
jeecg
.
modules
.
maintenanceWork
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* <p>
* 维修作业管理-作业计划批次管理表
* </p>
*
* @author hkl
* @since 2023-08-09
*/
@Data
@ApiModel
(
value
=
"WorkBatch对象"
,
description
=
"维修作业管理-作业计划批次管理表"
)
public
class
WorkBatchVO
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
id
;
@ApiModelProperty
(
"作业计划批次号"
)
private
String
workBatchCode
;
@ApiModelProperty
(
"所属线路id"
)
private
String
lightRailId
;
@ApiModelProperty
(
"所属线路名称"
)
private
String
lightRailName
;
@ApiModelProperty
(
"所属线别id"
)
private
String
lineAliasId
;
@ApiModelProperty
(
"所属线别名称"
)
private
String
lineAliasName
;
@ApiModelProperty
(
"作业终止时间"
)
private
Date
workEndTime
;
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
@ApiModelProperty
(
"来源 1-页面添加 2-超限派工添加"
)
private
Integer
source
;
@ApiModelProperty
(
"作业状态 0-未作业 1-已作业"
)
private
Integer
workStatus
;
@ApiModelProperty
(
"是否删除 0-未删除 1-已删除"
)
private
String
delFlag
;
}
jeecg-module-system/src/main/java/org/jeecg/modules/school/controller/SchoolPlanBatchMasterController.java
deleted
100644 → 0
View file @
2f3437b6
package
org
.
jeecg
.
modules
.
school
.
controller
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.apache.shiro.SecurityUtils
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.vo.LoginUser
;
import
org.jeecg.modules.school.dto.SchoolPlanBatchMasterDTO
;
import
org.jeecg.modules.school.entity.SchoolPlanBatchMaster
;
import
org.jeecg.modules.school.service.ISchoolPlanBatchMasterService
;
import
org.jeecg.modules.school.vo.SchoolPlanBatchMasterVO
;
import
org.springframework.web.bind.annotation.*
;
import
org.jeecg.common.system.base.controller.JeecgController
;
import
java.util.Date
;
/**
* <p>
* 作业计划批次管理表 前端控制器
* </p>
*
* @author hkl
* @since 2023-07-24
*/
@RestController
@RequestMapping
(
"/school/master"
)
@Api
(
tags
=
"作业计划批次管理"
)
public
class
SchoolPlanBatchMasterController
extends
JeecgController
<
SchoolPlanBatchMaster
,
ISchoolPlanBatchMasterService
>
{
/**
* 作业计划批次管理列表分页查询
*
* @param pageNo
* @param pageSize
* @param dto
* @return
*/
@AutoLog
(
value
=
"作业计划批次管理列表分页查询"
)
@ApiOperation
(
value
=
"作业计划批次管理列表分页查询"
,
notes
=
"作业计划批次管理列表分页查询"
)
@GetMapping
(
value
=
"/list"
)
public
Result
<
IPage
<
SchoolPlanBatchMasterVO
>>
queryPageList
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
SchoolPlanBatchMasterDTO
dto
)
{
Page
<
SchoolPlanBatchMasterVO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
pageData
=
this
.
service
.
queryPageList
(
pageData
,
dto
);
return
Result
.
OK
(
pageData
);
}
@AutoLog
(
value
=
"作业计划批次管理新增或者编辑"
)
@ApiOperation
(
value
=
"作业计划批次管理新增或者编辑"
,
notes
=
"作业计划批次管理新增或者编辑"
)
@PostMapping
(
value
=
"/saveOrUpdate"
)
@ResponseBody
public
Result
<
String
>
saveOrUpdate
(
@RequestBody
SchoolPlanBatchMaster
schoolPlanBatchMaster
)
{
//获取当前登录人信息
LoginUser
user
=
(
LoginUser
)
SecurityUtils
.
getSubject
().
getPrincipal
();
String
realname
=
user
.
getRealname
();
schoolPlanBatchMaster
.
setUpdateTime
(
new
Date
());
schoolPlanBatchMaster
.
setDelFlag
(
"0"
);
schoolPlanBatchMaster
.
setUpdateBy
(
realname
);
if
(
ObjectUtil
.
isEmpty
(
schoolPlanBatchMaster
.
getId
()))
{
this
.
service
.
save
(
schoolPlanBatchMaster
);
}
else
{
this
.
service
.
updateById
(
schoolPlanBatchMaster
);
}
return
Result
.
OK
(
"操作成功!"
);
}
/**
* 删除作业计划批次管理数据
* @param id
* @return
*/
@AutoLog
(
value
=
"删除作业计划批次管理数据"
)
@ApiOperation
(
value
=
"删除作业计划批次管理数据"
,
notes
=
"删除作业计划批次管理数据"
)
@GetMapping
(
value
=
"/delete"
)
public
Result
<
String
>
delete
(
@ApiParam
(
name
=
"作业计划批次管理id"
,
required
=
true
)
String
id
)
{
//删除动静态几何尺寸数据
LambdaUpdateWrapper
<
SchoolPlanBatchMaster
>
update
=
Wrappers
.
lambdaUpdate
();
update
.
set
(
SchoolPlanBatchMaster:
:
getDelFlag
,
"1"
);
update
.
eq
(
SchoolPlanBatchMaster:
:
getId
,
id
);
this
.
service
.
update
(
update
);
return
Result
.
OK
(
"删除成功!"
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/school/mapper/SchoolPlanBatchMasterMapper.java
deleted
100644 → 0
View file @
2f3437b6
package
org
.
jeecg
.
modules
.
school
.
mapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.school.dto.SchoolPlanBatchMasterDTO
;
import
org.jeecg.modules.school.entity.SchoolPlanBatchMaster
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.school.vo.SchoolPlanBatchMasterVO
;
/**
* <p>
* 作业计划批次管理表 Mapper 接口
* </p>
*
* @author hkl
* @since 2023-07-24
*/
public
interface
SchoolPlanBatchMasterMapper
extends
BaseMapper
<
SchoolPlanBatchMaster
>
{
/**
* 作业计划批次管理列表分页查询
*
* @param pageData
* @param dto
* @return
*/
Page
<
SchoolPlanBatchMasterVO
>
queryPageList
(
Page
<
SchoolPlanBatchMasterVO
>
pageData
,
SchoolPlanBatchMasterDTO
dto
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/school/mapper/xml/SchoolPlanBatchMasterMapper.xml
deleted
100644 → 0
View file @
2f3437b6
<?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.school.mapper.SchoolPlanBatchMasterMapper"
>
<select
id=
"queryPageList"
resultType=
"org.jeecg.modules.school.vo.SchoolPlanBatchMasterVO"
>
SELECT
t1.*
FROM
t_jh_school_plan_batch_master t1 left join t_sn_light_rail t2 on t1.light_rail_id = t2.id
<where>
1=1
<if
test=
"dto.batchCode != null and dto.batchCode != ''"
>
AND t1.batch_code like concat('%',#{dto.batchCode},'%')
</if>
<if
test=
"dto.workerStatus != null and dto.workerStatus != ''"
>
AND t1.worker_status = #{dto.workerStatus}
</if>
<if
test=
"dto.schoolStatus != null and dto.schoolStatus != ''"
>
AND t1.school_status = #{dto.schoolStatus}
</if>
<if
test=
"dto.lightRailId != null and dto.lightRailId != ''"
>
AND t1.light_rail_id = #{dto.lightRailId}
</if>
<if
test=
"dto.lineAliasId != null and dto.lineAliasId != ''"
>
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
<if
test=
"dto.team != null and dto.team != ''"
>
AND t1.team like concat('%',#{dto.team},'%')
</if>
AND t1.del_flag = '0'
AND t2.status = 1
order by t1.create_time desc
</where>
</select>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/school/service/ISchoolPlanBatchMasterService.java
deleted
100644 → 0
View file @
2f3437b6
package
org
.
jeecg
.
modules
.
school
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementRecordsMasterVO
;
import
org.jeecg.modules.school.dto.SchoolPlanBatchMasterDTO
;
import
org.jeecg.modules.school.entity.SchoolPlanBatchMaster
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.modules.school.vo.SchoolPlanBatchMasterVO
;
/**
* <p>
* 作业计划批次管理表 服务类
* </p>
*
* @author hkl
* @since 2023-07-24
*/
public
interface
ISchoolPlanBatchMasterService
extends
IService
<
SchoolPlanBatchMaster
>
{
/**
* 作业计划批次管理列表分页查询
*
* @param pageData
* @param dto
* @return
*/
Page
<
SchoolPlanBatchMasterVO
>
queryPageList
(
Page
<
SchoolPlanBatchMasterVO
>
pageData
,
SchoolPlanBatchMasterDTO
dto
);
}
jeecg-module-system/src/main/java/org/jeecg/modules/school/service/impl/SchoolPlanBatchMasterServiceImpl.java
deleted
100644 → 0
View file @
2f3437b6
package
org
.
jeecg
.
modules
.
school
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.school.dto.SchoolPlanBatchMasterDTO
;
import
org.jeecg.modules.school.entity.SchoolPlanBatchMaster
;
import
org.jeecg.modules.school.mapper.SchoolPlanBatchMasterMapper
;
import
org.jeecg.modules.school.service.ISchoolPlanBatchMasterService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.school.vo.SchoolPlanBatchMasterVO
;
import
org.springframework.stereotype.Service
;
/**
* <p>
* 作业计划批次管理表 服务实现类
* </p>
*
* @author hkl
* @since 2023-07-24
*/
@Service
public
class
SchoolPlanBatchMasterServiceImpl
extends
ServiceImpl
<
SchoolPlanBatchMasterMapper
,
SchoolPlanBatchMaster
>
implements
ISchoolPlanBatchMasterService
{
/**
* 作业计划批次管理列表分页查询
*
* @param pageData
* @param dto
* @return
*/
@Override
public
Page
<
SchoolPlanBatchMasterVO
>
queryPageList
(
Page
<
SchoolPlanBatchMasterVO
>
pageData
,
SchoolPlanBatchMasterDTO
dto
)
{
return
this
.
baseMapper
.
queryPageList
(
pageData
,
dto
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/school/vo/SchoolPlanBatchMasterVO.java
deleted
100644 → 0
View file @
2f3437b6
package
org
.
jeecg
.
modules
.
school
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.jeecg.modules.utils.DicMap
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* <p>
* 作业计划批次管理表
* </p>
*
* @author hkl
* @since 2023-07-24
*/
@Data
public
class
SchoolPlanBatchMasterVO
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
private
String
id
;
@ApiModelProperty
(
"创建人"
)
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
updateTime
;
@ApiModelProperty
(
"作业计划批次号"
)
private
String
batchCode
;
@ApiModelProperty
(
"所属线路id"
)
private
String
lightRailId
;
@ApiModelProperty
(
"所属线路名称"
)
private
String
lightRailName
;
@ApiModelProperty
(
"所属线别id"
)
private
String
lineAliasId
;
@ApiModelProperty
(
"所属线别名称"
)
private
String
lineAliasName
;
@ApiModelProperty
(
"作业起始里程"
)
private
BigDecimal
schoolStartingMileage
;
@ApiModelProperty
(
"作业终点里程"
)
private
BigDecimal
schoolEndMileage
;
@ApiModelProperty
(
"新建日期"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
newlyTime
;
@ApiModelProperty
(
"作业起始时间"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
schoolStartTime
;
@ApiModelProperty
(
"作业终止时间"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
schoolEndTime
;
@ApiModelProperty
(
"作业班组"
)
private
String
team
;
@ApiModelProperty
(
"派工状态(0:未派工 1:已派工)"
)
private
Integer
workerStatus
;
@ApiModelProperty
(
"派工状态翻译(0:未派工 1:已派工)"
)
private
String
workerStatusStr
;
public
String
getWorkerStatusStr
()
{
return
DicMap
.
WORKER_STATUS_MAP
.
get
(
workerStatus
);
}
@ApiModelProperty
(
"作业状态(0:未作业 1:已作业)"
)
private
Integer
schoolStatus
;
@ApiModelProperty
(
"作业状态翻译(0:未作业 1:已作业)"
)
private
String
schoolStatusStr
;
public
String
getSchoolStatusStr
()
{
return
DicMap
.
SCHOOL_STATUS_MAP
.
get
(
schoolStatus
);
}
@ApiModelProperty
(
"是否删除(0:未删除;1:已删除)"
)
private
String
delFlag
;
}
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