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

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

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