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
b5bb2af4
Commit
b5bb2af4
authored
Sep 21, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
goods
parent
d810dc5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+4
-4
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
b5bb2af4
...
...
@@ -237,7 +237,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$firstClassId
=
intval
(
$param
[
'firstClassId'
]);
$secondClassId
=
intval
(
$param
[
'secondClassId'
]);
$thirdClassId
=
intval
(
$param
[
'thirdClassId'
]);
$keyword
=
trim
(
$param
[
'keyword'
]);
$keyword
=
(
string
)
trim
(
$param
[
'keyword'
]);
$minPrice
=
intval
(
$param
[
'minPrice'
]);
$maxPrice
=
intval
(
$param
[
'maxPrice'
]);
$goodsSort
=
intval
(
$param
[
'goodsSort'
]);
...
...
@@ -247,7 +247,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$secondClassId
&&
$where
[]
=
"gc_id_2 =
{
$secondClassId
}
"
;
$thirdClassId
&&
$where
[]
=
"gc_id_3 =
{
$thirdClassId
}
"
;
$storeThirdClassId
&&
$where
[]
=
"goods_class_t_id =
{
$storeThirdClassId
}
"
;
$keyword
&&
$where
[]
=
"goods_name like '%
{
$keyword
}
%'"
;
$keyword
!==
''
&&
$where
[]
=
"goods_name like '%
{
$keyword
}
%'"
;
list
(
$_where
,
$order
,
$attrStr
,
$saleSort
)
=
$this
->
getParam
(
$attrValue
,
$minPrice
,
$maxPrice
,
$goodsSort
);
$where
=
array_merge
(
$where
,
$_where
);
...
...
@@ -803,7 +803,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$thirdClassId
=
(
int
)(
$param
[
'thirdClassId'
]);
$storeThirdClassId
=
(
int
)(
$param
[
'storeThirdClassId'
]);
$couponId
=
(
int
)
$param
[
'couponId'
];
$keyword
=
trim
(
$param
[
'keyword'
]);
$keyword
=
(
string
)
trim
(
$param
[
'keyword'
]);
$couponDao
=
\DAO\Coupon\CouponModel
::
getInstance
();
$couponId
&&
$coupon
=
$couponDao
->
findById
(
$couponId
);
...
...
@@ -832,7 +832,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$productData
=
[];
$attributeRedis
=
\Redis\Db4\GoodsAttributeRedisModel
::
getInstance
();
$attrbuteDAO
=
\DAO\GoodsAttributeModel
::
getInstance
();
if
(
!
empty
(
$keyword
)
){
if
(
$keyword
!==
''
){
// if($where){
// $where = implode(' AND ',$where);
// }
...
...
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