list map
来源:互联网 发布:数据库日志已截断 编辑:程序博客网 时间:2024/05/29 01:55
/**
* 资产运行情况(正常运行、设备停机、已监控、未监控)
*/
@RequestMapping(value="show_Device", method=RequestMethod.POST, produces="text/json;charset=utf-8")
@ResponseBody
public Object show_deNormal(HttpServletRequest request,
HttpServletResponse response){
JSONObject data = new JSONObject();
int onMachine = this.machineService.selectOnMachine();
int offMachine= this.machineService.selectOffMachine();
int onControl = this.machineService.selectonControl();
int offControl = this.machineService.selectoffControl();
Map<String, Object> machine=new HashMap<String, Object>();
machine.put("正常运行",onMachine);
machine.put("设备停机",offMachine);
machine.put("已监控",onControl);
machine.put("未监控",offControl);
// Map<String, Object> offMa=new HashMap<String, Object>();
// offMa.put("设备停机",offMachine);
//
// Map<String, Object> onCo=new HashMap<String, Object>();
// onCo.put("已监控",onControl);
//
// Map<String, Object> offCo=new HashMap<String, Object>();
// offCo.put("未监控",offControl);
//
// ArrayList<Integer> list=new ArrayList<Integer>();
// list.add(new Map("正常运行",onMachine));
// list.add(new Integer("设备停机",offMachine));
// list.add(new Integer("已监控",onControl));
// list.add(new Integer("未监控",offControl));
if(machine!=null){
data.put("data", machine);
}
return data.toString();
}
* 资产运行情况(正常运行、设备停机、已监控、未监控)
*/
@RequestMapping(value="show_Device", method=RequestMethod.POST, produces="text/json;charset=utf-8")
@ResponseBody
public Object show_deNormal(HttpServletRequest request,
HttpServletResponse response){
JSONObject data = new JSONObject();
int onMachine = this.machineService.selectOnMachine();
int offMachine= this.machineService.selectOffMachine();
int onControl = this.machineService.selectonControl();
int offControl = this.machineService.selectoffControl();
Map<String, Object> machine=new HashMap<String, Object>();
machine.put("正常运行",onMachine);
machine.put("设备停机",offMachine);
machine.put("已监控",onControl);
machine.put("未监控",offControl);
// Map<String, Object> offMa=new HashMap<String, Object>();
// offMa.put("设备停机",offMachine);
//
// Map<String, Object> onCo=new HashMap<String, Object>();
// onCo.put("已监控",onControl);
//
// Map<String, Object> offCo=new HashMap<String, Object>();
// offCo.put("未监控",offControl);
//
// ArrayList<Integer> list=new ArrayList<Integer>();
// list.add(new Map("正常运行",onMachine));
// list.add(new Integer("设备停机",offMachine));
// list.add(new Integer("已监控",onControl));
// list.add(new Integer("未监控",offControl));
if(machine!=null){
data.put("data", machine);
}
return data.toString();
}
阅读全文
0 0
- List&Map
- list map
- Thymeleaf基础 遍历List、Map、List<map>、Map<List>
- freeMarker 遍历 list,map,list<map>
- 集合List:List Map Set
- freemark-----------list(list,map遍历)
- List<map>转List<bean>
- List,set,Map
- Set、List、Map区别
- Set List Map总结
- map list區別
- List,Map,Set,容器
- map list set 区别
- List , Map . Set 类
- Map与List区别?
- list sort map char
- 关于set,list,map
- Set,Map,List
- spring boot 最佳实践(六)--Spring Cache
- 微信Failed to resolve: com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+
- AVPlayerItem翻译
- HTTP 协议中的 Transfer-Encoding
- Android Studio 编译 依赖了微信支付无法编译通过的解决方案
- list map
- 在Vue中如何使用Cookie
- 学习笔记,记录一下字符串逆序的方法。
- SQL 字段属性大小更改
- Oralce 表空间文件超过32G 解决方案
- 54/59 Spiral Matrix 螺旋矩阵
- oracle11g expdp报错 ORA-06512: at "SYS.UTL_FILE", line 536
- 20170720补习
- 如何快速找到自己手机号码或邮箱注册过哪些网站