update 企业来款统计-分类统计
This commit is contained in:
+22
-14
@@ -304,9 +304,11 @@ public class CompanyComeMoneyStatisticsController {
|
|||||||
//获得单一年数据
|
//获得单一年数据
|
||||||
List<CompanyComeMoneyClassificationList> dataList = yearKeyMap.get(yearKey);
|
List<CompanyComeMoneyClassificationList> dataList = yearKeyMap.get(yearKey);
|
||||||
BigDecimal bigDecimal = new BigDecimal("0.00");
|
BigDecimal bigDecimal = new BigDecimal("0.00");
|
||||||
for (CompanyComeMoneyClassificationList list1 : dataList) {
|
if (dataList != null){
|
||||||
String allMoney = list1.getAllMoney();
|
for (CompanyComeMoneyClassificationList list1 : dataList) {
|
||||||
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
String allMoney = list1.getAllMoney();
|
||||||
|
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
lm.put(yearKey, bigDecimal.toString());
|
lm.put(yearKey, bigDecimal.toString());
|
||||||
String allStr = allMap.get(yearKey);
|
String allStr = allMap.get(yearKey);
|
||||||
@@ -319,10 +321,12 @@ public class CompanyComeMoneyStatisticsController {
|
|||||||
for (DictModel dictModel : dictModels) {
|
for (DictModel dictModel : dictModels) {
|
||||||
BigDecimal bigDecimal = new BigDecimal("0.00");
|
BigDecimal bigDecimal = new BigDecimal("0.00");
|
||||||
String value = dictModel.getValue();
|
String value = dictModel.getValue();
|
||||||
for (CompanyComeMoneyClassificationList list2 : dataList) {
|
if (dataList != null){
|
||||||
if (list2.getChargeUse().equals(value)) {
|
for (CompanyComeMoneyClassificationList list2 : dataList) {
|
||||||
String allMoney = list2.getAllMoney();
|
if (list2.getChargeUse().equals(value)) {
|
||||||
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
String allMoney = list2.getAllMoney();
|
||||||
|
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String key = yearKey + "_" + value;
|
String key = yearKey + "_" + value;
|
||||||
@@ -413,9 +417,11 @@ public class CompanyComeMoneyStatisticsController {
|
|||||||
//获得单一年数据
|
//获得单一年数据
|
||||||
List<CompanyComeMoneyClassificationList> dataList = yearKeyMap.get(yearKey);
|
List<CompanyComeMoneyClassificationList> dataList = yearKeyMap.get(yearKey);
|
||||||
BigDecimal bigDecimal = new BigDecimal("0.00");
|
BigDecimal bigDecimal = new BigDecimal("0.00");
|
||||||
for (CompanyComeMoneyClassificationList list1 : dataList) {
|
if (dataList != null){
|
||||||
String allMoney = list1.getAllMoney();
|
for (CompanyComeMoneyClassificationList list1 : dataList) {
|
||||||
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
String allMoney = list1.getAllMoney();
|
||||||
|
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
lm.put("je_"+yearKey, bigDecimal.toString());
|
lm.put("je_"+yearKey, bigDecimal.toString());
|
||||||
}
|
}
|
||||||
@@ -425,10 +431,12 @@ public class CompanyComeMoneyStatisticsController {
|
|||||||
for (DictModel dictModel : dictModels) {
|
for (DictModel dictModel : dictModels) {
|
||||||
BigDecimal bigDecimal = new BigDecimal("0.00");
|
BigDecimal bigDecimal = new BigDecimal("0.00");
|
||||||
String value = dictModel.getValue();
|
String value = dictModel.getValue();
|
||||||
for (CompanyComeMoneyClassificationList list2 : dataList) {
|
if (dataList != null){
|
||||||
if (list2.getChargeUse().equals(value)) {
|
for (CompanyComeMoneyClassificationList list2 : dataList) {
|
||||||
String allMoney = list2.getAllMoney();
|
if (list2.getChargeUse().equals(value)) {
|
||||||
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
String allMoney = list2.getAllMoney();
|
||||||
|
bigDecimal = bigDecimal.add(new BigDecimal(allMoney));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lm.put("je_"+yearKey+"_"+value, bigDecimal.toString());
|
lm.put("je_"+yearKey+"_"+value, bigDecimal.toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user