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
6bc61b2d
Commit
6bc61b2d
authored
Jun 03, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车型详情
parent
19982643
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
5 deletions
+44
-5
CompanyDetail.java
...main/java/com/xxfc/platform/vehicle/vo/CompanyDetail.java
+12
-0
BranchCompanyBiz.java
.../java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
+25
-1
BranchCompanyController.java
...m/xxfc/platform/vehicle/rest/BranchCompanyController.java
+7
-2
VehicleController.java
...ava/com/xxfc/platform/vehicle/rest/VehicleController.java
+0
-2
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/vo/CompanyDetail.java
0 → 100644
View file @
6bc61b2d
package
com
.
xxfc
.
platform
.
vehicle
.
vo
;
import
com.xxfc.platform.vehicle.entity.BranchCompany
;
import
com.xxfc.platform.vehicle.entity.SysRegion
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
CompanyDetail
extends
BranchCompany
{
List
<
SysRegion
>
sysRegions
;
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
View file @
6bc61b2d
package
com
.
xxfc
.
platform
.
vehicle
.
biz
;
package
com
.
xxfc
.
platform
.
vehicle
.
biz
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.ace.cache.annotation.Cache
;
import
com.ace.cache.annotation.Cache
;
import
com.ace.cache.annotation.CacheClear
;
import
com.ace.cache.annotation.CacheClear
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
...
@@ -10,10 +11,13 @@ import com.xxfc.platform.vehicle.common.RestResponse;
...
@@ -10,10 +11,13 @@ import com.xxfc.platform.vehicle.common.RestResponse;
import
com.xxfc.platform.vehicle.constant.RedisKey
;
import
com.xxfc.platform.vehicle.constant.RedisKey
;
import
com.xxfc.platform.vehicle.entity.BranchCompany
;
import
com.xxfc.platform.vehicle.entity.BranchCompany
;
import
com.xxfc.platform.vehicle.entity.BranchCompanyStockInfo
;
import
com.xxfc.platform.vehicle.entity.BranchCompanyStockInfo
;
import
com.xxfc.platform.vehicle.entity.SysRegion
;
import
com.xxfc.platform.vehicle.feign.dto.UserDTO
;
import
com.xxfc.platform.vehicle.feign.dto.UserDTO
;
import
com.xxfc.platform.vehicle.mapper.BranchCompanyMapper
;
import
com.xxfc.platform.vehicle.mapper.BranchCompanyMapper
;
import
com.xxfc.platform.vehicle.rest.BranchCompanyController
;
import
com.xxfc.platform.vehicle.util.excel.ExcelImport
;
import
com.xxfc.platform.vehicle.util.excel.ExcelImport
;
import
com.xxfc.platform.vehicle.vo.BranchCompanyVo
;
import
com.xxfc.platform.vehicle.vo.BranchCompanyVo
;
import
com.xxfc.platform.vehicle.vo.CompanyDetail
;
import
com.xxfc.platform.vehicle.vo.CompanySearchDTO
;
import
com.xxfc.platform.vehicle.vo.CompanySearchDTO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -53,6 +57,9 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
...
@@ -53,6 +57,9 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
@Autowired
@Autowired
private
RedisTemplate
customRedisTemplate
;
private
RedisTemplate
customRedisTemplate
;
@Autowired
private
SysRegionBiz
sysRegionBiz
;
@Value
(
"${branchCompanyPic.baseUploadPath}"
)
@Value
(
"${branchCompanyPic.baseUploadPath}"
)
private
String
baseUploadPath
;
private
String
baseUploadPath
;
...
@@ -61,10 +68,27 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
...
@@ -61,10 +68,27 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
* @param id
* @param id
* @return
* @return
*/
*/
public
BranchCompany
getById
(
Integer
id
){
public
BranchCompany
getById
(
Integer
id
)
{
return
mapper
.
selectByPrimaryKey
(
id
);
return
mapper
.
selectByPrimaryKey
(
id
);
}
}
/**
* 获取公司信息
* @param id
* @return
*/
public
CompanyDetail
getDetailById
(
Integer
id
)
{
BranchCompany
branchCompany
=
this
.
getById
(
id
);
List
<
SysRegion
>
sysRegions
=
sysRegionBiz
.
getRegionsByCodes
(
new
ArrayList
<
Long
>(){{
add
(
Long
.
valueOf
(
branchCompany
.
getAddrProvince
()));
add
(
Long
.
valueOf
(
branchCompany
.
getAddrCity
()));
add
(
Long
.
valueOf
(
branchCompany
.
getAddrTown
()));
}});
CompanyDetail
detail
=
BeanUtil
.
toBean
(
branchCompany
,
CompanyDetail
.
class
);
detail
.
setSysRegions
(
sysRegions
);
return
detail
;
}
public
Boolean
exits
(
Integer
id
){
public
Boolean
exits
(
Integer
id
){
BranchCompany
param
=
new
BranchCompany
();
BranchCompany
param
=
new
BranchCompany
();
param
.
setId
(
id
);
param
.
setId
(
id
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/BranchCompanyController.java
View file @
6bc61b2d
...
@@ -9,12 +9,16 @@ import com.xxfc.platform.vehicle.common.BaseController;
...
@@ -9,12 +9,16 @@ import com.xxfc.platform.vehicle.common.BaseController;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.constant.ResCode.ResCode
;
import
com.xxfc.platform.vehicle.constant.ResCode.ResCode
;
import
com.xxfc.platform.vehicle.entity.BranchCompany
;
import
com.xxfc.platform.vehicle.entity.BranchCompany
;
import
com.xxfc.platform.vehicle.entity.SysRegion
;
import
com.xxfc.platform.vehicle.feign.UserFeign
;
import
com.xxfc.platform.vehicle.feign.UserFeign
;
import
com.xxfc.platform.vehicle.feign.dto.UserDTO
;
import
com.xxfc.platform.vehicle.feign.dto.UserDTO
;
import
com.xxfc.platform.vehicle.vo.BranchCompanyVo
;
import
com.xxfc.platform.vehicle.vo.BranchCompanyVo
;
import
com.xxfc.platform.vehicle.vo.CompanyDetail
;
import
com.xxfc.platform.vehicle.vo.CompanySearchDTO
;
import
com.xxfc.platform.vehicle.vo.CompanySearchDTO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
...
@@ -71,9 +75,10 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
...
@@ -71,9 +75,10 @@ public class BranchCompanyController extends BaseController<BranchCompanyBiz> {
return
RestResponse
.
data
(
baseBiz
.
getAll
());
return
RestResponse
.
data
(
baseBiz
.
getAll
());
}
}
@ApiOperation
(
"获取公司详情"
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
public
RestResponse
<
BranchCompany
>
get
(
@PathVariable
Integer
id
)
{
public
RestResponse
<
CompanyDetail
>
get
(
@PathVariable
Integer
id
)
{
return
RestResponse
.
data
(
baseBiz
.
getById
(
id
));
return
RestResponse
.
data
(
baseBiz
.
get
Detail
ById
(
id
));
}
}
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
POST
)
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleController.java
View file @
6bc61b2d
...
@@ -296,8 +296,6 @@ public class VehicleController extends BaseController<VehicleBiz> {
...
@@ -296,8 +296,6 @@ public class VehicleController extends BaseController<VehicleBiz> {
PageDataVO
<
Vehicle
>
pageDataVO
=
vehicleBiz
.
searchUsableVehicle
(
dto
);
PageDataVO
<
Vehicle
>
pageDataVO
=
vehicleBiz
.
searchUsableVehicle
(
dto
);
bookVehicleVo
.
setVehicle
(
pageDataVO
.
getData
().
get
(
0
).
getId
());
bookVehicleVo
.
setVehicle
(
pageDataVO
.
getData
().
get
(
0
).
getId
());
// new ObjectRestResponse<>().data();
return
baseBiz
.
applyVehicle4Employee
(
operatorId
,
bookVehicleVo
,
userName
);
return
baseBiz
.
applyVehicle4Employee
(
operatorId
,
bookVehicleVo
,
userName
);
}
}
}
}
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