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
8a4e5cdb
Commit
8a4e5cdb
authored
Dec 31, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
9d01104c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CouponModule.cs
Mall.Module.MarketingCenter/CouponModule.cs
+1
-1
RB_DiscountCouponRepository.cs
...Repository/MarketingCenter/RB_DiscountCouponRepository.cs
+2
-2
No files found.
Mall.Module.MarketingCenter/CouponModule.cs
View file @
8a4e5cdb
...
@@ -928,7 +928,7 @@ namespace Mall.Module.MarketingCenter
...
@@ -928,7 +928,7 @@ namespace Mall.Module.MarketingCenter
MaxDiscountsPrice
=
item
.
MaxDiscountsPrice
,
MaxDiscountsPrice
=
item
.
MaxDiscountsPrice
,
CouponType
=
item
.
CouponType
,
CouponType
=
item
.
CouponType
,
Name
=
item
.
Name
,
Name
=
item
.
Name
,
KeyWord
=
item
.
KeyWord
KeyWord
=
item
.
KeyWord
};
};
isReceive
=
memberCouponRepository
.
Insert
(
nowMemberCoupon
,
trans
)
>
0
;
isReceive
=
memberCouponRepository
.
Insert
(
nowMemberCoupon
,
trans
)
>
0
;
...
...
Mall.Repository/MarketingCenter/RB_DiscountCouponRepository.cs
View file @
8a4e5cdb
...
@@ -356,11 +356,11 @@ on a.CouponId=b.ID {where} ";
...
@@ -356,11 +356,11 @@ on a.CouponId=b.ID {where} ";
}
}
}
}
string
sql
=
@
$"SELECT a.*,b.TriggerType,b.GrantNum from rb_coupon_selfmotion as b LEFT JOIN
{
TableName
}
as a on a.ID=b.DiscountCouponId
string
sql
=
@
$"SELECT a.*,b.TriggerType,b.GrantNum
,b.KeyWord
from rb_coupon_selfmotion as b LEFT JOIN
{
TableName
}
as a on a.ID=b.DiscountCouponId
where
(
a
.
IndateType
=
1
or
(
a
.
IndateType
=
2
and
a
.
EndDate
>
NOW
()))
where
(
a
.
IndateType
=
1
or
(
a
.
IndateType
=
2
and
a
.
EndDate
>
NOW
()))
and
a
.
`
Status
`
=
0
and
b
.
`
Status
`
=
0
and
IsAll
=
0
{
builder
.
ToString
()}
and
a
.
`
Status
`
=
0
and
b
.
`
Status
`
=
0
and
IsAll
=
0
{
builder
.
ToString
()}
UNION
ALL
UNION
ALL
SELECT
a
.*,
b
.
TriggerType
,
b
.
GrantNum
from
rb_coupon_selfmotion
as
b
LEFT
JOIN
rb_discountcoupon
as
a
on
a
.
ID
=
b
.
DiscountCouponId
SELECT
a
.*,
b
.
TriggerType
,
b
.
GrantNum
,
b
.
KeyWord
from
rb_coupon_selfmotion
as
b
LEFT
JOIN
rb_discountcoupon
as
a
on
a
.
ID
=
b
.
DiscountCouponId
LEFT
JOIN
rb_coupon_selfmotionmember
as
c
on
c
.
SelfMotionId
=
b
.
ID
LEFT
JOIN
rb_coupon_selfmotionmember
as
c
on
c
.
SelfMotionId
=
b
.
ID
where
(
a
.
IndateType
=
1
or
(
a
.
IndateType
=
2
and
a
.
EndDate
>
NOW
()))
{
builder
.
ToString
()}
where
(
a
.
IndateType
=
1
or
(
a
.
IndateType
=
2
and
a
.
EndDate
>
NOW
()))
{
builder
.
ToString
()}
and
a
.
`
Status
`
=
0
and
b
.
`
Status
`
=
0
and
IsAll
=
1
{
userWhere
}
";
and
a
.
`
Status
`
=
0
and
b
.
`
Status
`
=
0
and
IsAll
=
1
{
userWhere
}
";
...
...
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