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
9345ca48
Commit
9345ca48
authored
Nov 07, 2018
by
christ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
orders
parent
87fa9e3b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
197 additions
and
96 deletions
+197
-96
ApiConst.php
application/library/Our/ApiConst.php
+2
-0
OrderConst.php
application/library/Our/OrderConst.php
+1
-1
OrderService.php
application/models/Business/Order/OrderService.php
+9
-9
Order.php
application/models/DAO/Order/Order.php
+3
-3
test.html
application/views/qa/test.html
+182
-83
No files found.
application/library/Our/ApiConst.php
View file @
9345ca48
...
@@ -147,7 +147,9 @@ class ApiConst
...
@@ -147,7 +147,9 @@ class ApiConst
const
orderStateWaitPay
=
10
;
//待付款
const
orderStateWaitPay
=
10
;
//待付款
const
orderStateWaitConfirm
=
20
;
//待接单
const
orderStateWaitConfirm
=
20
;
//待接单
const
orderStateWaitSend
=
25
;
//待发货
const
orderStateWaitSend
=
25
;
//待发货
const
orderStateWaitSendOne
=
26
;
//待发货
const
orderStateWaitRecieve
=
30
;
//待收货
const
orderStateWaitRecieve
=
30
;
//待收货
const
orderStateWaitRecieveOne
=
31
;
//待收货
const
orderStateComplete
=
40
;
//已完成
const
orderStateComplete
=
40
;
//已完成
const
orderStateClose
=
-
1
;
//关闭定单
const
orderStateClose
=
-
1
;
//关闭定单
const
receivePayment
=
1
;
//商家收到货款了
const
receivePayment
=
1
;
//商家收到货款了
...
...
application/library/Our/OrderConst.php
View file @
9345ca48
...
@@ -13,7 +13,7 @@ class OrderConst {
...
@@ -13,7 +13,7 @@ class OrderConst {
const
waitRecieve
=
"待收货"
;
const
waitRecieve
=
"待收货"
;
const
waitPay
=
"待付款"
;
const
waitPay
=
"待付款"
;
const
waitYouPay
=
"等待您付款"
;
const
waitYouPay
=
"等待您付款"
;
const
waitSend
=
"
待发货
"
;
const
waitSend
=
"
配送中
"
;
const
waitSellerSend
=
"等待卖家发货"
;
const
waitSellerSend
=
"等待卖家发货"
;
const
sellerSended
=
"商家已发货"
;
const
sellerSended
=
"商家已发货"
;
const
waitGetFromShop
=
"待到店自取"
;
const
waitGetFromShop
=
"待到店自取"
;
...
...
application/models/Business/Order/OrderService.php
View file @
9345ca48
...
@@ -123,15 +123,15 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -123,15 +123,15 @@ class OrderServiceModel extends \Business\AbstractModel
if
(
$orderState
==
ApiConst
::
orderStateComplete
){
if
(
$orderState
==
ApiConst
::
orderStateComplete
){
$where
[
'evaluation_state'
]
=
ApiConst
::
waitEvaluation
;
$where
[
'evaluation_state'
]
=
ApiConst
::
waitEvaluation
;
}
}
// if($orderState==ApiConst::orderStateWaitReciev
e){
if
(
$orderState
==
ApiConst
::
orderStateWaitRecieveOn
e
){
//
$where['shipping_type']=array('eq',ApiConst::bySeller);
$where
[
'shipping_type'
]
=
array
(
'eq'
,
ApiConst
::
bySeller
);
//
$where['order_state'] =array('in',array(ApiConst::orderStateWaitSend,ApiConst::orderStateWaitRecieve));
$where
[
'order_state'
]
=
array
(
'in'
,
array
(
ApiConst
::
orderStateWaitSend
,
ApiConst
::
orderStateWaitRecieve
));
//
}
}
// if($orderState==ApiConst::orderStateWaitSend
){
if
(
$orderState
==
ApiConst
::
orderStateWaitSendOne
){
//
$where['shipping_type']=array('eq',ApiConst::bySelf);
$where
[
'shipping_type'
]
=
array
(
'eq'
,
ApiConst
::
bySelf
);
//
$where['order_state']=array('eq',ApiConst::orderStateWaitRecieve);
$where
[
'order_state'
]
=
array
(
'eq'
,
ApiConst
::
orderStateWaitRecieve
);
//
}
}
$where
[
'order_state'
]
=
array
(
'in'
,
explode
(
','
,
$orderState
));
//
$where['order_state'] = array('in', explode(',', $orderState));
}
}
}
}
...
...
application/models/DAO/Order/Order.php
View file @
9345ca48
...
@@ -436,9 +436,9 @@ class OrderModel extends \DAO\AbstractModel
...
@@ -436,9 +436,9 @@ class OrderModel extends \DAO\AbstractModel
$orderText
=
''
;
$orderText
=
''
;
if
(
$order
[
'orderState'
]
==
ApiConst
::
orderStateWaitRecieve
)
{
if
(
$order
[
'orderState'
]
==
ApiConst
::
orderStateWaitRecieve
)
{
$orderText
=
OrderConst
::
getOnShop
;
//默认到店自取
$orderText
=
OrderConst
::
getOnShop
;
//默认到店自取
if
(
$order
[
'shippingType'
]
==
ApiConst
::
express
)
{
//
if ($order['shippingType'] == ApiConst::express) {
$orderText
=
OrderConst
::
waitRecieve
;
//
$orderText = OrderConst::waitRecieve;
}
//
}
if
(
$order
[
'shippingType'
]
==
ApiConst
::
bySeller
)
{
if
(
$order
[
'shippingType'
]
==
ApiConst
::
bySeller
)
{
$orderText
=
OrderConst
::
sendding
;
$orderText
=
OrderConst
::
sendding
;
}
}
...
...
application/views/qa/test.html
View file @
9345ca48
This diff is collapsed.
Click to expand it.
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