Lius
2024-10-21 316ef1bf39d16a29c27fe26393e704c1d0b963f9
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/service/impl/MdcProductionServiceImpl.java
@@ -129,8 +129,8 @@
            // 获取父级ID
            String parentId = mdcProduction.getParentId();
            JSONObject formData = new JSONObject();
            formData.put("parentId",parentId);
            String[] codeArray = (String[]) FillRuleUtil.executeRule(FillRuleConstant.PRODUCTION,formData);
            formData.put("parentId", parentId);
            String[] codeArray = (String[]) FillRuleUtil.executeRule(FillRuleConstant.PRODUCTION, formData);
            mdcProduction.setOrgCode(codeArray[0]);
            String orgType = codeArray[1];
            mdcProduction.setOrgType(String.valueOf(orgType));
@@ -226,6 +226,7 @@
    /**
     * 根据用户id和车间id获取用户拥有的车间id
     *
     * @param userId
     * @param productionId
     * @return
@@ -243,6 +244,11 @@
        return this.baseMapper.findThreeProductionId(userId);
    }
    @Override
    public List<MdcProduction> productionList() {
        return this.baseMapper.selectList(new LambdaQueryWrapper<MdcProduction>().eq(MdcProduction::getOrgType, "3").eq(MdcProduction::getDelFlag, CommonConstant.DEL_FLAG_0));
    }
    /**
     * delete 方法调用 递归查找子集id
     */