fix servant

master
luoyang 6 years ago
parent 784bd85360
commit 24555404a2

@ -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