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
a666282d
Commit
a666282d
authored
Jun 11, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改积分收支-积分支出为0
parent
f827f4c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
RB_Member_IntegralRepository.cs
Mall.Repository/User/RB_Member_IntegralRepository.cs
+1
-1
No files found.
Mall.Repository/User/RB_Member_IntegralRepository.cs
View file @
a666282d
...
@@ -224,7 +224,7 @@ namespace Mall.Repository.User
...
@@ -224,7 +224,7 @@ namespace Mall.Repository.User
string
sql
=
@
$" SELECT CreateDate,SUM(Income) as Income, SUM(Expend) as Expend from (
string
sql
=
@
$" SELECT CreateDate,SUM(Income) as Income, SUM(Expend) as Expend from (
select
DATE_FORMAT
(
a
.
CreateDate
,
'
%
Y
-%
m
-%
d
'
)
as
CreateDate
,
a
.
Integral
as
Income
,
0
as
Expend
from
{
TableName
}
as
a
LEFT
JOIN
{
MemberTableName
}
as
b
on
a
.
UserId
=
b
.
Id
where
a
.
Type
=
1
{
builder
.
ToString
()}
select
DATE_FORMAT
(
a
.
CreateDate
,
'
%
Y
-%
m
-%
d
'
)
as
CreateDate
,
a
.
Integral
as
Income
,
0
as
Expend
from
{
TableName
}
as
a
LEFT
JOIN
{
MemberTableName
}
as
b
on
a
.
UserId
=
b
.
Id
where
a
.
Type
=
1
{
builder
.
ToString
()}
union
all
union
all
select
DATE_FORMAT
(
a
.
CreateDate
,
'
%
Y
-%
m
-%
d
'
)
as
CreateDate
,
a
.
Integral
as
Income
,
0
as
Expend
from
{
TableName
}
as
a
LEFT
JOIN
{
MemberTableName
}
as
b
on
a
.
UserId
=
b
.
Id
where
a
.
Type
=
2
{
builder
.
ToString
()}
select
DATE_FORMAT
(
a
.
CreateDate
,
'
%
Y
-%
m
-%
d
'
)
as
CreateDate
,
0
as
Income
,
a
.
Integral
as
Expend
from
{
TableName
}
as
a
LEFT
JOIN
{
MemberTableName
}
as
b
on
a
.
UserId
=
b
.
Id
where
a
.
Type
=
2
{
builder
.
ToString
()}
)
as
t
GROUP
BY
CreateDate
";
)
as
t
GROUP
BY
CreateDate
";
return
GetPage
<
Integral_Query
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
return
GetPage
<
Integral_Query
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
}
}
...
...
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