自动化立体仓库 - WMS系统
1
zhang
2 天以前 40254eb1fc7ad9bef6e820c0ffc0cc5a63e9e53e
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -7,6 +7,7 @@
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.LocMastService;
import com.zy.asrs.task.OverYearLogScheduler;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
@@ -177,7 +178,9 @@
    }
    public String getBeBatch$(){
        if (null == this.beBatch){ return null; }
        if (null == this.beBatch) {
            return null;
        }
        switch (this.beBatch){
            case 1:
                return "是";
@@ -189,7 +192,9 @@
    }
    public String getSource$(){
        if (null == this.source){ return null; }
        if (null == this.source) {
            return null;
        }
        switch (this.source){
            case 1:
                return "制造";
@@ -203,7 +208,9 @@
    }
    public String getInspect$(){
        if (null == this.inspect){ return null; }
        if (null == this.inspect) {
            return null;
        }
        switch (this.inspect){
            case 1:
                return "是";
@@ -215,7 +222,9 @@
    }
    public String getDanger$(){
        if (null == this.danger){ return null; }
        if (null == this.danger) {
            return null;
        }
        switch (this.danger){
            case 1:
                return "是";
@@ -269,6 +278,16 @@
        return (timeNow - timeCreate) /24/60/60/1000;
    }
    public boolean getAlarmStatus() {
        if (Cools.isEmpty(this.appeTime)) {
            this.appeTime = new Date();
        }
        long timeNow = new Date().getTime();
        long timeCreate = this.appeTime.getTime();
        return OverYearLogScheduler.days > ((timeNow - timeCreate) / 24 / 60 / 60 / 1000);
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }