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
e5e822b5
Commit
e5e822b5
authored
Sep 21, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
e108ac6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+9
-9
RB_Goods_CommentRepository.cs
Mall.Repository/Product/RB_Goods_CommentRepository.cs
+1
-1
No files found.
Mall.Module.Product/GuideCarModule.cs
View file @
e5e822b5
...
...
@@ -3948,7 +3948,14 @@ namespace Mall.Module.Product
item
.
CommentList
=
new
List
<
RB_Goods_Comment_Extend
>();
item
.
CommentList
.
AddRange
(
carCommentList
.
Where
(
x
=>
x
.
OrderDetailId
==
item
.
OrderDetailId
));
item
.
CommentList
.
AddRange
(
guideCommentList
.
Where
(
x
=>
x
.
OrderDetailId
==
item
.
OrderDetailId
));
if
(
item
.
UserId
>
0
)
{
item
.
UserPhotoPath
=
userList
.
Where
(
x
=>
x
.
Id
==
item
.
UserId
).
FirstOrDefault
()?.
Photo
??
""
;
}
if
(
item
.
UserId
==
0
&&
item
.
UserPhoto
>
0
)
{
item
.
UserPhotoPath
=
material_InfoRepository
.
GetEntity
(
item
.
UserPhoto
)?.
Path
??
""
;
}
foreach
(
var
itemComment
in
item
.
CommentList
)
{
itemComment
.
CommentImgList
=
new
List
<
string
>();
...
...
@@ -3957,14 +3964,7 @@ namespace Mall.Module.Product
{
itemComment
.
CommentImgList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
itemComment
.
CommentImage
);
}
if
(
item
.
UserId
>
0
)
{
itemComment
.
UserPhotoPath
=
userList
.
Where
(
x
=>
x
.
Id
==
item
.
UserId
).
FirstOrDefault
()?.
Photo
??
""
;
}
if
(
itemComment
.
UserId
==
0
&&
itemComment
.
UserPhoto
>
0
)
{
itemComment
.
UserPhotoPath
=
material_InfoRepository
.
GetEntity
(
item
.
UserPhoto
)?.
Path
??
""
;
}
}
}
...
...
Mall.Repository/Product/RB_Goods_CommentRepository.cs
View file @
e5e822b5
...
...
@@ -297,7 +297,7 @@ LEFT JOIN rb_guidecar_carbrand as cb on cb.ID=a.CarBrandId where {where} ";
whereGrade
+=
$@" and t.TotalScore>=1 and t.TotalScore<=3"
;
}
}
string
sql
=
$@" SELECT * from(SELECT OrderDetailId,UserId,UserPhoto,Is_Anonymity,SUM(CommentScore) AS TotalScore,GoodsId,DATE_FORMAT(UpdateDate, '%y-%m-%d') AS UpdateDate ,
string
sql
=
$@" SELECT * from(SELECT OrderDetailId,User
Name,User
Id,UserPhoto,Is_Anonymity,SUM(CommentScore) AS TotalScore,GoodsId,DATE_FORMAT(UpdateDate, '%y-%m-%d') AS UpdateDate ,
case
when SUM(CommentScore)<=3 then 3
when SUM(CommentScore)>3 and SUM(CommentScore)<=6 then 2
...
...
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