Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
8d5ec321
Commit
8d5ec321
authored
Nov 22, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):三环设备认领
parent
7f4824fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
ShCarEquDto.java
.../com/yeejoin/amos/boot/module/jg/api/dto/ShCarEquDto.java
+1
-1
ShCarEqu.java
.../com/yeejoin/amos/boot/module/jg/api/entity/ShCarEqu.java
+1
-1
ShCarEquVo.java
...va/com/yeejoin/amos/boot/module/jg/api/vo/ShCarEquVo.java
+5
-0
ShCarEquServiceImpl.java
.../boot/module/jg/biz/service/impl/ShCarEquServiceImpl.java
+8
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/ShCarEquDto.java
View file @
8d5ec321
...
...
@@ -33,7 +33,7 @@ public class ShCarEquDto {
@TableField
(
"CAR_ID"
)
private
String
carId
;
@ApiModelProperty
(
value
=
"设备
编
号"
)
@ApiModelProperty
(
value
=
"设备
型
号"
)
@TableField
(
"SEQUENCE_CODE"
)
private
String
sequenceCode
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/ShCarEqu.java
View file @
8d5ec321
...
...
@@ -41,7 +41,7 @@ public class ShCarEqu {
private
String
carId
;
/**
* 设备
编
号
* 设备
型
号
*/
@TableField
(
value
=
"\"SEQUENCE_CODE\""
)
private
String
sequenceCode
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/vo/ShCarEquVo.java
View file @
8d5ec321
...
...
@@ -32,6 +32,11 @@ public class ShCarEquVo {
private
String
equCode
;
/**
* 设备型号
*/
private
String
equType
;
/**
* 制造日期
*/
private
Date
produceDate
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/ShCarEquServiceImpl.java
View file @
8d5ec321
...
...
@@ -77,7 +77,14 @@ public class ShCarEquServiceImpl extends BaseService<ShCarEqu, ShCarEqu, ShCarEq
queryWrapper
.
eq
(
ShCarEqu:
:
getCarId
,
carId
);
List
<
ShCarEqu
>
list
=
this
.
list
(
queryWrapper
);
// 将设备列表转换为前端可识别bean
List
<
ShCarEquVo
>
collect
=
list
.
stream
().
map
(
shCarEqu
->
new
ShCarEquVo
(
shCarEqu
)).
collect
(
Collectors
.
toList
());
List
<
ShCarEquVo
>
collect
=
list
.
stream
()
.
map
(
shCarEqu
->
{
ShCarEquVo
shCarEquVo
=
new
ShCarEquVo
(
shCarEqu
);
shCarEquVo
.
setUseInnerCode
(
shCarDto
.
getCarNumber
());
shCarEquVo
.
setEquType
(
shCarEqu
.
getSequenceCode
());
return
shCarEquVo
;
})
.
collect
(
Collectors
.
toList
());
// 封装返回VO
return
new
CarAndEquVo
(
shCarDto
,
collect
);
}
...
...
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