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
9746eb05
Commit
9746eb05
authored
Mar 10, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sdzq' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
c2241784
267d8bbc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
RB_Commerce_ActivityTypeRepository.cs
...itory/TradePavilion/RB_Commerce_ActivityTypeRepository.cs
+1
-1
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+8
-7
No files found.
Mall.Repository/TradePavilion/RB_Commerce_ActivityTypeRepository.cs
View file @
9746eb05
...
...
@@ -90,7 +90,7 @@ WHERE 1=1
builder
.
AppendFormat
(
" AND {0} LIKE @Name "
,
nameof
(
RB_Commerce_ActivityType_Extend
.
TypeName
));
parameters
.
Add
(
"Name"
,
"%"
+
query
.
TypeName
.
Trim
()
+
"%"
);
}
if
(
string
.
IsNullOrWhiteSpace
(
query
.
Ids
))
if
(
!
string
.
IsNullOrWhiteSpace
(
query
.
Ids
))
{
builder
.
AppendFormat
(
$@" AND
{
nameof
(
RB_Commerce_ActivityType_Extend
.
Id
)}
in (
{
query
.
Ids
}
) "
);
}
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
9746eb05
...
...
@@ -436,13 +436,14 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// <returns></returns>
public
ApiResult
SetCommerceActivityType
()
{
JObject
jObj
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
extModel
=
new
RB_Commerce_ActivityType_Extend
()
{
Id
=
jObj
.
GetInt
(
"Id"
),
TypeName
=
jObj
.
GetStringValue
(
"TypeName"
),
CoverImage
=
jObj
.
GetStringValue
(
"CoverImage"
)
};
RB_Commerce_ActivityType_Extend
extModel
=
JsonConvert
.
DeserializeObject
<
RB_Commerce_ActivityType_Extend
>(
RequestParm
.
msg
.
ToString
());
//JObject jObj = JObject.Parse(RequestParm.msg.ToString());
//var extModel = new RB_Commerce_ActivityType_Extend()
//{
// Id = jObj.GetInt("Id"),
// TypeName = jObj.GetStringValue("TypeName"),
// CoverImage=jObj.GetStringValue("CoverImage")
//};
extModel
.
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
;
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
...
...
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