签到接口 临时处理为+3天
This commit is contained in:
parent
44d7941e50
commit
6a2af57fd3
@ -59,6 +59,8 @@ public class SignCheckInExe {
|
|||||||
|
|
||||||
int targetDayIndex = saudiToday.getDayOfWeek().getValue();
|
int targetDayIndex = saudiToday.getDayOfWeek().getValue();
|
||||||
|
|
||||||
|
targetDayIndex = targetDayIndex +3;
|
||||||
|
|
||||||
ResponseAssert.isTrue(OtherErrorCode.SIGN_IN_CANNOT_ADVANCE,
|
ResponseAssert.isTrue(OtherErrorCode.SIGN_IN_CANNOT_ADVANCE,
|
||||||
targetDayIndex >= 1);
|
targetDayIndex >= 1);
|
||||||
|
|
||||||
|
|||||||
@ -35,6 +35,8 @@ public class SignInStatusQueryExe {
|
|||||||
LocalDate weekStartDate = saudiToday.with(DayOfWeek.MONDAY);
|
LocalDate weekStartDate = saudiToday.with(DayOfWeek.MONDAY);
|
||||||
int currentDayIndex = saudiToday.getDayOfWeek().getValue();
|
int currentDayIndex = saudiToday.getDayOfWeek().getValue();
|
||||||
|
|
||||||
|
currentDayIndex = currentDayIndex + 3;
|
||||||
|
|
||||||
List<SignInDailyConfig> configs = dailyConfigDAO.selectList(
|
List<SignInDailyConfig> configs = dailyConfigDAO.selectList(
|
||||||
new LambdaQueryWrapper<SignInDailyConfig>()
|
new LambdaQueryWrapper<SignInDailyConfig>()
|
||||||
.orderByAsc(SignInDailyConfig::getDayIndex)
|
.orderByAsc(SignInDailyConfig::getDayIndex)
|
||||||
|
|||||||
@ -60,6 +60,8 @@ public class SupplementCheckInExe {
|
|||||||
LocalDate weekStartDate = saudiToday.with(DayOfWeek.MONDAY);
|
LocalDate weekStartDate = saudiToday.with(DayOfWeek.MONDAY);
|
||||||
int currentDayIndex = saudiToday.getDayOfWeek().getValue();
|
int currentDayIndex = saudiToday.getDayOfWeek().getValue();
|
||||||
|
|
||||||
|
currentDayIndex = currentDayIndex + 3;
|
||||||
|
|
||||||
ResponseAssert.isTrue(OtherErrorCode.SIGN_IN_SUPPLEMENT_ONLY_PAST,
|
ResponseAssert.isTrue(OtherErrorCode.SIGN_IN_SUPPLEMENT_ONLY_PAST,
|
||||||
targetDayIndex < currentDayIndex);
|
targetDayIndex < currentDayIndex);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user