@AdaptBy(type=JsonAdaptor.class)
@At
@Ok("json")
public Object add(@Param("ar")Product ar,@Param("pimg")Img strg) {
System.out.println(strg);
/* List mg = new ArrayList();
for (String str:strg) {
Img g = new Img();
g.setImg(str);
g.setPid(ar.getId());
mg.add(g);
}
ar.setPimg(mg);*/
/*if(ar.getId() > 0){
ar.setCreateTime(productSer.fetchByID(ar.getId()).getCreateTime());
productSer.update(ar);
dao.updateLinks(ar, null);
return new NutMap().setv("ok", true);
}else{
Product pr = productSer.insert(ar);
dao.insertLinks(pr, null);
return new NutMap().setv("ok", true);
}*/
return new NutMap().setv("ok", true);
}