czt
2026-01-08 0ca73d619d01d8a7a73e0aa5ae1a45fb528a5e15
fzzy-igdss-web/src/main/java/com/fzzy/common/manager/CommonManager.java
@@ -21,6 +21,7 @@
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
@@ -126,6 +127,28 @@
    }
    /**
     * 根据仓库类型获取库区下仓库列表
     * @param deptId
     * @param depotTypes  类型多个,用逗号隔开
     * @return
     */
    public List<Depot> listAllDepot(String deptId, String depotTypes) {
        List<Depot> depots = this.listDepotByDeptId(deptId);
        if(null == depots || depots.isEmpty()){
            return null;
        }
        List<Depot> result = new ArrayList<>();
        for (Depot depot : depots) {
            if (depotTypes.contains(depot.getDepotType())) {
                result.add(depot);
            }
        }
        return result;
    }
    /**
     * @return
     */
    public List<SysDictData> getInoutType() {
@@ -134,13 +157,13 @@
    /**
     * 获取分库列表
     * 根据公司ID获取公司下的分库列表
     *
     * @author sgj
     * @date 2025/12/12
     */
    public List<Dept> listDeptData() {
        return coreDeptService.getDeptData();
    public List<Dept> listDeptData(String parentId) {
        return coreDeptService.getDeptByUserType(parentId);
    }
    /**