自动化立体仓库 - WMS系统
#
whycq
2023-10-07 ec7342d38bb1ca9f5b4e08f4901aa10a3b8d7265
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -4,6 +4,7 @@
import com.baomidou.mybatisplus.annotations.TableName;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.LocOwnerService;
import com.zy.common.utils.Synchro;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
@@ -16,7 +17,7 @@
@Data
@TableName("asr_wrk_detl")
public class WrkDetl implements Serializable {
public class WrkDetl implements Serializable, Cloneable {
    private static final long serialVersionUID = 1L;
@@ -303,6 +304,16 @@
        }
    }
    public String getOwner$(){
        LocOwnerService service = SpringUtils.getBean(LocOwnerService.class);
        LocOwner locOwner = service.selectById(this.owner);
        if (!Cools.isEmpty(locOwner)){
            return String.valueOf(locOwner.getOwner());
        }
        return null;
    }
    public String getSource$(){
        if (null == this.source){ return null; }
        switch (this.source){
@@ -393,4 +404,15 @@
        }
    }
    @Override
    public WrkDetl clone() {
        try {
            return (WrkDetl) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}