fix: 日常支出统计bug修复。
This commit is contained in:
@@ -2566,7 +2566,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
|||||||
else if("2".equals(analysisDto.getType())){
|
else if("2".equals(analysisDto.getType())){
|
||||||
//月列表
|
//月列表
|
||||||
List <String> staticsTimeList=new ArrayList<>();
|
List <String> staticsTimeList=new ArrayList<>();
|
||||||
for (AccountsDealRecordVo vo:accountsDealRecordVoList
|
for (AccountsDealRecordVo vo:accountsDateList
|
||||||
) {
|
) {
|
||||||
String monthString=vo.getDateStr().substring(0,7);
|
String monthString=vo.getDateStr().substring(0,7);
|
||||||
if(!staticsTimeList.contains(monthString)){
|
if(!staticsTimeList.contains(monthString)){
|
||||||
@@ -2576,7 +2576,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
|||||||
for (String staticsTime :staticsTimeList
|
for (String staticsTime :staticsTimeList
|
||||||
) {
|
) {
|
||||||
double actualCreditBillMonth=0;
|
double actualCreditBillMonth=0;
|
||||||
for (AccountsDealRecordVo vo:accountsDealRecordVoList
|
for (AccountsDealRecordVo vo:accountsDateList
|
||||||
) {
|
) {
|
||||||
String monthString=vo.getDateStr().substring(0,7);
|
String monthString=vo.getDateStr().substring(0,7);
|
||||||
if(staticsTime.equals(monthString)){
|
if(staticsTime.equals(monthString)){
|
||||||
@@ -2592,7 +2592,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
|||||||
//年查询
|
//年查询
|
||||||
}else if("3".equals(analysisDto.getType())){
|
}else if("3".equals(analysisDto.getType())){
|
||||||
List <String> staticsTimeList=new ArrayList<>();
|
List <String> staticsTimeList=new ArrayList<>();
|
||||||
for (AccountsDealRecordVo vo:accountsDealRecordVoList
|
for (AccountsDealRecordVo vo:accountsDateList
|
||||||
) {
|
) {
|
||||||
String yearString=vo.getDateStr().substring(0,4);
|
String yearString=vo.getDateStr().substring(0,4);
|
||||||
|
|
||||||
@@ -2604,7 +2604,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
|||||||
for (String staticsTime :staticsTimeList
|
for (String staticsTime :staticsTimeList
|
||||||
) {
|
) {
|
||||||
double actualCreditBillYear=0;
|
double actualCreditBillYear=0;
|
||||||
for (AccountsDealRecordVo vo:accountsDealRecordVoList
|
for (AccountsDealRecordVo vo:accountsDateList
|
||||||
) {
|
) {
|
||||||
String yearString=vo.getDateStr().substring(0,4);
|
String yearString=vo.getDateStr().substring(0,4);
|
||||||
if(staticsTime.equals(yearString)){
|
if(staticsTime.equals(yearString)){
|
||||||
|
|||||||
Reference in New Issue
Block a user