Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
0293d2a6
Commit
0293d2a6
authored
Jan 29, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交规格值是否是日期格式
parent
fbe29b74
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
RB_Goods_Specification.cs
Mall.Model/Entity/Product/RB_Goods_Specification.cs
+5
-0
RB_Product_Specification.cs
Mall.Model/Entity/Product/RB_Product_Specification.cs
+2
-5
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+6
-3
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+1
-0
No files found.
Mall.Model/Entity/Product/RB_Goods_Specification.cs
View file @
0293d2a6
...
...
@@ -54,6 +54,11 @@ namespace Mall.Model.Entity.Product
get
;
set
;
}
/// <summary>
/// 默认0,1-是,是日期格式,方便后面转换成日期
/// </summary>
public
int
IsDateFormat
{
get
;
set
;
}
/// <summary>
/// Status
/// </summary>
...
...
Mall.Model/Entity/Product/RB_Product_Specification.cs
View file @
0293d2a6
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
{
...
...
Mall.Module.Product/ProductModule.cs
View file @
0293d2a6
...
...
@@ -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
)
{
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
0293d2a6
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment