commit
This commit is contained in:
+2
-2
@@ -491,14 +491,14 @@ public class TeacherCongressDelegateManageController {
|
|||||||
for (Teacher_congress_delegate delegate : delegateList) {
|
for (Teacher_congress_delegate delegate : delegateList) {
|
||||||
Teacher_congress_delegation_unit delegation_unit = dao.fetch(Teacher_congress_delegation_unit.class,
|
Teacher_congress_delegation_unit delegation_unit = dao.fetch(Teacher_congress_delegation_unit.class,
|
||||||
Cnd.where(Teacher_congress_delegation_unit::getUnitId, "=", delegate.getUnitId())
|
Cnd.where(Teacher_congress_delegation_unit::getUnitId, "=", delegate.getUnitId())
|
||||||
.and(Teacher_congress_delegation_union::getSessionId, "=", sessionId));
|
.and(Teacher_congress_delegation_unit::getSessionId, "=", sessionId));
|
||||||
if (ObjectUtil.isNotEmpty(delegation_unit)) {
|
if (ObjectUtil.isNotEmpty(delegation_unit)) {
|
||||||
delegate.setDelegationId(delegation_unit.getDelegationId());
|
delegate.setDelegationId(delegation_unit.getDelegationId());
|
||||||
dao.update(delegate);
|
dao.update(delegate);
|
||||||
Sys_user_role userRole = new Sys_user_role();
|
Sys_user_role userRole = new Sys_user_role();
|
||||||
userRole.setTcDelegationId(delegation_unit.getDelegationId());
|
userRole.setTcDelegationId(delegation_unit.getDelegationId());
|
||||||
userRole.setUserId(delegate.getUserId());
|
userRole.setUserId(delegate.getUserId());
|
||||||
userRole.setTcSessionId(delegate.getSessionId());
|
userRole.setTcSessionId(sessionId);
|
||||||
Sys_role sys_role = dao.fetch(Sys_role.class, Cnd.where(Sys_role::getCode, "=", RoleConstant.TEACHER_CONGRESS_DELEGATE_FORMAL.name()));
|
Sys_role sys_role = dao.fetch(Sys_role.class, Cnd.where(Sys_role::getCode, "=", RoleConstant.TEACHER_CONGRESS_DELEGATE_FORMAL.name()));
|
||||||
|
|
||||||
if (sys_role.getId().equals(delegate.getRoleId())) {
|
if (sys_role.getId().equals(delegate.getRoleId())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user