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
d6589bf3
Commit
d6589bf3
authored
May 14, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
2ebf0577
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
RB_MiniProgram.cs
Mall.Model/Entity/User/RB_MiniProgram.cs
+6
-0
RB_Member_CouponRepository.cs
Mall.Repository/User/RB_Member_CouponRepository.cs
+4
-4
Mall.WebApi.csproj
Mall.WebApi/Mall.WebApi.csproj
+4
-0
No files found.
Mall.Model/Entity/User/RB_MiniProgram.cs
View file @
d6589bf3
...
...
@@ -365,5 +365,11 @@ namespace Mall.Model.Entity.User
/// </summary>
public
string
JumpAppId
{
get
;
set
;
}
#
endregion
/// <summary>
///小程序直播组件 0-否,1-是
/// </summary>
public
int
LivePlayerPlugin
{
get
;
set
;
}
}
}
Mall.Repository/User/RB_Member_CouponRepository.cs
View file @
d6589bf3
...
...
@@ -97,7 +97,7 @@ namespace Mall.Repository.User
}
if
(
query
.
PlatformType
>
0
)
{
builder
.
Append
(
$" AND
b.
{
nameof
(
RB_Member_User
.
Sourc
e
)}
=
{
query
.
PlatformType
}
"
);
builder
.
Append
(
$" AND
a.
{
nameof
(
RB_Member_DiscountCoupon_Extend
.
PlatformTyp
e
)}
=
{
query
.
PlatformType
}
"
);
}
if
(
query
.
UserId
>
0
)
{
...
...
@@ -112,7 +112,7 @@ namespace Mall.Repository.User
builder
.
Append
(
$" AND DATE_FORMAT(c.
{
nameof
(
RB_DiscountCoupon
.
CreateDate
)}
,'%Y-%m-%d' )<= DATE_FORMAT('
{
query
.
EndDate
}
','%Y-%m-%d' )"
);
}
}
string
sql
=
@
$" select *
from
FROM
string
sql
=
@
$" select * FROM
{
TableName
}
AS
a
LEFT
JOIN
{
MemberTableName
}
AS
b
ON
a
.
UserId
=
b
.
Id
LEFT
JOIN
{
DiscountCouponTableName
}
as
c
on
c
.
ID
=
a
.
CouponId
where
1
=
1
{
builder
.
ToString
()}
";
...
...
@@ -143,7 +143,7 @@ LEFT JOIN {DiscountCouponTableName} as c on c.ID=a.CouponId where 1=1 {builder
}
if
(
query
.
PlatformType
>
0
)
{
builder
.
Append
(
$" AND
b.
{
nameof
(
RB_Member_User
.
Sourc
e
)}
=
{
query
.
PlatformType
}
"
);
builder
.
Append
(
$" AND
a.
{
nameof
(
RB_Member_DiscountCoupon_Extend
.
PlatformTyp
e
)}
=
{
query
.
PlatformType
}
"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StartDate
))
{
...
...
@@ -209,7 +209,7 @@ LEFT JOIN {DiscountCouponTableName} as c on c.ID=a.CouponId where a.EndDate<NO
}
if
(
query
.
PlatformType
>
0
)
{
builder
.
Append
(
$" AND
b.
{
nameof
(
RB_Member_User
.
Sourc
e
)}
=
{
query
.
PlatformType
}
"
);
builder
.
Append
(
$" AND
a.
{
nameof
(
RB_Member_DiscountCoupon_Extend
.
PlatformTyp
e
)}
=
{
query
.
PlatformType
}
"
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StartDate
))
{
...
...
Mall.WebApi/Mall.WebApi.csproj
View file @
d6589bf3
...
...
@@ -4,6 +4,10 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Content Remove="web.config" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="JWT" Version="5.3.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" />
...
...
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