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
055d0f51
Commit
055d0f51
authored
Dec 14, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分类符号问题
parent
8e094435
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
GoodsClassService.php
application/models/Business/Goods/GoodsClassService.php
+2
-0
StoreService.php
application/models/Business/Store/StoreService.php
+1
-1
GoodsClass.php
application/models/DAO/GoodsClass.php
+1
-0
No files found.
application/models/Business/Goods/GoodsClassService.php
View file @
055d0f51
...
@@ -304,6 +304,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
...
@@ -304,6 +304,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$whereSql
=
\Our\Common
::
format
(
' gc_id in ({0})'
,
implode
(
','
,
$secondGcIds
));
$whereSql
=
\Our\Common
::
format
(
' gc_id in ({0})'
,
implode
(
','
,
$secondGcIds
));
$secondGcList
=
$goodsClassDao
->
getList
(
'gc_id as gcId,gc_name as gcName'
,
$whereSql
);
$secondGcList
=
$goodsClassDao
->
getList
(
'gc_id as gcId,gc_name as gcName'
,
$whereSql
);
foreach
(
$secondGcList
as
$secTemp
){
foreach
(
$secondGcList
as
$secTemp
){
$secTemp
[
'gcName'
]
=
htmlspecialchars_decode
(
$secTemp
[
'gcName'
]);
$newSecondGcList
[
$secTemp
[
'gcId'
]]
=
$secTemp
;
$newSecondGcList
[
$secTemp
[
'gcId'
]]
=
$secTemp
;
}
}
}
}
...
@@ -312,6 +313,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
...
@@ -312,6 +313,7 @@ class GoodsClassServiceModel extends \Business\AbstractModel{
$whereSql
=
\Our\Common
::
format
(
' gc_id in ({0})'
,
implode
(
','
,
$platThirdGcIds
));
$whereSql
=
\Our\Common
::
format
(
' gc_id in ({0})'
,
implode
(
','
,
$platThirdGcIds
));
$platThirdGcList
=
$goodsClassDao
->
getList
(
'gc_id as gcId,gc_name as gcName'
,
$whereSql
);
$platThirdGcList
=
$goodsClassDao
->
getList
(
'gc_id as gcId,gc_name as gcName'
,
$whereSql
);
foreach
(
$platThirdGcList
as
$platThirdTemp
){
foreach
(
$platThirdGcList
as
$platThirdTemp
){
$platThirdTemp
[
'gcName'
]
=
htmlspecialchars_decode
(
$platThirdTemp
[
'gcName'
]);
$platThirdTemp
[
'gcImage'
]
=
\Our\Common
::
getStaticFile
(
\Our\ImageConst
::
categoryPicPrefix
.
$platThirdTemp
[
'gcId'
]
.
\Our\NameConst
::
jpgSuffix
,
\Our\ImageConst
::
defaultPath
);
$platThirdTemp
[
'gcImage'
]
=
\Our\Common
::
getStaticFile
(
\Our\ImageConst
::
categoryPicPrefix
.
$platThirdTemp
[
'gcId'
]
.
\Our\NameConst
::
jpgSuffix
,
\Our\ImageConst
::
defaultPath
);
$newPlatThirdGcList
[
$platThirdTemp
[
'gcId'
]]
=
$platThirdTemp
;
$newPlatThirdGcList
[
$platThirdTemp
[
'gcId'
]]
=
$platThirdTemp
;
}
}
...
...
application/models/Business/Store/StoreService.php
View file @
055d0f51
...
@@ -833,7 +833,7 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -833,7 +833,7 @@ class StoreServiceModel extends \Business\AbstractModel{
if
(
$goodsClassList
){
if
(
$goodsClassList
){
foreach
(
$goodsClassList
as
$goodsClass
){
foreach
(
$goodsClassList
as
$goodsClass
){
$returnStores
=
array
();
$returnStores
=
array
();
$returnStores
[
'gcName'
]
=
$goodsClass
[
'gcName'
]
;
$returnStores
[
'gcName'
]
=
htmlspecialchars_decode
(
$goodsClass
[
'gcName'
])
;
$existStoreIds
=
null
;
$existStoreIds
=
null
;
$returnStores
[
'stores'
]
=
null
;
$returnStores
[
'stores'
]
=
null
;
$exitStore
=
array
();
$exitStore
=
array
();
...
...
application/models/DAO/GoodsClass.php
View file @
055d0f51
...
@@ -64,6 +64,7 @@ class GoodsClassModel extends \DAO\AbstractModel {
...
@@ -64,6 +64,7 @@ class GoodsClassModel extends \DAO\AbstractModel {
if
(
$result
){
if
(
$result
){
foreach
(
$result
as
&
$class
){
foreach
(
$result
as
&
$class
){
$class
[
'gcName'
]
=
htmlspecialchars_decode
(
$class
[
'gcName'
]);
$class
[
'gcImage'
]
=
\Our\Common
::
getStaticFile
(
\Our\ImageConst
::
categoryPicPrefix
.
$class
[
'gcId'
]
.
\Our\NameConst
::
jpgSuffix
,
\Our\ImageConst
::
defaultPath
);
$class
[
'gcImage'
]
=
\Our\Common
::
getStaticFile
(
\Our\ImageConst
::
categoryPicPrefix
.
$class
[
'gcId'
]
.
\Our\NameConst
::
jpgSuffix
,
\Our\ImageConst
::
defaultPath
);
$classes
[
$class
[
'gcId'
]]
=
$class
;
$classes
[
$class
[
'gcId'
]]
=
$class
;
}
}
...
...
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