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
356f402b
Commit
356f402b
authored
Jun 16, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
4a8729a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+5
-3
No files found.
Mall.WindowsService/Module/FinanceModule.cs
View file @
356f402b
...
...
@@ -122,7 +122,7 @@ namespace Mall.WindowsService.Module
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
$@" SELECT a.*,b.OrderNo from rb_goods_orderdetail as a LEFT JOIN rb_goods_order as b on a.OrderId=b.OrderId
where b.TenantId=
1 and b.MallBaseId=1 and DATE_FORMAT(b.CreateDate,'%y-%m-%d')<
DATE_FORMAT('
{
startDate
}
','%y-%m-%d')
where b.TenantId=
{
item
.
TenantId
}
and b.MallBaseId=
{
item
.
MallBaseId
}
and DATE_FORMAT(b.CreateDate,'%y-%m-%d')>=
DATE_FORMAT('
{
startDate
}
','%y-%m-%d')
and DATE_FORMAT(b.CreateDate,'%y-%m-%d')<DATE_FORMAT('
{
endDate
}
','%y-%m-%d') and b.OrderStatus in(2,3,4,5,6) "
);
Helper
.
LogHelper
.
Write
(
"sql语句:"
+
builder
.
ToString
());
...
...
@@ -535,14 +535,16 @@ and DATE_FORMAT(b.CreateDate,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') an
#
region
七天自动是否下线
public
static
bool
AutoReleaseTheOffline
()
{
public
static
bool
AutoReleaseTheOffline
()
{
try
{
var
list
=
mallBaseRepository
.
GetListRepository
(
new
Mall
.
Model
.
Extend
.
BaseSetUp
.
RB_MallBase_Extend
()
{
});
foreach
(
var
item
in
list
)
{
var
ulist
=
member_UserRepository
.
AutoReleaseTheOffline
(
item
.
TenantId
,
item
.
MallBaseId
);
foreach
(
var
qitem
in
ulist
)
{
foreach
(
var
qitem
in
ulist
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Member_User_Extend
.
SuperiorId
),
0
},
{
nameof
(
RB_Member_User_Extend
.
DownlineCondition
),
DistrbutorReferralsEnum
.
SCDJ
},
...
...
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