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
c671cdda
Commit
c671cdda
authored
Sep 20, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz
parents
aa258842
4707719e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
OrderService.php
application/models/Business/Order/OrderService.php
+1
-1
ShopkeeperService.php
application/models/Business/Store/ShopkeeperService.php
+1
-1
OrderGoods.php
application/models/DAO/Order/OrderGoods.php
+1
-0
No files found.
application/models/Business/Order/OrderService.php
View file @
c671cdda
...
@@ -317,7 +317,7 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -317,7 +317,7 @@ class OrderServiceModel extends \Business\AbstractModel
}
}
}
}
if
(
$memberId
)
{
if
(
$memberId
)
{
$orderDao
->
deleteOrderCache
(
$memberId
,
$orderId
,
$order
[
'store
_i
d'
],
true
);
$orderDao
->
deleteOrderCache
(
$memberId
,
$orderId
,
$order
[
'store
I
d'
],
true
);
// $memberDao->fromOrderStateToOrderState($memberId,$order['order_state'],ApiConst::orderStateCancel);
// $memberDao->fromOrderStateToOrderState($memberId,$order['order_state'],ApiConst::orderStateCancel);
}
}
}
}
...
...
application/models/Business/Store/ShopkeeperService.php
View file @
c671cdda
...
@@ -54,7 +54,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
...
@@ -54,7 +54,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
();
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
();
$favoritesStoreDao
=
\DAO\FavoritesStoreModel
::
getInstance
();
$favoritesStoreDao
=
\DAO\FavoritesStoreModel
::
getInstance
();
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
();
$orderGoodsDao
=
\DAO\Order\OrderGoodsModel
::
getInstance
();
$goodsCount
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$orderGoodsDao
,
'getOrderGoodsCountByStoreId'
),
array
(
$storeId
),
ApiConst
::
one
,
array
(
$storeId
));
$goodsCount
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$orderGoodsDao
,
'getOrderGoodsCountByStoreId'
),
array
(
$storeId
),
ApiConst
::
tenDaySecond
,
array
(
$storeId
));
$condition
[
'store_id'
]
=
$storeId
;
$condition
[
'store_id'
]
=
$storeId
;
//获取店铺信息
//获取店铺信息
$store
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$this
->
storeDao
,
'getInfo'
),
array
(
$condition
),
ApiConst
::
tenDaySecond
,
array
(
$storeId
));
$store
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$this
->
storeDao
,
'getInfo'
),
array
(
$condition
),
ApiConst
::
tenDaySecond
,
array
(
$storeId
));
...
...
application/models/DAO/Order/OrderGoods.php
View file @
c671cdda
...
@@ -54,6 +54,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
...
@@ -54,6 +54,7 @@ class OrderGoodsModel extends \DAO\AbstractModel {
*/
*/
public
function
update
(
$where
,
$data
){
public
function
update
(
$where
,
$data
){
$this
->
setDb
(
DbNameConst
::
masterDBConnectName
);
$this
->
setDb
(
DbNameConst
::
masterDBConnectName
);
$data
[
'gmt_update'
]
=
TIMESTAMP
;
return
$this
->
db
->
update
(
$this
->
_tableName
)
->
where
(
$where
)
->
rows
(
$data
)
->
execute
();
return
$this
->
db
->
update
(
$this
->
_tableName
)
->
where
(
$where
)
->
rows
(
$data
)
->
execute
();
}
}
...
...
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