Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foodNexus-admin
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
副食品筹措管理平台
foodNexus-admin
Commits
2588cc91
Commit
2588cc91
authored
Sep 19, 2025
by
杨浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆信息人员身份证
parent
60641cf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
foodnexus-module-mall/foodnexus-module-operations/src/main/java/cn/iocoder/foodnexus/module/operations/controller/admin/vehicleinfo/VehicleInfoController.java
+8
-1
foodnexus-module-mall/foodnexus-module-operations/src/main/java/cn/iocoder/foodnexus/module/operations/controller/admin/vehicleinfo/vo/VehicleInfoRespVO.java
+4
-0
No files found.
foodnexus-module-mall/foodnexus-module-operations/src/main/java/cn/iocoder/foodnexus/module/operations/controller/admin/vehicleinfo/VehicleInfoController.java
View file @
2588cc91
package
cn
.
iocoder
.
foodnexus
.
module
.
operations
.
controller
.
admin
.
vehicleinfo
;
import
cn.iocoder.foodnexus.module.operations.dal.dataobject.deliverystaff.DeliveryStaffDO
;
import
cn.iocoder.foodnexus.module.operations.service.deliverystaff.DeliveryStaffService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
jakarta.annotation.Resource
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -38,6 +41,9 @@ public class VehicleInfoController {
@Resource
private
VehicleInfoService
vehicleInfoService
;
@Autowired
private
DeliveryStaffService
deliveryStaffService
;
@PostMapping
(
"/create"
)
@Operation
(
summary
=
"创建车辆信息"
)
@PreAuthorize
(
"@ss.hasPermission('operations:vehicle-info:create')"
)
...
...
@@ -94,7 +100,8 @@ public class VehicleInfoController {
@PreAuthorize
(
"@ss.hasPermission('operations:vehicle-info:query')"
)
public
CommonResult
<
VehicleInfoRespVO
>
getVehicleInfo
(
@RequestParam
(
"id"
)
Long
id
)
{
VehicleInfoDO
vehicleInfo
=
vehicleInfoService
.
getVehicleInfo
(
id
);
return
success
(
BeanUtils
.
toBean
(
vehicleInfo
,
VehicleInfoRespVO
.
class
));
return
success
(
BeanUtils
.
toBean
(
vehicleInfo
,
VehicleInfoRespVO
.
class
,
item
->
item
.
setIdNumber
(
Optional
.
ofNullable
(
deliveryStaffService
.
getDeliveryStaff
(
item
.
getVehicleStaff
())).
map
(
DeliveryStaffDO:
:
getIdNumber
).
orElse
(
""
))));
}
@GetMapping
(
"/page"
)
...
...
foodnexus-module-mall/foodnexus-module-operations/src/main/java/cn/iocoder/foodnexus/module/operations/controller/admin/vehicleinfo/vo/VehicleInfoRespVO.java
View file @
2588cc91
...
...
@@ -43,6 +43,10 @@ public class VehicleInfoRespVO {
@ExcelProperty
(
"车辆绑定人员名称"
)
private
String
vehicleStaffName
;
@Schema
(
description
=
"车辆绑定人员身份证"
)
@ExcelProperty
(
"车辆绑定人员身份证"
)
private
String
idNumber
;
@Schema
(
description
=
"人员出生年份"
)
@ExcelProperty
(
"人员出生年份"
)
private
Integer
staffYearBirth
;
...
...
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