1
zj
9 days ago 1f19b78818609bf6d0849f8e58b349132a800538
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");