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
04ca867c
Commit
04ca867c
authored
Sep 09, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
193987f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ApiConst.php
application/library/Our/ApiConst.php
+1
-0
QmDeliverymanLog.php
application/models/DAO/Order/QmDeliverymanLog.php
+4
-2
No files found.
application/library/Our/ApiConst.php
View file @
04ca867c
...
...
@@ -201,6 +201,7 @@ class ApiConst
//配送表deliveryState
//当购买的时候是待送货,当退货的时候是待收货
const
deliveryStateWaitTen
=
10
;
const
deliveryStateWait
=
20
;
const
deliveryStateComplete
=
30
;
...
...
application/models/DAO/Order/QmDeliverymanLog.php
View file @
04ca867c
...
...
@@ -3,6 +3,7 @@
namespace
DAO\Order
;
use
Our\ApiConst
;
use
Our\Common
;
use
Our\DbNameConst
;
use
Our\ImageConst
;
...
...
@@ -93,8 +94,9 @@ class QmDeliverymanLogModel extends \DAO\AbstractModel
$where
[
'delivery_state'
]
=
ApiConst
::
deliveryStateWait
;
}
if
(
$type
==
ApiConst
::
orderTypeRefund
)
{
$where
[
'order_type'
]
=
ApiConst
::
orderTypeRefund
;
$where
[
'delivery_state'
]
=
ApiConst
::
deliveryStateWait
;
$where
=
Common
::
format
(
" order_type=
{
0
}
and (delivery_state=
{
1
}
or delivery_state=
{
2
}
"
,
ApiConst
::
orderTypeRefund
,
ApiConst
::
deliveryStateWait
,
ApiConst
::
deliveryStateWaitTen
);
// $where['order_type'] = ApiConst::orderTypeRefund;
// $where['delivery_state'] = ApiConst::deliveryStateWait;
}
if
(
$type
==
ApiConst
::
deliveryStateWait
)
{
$where
[
'delivery_state'
]
=
ApiConst
::
deliveryStateComplete
;
...
...
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