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
dedb3941
Commit
dedb3941
authored
Jul 03, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品评论
parent
edff4feb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+5
-4
RB_Goods_CommentRepository.cs
Mall.Repository/Product/RB_Goods_CommentRepository.cs
+6
-1
No files found.
Mall.Module.Product/OrderModule.cs
View file @
dedb3941
...
...
@@ -632,6 +632,7 @@ namespace Mall.Module.Product
SpecificationList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
x
.
Specification
),
x
.
Number
,
x
.
Final_Price
,
x
.
IsComment
,
x
.
IsApplyForAfterSale
}),
model
.
IsApplyForCancel
,
...
...
@@ -7103,9 +7104,9 @@ namespace Mall.Module.Product
if
(
dmodel
==
null
)
{
return
false
;
}
OrderId
=
dmodel
.
OrderId
??
0
;
if
(
dmodel
.
IsComment
==
1
)
{
return
false
;
}
omodel
=
goods_OrderRepository
.
GetEntity
(
OrderId
);
if
(
omodel
==
null
)
{
return
false
;
}
if
(
omodel
.
OrderStatus
!=
OrderStatusEnum
.
Received
)
{
return
false
;
}
//
omodel = goods_OrderRepository.GetEntity(OrderId);
//
if (omodel == null) { return false; }
//
if (omodel.OrderStatus != OrderStatusEnum.Received) { return false; }
}
bool
flag
=
goods_CommentRepository
.
Insert
(
demodel
)
>
0
;
if
(
flag
)
...
...
@@ -7124,7 +7125,7 @@ namespace Mall.Module.Product
}
};
goods_OrderDetailRepository
.
Update
(
keyValues
,
wheres
);
if
(
OrderId
>
0
)
if
(
OrderId
<
0
)
{
var
dlist
=
goods_OrderDetailRepository
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
()
{
OrderId
=
OrderId
,
IsComment
=
2
,
TenantId
=
demodel
.
TenantId
,
MallBaseId
=
demodel
.
MallBaseId
});
if
(!
dlist
.
Any
())
...
...
Mall.Repository/Product/RB_Goods_CommentRepository.cs
View file @
dedb3941
...
...
@@ -91,9 +91,14 @@ where {where} order by c.Id desc";
{
where
+=
$@" and c.
{
nameof
(
RB_Goods_Comment
.
CommentGrade
)}
=
{(
int
)
dmodel
.
CommentGrade
}
"
;
}
if
(
dmodel
.
GoodsId
>
0
)
{
if
(
dmodel
.
GoodsId
>
0
)
{
where
+=
$@" and c.
{
nameof
(
RB_Goods_Comment
.
GoodsId
)}
=
{
dmodel
.
GoodsId
}
"
;
}
if
(
dmodel
.
UserId
>
0
)
{
where
+=
$@" and c.
{
nameof
(
RB_Goods_Comment
.
UserId
)}
=
{
dmodel
.
UserId
}
"
;
}
if
(
dmodel
.
PlatformSource
>
0
)
{
where
+=
$@" and c.
{
nameof
(
RB_Goods_Comment
.
PlatformSource
)}
=
{(
int
)
dmodel
.
PlatformSource
}
"
;
...
...
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