Commit b5a412d8 by 王璐琦

fix(dailyreport): 修正日报状态过滤及默认值设置

- 在DailyReportRecordController中设置日报状态为已提交
- 在DailyReportRecordService中添加日报状态过滤条件
- 确保查询时根据状态正确筛选日报记录
1 parent 7ffc0d30
......@@ -593,6 +593,7 @@ public class DailyReportRecordService {
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue())
.andEqualTo("merchantId", dailyReportRecordDTO.getMerchantId())
.andEqualTo("templateType", dailyReportRecordDTO.getTemplateType())
.andEqualTo("reportStatus", dailyReportRecordDTO.getReportStatus())
.andBetween("reportDate", dailyReportRecordDTO.getReportStartDate(), dailyReportRecordDTO.getReportEndDate());
// 门店日报不按个人维度过滤
if (!Objects.equals(DailyReportTemplateTypeEnum.MERCHANT_DAILY_REPORT.getValue(), dailyReportRecordDTO.getTemplateType())) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!