|
@@ -359,13 +359,15 @@ public class BwMeterReadPlanController extends BaseController {
|
|
|
|
|
|
Date dtEnd = new Date();
|
|
|
|
|
|
- long secNum = DateUtils.getSecond(dtBegin, dtEnd);
|
|
|
+ double secNum = DateUtils.getSecond(dtBegin, dtEnd);
|
|
|
+
|
|
|
+ String strSecNum = String.format("%.2f", secNum);
|
|
|
|
|
|
String strMsg = "";
|
|
|
if (intSuccessNum == 0) {
|
|
|
- strMsg = MessageFormat.format("算费失败:已算费0条抄表记录!共耗时{0}秒!", secNum);
|
|
|
+ strMsg = MessageFormat.format("算费失败:已算费0条抄表记录!共耗时{0}秒!", strSecNum);
|
|
|
} else {
|
|
|
- strMsg = MessageFormat.format("算费成功:成功算费{0}个用户,共耗时{1}秒!", intSuccessNum, secNum);
|
|
|
+ strMsg = MessageFormat.format("算费成功:成功算费{0}个用户,共耗时{1}秒!", intSuccessNum, strSecNum);
|
|
|
}
|
|
|
LogHelper.excuteCustom(BwMeterReadPlan.class, "抄表算费:按选中抄表册", strMsg);
|
|
|
return (intSuccessNum == 0) ? ResultRespone.failed(false, strMsg) : ResultRespone.success(true, strMsg);
|