Commit 09ebb824 by 田超

Merge branch 'feature/1003881-1' into 'master'

feat: [none] 报告为生成时,直接返回

See merge request rays/pcloud-book!1122
parents 993caaa9 4c479f3a
......@@ -109,7 +109,12 @@ public class AppletRecordStatisReportBizImpl implements AppletRecordStatisReport
Date sunday = DateUtils.addDay(monday, 6);
Date thisMonday = DateUtils.addDay(DateUtils.getWeekStart(new Date()), 1);
if(monday.compareTo(thisMonday) > -1 || monday.compareTo(AppletConstants.APPLET_RECORD_STATIS_REPORT_START_DATE) == -1){
throw new BizException(BizException.PARAM_IS_NULL.getCode(), "未找到该周的报告");
AppletRecordStatisReport report = new AppletRecordStatisReport();
report.setBeginDate(monday);
report.setEndDate(sunday);
report.setScore(BigDecimal.ZERO);
return report;
// throw new BizException(BizException.PARAM_IS_NULL.getCode(), "未找到该周的报告");
}
// 直接获取本周分数结果
AppletRecordStatisReport thisWeekReport = appletRecordStatisReportDao.getByWechatUserId(wechatUserId, monday);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment