Lius
2025-05-15 5d5675fd6b6521c3d3e5887017a090c60897f6cd
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
@@ -661,7 +661,17 @@
                        }
                        sysUserDepartService.saveBatch(userDepartList);
                    }
                    // 批量将产线和用户信息建立关联关系
                    String productionIds = sysUserExcel.getProductionIds();
                    if (StringUtils.isNotBlank(productionIds)) {
                        String userId = sysUserExcel.getId();
                        String[] productionIdArray = productionIds.split(",");
                        List<MdcUserProduction> userProductionList = new ArrayList<>(productionIdArray.length);
                        for (String productionId : productionIdArray) {
                            userProductionList.add(new MdcUserProduction(userId, productionId));
                        }
                        userProductionService.saveBatch(userProductionList);
                    }
                }
            } catch (Exception e) {
                errorMessage.add("发生异常:" + e.getMessage());