集合map 对集合map进行取值 遍历循环
来源:互联网 发布:android蓝牙接收数据 编辑:程序博客网 时间:2024/06/06 00:46
@RequestMapping(value="/lsdbsd", method = { RequestMethod.GET,
RequestMethod.POST }, produces = "application/json; charset=utf-8")
public String getLcsyDistributionsd(@RequestParam(value = "thedate", required = true)String thedate) throws Exception
{
if(StringUtils.isNullorEmpty(thedate))
{
//错误信息提示
return JsonUtil.errorMessages(1);
}else
{
String [] par=new String[] {thedate};
Map<String, Object> map=Putawayutils.findProc1("sp_hyfx_SoldOutDistributiones",par);
List mapjimi=new ArrayList<>();
for (String key : map.keySet()) {
System.out.println("key= "+ key + " and value= " + map.get(key));
//取出{buyID=123}的value值
mapjimi= (List) map.get(key);
}
int lcsycount =mapjimi.size();
return lcsycount!=0?JSON.toJSONString(map):JsonUtil.errorMessages(8);
}
}
RequestMethod.POST }, produces = "application/json; charset=utf-8")
public String getLcsyDistributionsd(@RequestParam(value = "thedate", required = true)String thedate) throws Exception
{
if(StringUtils.isNullorEmpty(thedate))
{
//错误信息提示
return JsonUtil.errorMessages(1);
}else
{
String [] par=new String[] {thedate};
Map<String, Object> map=Putawayutils.findProc1("sp_hyfx_SoldOutDistributiones",par);
List mapjimi=new ArrayList<>();
for (String key : map.keySet()) {
System.out.println("key= "+ key + " and value= " + map.get(key));
//取出{buyID=123}的value值
mapjimi= (List) map.get(key);
}
int lcsycount =mapjimi.size();
return lcsycount!=0?JSON.toJSONString(map):JsonUtil.errorMessages(8);
}
}
阅读全文
0 0
- 集合map 对集合map进行取值 遍历循环
- 对Map集合的遍历
- 对map集合进行排序
- 对map集合进行排序
- 对map集合进行排序
- 对map集合进行排序
- 对map集合进行排序
- 对map集合进行排序
- 对map集合进行排序
- 对map集合进行排序
- set,list,map集合循环遍历
- 关于map集合的循环遍历
- 后台传送map集合到前台JSTL遍历取值
- java集合map取key使用示例 java遍历map
- 遍历map集合中的键值对
- 【Map】Map集合的遍历:
- 对MAP 进行排序 并遍历取值
- struts2遍历Map集合
- 正则动态添加变量
- 51Nod-1183 编辑距离
- cordova插件
- IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder
- 例子---碰壁反弹
- 集合map 对集合map进行取值 遍历循环
- springmvc上传文件的三种方式
- SQL语言学习
- 两个页面定时相互跳转
- Linux/Centos下安装部署phantomjs 及使用
- Android开发常用工具类AndroidUtilCode
- WEEK3作业
- jquery,js-按钮控制音乐播放
- angular中的$scope类