jiazx0107
2026-01-05 2fcf73e5783a7a06dd4d4e6f412b9f759a7230c1
fzzy-igdss-core/src/main/java/com/fzzy/igds/service/CoreDeptService.java
@@ -48,12 +48,12 @@
        }
        if (Constant.USER_TYPE_20.equals(user.getUserType())) {
            //银行用户,根据合同查询银行下所有库区
            return this.getDeptByContract(user.getUserData());
            return this.getDeptByBank(user.getUserData());
        }
        if (Constant.USER_TYPE_30.equals(user.getUserType())) {
            //库区用户
            String deptId = user.getDeptId() + "";
            if(deptId.length() > 7){
            if(ContextUtil.isDepotUser(deptId)){
                //查询用户所属库区
                return this.listDept(deptId,null,null);
            }else {
@@ -66,15 +66,13 @@
    /**
     * 根据银行id,关联合同表查询库区列表
     * @param bankId
     * @param bankId 银行号
     * @return
     */
    public List<Dept> getDeptByContract(String bankId) {
    public List<Dept> getDeptByBank(String bankId) {
        if (StringUtils.isBlank(bankId)){
            return null;
        }
        QueryWrapper<PledgeContract> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("c.pledge_bank", bankId);