skyouc
3 天以前 722f10d570f29cd6f6d9945bb0ee32844b4a802f
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/Loc.java
@@ -5,6 +5,7 @@
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vincent.rsf.framework.common.Cools;
import com.vincent.rsf.framework.common.SpringUtils;
import com.vincent.rsf.server.manager.service.BasContainerService;
import com.vincent.rsf.server.manager.service.LocTypeService;
import com.vincent.rsf.server.manager.service.WarehouseAreasService;
import com.vincent.rsf.server.manager.service.WarehouseService;
@@ -21,6 +22,7 @@
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
@Data
@@ -304,6 +306,23 @@
        return StringUtils.join(strings, ",");
    }
    public String getIsHalf$() {
        if (!Objects.isNull(this.barcode)) {
            BasContainerService basContainerService = SpringUtils.getBean(BasContainerService.class);
            BasContainer container = basContainerService.getOne(new LambdaQueryWrapper<BasContainer>().eq(BasContainer::getCode, this.barcode));
            if (!Objects.isNull(container)) {
                if (container.getIsHalf().equals("0")) {
                    return "整箱";
                } else {
                    return "半箱";
                }
            }
        }
        return null;
    }
    public String getUseStatus$(){
        if (null == this.useStatus){ return null; }
        switch (this.useStatus){