Исправил ошибку(необходимо реализовать новую логику с CompanyId из ТЗ).
This commit is contained in:
parent
0fb88db608
commit
67c0599284
1 changed files with 2 additions and 6 deletions
|
|
@ -24,12 +24,8 @@ public class ISchedulerChecker {
|
|||
* @param isWeekend тек.день=СБ-ВС<br>
|
||||
*/
|
||||
public static boolean isWorkDayByTradingCalendar(ClearingCalendar clearingCalendar, boolean isWeekend) {
|
||||
if (clearingCalendar.getDayStatus() != null && clearingCalendar.getDayStatus().equalsIgnoreCase(DayStatus.Workday.getKey())) {
|
||||
if (isWeekend) {
|
||||
return clearingCalendar.getCompanyId() != null && clearingCalendar.getCompanyId() != 0;
|
||||
} else return true;
|
||||
}
|
||||
return false;
|
||||
return clearingCalendar.getDayStatus() != null
|
||||
&& clearingCalendar.getDayStatus().equalsIgnoreCase(DayStatus.Workday.getKey());
|
||||
}
|
||||
|
||||
public static boolean isWorkDayByTradingCalendar(ClearingCalendar clearingCalendar) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue