批量修改

来源:互联网 发布:热血江湖自动登录源码 编辑:程序博客网 时间:2024/05/19 13:25
@RequestMapping(value="/upcdte", method = { RequestMethod.GET,RequestMethod.POST }, produces = "application/json; charset=utf-8")
public String updateDate(String cdid)
{

if(StringUtils.isNullorEmpty(cdid))
{
return MessageUtils.errorMessages(1);
}else
{
//String cdids="16384,16385,16386,16387,16388,16392,16393,16394,";

String substring = cdid.substring(0, cdid.length()-1);
String[] split = substring.split(",");
//Map map=new HashMap();
//map.put("cdid", cdid);
try {
for(int i=0;i<split.length;i++)
{
cdao.updateDate(split[i]);
}
} catch (Exception e) {
// TODO Auto-generated catch block

}
//cdao.updateDate(map);
return MessageUtils.errorMessagesuccess(9);
}


}
原创粉丝点击