@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);
}
}