1
zj
7 days ago 03fe4dca7008ea95b60058740e880f31fe5be6dd
src/main/java/com/nq/utils/DateTimeUtil.java
@@ -223,6 +223,14 @@
        }
    }
    /** T+1:买入当日不可卖出,下一交易日方可平仓 */
    public static boolean canSellByT1(Date buyDate) {
        if (buyDate == null) {
            return true;
        }
        return !sameDate(getCurrentDate(), buyDate);
    }
    /*日期年月日是否相同*/
    public static boolean sameDate(Date d1, Date d2) {
        SimpleDateFormat fmt = new SimpleDateFormat("yyyyMMdd");