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
f40ba069
Commit
f40ba069
authored
Dec 11, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
goods
parent
5875548d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+2
-7
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
f40ba069
...
...
@@ -182,12 +182,11 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
elseif
(
$type
==
3
){
if
(
$attrStr
||
$activities
){
$where
[]
=
'han_goods_common.goods_commonid in('
.
trim
(
$ids
,
','
)
.
')'
;
$order
[]
=
[
'han_goods_common.goods_commonid'
,
'DESC'
];
}
else
{
$where
[]
=
'goods_commonid in('
.
trim
(
$ids
,
','
)
.
')'
;
$order
[]
=
[
'goods_commonid'
,
'DESC'
];
}
}
$order
[]
=
[
'goodsCommonid'
,
'DESC'
];
$saleSort
?
$ttl
=
\Our\ApiConst
::
oneHour
:
\Our\ApiConst
::
oneDaySecond
;
if
(
$activities
){
$activities
=
array_keys
(
$activities
);
...
...
@@ -487,11 +486,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$keyword
!==
''
&&
$where
[]
=
"goods_name like '%
{
$keyword
}
%'"
;
list
(
$_where
,
$order
,
$attrStr
,
$saleSort
)
=
$this
->
getParam
(
$attrValue
,
$minPrice
,
$maxPrice
,
$goodsSort
);
$where
=
array_merge
(
$where
,
$_where
);
if
(
$attrStr
||
$activities
){
$order
[]
=
[
'han_goods_common.goods_commonid'
,
'DESC'
];
}
else
{
$order
[]
=
[
'goods_commonid'
,
'DESC'
];
}
$order
[]
=
[
'goodsCommonId'
,
'DESC'
];
$commonDAO
=
\DAO\GoodsCommonModel
::
getInstance
();
$saleSort
?
$ttl
=
\Our\ApiConst
::
oneHour
:
\Our\ApiConst
::
oneDaySecond
;
if
(
!
$activities
){
...
...
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