Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
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
chenchuanwen
my-yaf-project
Commits
a16dac68
Commit
a16dac68
authored
Sep 21, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
5d2d7ec4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+0
-5
RefundReturn.php
application/models/DAO/Order/RefundReturn.php
+1
-0
No files found.
application/models/Business/Store/ShopkeeperService.php
View file @
a16dac68
...
@@ -690,11 +690,8 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -690,11 +690,8 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$this
->
taskIndex
=
PageConst
::
taskPageBegin
;
$this
->
taskIndex
=
PageConst
::
taskPageBegin
;
$this
->
taskSize
=
PageConst
::
taskPageSize
;
$this
->
taskSize
=
PageConst
::
taskPageSize
;
do
{
do
{
echo
1
;
$storeMemberStatisticData
=
$refundReturnDao
->
getMemberStoreStaticsByGmtUpdate
(
$gmtUpdate
,
$this
->
taskIndex
,
$this
->
taskSize
);
$storeMemberStatisticData
=
$refundReturnDao
->
getMemberStoreStaticsByGmtUpdate
(
$gmtUpdate
,
$this
->
taskIndex
,
$this
->
taskSize
);
echo
2
;
$storeMemberStatisticData
=
isset
(
$storeMemberStatisticData
[
'list'
])
?
$storeMemberStatisticData
[
'list'
]
:
false
;
$storeMemberStatisticData
=
isset
(
$storeMemberStatisticData
[
'list'
])
?
$storeMemberStatisticData
[
'list'
]
:
false
;
echo
3
;
if
(
!
empty
(
$storeMemberStatisticData
)){
if
(
!
empty
(
$storeMemberStatisticData
)){
foreach
(
$storeMemberStatisticData
as
$item
){
foreach
(
$storeMemberStatisticData
as
$item
){
$orderDao
->
deleteOrderCache
(
$item
[
'buyerId'
],
$item
[
'orderId'
],
$item
[
'storeId'
],
true
,
true
);
$orderDao
->
deleteOrderCache
(
$item
[
'buyerId'
],
$item
[
'orderId'
],
$item
[
'storeId'
],
true
,
true
);
...
@@ -707,10 +704,8 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -707,10 +704,8 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
}
}
}
}
}
}
echo
4
;
$this
->
taskIndex
++
;
$this
->
taskIndex
++
;
}
while
(
$storeMemberStatisticData
);
}
while
(
$storeMemberStatisticData
);
echo
5
;
file_put_contents
(
$this
->
baseDir
.
PathConst
::
refundRetrunGmtUpdate
,
TIMESTAMP
);
file_put_contents
(
$this
->
baseDir
.
PathConst
::
refundRetrunGmtUpdate
,
TIMESTAMP
);
}
}
...
...
application/models/DAO/Order/RefundReturn.php
View file @
a16dac68
...
@@ -436,6 +436,7 @@ class RefundReturnModel extends \DAO\AbstractModel {
...
@@ -436,6 +436,7 @@ class RefundReturnModel extends \DAO\AbstractModel {
public
function
getMemberStoreStaticsByGmtUpdate
(
$gmtUpdate
,
$pageIndex
,
$pageSize
){
public
function
getMemberStoreStaticsByGmtUpdate
(
$gmtUpdate
,
$pageIndex
,
$pageSize
){
$this
->
setDb
(
$this
->
dbName
);
$this
->
setDb
(
$this
->
dbName
);
$where
=
\Our\Common
::
format
(
' gmt_update>={0} and gmt_update<{1} and refund_state={2}'
,
$gmtUpdate
,
TIMESTAMP
,
ApiConst
::
refundStateComplete
);
$where
=
\Our\Common
::
format
(
' gmt_update>={0} and gmt_update<{1} and refund_state={2}'
,
$gmtUpdate
,
TIMESTAMP
,
ApiConst
::
refundStateComplete
);
echo
$where
.
'|'
.
$this
->
sumField
.
$pageIndex
.
$pageSize
.
';'
;
$res
=
$this
->
lists
(
$where
,
array
(
'gmt_update'
=>
'asc'
),
$this
->
sumField
,
$pageIndex
,
$pageSize
);
$res
=
$this
->
lists
(
$where
,
array
(
'gmt_update'
=>
'asc'
),
$this
->
sumField
,
$pageIndex
,
$pageSize
);
return
$res
[
'list'
]
?
$res
:
false
;
return
$res
[
'list'
]
?
$res
:
false
;
}
}
...
...
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