Browse Source

修复添加学校时处理教师模块

tags/正式3.10.0
王宁 1 year ago
parent
commit
c07aaa7c42

+ 0
- 2
sapi/src/main/java/com/xhkjedu/sapi/model/system/TModule.java View File

30
     //所属父模块id
30
     //所属父模块id
31
     private String modulepid;
31
     private String modulepid;
32
 
32
 
33
-    private Integer moduletype;//模块归属1教师网页2学生网页3学生平板
34
-
35
     //模块归属:1教师 2学生
33
     //模块归属:1教师 2学生
36
     private Integer belong;
34
     private Integer belong;
37
 
35
 

+ 2
- 1
sapi/src/main/java/com/xhkjedu/sapi/service/system/SchoolService.java View File

181
         moduleList.add(module);
181
         moduleList.add(module);
182
         saveModuleChild(schoolid, userid, module, roleModules, moduleList, roleid);
182
         saveModuleChild(schoolid, userid, module, roleModules, moduleList, roleid);
183
 
183
 
184
-        if (module.getModuletype() == 1) {
184
+        if (module.getBelong() == 1) {
185
             //角色模块信息
185
             //角色模块信息
186
             TRoleModule roleModule = new TRoleModule();
186
             TRoleModule roleModule = new TRoleModule();
187
             roleModule.setRoleid(roleid);
187
             roleModule.setRoleid(roleid);
189
             roleModule.setCreateid(userid);
189
             roleModule.setCreateid(userid);
190
             roleModule.setCreatetime(N_Utils.getSecondTimestamp());
190
             roleModule.setCreatetime(N_Utils.getSecondTimestamp());
191
             roleModule.setSchoolid(schoolid);
191
             roleModule.setSchoolid(schoolid);
192
+            roleModule.setBelongcode(module.getBelongcode());
192
             roleModules.add(roleModule);
193
             roleModules.add(roleModule);
193
         }
194
         }
194
     }
195
     }

Loading…
Cancel
Save