Commit 0293d2a6 authored by 吴春's avatar 吴春

提交规格值是否是日期格式

parent fbe29b74
......@@ -54,6 +54,11 @@ namespace Mall.Model.Entity.Product
get;
set;
}
/// <summary>
/// 默认0,1-是,是日期格式,方便后面转换成日期
/// </summary>
public int IsDateFormat { get; set; }
/// <summary>
/// Status
/// </summary>
......
using VT.FW.DB;
using Mall.Common.Enum.User;
using System;
using System.Collections.Generic;
using System.Text;
using System;
using VT.FW.DB;
namespace Mall.Model.Entity.Product
{
......
......@@ -7429,7 +7429,8 @@ namespace Mall.Module.Product
Name = item.Name,
Sort = item.Sort,
Status = 0,
TenantId = demodel.TenantId
TenantId = demodel.TenantId,
IsDateFormat = item.IsDateFormat,
});
if (sid > 0)
{
......@@ -7484,7 +7485,8 @@ namespace Mall.Module.Product
{
{ nameof(RB_Goods_Specification.EnabledImage),supmodel?.EnabledImage??1},
{ nameof(RB_Goods_Specification.Name),supmodel?.Name??""},
{ nameof(RB_Goods_Specification.Sort),supmodel?.Sort??0}
{ nameof(RB_Goods_Specification.Sort),supmodel?.Sort??0},
{ nameof(RB_Goods_Specification.IsDateFormat),supmodel?.IsDateFormat??0}
};
List<WhereHelper> wheres1 = new List<WhereHelper>()
{
......@@ -7936,7 +7938,8 @@ namespace Mall.Module.Product
Name = item.Name,
Sort = item.Sort,
Status = 0,
TenantId = demodel.TenantId
TenantId = demodel.TenantId,
IsDateFormat=item.IsDateFormat,
});
if (sid > 0)
{
......
......@@ -1744,6 +1744,7 @@ namespace Mall.WebApi.Controllers.MallBase
x.EnabledImage,
x.Name,
x.Sort,
x.IsDateFormat,
SpecificationValueList = x.SpecificationValueList.Select(y => new
{
y.Id,
......
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