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
ca58b9f8
Commit
ca58b9f8
authored
Jul 09, 2023
by
hkl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:1.道岔使用情况检查业务
parent
989a7497
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
52 deletions
+58
-52
UseTurnoutRecordCheckController.java
...CheckData/controller/UseTurnoutRecordCheckController.java
+5
-2
UseTurnoutRecordCheck.java
...Data/equipmentCheckData/entity/UseTurnoutRecordCheck.java
+3
-3
UseTurnoutRecordCheckMapper.java
...quipmentCheckData/mapper/UseTurnoutRecordCheckMapper.java
+3
-0
UseTurnoutRecordCheckMapper.xml
...pmentCheckData/mapper/xml/UseTurnoutRecordCheckMapper.xml
+15
-0
IUseTurnoutRecordCheckService.java
...pmentCheckData/service/IUseTurnoutRecordCheckService.java
+3
-0
UseTurnoutRecordCheckServiceImpl.java
...ckData/service/impl/UseTurnoutRecordCheckServiceImpl.java
+6
-0
UseTurnoutRecordCheckDetailVO.java
.../equipmentCheckData/vo/UseTurnoutRecordCheckDetailVO.java
+23
-47
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/UseTurnoutRecordCheckController.java
View file @
ca58b9f8
...
@@ -3,6 +3,7 @@ package org.jeecg.modules.checkData.equipmentCheckData.controller;
...
@@ -3,6 +3,7 @@ package org.jeecg.modules.checkData.equipmentCheckData.controller;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.api.vo.Result
;
...
@@ -12,6 +13,7 @@ import org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordChe
...
@@ -12,6 +13,7 @@ import org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordChe
import
org.jeecg.modules.checkData.equipmentCheckData.service.IUseTurnoutRecordCheckService
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IUseTurnoutRecordCheckService
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckDetailVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckDetailVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
import
org.jeecg.modules.utils.BeanCopyUtil
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -31,6 +33,7 @@ import java.util.*;
...
@@ -31,6 +33,7 @@ import java.util.*;
*/
*/
@RestController
@RestController
@RequestMapping
(
"/checkData/equipmentCheckData/useTurnoutRecordCheck"
)
@RequestMapping
(
"/checkData/equipmentCheckData/useTurnoutRecordCheck"
)
@Api
(
tags
=
"检查数据设备-检查记录数据"
)
public
class
UseTurnoutRecordCheckController
extends
JeecgController
<
UseTurnoutRecordCheck
,
IUseTurnoutRecordCheckService
>
{
public
class
UseTurnoutRecordCheckController
extends
JeecgController
<
UseTurnoutRecordCheck
,
IUseTurnoutRecordCheckService
>
{
@AutoLog
(
value
=
"检查数据设备-检查记录数据-分页列表查询"
)
@AutoLog
(
value
=
"检查数据设备-检查记录数据-分页列表查询"
)
...
@@ -66,8 +69,8 @@ public class UseTurnoutRecordCheckController extends JeecgController<UseTurnoutR
...
@@ -66,8 +69,8 @@ public class UseTurnoutRecordCheckController extends JeecgController<UseTurnoutR
@AutoLog
(
value
=
"检查数据设备-检查记录数据-道岔检查详情页"
)
@AutoLog
(
value
=
"检查数据设备-检查记录数据-道岔检查详情页"
)
@ApiOperation
(
value
=
"检查数据设备-检查记录数据-道岔检查详情页"
,
notes
=
"检查数据设备-检查记录数据-道岔检查详情页"
)
@ApiOperation
(
value
=
"检查数据设备-检查记录数据-道岔检查详情页"
,
notes
=
"检查数据设备-检查记录数据-道岔检查详情页"
)
@GetMapping
(
value
=
"/getDetail"
)
@GetMapping
(
value
=
"/getDetail"
)
public
Result
<
UseTurnoutRecordCheckDetailVO
>
getDetail
(
@ApiParam
(
"设备检查记录
主表id"
)
String
i
d
)
{
public
Result
<
UseTurnoutRecordCheckDetailVO
>
getDetail
(
@ApiParam
(
"设备检查记录
表id"
)
String
useTurnoutRecordI
d
)
{
UseTurnoutRecordCheckDetailVO
data
=
new
UseTurnoutRecordCheckDetailVO
(
);
UseTurnoutRecordCheckDetailVO
data
=
this
.
service
.
getDetail
(
useTurnoutRecordId
);
return
Result
.
OK
(
data
);
return
Result
.
OK
(
data
);
}
}
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/entity/UseTurnoutRecordCheck.java
View file @
ca58b9f8
...
@@ -59,7 +59,7 @@ public class UseTurnoutRecordCheck implements Serializable {
...
@@ -59,7 +59,7 @@ public class UseTurnoutRecordCheck implements Serializable {
private
String
switchManagementId
;
private
String
switchManagementId
;
@ApiModelProperty
(
"车站id"
)
@ApiModelProperty
(
"车站id"
)
@TableField
(
"
train_
station_id"
)
@TableField
(
"station_id"
)
private
String
trainStationId
;
private
String
trainStationId
;
@ApiModelProperty
(
"检查日期"
)
@ApiModelProperty
(
"检查日期"
)
...
@@ -72,11 +72,11 @@ public class UseTurnoutRecordCheck implements Serializable {
...
@@ -72,11 +72,11 @@ public class UseTurnoutRecordCheck implements Serializable {
@ApiModelProperty
(
"几何尺寸"
)
@ApiModelProperty
(
"几何尺寸"
)
@TableField
(
value
=
"geometric_dimensions"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
@TableField
(
value
=
"geometric_dimensions"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
JSONObject
geometricDimensions
;
private
String
geometricDimensions
;
@ApiModelProperty
(
"转辙器"
)
@ApiModelProperty
(
"转辙器"
)
@TableField
(
value
=
"switch_part"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
@TableField
(
value
=
"switch_part"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
JSONObject
switchPart
;
private
String
switchPart
;
@ApiModelProperty
(
"钢轨及其连接零件"
)
@ApiModelProperty
(
"钢轨及其连接零件"
)
@TableField
(
value
=
"rail_and_conn_part"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
@TableField
(
value
=
"rail_and_conn_part"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/mapper/UseTurnoutRecordCheckMapper.java
View file @
ca58b9f8
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.UseTurnoutRecordCheckDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.UseTurnoutRecordCheckDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordCheck
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordCheck
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckDetailVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
/**
/**
...
@@ -17,4 +18,6 @@ import org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
...
@@ -17,4 +18,6 @@ import org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
public
interface
UseTurnoutRecordCheckMapper
extends
BaseMapper
<
UseTurnoutRecordCheck
>
{
public
interface
UseTurnoutRecordCheckMapper
extends
BaseMapper
<
UseTurnoutRecordCheck
>
{
Page
<
UseTurnoutRecordCheckVO
>
queryPageList
(
Page
<
UseTurnoutRecordCheckVO
>
pageData
,
UseTurnoutRecordCheckDTO
dto
);
Page
<
UseTurnoutRecordCheckVO
>
queryPageList
(
Page
<
UseTurnoutRecordCheckVO
>
pageData
,
UseTurnoutRecordCheckDTO
dto
);
UseTurnoutRecordCheckDetailVO
getDetail
(
String
useTurnoutRecordId
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/mapper/xml/UseTurnoutRecordCheckMapper.xml
View file @
ca58b9f8
...
@@ -34,4 +34,19 @@
...
@@ -34,4 +34,19 @@
</if>
</if>
GROUP BY t1.gauge_code
GROUP BY t1.gauge_code
</select>
</select>
<select
id=
"getDetail"
resultType=
"org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckDetailVO"
>
SELECT
t1.*,
t2.byroad_pre_mileage,
t2.byroad_center_mileage,
t2.byroad_end_mileage,
t2.open_to,
t2.line_alias_id,
(SELECT line_alias_name FROM t_sn_line_alias WHERE id = t2.line_alias_id limit 1) line_alias_name
FROM
t_ek_use_turnout_record_check t1
LEFT JOIN t_da_switch_management t2 ON t1.switch_management_id = t2.id
WHERE t1.id =#{useTurnoutRecordId}
</select>
</mapper>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/service/IUseTurnoutRecordCheckService.java
View file @
ca58b9f8
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.UseTurnoutRecordCheckDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.UseTurnoutRecordCheckDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordCheck
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordCheck
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckDetailVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
/**
/**
...
@@ -17,4 +18,6 @@ import org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
...
@@ -17,4 +18,6 @@ import org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
public
interface
IUseTurnoutRecordCheckService
extends
IService
<
UseTurnoutRecordCheck
>
{
public
interface
IUseTurnoutRecordCheckService
extends
IService
<
UseTurnoutRecordCheck
>
{
Page
<
UseTurnoutRecordCheckVO
>
queryPageList
(
Page
<
UseTurnoutRecordCheckVO
>
pageData
,
UseTurnoutRecordCheckDTO
dto
);
Page
<
UseTurnoutRecordCheckVO
>
queryPageList
(
Page
<
UseTurnoutRecordCheckVO
>
pageData
,
UseTurnoutRecordCheckDTO
dto
);
UseTurnoutRecordCheckDetailVO
getDetail
(
String
useTurnoutRecordId
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/service/impl/UseTurnoutRecordCheckServiceImpl.java
View file @
ca58b9f8
...
@@ -6,6 +6,7 @@ import org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordChe
...
@@ -6,6 +6,7 @@ import org.jeecg.modules.checkData.equipmentCheckData.entity.UseTurnoutRecordChe
import
org.jeecg.modules.checkData.equipmentCheckData.mapper.UseTurnoutRecordCheckMapper
;
import
org.jeecg.modules.checkData.equipmentCheckData.mapper.UseTurnoutRecordCheckMapper
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IUseTurnoutRecordCheckService
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IUseTurnoutRecordCheckService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckDetailVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.UseTurnoutRecordCheckVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -24,4 +25,9 @@ public class UseTurnoutRecordCheckServiceImpl extends ServiceImpl<UseTurnoutReco
...
@@ -24,4 +25,9 @@ public class UseTurnoutRecordCheckServiceImpl extends ServiceImpl<UseTurnoutReco
public
Page
<
UseTurnoutRecordCheckVO
>
queryPageList
(
Page
<
UseTurnoutRecordCheckVO
>
pageData
,
UseTurnoutRecordCheckDTO
dto
)
{
public
Page
<
UseTurnoutRecordCheckVO
>
queryPageList
(
Page
<
UseTurnoutRecordCheckVO
>
pageData
,
UseTurnoutRecordCheckDTO
dto
)
{
return
this
.
baseMapper
.
queryPageList
(
pageData
,
dto
);
return
this
.
baseMapper
.
queryPageList
(
pageData
,
dto
);
}
}
@Override
public
UseTurnoutRecordCheckDetailVO
getDetail
(
String
useTurnoutRecordId
)
{
return
this
.
baseMapper
.
getDetail
(
useTurnoutRecordId
);
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/vo/UseTurnoutRecordCheckDetailVO.java
View file @
ca58b9f8
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
vo
;
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
vo
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
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
org.jeecgframework.poi.excel.annotation.Excel
;
import
org.jeecgframework.poi.excel.annotation.Excel
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -25,63 +28,36 @@ public class UseTurnoutRecordCheckDetailVO {
...
@@ -25,63 +28,36 @@ public class UseTurnoutRecordCheckDetailVO {
@ApiModelProperty
(
"主键"
)
@ApiModelProperty
(
"主键"
)
private
String
id
;
private
String
id
;
@Excel
(
name
=
"检查批次编号"
,
width
=
15
,
orderNum
=
"1"
)
@ApiModelProperty
(
"检查日期"
)
private
String
ekCode
;
private
Date
checkTime
;
@ApiModelProperty
(
"工单编号"
)
private
String
workCode
;
@ApiModelProperty
(
"轨距水平尺编号"
)
private
String
gaugeCode
;
@ApiModelProperty
(
"
检查区间id
"
)
@ApiModelProperty
(
"
道岔编码
"
)
private
String
subwaySectionId
;
private
String
turnoutCode
;
@ApiModelProperty
(
"
检查区间名称
"
)
@ApiModelProperty
(
"
几何尺寸
"
)
private
String
subwaySectionName
;
private
String
geometricDimensions
;
@ApiModelProperty
(
"
所属线路id
"
)
@ApiModelProperty
(
"
转辙器
"
)
private
String
lightRailId
;
private
String
switchPart
;
@ApiModelProperty
(
"
所属线路名称
"
)
@ApiModelProperty
(
"
钢轨及其连接零件
"
)
private
String
lightRailName
;
private
String
railAndConnPart
;
@ApiModelProperty
(
"所属线别i
d"
)
@ApiModelProperty
(
value
=
"线别I
d"
)
private
String
lineAliasId
;
private
String
lineAliasId
;
@ApiModelProperty
(
"所属
线别名称"
)
@ApiModelProperty
(
value
=
"
线别名称"
)
private
String
lineAliasName
;
private
String
lineAliasName
;
@ApiModelProperty
(
"创建人"
)
@ApiModelProperty
(
value
=
"开向"
)
private
String
createBy
;
private
String
openTo
;
@ApiModelProperty
(
"创建日期"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
"设备检查记录主表id
"
)
@ApiModelProperty
(
value
=
"岔前/岔前里程
"
)
private
String
recordsMasterCheckId
;
private
BigDecimal
byroadPreMileage
;
@ApiModelProperty
(
"道岔id
"
)
@ApiModelProperty
(
value
=
"岔心里程
"
)
private
String
switchManagementId
;
private
BigDecimal
byroadCenterMileage
;
@ApiModelProperty
(
"检查日期"
)
@ApiModelProperty
(
value
=
"岔前/岔后里程"
)
private
Date
checkTime
;
private
BigDecimal
byroadEndMileage
;
@ApiModelProperty
(
"道岔编码"
)
private
String
turnoutCode
;
@ApiModelProperty
(
"几何尺寸"
)
private
JSONObject
geometricDimensions
;
@ApiModelProperty
(
"转辙器"
)
private
JSONObject
switchPart
;
@ApiModelProperty
(
"钢轨及其连接零件"
)
private
JSONObject
railAndConnPart
;
}
}
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