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
940e4ab0
Commit
940e4ab0
authored
Jul 21, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
https://gitlab.yidian-inc.com/bp/goods
into test
parents
4759e409
8b140d91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ElasticGoodService.php
application/services/goods/ElasticGoodService.php
+1
-1
TccService.php
application/services/tcc/TccService.php
+3
-3
No files found.
application/services/goods/ElasticGoodService.php
View file @
940e4ab0
...
...
@@ -233,7 +233,7 @@ class ElasticGoodService
];
//gte 是大于等于; gt是大于; lte是小于等于; lt是小于
$data
[
"query"
][
"bool"
][
"filter"
][][
"range"
]
=
[
"inventory_rest"
=>
[[
"gt"
=>
0
]]];
$data
[
"query"
][
"bool"
][
"filter"
][][
"range"
]
=
[
"price"
=>
[[
"gt"
=>
0
]]];
if
(
!
empty
(
$searchContent
)
||
(
!
empty
(
$subjectName
)
&&
$subjectName
!=
"本周上新"
))
{
$multiMatch
=
[[
"multi_match"
=>
[
"query"
=>
$searchContent
.
$subjectName
,
...
...
application/services/tcc/TccService.php
View file @
940e4ab0
...
...
@@ -429,7 +429,7 @@ class TccService
foreach
(
$skus
as
$sku
)
{
$goodsSkuId
=
$sku
[
"goods_sku_id"
];
if
(
!
empty
(
$sku
[
"total_amount_order"
])
&&
$sku
[
"online_status"
]
==
GoodsSku
::
ONLINE_STATUS_ONLINE
)
{
if
(
!
empty
(
$sku
[
"total_amount_order"
]))
{
if
(
empty
(
$numList
[
$goodsSkuId
]))
{
return
self
::
TCC_RESULT_FAIL
;
}
...
...
@@ -556,7 +556,7 @@ class TccService
foreach
(
$skus
as
$sku
)
{
$goodsSkuId
=
$sku
[
"goods_sku_id"
];
if
(
!
empty
(
$sku
[
"inventory_lock"
])
&&
$sku
[
"online_status"
]
==
GoodsSku
::
ONLINE_STATUS_ONLINE
)
{
if
(
!
empty
(
$sku
[
"inventory_lock"
]))
{
if
(
empty
(
$numList
[
$goodsSkuId
]))
{
return
self
::
TCC_RESULT_FAIL
;
}
...
...
@@ -696,7 +696,7 @@ class TccService
foreach
(
$skus
as
$sku
)
{
$goodsSkuId
=
$sku
[
"goods_sku_id"
];
if
(
!
empty
(
$sku
[
"inventory_lock"
])
&&
$sku
[
"online_status"
]
==
GoodsSku
::
ONLINE_STATUS_ONLINE
)
{
if
(
!
empty
(
$sku
[
"inventory_lock"
]))
{
if
(
empty
(
$numList
[
$goodsSkuId
]))
{
return
self
::
TCC_RESULT_FAIL
;
}
...
...
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