private boolean checkTradeDay(NotTradeDay paramNotTradeDay, Date paramDate) { if (paramNotTradeDay != null) { List localList1 = paramNotTradeDay.getWeekList(); int i = DateUtil.getWeekDay(paramDate); if (localList1.contains(String.valueOf(i))) { return false; } List localList2 = paramNotTradeDay.getDayList(); if (localList2.contains(DateUtil.convertDateToString(paramDate))) { return false; } } return true; }
private void setTradeTimeStatus(TradeTime paramTradeTime, Date paramDate, Map paramMap) { Map localMap = (Map) paramMap.get(Integer.valueOf(DateUtil.getWeekDay(paramDate))); if (localMap == null) { paramTradeTime.setStatus(Short.valueOf((short) 0)); } else { Short localShort = (Short) localMap.get(paramTradeTime.getSectionID()); if (localShort == null) { paramTradeTime.setStatus(Short.valueOf((short) 0)); } else { int i = localShort.shortValue(); if (i == 0) { paramTradeTime.setStatus(Short.valueOf((short) 1)); } else { paramTradeTime.setStatus(Short.valueOf((short) 0)); } } } }