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
8de25290
Commit
8de25290
authored
Feb 28, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论删除调整
parent
98414202
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
OrderModule_Part.cs
Mall.Module.Product/OrderModule_Part.cs
+5
-5
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+6
-4
No files found.
Mall.Module.Product/OrderModule_Part.cs
View file @
8de25290
...
...
@@ -8471,14 +8471,14 @@ namespace Mall.Module.Product
/// <summary>
/// 批量操作
/// </summary>
/// <param name="Id">评论Id</param>
/// <param name="Id
s
">评论Id</param>
/// <param name="orderDetailIds"></param>
/// <param name="type"></param>
/// <param name="content"></param>
/// <param name="tenantId"></param>
/// <param name="mallBaseId"></param>
/// <returns></returns>
public
bool
SetCommentBatchByOrderDetailIdModule
(
int
Id
,
string
orderDetailIds
,
int
type
,
string
content
,
int
tenantId
,
int
mallBaseId
)
public
bool
SetCommentBatchByOrderDetailIdModule
(
string
Ids
,
string
orderDetailIds
,
int
type
,
string
content
,
int
tenantId
,
int
mallBaseId
)
{
bool
flag
=
false
;
//1批量回复 2批量隐藏 3批量显示 4批量置顶 5取消置顶 6批量删除
...
...
@@ -8539,11 +8539,11 @@ namespace Mall.Module.Product
OperatorEnum
=
OperatorEnum
.
Equal
}
};
if
(
Id
>
0
||
!
string
.
IsNullOrEmpty
(
orderDetailIds
))
if
(
!
string
.
IsNullOrEmpty
(
Ids
)
||
!
string
.
IsNullOrEmpty
(
orderDetailIds
))
{
if
(
Id
>
0
)
if
(
!
string
.
IsNullOrEmpty
(
Ids
)
)
{
wheres
.
Add
(
new
WhereHelper
(
nameof
(
RB_Goods_Comment
.
Id
),
Id
));
wheres
.
Add
(
new
WhereHelper
(
nameof
(
RB_Goods_Comment
.
Id
),
Id
s
,
OperatorEnum
.
IN
));
}
if
(!
string
.
IsNullOrEmpty
(
orderDetailIds
))
{
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
8de25290
...
...
@@ -4899,11 +4899,13 @@ namespace Mall.WebApi.Controllers.MallBase
{
var
req
=
RequestParm
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
Id
=
parms
.
GetInt
(
"Id"
);
string
orderDetailIds
=
parms
.
GetStringValue
(
"OrderDetailIds"
);
string
paramsIds
=
parms
.
GetStringValue
(
"Ids"
);
string
Ids
=
string
.
Join
(
","
,
Common
.
ConvertHelper
.
StringToList
(
paramsIds
));
string
paramsDetailIds
=
parms
.
GetStringValue
(
"OrderDetailIds"
);
string
orderDetailIds
=
string
.
Join
(
","
,
Common
.
ConvertHelper
.
StringToList
(
paramsDetailIds
));
int
Type
=
parms
.
GetInt
(
"Type"
,
1
);
//1批量回复 2批量隐藏 3批量显示 4批量置顶 5取消置顶 6批量删除
string
Content
=
parms
.
GetStringValue
(
"Content"
);
if
(
string
.
IsNullOrEmpty
(
orderDetailIds
)
&&
Id
<=
0
)
if
(
string
.
IsNullOrEmpty
(
orderDetailIds
)
&&
string
.
IsNullOrEmpty
(
Ids
)
)
{
return
ApiResult
.
ParamIsNull
();
}
...
...
@@ -4915,7 +4917,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
bool
flag
=
orderModule
.
SetCommentBatchByOrderDetailIdModule
(
Id
,
orderDetailIds
,
Type
,
Content
,
req
.
TenantId
,
req
.
MallBaseId
);
bool
flag
=
orderModule
.
SetCommentBatchByOrderDetailIdModule
(
Id
s
,
orderDetailIds
,
Type
,
Content
,
req
.
TenantId
,
req
.
MallBaseId
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
...
...
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