自动化立体仓库 - WMS系统
lty
2025-05-22 5c6693c727d37f2c64c7ecded5a7d96b28eacf2e
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -166,6 +166,7 @@
    @TableField("out_order_no")
    private String outOrderNo;
    /**
     * 炉号\客户图号
     */
@@ -292,13 +293,16 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public long getStoreDate(){
        long timeNow = new Date().getTime();
    public Long getStoreDate() {
        if (this.appeTime == null) {
            return null;  // 或者返回 -1L、0L,看你的业务逻辑
        }
        long timeNow = System.currentTimeMillis();
        long timeCreate = this.appeTime.getTime();
        return (timeNow - timeCreate) /24/60/60/1000;
        return (timeNow - timeCreate) / (24 * 60 * 60 * 1000);
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }