Context ctx = Lang.context();
ctx.set("layout", "single");
List<DeviceConf> list=null;
// 获取该登录用户
Sys_user user = (Sys_user) Mvcs.getActionContext().get("user");
if(null != user && user.getDomainId() > 0){
//根据登陆用户的域ID找到域下终端
list =deviceConfService.findDeviceConfByDomainId(user.getDomainId());
//把List转成JSON
String dList=JSON.toJSONString(list);
ctx.set("dList", dList);
}
return ctx;
10 回复
添加回复
请先登陆