fix servant

master
luoyang 6 years ago
parent 162f4a7ef4
commit dd34208113

@ -120,7 +120,11 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
manager.put("module_names", modules.keySet());
if((manager.getIntValue("role")& ManagerRole.SERVANT.getMask())>0){
JSONObject cs = sysCustomerServiceMapper.findByManagerId(accountId);
manager.put("onoff",cs.getBoolean("onoff"));
if (cs != null) {
manager.put("onoff", cs.getBoolean("onoff"));
} else {
manager.put("onoff", false);
}
}
return manager;
}

Loading…
Cancel
Save