|
@@ -133,7 +133,7 @@ public interface MsReportMapper extends BaseMapper<MsReport> {
|
|
|
"union\n" +
|
|
|
"select * from ms_report where report_status=1 and report_date=date_sub(curdate(),interval 2 day) and user_create=#{userId}\n" +
|
|
|
"union\n" +
|
|
|
- "select * from ms_report where report_status=1 and report_date=curdate() and user_create=#{userId}")
|
|
|
+ "select * from ms_report where report_status=1 and report_date=date_sub(curdate(),interval 3 day) and user_create=#{userId}")
|
|
|
List<MsReport> selectMsReportLate(@Param("userId") Long userId);
|
|
|
|
|
|
/**
|
|
@@ -147,7 +147,7 @@ public interface MsReportMapper extends BaseMapper<MsReport> {
|
|
|
|
|
|
@Select("select * from (select * from ms_report where report_status=1 and report_date=date_sub(curdate(),interval 1 day) and user_create=#{userId}\n" +
|
|
|
"union select * from ms_report where report_status=1 and report_date=date_sub(curdate(),interval 2 day) and user_create=#{userId}\n" +
|
|
|
- "union select * from ms_report where report_status=1 and report_date=curdate() and user_create=#{userId}) aa where aa.ms_status = 2")
|
|
|
+ "union select * from ms_report where report_status=1 and date_sub(curdate(),interval 3 day) and user_create=#{userId}) aa where aa.ms_status = 2")
|
|
|
List<MsReport> selectMsReportThereError(@Param("userId") Long userId);
|
|
|
|
|
|
/**
|