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
57f93ac6
Commit
57f93ac6
authored
Aug 26, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
200a311f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
CompanyVo.java
...ain/java/com/xxfc/platform/vehicle/pojo/vo/CompanyVo.java
+2
-0
CompanyBaseBiz.java
...in/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
+13
-0
CompanyBaseMapper.xml
...le-server/src/main/resources/mapper/CompanyBaseMapper.xml
+2
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/CompanyVo.java
View file @
57f93ac6
...
@@ -25,6 +25,8 @@ public class CompanyVo extends PageParam {
...
@@ -25,6 +25,8 @@ public class CompanyVo extends PageParam {
String
images
;
String
images
;
@ApiModelProperty
(
"片区id"
)
@ApiModelProperty
(
"片区id"
)
Integer
zoneId
;
Integer
zoneId
;
@ApiModelProperty
(
"片区名称"
)
String
zoneName
;
@ApiModelProperty
(
"公司简介"
)
@ApiModelProperty
(
"公司简介"
)
String
describes
;
String
describes
;
@ApiModelProperty
(
"详情"
)
@ApiModelProperty
(
"详情"
)
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
View file @
57f93ac6
...
@@ -44,6 +44,9 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
...
@@ -44,6 +44,9 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
@Autowired
@Autowired
SysRegionMapper
sysRegionMapper
;
SysRegionMapper
sysRegionMapper
;
@Autowired
AreaBiz
areaBiz
;
@Value
(
"${branchCompanyPic.url}"
)
@Value
(
"${branchCompanyPic.url}"
)
private
String
companyUrl
;
private
String
companyUrl
;
...
@@ -159,10 +162,19 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
...
@@ -159,10 +162,19 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
Integer
stockId
=
companyVo
.
getStockId
();
Integer
stockId
=
companyVo
.
getStockId
();
String
name
=
""
;
String
name
=
""
;
String
companyName
=
""
;
String
companyName
=
""
;
String
zoneName
=
""
;
if
(
companyBaseId
!=
null
&&
companyBaseId
>
0
){
if
(
companyBaseId
!=
null
&&
companyBaseId
>
0
){
CompanyBase
companyBase
=
selectById
(
companyBaseId
);
CompanyBase
companyBase
=
selectById
(
companyBaseId
);
BeanUtils
.
copyProperties
(
companyBase
,
companyVo
);
BeanUtils
.
copyProperties
(
companyBase
,
companyVo
);
name
=
companyBase
.
getName
();
name
=
companyBase
.
getName
();
Integer
zoneId
=
companyBase
.
getZoneId
();
if
(
zoneId
!=
null
){
Area
area
=
areaBiz
.
selectById
(
zoneId
);
if
(
area
!=
null
){
zoneName
=
area
.
getName
();
}
}
}
}
if
(
companyId
!=
null
&&
companyId
>
0
){
if
(
companyId
!=
null
&&
companyId
>
0
){
BranchCompany
branchCompany
=
branchCompanyBiz
.
selectById
(
companyId
);
BranchCompany
branchCompany
=
branchCompanyBiz
.
selectById
(
companyId
);
...
@@ -176,6 +188,7 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
...
@@ -176,6 +188,7 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
companyVo
.
setId
(
companyBaseId
);
companyVo
.
setId
(
companyBaseId
);
companyVo
.
setName
(
name
);
companyVo
.
setName
(
name
);
companyVo
.
setCompanyName
(
companyName
);
companyVo
.
setCompanyName
(
companyName
);
companyVo
.
setZoneName
(
zoneName
);
return
ObjectRestResponse
.
succ
(
companyVo
);
return
ObjectRestResponse
.
succ
(
companyVo
);
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/CompanyBaseMapper.xml
View file @
57f93ac6
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
c.vehice_service_phone as vehiceServicePhone,
c.vehice_service_phone as vehiceServicePhone,
c.tour_service_phone as tourServicePhone,
c.tour_service_phone as tourServicePhone,
c.zone_id as zoneId,
c.zone_id as zoneId,
a.name as zoneName,
c.addr_province as addrProvince,
c.addr_province as addrProvince,
c.province_name as provinceName,
c.province_name as provinceName,
c.addr_city as addrCity,
c.addr_city as addrCity,
...
@@ -35,6 +36,7 @@
...
@@ -35,6 +36,7 @@
FROM branch_company c
FROM branch_company c
LEFT JOIN company_base b ON c.company_base_id=b.id
LEFT JOIN company_base b ON c.company_base_id=b.id
LEFT JOIN branch_company_stock_info_right r ON c.company_base_id=r.company_base_id
LEFT JOIN branch_company_stock_info_right r ON c.company_base_id=r.company_base_id
LEFT JOIN area a ON c.zone_id=a.id
<where>
<where>
b.is_del=0
b.is_del=0
<if
test=
"zoneId != null and zoneId !='' "
>
<if
test=
"zoneId != null and zoneId !='' "
>
...
...
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