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