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
5d7d35b9
Commit
5d7d35b9
authored
Nov 06, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
232491e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
VehicleApplyBiz.java
...n/java/com/xxfc/platform/vehicle/biz/VehicleApplyBiz.java
+12
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleApplyBiz.java
View file @
5d7d35b9
...
@@ -49,6 +49,7 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
...
@@ -49,6 +49,7 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
if (list.size() > 0){
if (list.size() > 0){
throw new BaseException("公司名称不能重复",ResultCode.FAILED_CODE);
throw new BaseException("公司名称不能重复",ResultCode.FAILED_CODE);
}*/
}*/
setPriceType
(
vehicle
);
VehicleApply
vehicleApply
=
new
VehicleApply
();
VehicleApply
vehicleApply
=
new
VehicleApply
();
BeanUtils
.
copyProperties
(
vehicle
,
vehicleApply
);
BeanUtils
.
copyProperties
(
vehicle
,
vehicleApply
);
Integer
formType
=
2
;
Integer
formType
=
2
;
...
@@ -79,6 +80,17 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
...
@@ -79,6 +80,17 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
return
vehicleApply
;
return
vehicleApply
;
}
}
public
void
setPriceType
(
Vehicle
vehicle
){
Integer
goodsType
=
vehicle
.
getGoodsType
()
==
null
?
0
:
vehicle
.
getGoodsType
();
if
(
goodsType
>
0
){
if
(
goodsType
==
1
||
goodsType
==
2
){
vehicle
.
setPriceType
(
2
);
}
else
if
(
goodsType
==
3
){
vehicle
.
setPriceType
(
1
);
}
}
}
public
Long
checkStatus
(
String
vehicleId
){
public
Long
checkStatus
(
String
vehicleId
){
VehicleApply
vehicleApply
=
new
VehicleApply
();
VehicleApply
vehicleApply
=
new
VehicleApply
();
vehicleApply
.
setVehicleId
(
vehicleId
);
vehicleApply
.
setVehicleId
(
vehicleId
);
...
...
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