/**
* 删除购物车物资信息
* @param saveGouwcVo
* @return
*/
@RequestMapping(value="/deleteGouwc",method=RequestMethod.POST)
public RestfulResponseBody deleteGouwc(@RequestBody SaveGouwcVo saveGouwcVo){
try{
cgGouwcService.deleteGouwc(saveGouwcVo);
return setResponseEntity("操作成功!",Constants.ResponseResultFlag.SUCCESS,null);
}catch (Exception e) {
e.printstacktrace();
return setResponseEntity("操作失败!",Constants.ResponseResultFlag.ERROR,null);
}
}
.....
private List<CgGouwc> cgGouwc;
public List<CgGouwc> getCgGouwc() {
return cgGouwc;
}
public void setCgGouwc(List<CgGouwc> cgGouwc) {
this.cgGouwc = cgGouwc;
}
$scope.saveGouwcVo = {};
$scope.cgGouwc = [{"gouwc_id":"2222","zhangh_id":"23232","ziydwz_id":"23232"},{"gouwc_id":"2222","ziydwz_id":"23232"}];
$scope.saveGouwcVo.cgGouwc= $scope.cgGouwc;
$http.post($rootScope.settings.shop + 'api/cgGouwc/deleteGouwc',$scope.saveGouwcVo
).success(function (response) {
if (response.resultFlag) {
layer.msg("操作成功!");
}else{
layer.msg(response.reason);
}
});