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
fc648dcc
Commit
fc648dcc
authored
May 08, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改导入股份
parent
63b15ba3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
BranchCompanyStockService.java
...aravan/caravan/vehicle/biz/BranchCompanyStockService.java
+5
-5
BranchCompanyStockInfoMapper.xml
...rc/main/resources/mapper/BranchCompanyStockInfoMapper.xml
+5
-8
No files found.
vehicle/src/main/java/com/xinxincaravan/caravan/vehicle/biz/BranchCompanyStockService.java
View file @
fc648dcc
...
...
@@ -265,8 +265,8 @@ public class BranchCompanyStockService {
}
BigDecimal
price
=
new
BigDecimal
(
str6
);
price
=
price
.
multiply
(
new
BigDecimal
(
"10000"
));
Integer
balance
=
Integer
.
parseInt
(
str
[
7
]);
Integer
total
=
Integer
.
parseInt
(
str
[
8
])+
balance
;
Integer
balance
=
Integer
.
parseInt
(
str
[
8
]);
Integer
total
=
Integer
.
parseInt
(
str
[
7
])+
balance
;
stockInfoVo
.
setCompanyName
(
company_name
);
stockInfoVo
.
setPrice
(
price
);
stockInfoVo
.
setBalance
(
balance
);
...
...
@@ -274,11 +274,11 @@ public class BranchCompanyStockService {
stockInfoVo
.
setState
(
2
);
stockInfoVo
.
setAddrProvince
(
addr_province
);
stockInfoVo
.
setAddrCity
(
addr_city
);
stockInfoVo
.
setCompanyPic
(
"
1
"
);
stockInfoVo
.
setCompanyPic
(
"
/2019-04-30/2.jpg
"
);
list
.
add
(
stockInfoVo
);
branchCompanyStockInfoMapper
.
insertSelective
(
stockInfoVo
);
//
branchCompanyStockInfoMapper.insertSelective(stockInfoVo);
}
//
branchCompanyStockInfoMapper.addCompamyList(list);
branchCompanyStockInfoMapper
.
addCompamyList
(
list
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
return
RestResponse
.
codeAndMessage
(
10001
,
"网络异常!"
);
...
...
vehicle/src/main/resources/mapper/BranchCompanyStockInfoMapper.xml
View file @
fc648dcc
...
...
@@ -37,15 +37,12 @@
select distinct price from branch_company_stock_info order by price
</select>
<insert
id=
"addCompamyList"
>
<insert
id=
"addCompamyList"
parameterType=
"java.util.List"
>
insert into branch_company_stock_info (
balance,total,price,company_name,addr_province,addr_city,state,company_pic
) vaules
<foreach
collection =
"list"
item=
"item"
index=
"index"
separator =
","
>
(
#{item.balance},#{item.total},
#{item.price},#{item.companyName},#{item.companyPic},#{item.addrProvince},#{item.addrCity},#{item.companyPic}
)
</foreach >
) VALUES
<foreach
collection =
"list"
item=
"item"
index=
"index"
separator =
","
>
(#{item.balance},#{item.total},#{item.price},#{item.companyName},#{item.addrProvince},#{item.addrCity},#{item.state},#{item.companyPic})
</foreach>
</insert>
</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