Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
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
bp
goods
Commits
9538a106
Commit
9538a106
authored
Aug 27, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改分页
parent
b5afde9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
MarketingGoodsService.php
application/services/marketing/MarketingGoodsService.php
+3
-2
No files found.
application/services/marketing/MarketingGoodsService.php
View file @
9538a106
...
...
@@ -52,7 +52,8 @@ class MarketingGoodsService
}
public
static
function
marketingGoodsList
(
$params
)
{
$limit
=
!
empty
(
$params
[
'num'
])
?
$params
[
'num'
]
:
20
;
//@todo 分页放大100倍,主要解决商品到期和商品库存为零的过滤场景
$limit
=
!
empty
(
$params
[
'num'
])
?
$params
[
'num'
]
*
100
:
20
;
$userId
=
!
empty
(
$params
[
'user_id'
])
?
$params
[
'user_id'
]
:
''
;
...
...
@@ -108,7 +109,7 @@ class MarketingGoodsService
$onlineStatus
=
!
empty
(
$goodsSkuList
[
$value
[
'goods_sku_id'
]][
'online_status'
])
?
$goodsSkuList
[
$value
[
'goods_sku_id'
]][
'online_status'
]
:
''
;
if
(
!
empty
(
$inventoryRest
)
&&
$expirationTime
>
date
(
"Y-m-d H:i:s"
)
&&
$onlineStatus
==
1
)
{
if
(
!
empty
(
$inventoryRest
)
&&
$expirationTime
>
date
(
"Y-m-d H:i:s"
)
&&
$onlineStatus
==
1
)
{
$list
[
$i
][
'inventory_rest'
]
=
!
empty
(
$goodsSkuList
[
$value
[
'goods_sku_id'
]][
'inventory_rest'
])
?
$goodsSkuList
[
$value
[
'goods_sku_id'
]][
'inventory_rest'
]
:
''
;
$list
[
$i
]
=
$value
;
$list
[
$i
][
'life_account_id'
]
=
!
empty
(
$goodsSkuList
[
$value
[
'goods_sku_id'
]][
'life_account_id'
])
?
$goodsSkuList
[
$value
[
'goods_sku_id'
]][
'life_account_id'
]
:
''
;
...
...
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