web_backend_develope
chenlw 9 years ago
parent 3c87620118
commit 4157248228

@ -79,7 +79,6 @@ public class CheckoutController extends BaseController {
if (null != form) {
log.info("---------/checkList--- "+ form.size());
List<CheckoutEntity> result = checkoutService.checkAll(form);
List<CheckoutEntity> data = new ArrayList<CheckoutEntity>();
modelMap.addAttribute("data", result);
modelMap.addAttribute("length", result.size());
}
@ -137,4 +136,25 @@ public class CheckoutController extends BaseController {
}
return modelMap;
}
/**
*
* @return
* @throws Exception
*/
@ResponseBody
@RequestMapping("/deleteList")
public ModelMap deleteList(@RequestBody List<CheckoutEntity> form, HttpServletRequest req, HttpServletResponse res) throws Exception {
ModelMap modelMap = new ModelMap();
if (null != form) {
log.info("---------/checkList--- "+ form.size());
List<CheckoutEntity> result = checkoutService.deleteAll(form);
modelMap.addAttribute("data", result);
modelMap.addAttribute("length", result.size());
}
else {
log.info("---------/checkList--- "+ form);
}
return modelMap;
}
}

Loading…
Cancel
Save