From a52b623f1e592f8c31a864226e09bafc0ed12f34 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 08 七月 2022 11:17:51 +0800
Subject: [PATCH] 优化 代码
---
service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeBreakdownDetailCmd.java | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeBreakdownDetailCmd.java b/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeBreakdownDetailCmd.java
index c7ef5ff..4f76280 100644
--- a/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeBreakdownDetailCmd.java
+++ b/service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeBreakdownDetailCmd.java
@@ -10,6 +10,7 @@
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.BeanConvertUtil;
+import com.java110.utils.util.DateUtil;
import com.java110.utils.util.StringUtil;
import com.java110.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
@@ -36,6 +37,10 @@
@Override
public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException {
ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto = BeanConvertUtil.covertBean(reqJson, ReportFeeMonthStatisticsDto.class);
+ if(StringUtil.isEmpty(reportFeeMonthStatisticsDto.getYearMonth())){
+ reportFeeMonthStatisticsDto.setFeeYear(DateUtil.getYear()+"");
+ reportFeeMonthStatisticsDto.setFeeMonth(DateUtil.getMonth()+"");
+ }
if (!StringUtil.isEmpty(reportFeeMonthStatisticsDto.getStartTime())) {
reportFeeMonthStatisticsDto.setStartTime(reportFeeMonthStatisticsDto.getStartTime() + " 00:00:00");
}
--
Gitblit v1.8.0