Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
53be7c77
authored
Aug 11, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
0a311540
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
app/Http/Services/SupplierStatisticsService.php
app/Http/Services/SupplierStatisticsService.php
View file @
53be7c77
...
...
@@ -13,8 +13,9 @@ class SupplierStatisticsService
//获取供应商列表需要统计的信息
public
function
getSupplierListStatistics
()
{
$statisticsKey
=
'supplier_list_statistics_'
.
request
()
->
user
->
userId
;
$redis
=
new
RedisModel
();
$result
=
json_decode
(
$redis
->
get
(
'supplier_list_statistics'
),
true
);
$result
=
json_decode
(
$redis
->
get
(
$statisticsKey
),
true
);
if
(
$result
)
{
return
$result
;
}
...
...
@@ -77,8 +78,8 @@ class SupplierStatisticsService
}
return
$value
;
},
$result
);
$redis
->
set
(
'supplier_list_statistics'
,
json_encode
(
$result
));
$redis
->
expire
(
'supplier_list_statistics'
,
100
);
$redis
->
set
(
$statisticsKey
,
json_encode
(
$result
));
$redis
->
expire
(
$statisticsKey
,
100
);
return
$result
;
}
...
...
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