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()); manager.put("module_names", modules.keySet());
if((manager.getIntValue("role")& ManagerRole.SERVANT.getMask())>0){ if((manager.getIntValue("role")& ManagerRole.SERVANT.getMask())>0){
JSONObject cs = sysCustomerServiceMapper.findByManagerId(accountId); JSONObject cs = sysCustomerServiceMapper.findByManagerId(accountId);
if (cs != null) {
manager.put("onoff", cs.getBoolean("onoff")); manager.put("onoff", cs.getBoolean("onoff"));
} else {
manager.put("onoff", false);
}
} }
return manager; return manager;
} }

Loading…
Cancel
Save