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
e6877810
Commit
e6877810
authored
Nov 01, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order
parent
d3165e72
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
4 deletions
+28
-4
ApiConst.php
application/library/Our/ApiConst.php
+3
-1
AbstractIndex.php
application/library/Our/Controller/AbstractIndex.php
+0
-0
OrderService.php
application/models/Business/Order/OrderService.php
+9
-1
RefundService.php
application/models/Business/Order/RefundService.php
+1
-0
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+7
-2
Shopkeeper.php
application/modules/Client/controllers/Shopkeeper.php
+8
-0
No files found.
application/library/Our/ApiConst.php
View file @
e6877810
...
...
@@ -228,8 +228,9 @@ class ApiConst
const
bySelf
=
0
;
const
bySeller
=
1
;
const
express
=
2
;
//待自提
const
oneHandred
=
100
;
//待配送
const
oneHandredOne
=
101
;
//文案类型
...
...
@@ -410,6 +411,7 @@ class ApiConst
const
messageWaitReceive
=
101
;
//待配送
const
messageWaitSend
=
102
;
//待自提
const
messageWaitGet
=
103
;
//售后待处理
const
messageRefundProccessing
=
104
;
...
...
application/library/Our/Controller/AbstractIndex.php
100755 → 100644
View file @
e6877810
File mode changed from 100755 to 100644
application/models/Business/Order/OrderService.php
View file @
e6877810
...
...
@@ -123,7 +123,15 @@ class OrderServiceModel extends \Business\AbstractModel
if
(
$orderState
==
ApiConst
::
orderStateComplete
){
$where
[
'evaluation_state'
]
=
ApiConst
::
waitEvaluation
;
}
$where
[
'order_state'
]
=
array
(
'in'
,
explode
(
','
,
$orderState
));
if
(
$orderState
==
ApiConst
::
orderStateWaitRecieve
){
$where
[
'shipping_type'
]
=
array
(
'eq'
,
ApiConst
::
bySeller
);
$where
[
'order_state'
]
=
array
(
'in'
,
array
(
ApiConst
::
orderStateWaitSend
,
ApiConst
::
orderStateWaitRecieve
));
}
if
(
$orderState
==
ApiConst
::
orderStateWaitSend
){
$where
[
'shipping_type'
]
=
array
(
'eq'
,
ApiConst
::
bySelf
);
$where
[
'order_state'
]
=
array
(
'eq'
,
ApiConst
::
orderStateWaitRecieve
);
}
// $where['order_state'] = array('in', explode(',', $orderState));
}
}
...
...
application/models/Business/Order/RefundService.php
View file @
e6877810
...
...
@@ -476,6 +476,7 @@ class RefundServiceModel extends \Business\AbstractModel
$refundStateName
=
$refundReturnDao
->
getRefundTextStatus
(
$refundArrayUnLine
);
$orderGoodsDao
->
update
(
array
(
'rec_id'
=>
$orderGoods
[
'recId'
]),
array
(
'refund_state_name'
=>
$refundStateName
,
'refund_id'
=>
$state
));
$orderLogDao
->
addRefundOrderLog
(
$orderInfo
[
'orderId'
],
$refundArray
[
'refund_type'
],
DescribeConst
::
buyer
,
$orderInfo
[
'buyerName'
],
$orderInfo
[
'orderState'
]);
\Our\RedisHelper
::
rpush
(
'client_push'
,
array
(
'storeId'
=>
$refund
[
'storeId'
],
'type'
=>
ApiConst
::
messageRefundProccessing
,
'op'
=>
NameConst
::
reduce
,
'num'
=>
ApiConst
::
one
,
'params'
=>
array
(
'id'
=>
$refund
[
'refundId'
])));
if
(
$orderInfo
[
'orderState'
]
==
ApiConst
::
orderStateWaitRecieve
)
{
$orderDao
->
editOrderLock
(
$orderInfo
[
'orderId'
]);
}
...
...
application/models/Business/Store/ShopkeeperService.php
View file @
e6877810
...
...
@@ -378,10 +378,15 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$allQuery
[
'bool'
]
=
array
();
if
(
!
empty
(
$keyword
))
{
$orderState
=
!
empty
(
$orderState
)
?
$orderState
:
false
;
if
(
strlen
(
$keyword
)
==
ApiConst
::
four
)
{
if
(
$orderState
==
ApiConst
::
oneHandred
)
{
$where
=
'han_order.store_id='
.
$storeId
;
$where
.=
' and han_order.shipping_type='
.
ApiConst
::
bySelf
;
$where
.=
Common
::
format
(
" and SUBSTRING(order_sn,
{
0
}
,
{
1})='{2
}
'"
,
ApiConst
::
positionPickupCodeBeginMysql
,
ApiConst
::
four
,
$keyword
);
}
else
{
}
else
if
(
$orderState
==
ApiConst
::
orderStateWaitPay
){
$where
=
'han_order.store_id='
.
$storeId
;
$where
.=
' and han_order.order_state='
.
$orderState
;
$where
.=
Common
::
format
(
" and (order_sn =
{
0
}
or buyer_email=
{
0
}
)"
,
$keyword
);
}
else
{
$where
=
$this
->
getOrderIndexWhere
(
$storeId
,
$keyword
,
$pageIndex
,
$pageSize
,
$orderState
);
}
}
else
{
...
...
application/modules/Client/controllers/Shopkeeper.php
View file @
e6877810
...
...
@@ -248,6 +248,14 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
$this
->
success
(
$res
);
}
/**
* 添加库存
* @author king
*/
public
function
confirmReceiveAction
(){
}
}
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