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
4fc3777a
Commit
4fc3777a
authored
Aug 23, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
1faf4505
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
8 deletions
+34
-8
CompanyVo.java
...ain/java/com/xxfc/platform/vehicle/pojo/vo/CompanyVo.java
+6
-0
CompanyBaseBiz.java
...in/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
+28
-8
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/CompanyVo.java
View file @
4fc3777a
...
@@ -30,10 +30,16 @@ public class CompanyVo {
...
@@ -30,10 +30,16 @@ public class CompanyVo {
String
content
;
String
content
;
@ApiModelProperty
(
"地址-省/直辖市(编码)"
)
@ApiModelProperty
(
"地址-省/直辖市(编码)"
)
Integer
addrProvince
;
Integer
addrProvince
;
@ApiModelProperty
(
"地址-省/直辖市(编码)名称"
)
String
provinceName
;
@ApiModelProperty
(
"地址-市(编码)"
)
@ApiModelProperty
(
"地址-市(编码)"
)
Integer
addrCity
;
Integer
addrCity
;
@ApiModelProperty
(
"地址-市(编码)名称"
)
String
cityName
;
@ApiModelProperty
(
"地址-镇/县(编码)"
)
@ApiModelProperty
(
"地址-镇/县(编码)"
)
Integer
addrTown
;
Integer
addrTown
;
@ApiModelProperty
(
"地址-镇/县(编码)名称"
)
String
townName
;
/**
/**
* 分支机构
* 分支机构
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
View file @
4fc3777a
...
@@ -104,15 +104,36 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
...
@@ -104,15 +104,36 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
//设置股权信息
//设置股权信息
public
ObjectRestResponse
updStockInfo
(
CompanyVo
companyVo
){
public
ObjectRestResponse
updStockInfo
(
CompanyVo
companyVo
){
if
(
companyVo
==
null
||
StringUtils
.
isBlank
(
companyVo
.
getCompanyName
())||
StringUtils
.
isBlank
(
companyVo
.
getName
())||
companyVo
.
getZoneId
()==
null
||
companyVo
.
getZoneId
()==
0
||
companyVo
.
getAddrProvince
()==
null
||
companyVo
.
getAddrProvince
()==
0
if
(
companyVo
==
null
||
companyVo
.
getId
()==
null
||
companyVo
.
getId
()==
0
||
companyVo
.
getBalance
()==
null
||
companyVo
.
getBalance
()==
0
||
companyVo
.
getTotal
()==
null
||
companyVo
.
getTotal
()==
0
||
companyVo
.
getAddrCity
()==
null
||
companyVo
.
getAddrCity
()==
0
){
||
companyVo
.
getPrice
()
==
null
||
companyVo
.
getPrice
().
compareTo
(
BigDecimal
.
ZERO
)<
0
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数不能为空"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数不能为空"
);
}
}
Integer
state
=
companyVo
.
getState
()==
null
?
2
:
companyVo
.
getState
();
Integer
companyBaseId
=
companyVo
.
getId
();
if
(
state
==
1
&&(
StringUtils
.
isBlank
(
companyVo
.
getAddrDetail
())||
StringUtils
.
isBlank
(
companyVo
.
getImages
())||
StringUtils
.
isBlank
(
companyVo
.
getDescribes
())||
StringUtils
.
isBlank
(
companyVo
.
getContent
())
Integer
stockState
=
companyVo
.
getStockState
();
||
StringUtils
.
isBlank
(
companyVo
.
getLeader
())||
StringUtils
.
isBlank
(
companyVo
.
getLeaderContactInfo
())||
StringUtils
.
isBlank
(
companyVo
.
getTourServicePhone
())||
StringUtils
.
isBlank
(
companyVo
.
getVehiceServicePhone
()))){
if
(
stockState
!=
null
&&
stockState
==
2
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"上架时参数不能为空"
);
CompanyBase
companyBase
=
selectById
(
companyBaseId
);
if
(
companyBase
==
null
||
StringUtils
.
isBlank
(
companyBase
.
getDescribes
())||
StringUtils
.
isBlank
(
companyBase
.
getContent
())||
StringUtils
.
isBlank
(
companyBase
.
getImages
())){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"基础信息不完善"
);
}
}
Integer
stockId
=
companyVo
.
getStockId
();
BranchCompanyStockRight
right
=
new
BranchCompanyStockRight
();
BeanUtils
.
copyProperties
(
companyVo
,
right
);
if
(
stockId
==
null
||
stockId
==
0
){
right
.
setId
(
null
);
stockRightBiz
.
insertSelective
(
right
);
}
else
{
right
.
setId
(
stockId
);
stockRightBiz
.
updateSelectiveById
(
right
);
}
return
ObjectRestResponse
.
succ
();
}
//设置基础信息
public
ObjectRestResponse
updCompanyDetail
(
CompanyVo
companyVo
){
if
(
companyVo
==
null
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数不能为空"
);
}
}
CompanyBase
companyBase
=
new
CompanyBase
();
CompanyBase
companyBase
=
new
CompanyBase
();
BeanUtils
.
copyProperties
(
companyVo
,
companyBase
);
BeanUtils
.
copyProperties
(
companyVo
,
companyBase
);
...
@@ -126,7 +147,6 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
...
@@ -126,7 +147,6 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
BranchCompany
branchCompany
=
new
BranchCompany
();
BranchCompany
branchCompany
=
new
BranchCompany
();
BeanUtils
.
copyProperties
(
companyVo
,
branchCompany
);
BeanUtils
.
copyProperties
(
companyVo
,
branchCompany
);
branchCompany
.
setCompanyBaseId
(
companyBaseId
);
branchCompany
.
setCompanyBaseId
(
companyBaseId
);
branchCompany
.
setName
(
companyVo
.
getCompanyName
());
Integer
companyId
=
companyVo
.
getCompanyId
();
Integer
companyId
=
companyVo
.
getCompanyId
();
if
(
companyId
==
null
||
companyId
==
0
){
if
(
companyId
==
null
||
companyId
==
0
){
branchCompany
.
setId
(
null
);
branchCompany
.
setId
(
null
);
...
...
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