Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
e50d3601
Commit
e50d3601
authored
Mar 21, 2018
by
季圣华
Browse files
解决账户统计的bug
parent
9201ad66
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/action/basic/AccountAction.java
View file @
e50d3601
...
@@ -439,8 +439,9 @@ public class AccountAction extends BaseAction<AccountModel>
...
@@ -439,8 +439,9 @@ public class AccountAction extends BaseAction<AccountModel>
for
(
AccountHead
accountHead:
dataList
){
for
(
AccountHead
accountHead:
dataList
){
ids
=
ids
+
accountHead
.
getId
()
+
","
;
ids
=
ids
+
accountHead
.
getId
()
+
","
;
}
}
ids
=
ids
.
substring
(
0
,
ids
.
length
()
-
1
);
if
(!
ids
.
equals
(
""
))
{
ids
=
ids
.
substring
(
0
,
ids
.
length
()
-
1
);
}
PageUtil
<
AccountItem
>
pageUtilOne
=
new
PageUtil
<
AccountItem
>();
PageUtil
<
AccountItem
>
pageUtilOne
=
new
PageUtil
<
AccountItem
>();
pageUtilOne
.
setPageSize
(
0
);
pageUtilOne
.
setPageSize
(
0
);
pageUtilOne
.
setCurPage
(
0
);
pageUtilOne
.
setCurPage
(
0
);
...
@@ -487,7 +488,7 @@ public class AccountAction extends BaseAction<AccountModel>
...
@@ -487,7 +488,7 @@ public class AccountAction extends BaseAction<AccountModel>
String
[]
amList
=
accountMoneyList
.
split
(
","
);
String
[]
amList
=
accountMoneyList
.
split
(
","
);
for
(
int
i
=
0
;
i
<
aList
.
length
;
i
++){
for
(
int
i
=
0
;
i
<
aList
.
length
;
i
++){
if
(
aList
[
i
].
toString
().
equals
(
id
.
toString
())){
if
(
aList
[
i
].
toString
().
equals
(
id
.
toString
())){
accountSum
=
accountSum
+
Integer
.
parseInt
(
amList
[
i
].
toString
());
accountSum
=
accountSum
+
Double
.
parseDouble
(
amList
[
i
].
toString
());
}
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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