table保存方法一
vm.detailList = [];
var str = “gatheringId=” + vm.data.gatheringId;
$.each(vm.detailList, function (index, formData) {
$.each(formData, function (name, value) {
str += “&” + “foreignGatheringRecList” + “[” + index + “].” + name + “=” + value;
});
})
Supp.ajax({
url : foreignGatheringApi.saveOrUpdate,
dataType : “json”,
raditional : true,
data : str,
success : function(resp) {
Supp.showSuccess(“操作成功”);
}
});
@RequestMapping(“saveOrUpdate”)
public @ResponseBody OperResult< ? > saveOrUpdate(ForeignGathering ForeignGathering) {
UserProfile user = this.getUserProfile();
ForeignGathering entity = this.ForeignGatheringService.saveOrUpdate(user, ForeignGathering);
return OperResult.succeed(OperResultConstant.CODE_OPER_SAVE_SUCCESS, nu