cuilei
2025-06-03 05968d59354115ebd20736faee1127b187000e51
lxzn-module-tms/src/main/java/org/jeecg/modules/tms/service/impl/WarehouseServiceImpl.java
@@ -10,6 +10,7 @@
import org.jeecg.common.constant.CommonConstant;
import org.jeecg.common.util.StrUtils;
import org.jeecg.modules.tms.entity.Warehouse;
import org.jeecg.modules.tms.entity.vo.DictVo;
import org.jeecg.modules.tms.mapper.WarehouseMapper;
import org.jeecg.modules.tms.service.IWarehouseService;
import org.springframework.stereotype.Service;
@@ -30,7 +31,7 @@
    @Override
    public List<CommonGenericTree<Warehouse>> loadTree() {
        List<Warehouse> warehouseList = list(new LambdaQueryWrapper<Warehouse>()
                .eq(Warehouse::getStatus, CommonConstant.STATUS_1));
                .eq(Warehouse::getStatus, CommonConstant.STATUS_1).orderByAsc(Warehouse::getSeq));
        return loadTree(warehouseList);
    }
@@ -57,6 +58,11 @@
        return this.baseMapper.queryPageList(page, queryWrapper);
    }
    @Override
    public List<DictVo> queryWarehouseDictList() {
        return this.baseMapper.queryWarehouseDictList();
    }
    private List<CommonGenericTree<Warehouse>> loadTree(List<Warehouse> warehouseList) {
        Warehouse warehouse = new Warehouse();
        List<CommonGenericTree<Warehouse>> list = new ArrayList<>();