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
77252a0f
Commit
77252a0f
authored
Sep 03, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
6f16da21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
CompanyBaseBiz.java
...in/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
+28
-0
CompanyController.java
...m/xxfc/platform/vehicle/rest/admin/CompanyController.java
+6
-0
CompanyBaseMapper.xml
...le-server/src/main/resources/mapper/CompanyBaseMapper.xml
+1
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
View file @
77252a0f
...
@@ -116,6 +116,34 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
...
@@ -116,6 +116,34 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
//临时数据同步3
public
ObjectRestResponse
synchro3
(){
List
<
BranchCompanyStockInfo
>
list
=
stockInfoMapper
.
selectAll
();
if
(
list
.
size
()>
0
){
int
num
=
0
;
for
(
BranchCompanyStockInfo
companyStockInfo:
list
){
Integer
id
=
companyStockInfo
.
getId
();
Integer
balance
=
companyStockInfo
.
getBalance
();
Integer
total
=
companyStockInfo
.
getTotal
();
BigDecimal
price
=
companyStockInfo
.
getPrice
();
Integer
state
=
companyStockInfo
.
getState
();
BranchCompanyStockRight
branchCompanyStockRight
=
stockRightBiz
.
selectById
(
id
);
if
(
branchCompanyStockRight
!=
null
){
branchCompanyStockRight
=
new
BranchCompanyStockRight
();
branchCompanyStockRight
.
setId
(
id
);
branchCompanyStockRight
.
setBalance
(
balance
);
branchCompanyStockRight
.
setStockState
(
state
);
branchCompanyStockRight
.
setTotal
(
total
);
branchCompanyStockRight
.
setPrice
(
price
);
stockRightBiz
.
updateSelectiveById
(
branchCompanyStockRight
);
num
++;
}
log
.
info
(
"----成功---num=="
+
num
+
"---id==="
+
id
);
}
}
return
ObjectRestResponse
.
succ
();
}
//设置基础信息
//设置基础信息
public
ObjectRestResponse
updCompany
(
CompanyVo
companyVo
){
public
ObjectRestResponse
updCompany
(
CompanyVo
companyVo
){
if
(
companyVo
==
null
||
StringUtils
.
isBlank
(
companyVo
.
getCompanyName
())||
StringUtils
.
isBlank
(
companyVo
.
getName
())||
if
(
companyVo
==
null
||
StringUtils
.
isBlank
(
companyVo
.
getCompanyName
())||
StringUtils
.
isBlank
(
companyVo
.
getName
())||
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/CompanyController.java
View file @
77252a0f
...
@@ -31,6 +31,12 @@ public class CompanyController extends BaseController<CompanyBaseBiz> {
...
@@ -31,6 +31,12 @@ public class CompanyController extends BaseController<CompanyBaseBiz> {
return
baseBiz
.
synchro2
();
return
baseBiz
.
synchro2
();
}
}
@ApiOperation
(
"同步股权3"
)
@PostMapping
(
"synchro3"
)
public
ObjectRestResponse
<
String
>
synchro3
()
{
return
baseBiz
.
synchro3
();
}
@ApiOperation
(
"查询公司列表"
)
@ApiOperation
(
"查询公司列表"
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/CompanyBaseMapper.xml
View file @
77252a0f
...
@@ -53,6 +53,6 @@
...
@@ -53,6 +53,6 @@
and (b.`name` like CONCAT('%',#{name},'%') or c.`name` like CONCAT('%',#{name},'%') )
and (b.`name` like CONCAT('%',#{name},'%') or c.`name` like CONCAT('%',#{name},'%') )
</if>
</if>
</where>
</where>
order by b.
id
desc
order by b.
upd_time
desc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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