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