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
c0351b44
Commit
c0351b44
authored
Aug 26, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
f280e8ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
CompanyBaseBiz.java
...in/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
+1
-13
CompanyController.java
...m/xxfc/platform/vehicle/rest/admin/CompanyController.java
+2
-2
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
View file @
c0351b44
...
...
@@ -220,7 +220,7 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
return
ObjectRestResponse
.
succ
();
}
//设置基础
信息
//设置基础
详情
public
ObjectRestResponse
updCompanyDetail
(
CompanyVo
companyVo
){
if
(
companyVo
==
null
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数不能为空"
);
...
...
@@ -230,21 +230,9 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
Integer
companyBaseId
=
companyVo
.
getId
();
if
(
companyBaseId
==
null
||
companyBaseId
==
0
){
insertSelective
(
companyBase
);
companyBaseId
=
companyBase
.
getId
();
}
else
{
updateSelectiveById
(
companyBase
);
}
BranchCompany
branchCompany
=
new
BranchCompany
();
BeanUtils
.
copyProperties
(
companyVo
,
branchCompany
);
branchCompany
.
setCompanyBaseId
(
companyBaseId
);
Integer
companyId
=
companyVo
.
getCompanyId
();
if
(
companyId
==
null
||
companyId
==
0
){
branchCompany
.
setId
(
null
);
branchCompanyBiz
.
insertSelective
(
branchCompany
);
}
else
{
branchCompany
.
setId
(
companyId
);
branchCompanyBiz
.
updateSelectiveById
(
branchCompany
);
}
return
ObjectRestResponse
.
succ
();
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/CompanyController.java
View file @
c0351b44
...
...
@@ -58,12 +58,12 @@ public class CompanyController extends BaseController<CompanyBaseBiz> {
@ApiOperation
(
"设置股权信息"
)
@RequestMapping
(
value
=
"/updStockInfo"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
updStockInfo
(
CompanyVo
companyVo
){
public
ObjectRestResponse
updStockInfo
(
@RequestBody
CompanyVo
companyVo
){
return
baseBiz
.
updStockInfo
(
companyVo
);
}
@ApiOperation
(
"设置详情"
)
@RequestMapping
(
value
=
"/updCompanyDetail"
,
method
=
RequestMethod
.
POST
)
public
ObjectRestResponse
updCompanyDetail
(
CompanyVo
companyVo
){
public
ObjectRestResponse
updCompanyDetail
(
@RequestBody
CompanyVo
companyVo
){
return
baseBiz
.
updCompanyDetail
(
companyVo
);
}
...
...
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