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
2b3b479f
Commit
2b3b479f
authored
Jul 18, 2023
by
hkl
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev-hkl
parents
8044aa52
00ee3c3e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
27 deletions
+61
-27
MovementRecordsMasterController.java
...CheckData/controller/MovementRecordsMasterController.java
+13
-12
MovementRecordsMasterMapper.java
...quipmentCheckData/mapper/MovementRecordsMasterMapper.java
+10
-0
MovementRecordsMasterMapper.xml
...pmentCheckData/mapper/xml/MovementRecordsMasterMapper.xml
+14
-0
IMovementRecordsMasterService.java
...pmentCheckData/service/IMovementRecordsMasterService.java
+11
-0
MovementRecordsMasterServiceImpl.java
...ckData/service/impl/MovementRecordsMasterServiceImpl.java
+13
-0
MovementAdditiveInfoVO.java
...eckData/equipmentCheckData/vo/MovementAdditiveInfoVO.java
+0
-15
No files found.
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/controller/MovementRecordsMasterController.java
View file @
2b3b479f
...
@@ -18,6 +18,7 @@ import org.apache.shiro.SecurityUtils;
...
@@ -18,6 +18,7 @@ import org.apache.shiro.SecurityUtils;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.api.vo.Result
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.aspect.annotation.AutoLog
;
import
org.jeecg.common.system.vo.LoginUser
;
import
org.jeecg.common.system.vo.LoginUser
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementAdditiveInfoDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementAdditiveInfo
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementAdditiveInfo
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementCourse
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementCourse
;
...
@@ -533,23 +534,23 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -533,23 +534,23 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
/**
/**
* 查询添乘仪详情
* 查询添乘仪详情
*
* @param pageNo
* @param id
* @param pageSize
* @param dto
* @return
* @return
*/
*/
@AutoLog
(
value
=
"查询添乘仪详情"
)
@AutoLog
(
value
=
"查询添乘仪详情"
)
@ApiOperation
(
value
=
"查询添乘仪详情"
,
notes
=
"查询添乘仪详情"
)
@ApiOperation
(
value
=
"查询添乘仪详情"
,
notes
=
"查询添乘仪详情"
)
@GetMapping
(
value
=
"/getMovementAdditiveInfo"
)
@GetMapping
(
value
=
"/getMovementAdditiveInfo"
)
public
Result
<
List
<
MovementAdditiveInfoVO
>>
getMovementAdditiveInfo
(
@ApiParam
(
name
=
"动态几何尺寸主键id"
,
required
=
true
)
String
id
)
{
public
Result
<
IPage
<
MovementAdditiveInfoVO
>>
getMovementAdditiveInfo
(
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
List
<
MovementAdditiveInfoVO
>
resultList
=
new
ArrayList
<>();
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
,
LambdaQueryWrapper
<
MovementAdditiveInfo
>
lambdaQuery
=
Wrappers
.
lambdaQuery
();
MovementAdditiveInfoDTO
dto
)
{
lambdaQuery
.
eq
(
MovementAdditiveInfo:
:
getMovementMasterId
,
id
);
if
(
ObjectUtil
.
isEmpty
(
dto
.
getMovementMasterId
())){
lambdaQuery
.
orderByAsc
(
MovementAdditiveInfo:
:
getInfoSort
);
return
Result
.
error
(
"参数不完整"
);
List
<
MovementAdditiveInfo
>
list
=
movementAdditiveInfoService
.
list
(
lambdaQuery
);
if
(
list
!=
null
&&
list
.
size
()
>
0
)
{
resultList
=
BeanCopyUtil
.
copyListProperties
(
list
,
MovementAdditiveInfoVO:
:
new
);
}
}
return
Result
.
OK
(
resultList
);
Page
<
MovementAdditiveInfoVO
>
pageData
=
new
Page
<>(
pageNo
,
pageSize
);
pageData
=
this
.
service
.
queryPageAdditiveInfoList
(
pageData
,
dto
);
return
Result
.
OK
(
pageData
);
}
}
@AutoLog
(
value
=
"添乘仪导入"
)
@AutoLog
(
value
=
"添乘仪导入"
)
...
@@ -588,7 +589,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
...
@@ -588,7 +589,7 @@ public class MovementRecordsMasterController extends JeecgController<MovementRec
int
sort
=
0
;
int
sort
=
0
;
//初始化存储结果
//初始化存储结果
List
<
MovementAdditiveInfo
>
result
=
new
ArrayList
<>();
List
<
MovementAdditiveInfo
>
result
=
new
ArrayList
<>();
for
(
int
m
=
1
;
m
<
rowRecords
.
size
()
-
1
;
m
++)
{
for
(
int
m
=
1
;
m
<
rowRecords
.
size
();
m
++)
{
MovementAdditiveInfo
movementAdditiveInfo
=
new
MovementAdditiveInfo
();
MovementAdditiveInfo
movementAdditiveInfo
=
new
MovementAdditiveInfo
();
sort
++;
sort
++;
for
(
int
i
=
0
;
i
<
7
;
i
++)
{
for
(
int
i
=
0
;
i
<
7
;
i
++)
{
...
...
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/mapper/MovementRecordsMasterMapper.java
View file @
2b3b479f
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
mapper
;
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
mapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementAdditiveInfoDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementRecordsMaster
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementRecordsMaster
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementAdditiveInfoVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementRecordsMasterVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementRecordsMasterVO
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -71,4 +73,12 @@ public interface MovementRecordsMasterMapper extends BaseMapper<MovementRecordsM
...
@@ -71,4 +73,12 @@ public interface MovementRecordsMasterMapper extends BaseMapper<MovementRecordsM
* @return
* @return
*/
*/
Integer
getSwitchNum
(
String
sectionId
,
String
lightRailId
,
String
lineAliasId
,
BigDecimal
startingMileage
,
BigDecimal
endMileage
);
Integer
getSwitchNum
(
String
sectionId
,
String
lightRailId
,
String
lineAliasId
,
BigDecimal
startingMileage
,
BigDecimal
endMileage
);
/**
* 查询添乘仪详情
*
* @param pageData
* @param dto
* @return
*/
Page
<
MovementAdditiveInfoVO
>
queryPageAdditiveInfoList
(
Page
<
MovementAdditiveInfoVO
>
pageData
,
MovementAdditiveInfoDTO
dto
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/mapper/xml/MovementRecordsMasterMapper.xml
View file @
2b3b479f
...
@@ -113,4 +113,18 @@
...
@@ -113,4 +113,18 @@
</if>
</if>
</where>
</where>
</select>
</select>
<!--查询添乘仪详情-->
<select
id=
"queryPageAdditiveInfoList"
resultType=
"org.jeecg.modules.checkData.equipmentCheckData.vo.MovementAdditiveInfoVO"
>
SELECT
t1.*
FROM
t_djt_movement_additive_info t1
<where>
1=1
AND t1.movement_master_id = #{dto.movementMasterId}
AND t1.del_flag = '0'
order by t1.info_sort asc
</where>
</select>
</mapper>
</mapper>
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/service/IMovementRecordsMasterService.java
View file @
2b3b479f
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
service
;
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementAdditiveInfoDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementRecordsMaster
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementRecordsMaster
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementAdditiveInfoVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementRecordsMasterVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementRecordsMasterVO
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -70,4 +72,13 @@ public interface IMovementRecordsMasterService extends IService<MovementRecordsM
...
@@ -70,4 +72,13 @@ public interface IMovementRecordsMasterService extends IService<MovementRecordsM
* @return
* @return
*/
*/
Integer
getSwitchNum
(
String
sectionId
,
String
lightRailId
,
String
lineAliasId
,
BigDecimal
startingMileage
,
BigDecimal
endMileage
);
Integer
getSwitchNum
(
String
sectionId
,
String
lightRailId
,
String
lineAliasId
,
BigDecimal
startingMileage
,
BigDecimal
endMileage
);
/**
* 查询添乘仪详情
*
* @param pageData
* @param dto
* @return
*/
Page
<
MovementAdditiveInfoVO
>
queryPageAdditiveInfoList
(
Page
<
MovementAdditiveInfoVO
>
pageData
,
MovementAdditiveInfoDTO
dto
);
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/service/impl/MovementRecordsMasterServiceImpl.java
View file @
2b3b479f
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
service
.
impl
;
package
org
.
jeecg
.
modules
.
checkData
.
equipmentCheckData
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementAdditiveInfoDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.dto.MovementRecordsMasterDTO
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementRecordsMaster
;
import
org.jeecg.modules.checkData.equipmentCheckData.entity.MovementRecordsMaster
;
import
org.jeecg.modules.checkData.equipmentCheckData.mapper.MovementRecordsMasterMapper
;
import
org.jeecg.modules.checkData.equipmentCheckData.mapper.MovementRecordsMasterMapper
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IMovementRecordsMasterService
;
import
org.jeecg.modules.checkData.equipmentCheckData.service.IMovementRecordsMasterService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementAdditiveInfoVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementRecordsMasterVO
;
import
org.jeecg.modules.checkData.equipmentCheckData.vo.MovementRecordsMasterVO
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -84,4 +86,15 @@ public class MovementRecordsMasterServiceImpl extends ServiceImpl<MovementRecord
...
@@ -84,4 +86,15 @@ public class MovementRecordsMasterServiceImpl extends ServiceImpl<MovementRecord
public
Integer
getSwitchNum
(
String
sectionId
,
String
lightRailId
,
String
lineAliasId
,
BigDecimal
startingMileage
,
BigDecimal
endMileage
)
{
public
Integer
getSwitchNum
(
String
sectionId
,
String
lightRailId
,
String
lineAliasId
,
BigDecimal
startingMileage
,
BigDecimal
endMileage
)
{
return
this
.
baseMapper
.
getSwitchNum
(
sectionId
,
lightRailId
,
lineAliasId
,
startingMileage
,
endMileage
);
return
this
.
baseMapper
.
getSwitchNum
(
sectionId
,
lightRailId
,
lineAliasId
,
startingMileage
,
endMileage
);
}
}
/**
* 查询添乘仪详情
*
* @param pageData
* @param dto
* @return
*/
@Override
public
Page
<
MovementAdditiveInfoVO
>
queryPageAdditiveInfoList
(
Page
<
MovementAdditiveInfoVO
>
pageData
,
MovementAdditiveInfoDTO
dto
)
{
return
this
.
baseMapper
.
queryPageAdditiveInfoList
(
pageData
,
dto
);
}
}
}
jeecg-module-system/src/main/java/org/jeecg/modules/checkData/equipmentCheckData/vo/MovementAdditiveInfoVO.java
View file @
2b3b479f
...
@@ -25,67 +25,52 @@ public class MovementAdditiveInfoVO {
...
@@ -25,67 +25,52 @@ public class MovementAdditiveInfoVO {
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键"
)
@ApiModelProperty
(
"主键"
)
@TableId
(
"id"
)
private
String
id
;
private
String
id
;
@ApiModelProperty
(
"创建人"
)
@ApiModelProperty
(
"创建人"
)
@TableField
(
"create_by"
)
private
String
createBy
;
private
String
createBy
;
@ApiModelProperty
(
"创建日期"
)
@ApiModelProperty
(
"创建日期"
)
@TableField
(
"create_time"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
createTime
;
private
Date
createTime
;
@ApiModelProperty
(
"更新人"
)
@ApiModelProperty
(
"更新人"
)
@TableField
(
"update_by"
)
private
String
updateBy
;
private
String
updateBy
;
@ApiModelProperty
(
"更新时间"
)
@ApiModelProperty
(
"更新时间"
)
@TableField
(
"update_time"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
timezone
=
"GMT+8"
,
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
updateTime
;
private
Date
updateTime
;
@ApiModelProperty
(
"动静态几何尺寸数据主表主键-》外键"
)
@ApiModelProperty
(
"动静态几何尺寸数据主表主键-》外键"
)
@TableField
(
"movement_master_id"
)
private
String
movementMasterId
;
private
String
movementMasterId
;
@ApiModelProperty
(
"测点里程"
)
@ApiModelProperty
(
"测点里程"
)
@TableField
(
" point_mileage"
)
private
BigDecimal
pointMileage
;
private
BigDecimal
pointMileage
;
@ApiModelProperty
(
"水平加速度"
)
@ApiModelProperty
(
"水平加速度"
)
@TableField
(
"zontal_speed"
)
private
BigDecimal
zontalSpeed
;
private
BigDecimal
zontalSpeed
;
@ApiModelProperty
(
"水平加速度等级"
)
@ApiModelProperty
(
"水平加速度等级"
)
@TableField
(
"zontal_speed_level"
)
private
Integer
zontalSpeedLevel
;
private
Integer
zontalSpeedLevel
;
@ApiModelProperty
(
"垂直加速度"
)
@ApiModelProperty
(
"垂直加速度"
)
@TableField
(
"vertical_speed"
)
private
BigDecimal
verticalSpeed
;
private
BigDecimal
verticalSpeed
;
@ApiModelProperty
(
"垂直加速度等级"
)
@ApiModelProperty
(
"垂直加速度等级"
)
@TableField
(
"vertical_speed_level"
)
private
Integer
verticalSpeedLevel
;
private
Integer
verticalSpeedLevel
;
@ApiModelProperty
(
"速度"
)
@ApiModelProperty
(
"速度"
)
@TableField
(
"speed"
)
private
BigDecimal
speed
;
private
BigDecimal
speed
;
@ApiModelProperty
(
"手动标记"
)
@ApiModelProperty
(
"手动标记"
)
@TableField
(
"mark"
)
private
String
mark
;
private
String
mark
;
@ApiModelProperty
(
"是否删除(0:未删除;1:已删除)"
)
@ApiModelProperty
(
"是否删除(0:未删除;1:已删除)"
)
@TableField
(
"del_flag"
)
private
String
delFlag
;
private
String
delFlag
;
@ApiModelProperty
(
"排序字段"
)
@ApiModelProperty
(
"排序字段"
)
@TableField
(
"info_sort"
)
private
Integer
infoSort
;
private
Integer
infoSort
;
...
...
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