Lius
2025-08-22 d74ad3fdaf67038cecfcadc5cb1800985224a2a6
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
@@ -565,6 +565,9 @@
                    sysUserExcel.setSalt(salt);
                    String passwordEncode = PasswordUtil.encrypt(sysUserExcel.getUsername(), sysUserExcel.getPassword(), salt);
                    sysUserExcel.setPassword(passwordEncode);
                    sysUserExcel.setDelFlag(CommonConstant.DEL_FLAG_0);
                    sysUserExcel.setPasswordFlag(CommonConstant.DEL_FLAG_1);
                    sysUserExcel.setPasswordTime(new Date());
                    try {
                        sysUserService.save(sysUserExcel);
                        successLines++;
@@ -599,6 +602,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) {