|
@@ -138,7 +138,7 @@ public class PayChargeSurveyServiceImpl implements PayChargeSurveyService {
|
|
|
Integer sumLastMeter = accountSurvey != null && accountSurvey.getMeterNumber() != null ? accountSurvey.getMeterNumber() :0;
|
|
|
//水表总数较上月比率
|
|
|
String lastMeterRate = "0.0";
|
|
|
- info = this.calculationRate(sumCurrentMeter,sumLastMeter);
|
|
|
+ info = this.calculationRate(sumMeter,sumLastMeter);
|
|
|
num =info.getCount();
|
|
|
Integer lastMeterIsUp = info.getIsUp();
|
|
|
//截取字符串
|
|
@@ -157,7 +157,7 @@ public class PayChargeSurveyServiceImpl implements PayChargeSurveyService {
|
|
|
Integer sumLastCustomer = accountSurvey != null && accountSurvey.getCustomerNumber() != null ? accountSurvey.getCustomerNumber() : 0;
|
|
|
//水表总数较上月比率
|
|
|
String lastCusstomerRate = "0.0";
|
|
|
- info = this.calculationRate(sumCurrentCustomer,sumLastCustomer);
|
|
|
+ info = this.calculationRate(sumCustomer,sumLastCustomer);
|
|
|
num =info.getCount();
|
|
|
Integer lastCustomerIsUp = info.getIsUp();
|
|
|
//截取字符串
|
|
@@ -724,7 +724,7 @@ public class PayChargeSurveyServiceImpl implements PayChargeSurveyService {
|
|
|
}else{
|
|
|
num =((float)(currentAmount - lastAmount)/(lastAmount != null && lastAmount != 0 ? lastAmount : 1)*100);
|
|
|
lastIncomeRate = df.format(num);
|
|
|
- Integer lastCustomerIsUp = num > 0 ? 1 : 0;
|
|
|
+ lastIncomeIsUp = num > 0 ? 1 : 0;
|
|
|
//截取字符串
|
|
|
lastIncomeRate = lastIncomeRate.contains("-") ? lastIncomeRate.split("-")[1] : lastIncomeRate;
|
|
|
}
|