From 4231d1f8535d762d987d197d4027397511947880 Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Thu, 15 Apr 2021 14:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8C=E7=AB=99=E4=BF=AE=E5=A4=8D=E5=91=98?= =?UTF-8?q?=E5=B7=A5=E5=AF=BC=E5=85=A5=E6=9E=B6=E6=9E=84=E6=9D=83=E9=99=90?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/msdw/tms/service/impl/SystemSettingServiceImpl.java | 4 ++-- src/main/resources/mapper/tms/SystemSetting.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java b/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java index 3229994..c573743 100644 --- a/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java +++ b/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java @@ -616,7 +616,7 @@ public class SystemSettingServiceImpl implements SystemSetttingService { if (Integer.parseInt(str) == 13) {//2 Integer organizationId = systemSetttingDao.queryDepartmentNameOrganization(staffVo.getStaffProfessionalArchitectureName(), ConstantUtils.Keda_schoolId); Integer gradeId = systemSetttingDao.queryDepartmentNameGrade(staffVo.getStaffGradeName(), organizationId); - staffVo.setStaffGradeId(gradeId).setStaffProfessionalArchitectureId(organizationId); + staffVo.setStaffGradeId(gradeId).setStaffProfessionalArchitectureId(organizationId).setRoleId("13"); boolean b = systemSetttingDao.addStaffManager(staffVo); if (!b) { throw new RuntimeException(); @@ -624,7 +624,7 @@ public class SystemSettingServiceImpl implements SystemSetttingService { } else if (Integer.parseInt(str) == 14) {//3 Integer organizationId = systemSetttingDao.queryDepartmentNameOrganization(staffVo.getStaffProfessionalArchitectureNameTwo(), ConstantUtils.Keda_schoolId); Integer gradeId = systemSetttingDao.queryDepartmentNameGrade(staffVo.getStaffGradeNameTwo(), organizationId); - staffVo.setStaffGradeId(gradeId).setStaffProfessionalArchitectureId(organizationId); + staffVo.setStaffGradeId(gradeId).setStaffProfessionalArchitectureId(organizationId).setRoleId("14"); boolean b = systemSetttingDao.addStaffTeacher(staffVo); if (!b) { throw new RuntimeException(); diff --git a/src/main/resources/mapper/tms/SystemSetting.xml b/src/main/resources/mapper/tms/SystemSetting.xml index 86f6802..f8e760c 100644 --- a/src/main/resources/mapper/tms/SystemSetting.xml +++ b/src/main/resources/mapper/tms/SystemSetting.xml @@ -25,12 +25,12 @@ INSERT INTO staff (userId,schoolId,workNumber,staffGradeId,staffProfessionalArchitectureId,staffGradeName,staffProfessionalArchitectureName,platformId,roleId) VALUES - (#{userId},#{schoolId},#{workNumber},#{staffGradeId},#{staffProfessionalArchitectureId},#{staffGradeName},#{staffProfessionalArchitectureName},#{platformId},2) + (#{userId},#{schoolId},#{workNumber},#{staffGradeId},#{staffProfessionalArchitectureId},#{staffGradeName},#{staffProfessionalArchitectureName},#{platformId},#{roleId}) INSERT INTO staff (userId,schoolId,workNumber,staffGradeId,staffProfessionalArchitectureId,staffGradeName,staffProfessionalArchitectureName,platformId,roleId) VALUES - (#{userId},#{schoolId},#{workNumber},#{staffGradeId},#{staffProfessionalArchitectureId},#{staffGradeNameTwo},#{staffProfessionalArchitectureNameTwo},#{platformId},3) + (#{userId},#{schoolId},#{workNumber},#{staffGradeId},#{staffProfessionalArchitectureId},#{staffGradeNameTwo},#{staffProfessionalArchitectureNameTwo},#{platformId},#{roleId}) INSERT INTO staff (userId,schoolId,workNumber,staffGradeId,staffProfessionalArchitectureId,staffGradeName,staffProfessionalArchitectureName,platformId,roleId)