Commit 3cc99909 authored by 吴春's avatar 吴春

提交订单下单以及详情返回自定义表单

parent abeabceb
......@@ -333,7 +333,7 @@ namespace Mall.Model.Extend.Product
/// <summary>
/// 客户自定义表单填写内容 2024-01-30 add by:W
/// </summary>
public string CustomFormInfo { get; set; }
public List<TradePavilion.FormDataItem> CustomFormInfo { get; set; }
}
/// <summary>
......
......@@ -8082,7 +8082,7 @@ namespace Mall.Module.Product
int detailId = goods_OrderDetailRepository.Insert(new RB_Goods_OrderDetail()
{
Id = 0,
CustomFormInfo = demodel.CustomFormInfo,
CustomFormInfo = (demodel.CustomFormInfo != null && demodel.CustomFormInfo.Any()) ? JsonConvert.SerializeObject(demodel.CustomFormInfo) : "",
CostMoney = item.CostMoney,
CoverImage = item.CoverImage,
CreateDate = DateTime.Now,
......
......@@ -522,7 +522,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
if (userInfo.TenantId == 29)
{
if (string.IsNullOrWhiteSpace(demodel.CustomFormInfo))
if (demodel?.CustomFormInfo?.Count == 0)
{
return ApiResult.ParamIsNull("请填写旅客信息");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment