1
zj
2026-06-06 16f5baf41e3224ccb43fce45de968833f9f022d2
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");