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
ac5bde92
Commit
ac5bde92
authored
Aug 27, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆信息
parent
2d68fe41
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
1 deletion
+32
-1
DictionaryKey.java
...a/com/xxfc/platform/universal/constant/DictionaryKey.java
+3
-0
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+20
-1
VehicleController.java
...ava/com/xxfc/platform/vehicle/rest/VehicleController.java
+5
-0
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+4
-0
No files found.
xx-universal/xx-universal-api/src/main/java/com/xxfc/platform/universal/constant/DictionaryKey.java
View file @
ac5bde92
...
...
@@ -75,6 +75,9 @@ public class DictionaryKey {
public
static
final
String
ACT_TOUR
=
"ACT_TOUR"
;
public
static
final
String
ACT_MEMBER
=
"ACT_MEMBER"
;
public
static
final
String
VEHICLE_MANUFACTURER
=
"VEHICLE_MANUFACTURER"
;
public
static
final
String
VEHICLE
=
"VEHICLE"
;
/**
* 支付价格减低
*/
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
ac5bde92
...
...
@@ -3,6 +3,7 @@ package com.xxfc.platform.vehicle.biz;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.copier.CopyOptions
;
import
cn.hutool.core.util.StrUtil
;
import
com.alibaba.fastjson.JSONArray
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
...
...
@@ -17,6 +18,9 @@ import com.github.wxiaoqi.security.common.vo.PageDataVO;
import
com.google.common.base.Function
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.entity.Dictionary
;
import
com.xxfc.platform.universal.feign.ThirdFeign
;
import
com.xxfc.platform.vehicle.common.CustomIllegalParamException
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.constant.*
;
...
...
@@ -93,7 +97,8 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
@Autowired
private
VehicleJobHandler
vehicleJobHandler
;
@Autowired
private
ThirdFeign
thirdFeign
;
@Override
public
UserFeign
getUserFeign
()
{
return
userFeign
;
...
...
@@ -1545,4 +1550,18 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
return
mapper
.
getAllVehicleInfo
();
}
/**
* 获取所有车辆生产商
* @return
*/
public
ObjectRestResponse
getAllManufacturer
()
{
Dictionary
dictionary
=
thirdFeign
.
findDictionaryByTypeAndCode
(
DictionaryKey
.
VEHICLE
,
DictionaryKey
.
VEHICLE_MANUFACTURER
);
if
(
dictionary
!=
null
&&
StringUtils
.
isNotBlank
(
dictionary
.
getDetail
()))
{
return
ObjectRestResponse
.
succ
(
JSONArray
.
parseArray
(
dictionary
.
getDetail
()));
}
else
{
return
ObjectRestResponse
.
succ
(
new
JSONArray
());
}
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleController.java
View file @
ac5bde92
...
...
@@ -129,6 +129,11 @@ public class VehicleController extends BaseController<VehicleBiz> implements Use
return
RestResponse
.
suc
(
vehicles
);
}
@GetMapping
(
value
=
"getAllManufacturer"
)
public
ObjectRestResponse
getAllManufacturer
()
{
return
baseBiz
.
getAllManufacturer
();
}
@PostMapping
(
value
=
"/test"
)
public
ObjectRestResponse
test
(
@RequestBody
VehicleBookRecord
vehicleBookRecord
)
{
return
vehicleBiz
.
addVehicleBookRecord
(
vehicleBookRecord
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
ac5bde92
...
...
@@ -74,6 +74,7 @@
v.vehicle_status,
v.vehicle_body_status,
v.vehicle_inner_status,
v.vehicle_register_date,
v.mileage_last_update as mileage,
c.val as useTypeName,
ci.name as companyName,
...
...
@@ -235,6 +236,7 @@
v.vehicle_status,
v.vehicle_body_status,
v.vehicle_inner_status,
v.vehicle_register_date,
v.mileage_last_update as mileage,
c.val as useTypeName,
ci.name as companyName,
...
...
@@ -374,6 +376,7 @@
select
v.`code`,
v.number_plate,
v.vehicle_register_date,
bc.name as parkBranchCompanyName,
c.val as useType,
ci.name as companyName,
...
...
@@ -495,6 +498,7 @@
select
v.`code`,
v.number_plate,
v.vehicle_register_date,
bc.name as parkBranchCompanyName,
c.val as useType,
vm.name as vehicleType
...
...
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