Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
311cb8b5
Commit
311cb8b5
authored
Nov 26, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-chw' into dev-chw
parents
b411d723
41180cc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
VehicleApplyFindDTO.java
...m/xxfc/platform/vehicle/pojo/dto/VehicleApplyFindDTO.java
+3
-0
AdminVehicleApplyController.java
...tform/vehicle/rest/admin/AdminVehicleApplyController.java
+11
-2
VehicleApplyMapper.xml
...e-server/src/main/resources/mapper/VehicleApplyMapper.xml
+3
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/dto/VehicleApplyFindDTO.java
View file @
311cb8b5
...
@@ -32,6 +32,9 @@ public class VehicleApplyFindDTO extends PageParam implements DataInter {
...
@@ -32,6 +32,9 @@ public class VehicleApplyFindDTO extends PageParam implements DataInter {
private
Integer
applyStatus
;
private
Integer
applyStatus
;
private
Integer
id
;
@ApiModelProperty
(
"店铺id"
)
@ApiModelProperty
(
"店铺id"
)
private
Integer
branchId
;
private
Integer
branchId
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/AdminVehicleApplyController.java
View file @
311cb8b5
...
@@ -9,6 +9,7 @@ import com.xxfc.platform.vehicle.biz.VehicleApplyBiz;
...
@@ -9,6 +9,7 @@ import com.xxfc.platform.vehicle.biz.VehicleApplyBiz;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.VehicleApply
;
import
com.xxfc.platform.vehicle.entity.VehicleApply
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleApplyFindDTO
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleApplyFindDTO
;
import
com.xxfc.platform.vehicle.pojo.vo.VehicleApplyVo
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -56,8 +57,16 @@ public class AdminVehicleApplyController extends BaseController<VehicleApplyBiz,
...
@@ -56,8 +57,16 @@ public class AdminVehicleApplyController extends BaseController<VehicleApplyBiz,
@GetMapping
(
"info/{id}"
)
@GetMapping
(
"info/{id}"
)
@ApiModelProperty
(
"商家信息"
)
@ApiModelProperty
(
"商家信息"
)
public
ObjectRestResponse
info
(
@PathVariable
(
"id"
)
Long
id
)
{
public
ObjectRestResponse
info
(
@PathVariable
(
"id"
)
Integer
id
)
{
return
ObjectRestResponse
.
succ
(
baseBiz
.
selectById
(
id
));
VehicleApplyFindDTO
vehicleApplyFindDTO
=
new
VehicleApplyFindDTO
();
vehicleApplyFindDTO
.
setId
(
id
);
List
<
VehicleApplyVo
>
list
=
baseBiz
.
getList
(
vehicleApplyFindDTO
);
VehicleApplyVo
vehicleApplyVo
=
null
;
if
(
list
.
size
()
>
0
){
vehicleApplyVo
=
list
.
get
(
0
);
}
return
ObjectRestResponse
.
succ
(
vehicleApplyVo
);
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleApplyMapper.xml
View file @
311cb8b5
...
@@ -24,6 +24,9 @@
...
@@ -24,6 +24,9 @@
<if
test=
"branchId != null and branchId > 0"
>
<if
test=
"branchId != null and branchId > 0"
>
AND a.`subordinate_branch`= #{branchId}
AND a.`subordinate_branch`= #{branchId}
</if>
</if>
<if
test=
"id != null and id > 0 "
>
AND a.`id`= #{id}
</if>
<if
test=
"applyStatus != null "
>
<if
test=
"applyStatus != null "
>
AND a.`apply_status`= #{applyStatus}
AND a.`apply_status`= #{applyStatus}
</if>
</if>
...
...
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