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
256a0a0f
Commit
256a0a0f
authored
Aug 20, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除缓存方法
parent
c7184dfd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
1 deletion
+56
-1
DbLock.php
application/library/Lock/DbLock.php
+7
-0
FileLock.php
application/library/Lock/FileLock.php
+7
-0
ILock.php
application/library/Lock/ILock.php
+7
-0
LockConst.php
application/library/Lock/LockConst.php
+7
-0
RedisLock.php
application/library/Lock/RedisLock.php
+7
-0
GroupSaleService.php
application/models/Business/Goods/GroupSaleService.php
+6
-1
Lock.php
application/models/DAO/Lock.php
+7
-0
LockRedis.php
application/models/Redis/Db0/LockRedis.php
+8
-0
No files found.
application/library/Lock/DbLock.php
0 → 100644
View file @
256a0a0f
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 11:02
* Description:
*/
\ No newline at end of file
application/library/Lock/FileLock.php
0 → 100644
View file @
256a0a0f
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:10
* Description:
*/
\ No newline at end of file
application/library/Lock/ILock.php
0 → 100644
View file @
256a0a0f
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:09
* Description:
*/
\ No newline at end of file
application/library/Lock/LockConst.php
0 → 100644
View file @
256a0a0f
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 11:18
* Description:
*/
\ No newline at end of file
application/library/Lock/RedisLock.php
0 → 100644
View file @
256a0a0f
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:48
* Description:
*/
\ No newline at end of file
application/models/Business/Goods/GroupSaleService.php
View file @
256a0a0f
...
...
@@ -262,10 +262,15 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
return
false
;
}
$pbundlingInstance
=
\DAO\PBundlingModel
::
getInstance
(
\Our\DbNameConst
::
salveDBConnectName
);
$groupList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$pbundlingInstance
,
'getList'
),
array
(
$this
->
pBundingField
,
array
(
'bl_id'
=>
array
(
'in'
,
$blIds
)),
array
(
\Our\ApiConst
::
zero
,
\Our\ApiConst
::
five
)),
\Our\ApiConst
::
oneDaySecond
);
$groupList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$pbundlingInstance
,
'getList'
),
array
(
$this
->
pBundingField
,
array
(
'bl_id'
=>
array
(
'in'
,
$blIds
)),
array
(
\Our\ApiConst
::
zero
,
\Our\ApiConst
::
five
)),
\Our\ApiConst
::
oneDaySecond
,
array
(
implode
(
','
,
$blIds
))
);
$newGroupList
=
$this
->
getPBundlingList
(
$groupList
,
$dbName
,
$withKeyFlag
);
return
$newGroupList
;
}
public
function
deletPBundlingListByBlId
(
$blId
){
$pbundlingInstance
=
\DAO\PBundlingModel
::
getInstance
(
\Our\DbNameConst
::
salveDBConnectName
);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$pbundlingInstance
,
'getList'
),
array
(),
array
(
'*'
.
$blId
));
}
/**
* 根据商品获取组合
* @param $goodsCommnId
...
...
application/models/DAO/Lock.php
0 → 100644
View file @
256a0a0f
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:15
* Description:
*/
\ No newline at end of file
application/models/Redis/Db0/LockRedis.php
0 → 100644
View file @
256a0a0f
<?php
namespace
Redis\Db0
;
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:30
* Description:
*/
\ No newline at end of file
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