Browse Source

更换管理员新管理员没有邮箱则用联系人邮箱

wangmh 7 years ago
parent
commit
e4f0618294

+ 1 - 1
sso-server/src/main/java/com/uas/sso/service/impl/AppealServiceImpl.java

@@ -68,7 +68,7 @@ public class AppealServiceImpl implements AppealService {
         ModelMap data = new ModelMap(userspace);
         ModelMap data = new ModelMap(userspace);
         data.put("newAdminName", newAdmin == null ? appeal.getContactName() : newAdmin.getVipName());
         data.put("newAdminName", newAdmin == null ? appeal.getContactName() : newAdmin.getVipName());
         data.put("newAdminMobile", newAdmin == null ? appeal.getMobile() : newAdmin.getMobile());
         data.put("newAdminMobile", newAdmin == null ? appeal.getMobile() : newAdmin.getMobile());
-        data.put("newAdminEmail", newAdmin == null ? null : newAdmin.getEmail());
+        data.put("newAdminEmail", newAdmin == null ? appeal.getContactEmail() : newAdmin.getEmail());
         appeal.setSubmitInfo(JSON.toJSONString(data));
         appeal.setSubmitInfo(JSON.toJSONString(data));
         appeal.setStatus((short) Status.TO_BE_CERTIFIED.getCode());
         appeal.setStatus((short) Status.TO_BE_CERTIFIED.getCode());
         appeal.setType(Appeal.Type.CHANGE_ADMIN.getDesc());
         appeal.setType(Appeal.Type.CHANGE_ADMIN.getDesc());