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
39a9005a
Commit
39a9005a
authored
Aug 30, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页分类问题
parent
58e10fb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
StoreService.php
application/models/Business/Store/StoreService.php
+1
-1
LinkMySQL.php
application/models/Mysql/LinkMySQL.php
+4
-7
No files found.
application/models/Business/Store/StoreService.php
View file @
39a9005a
...
@@ -687,7 +687,7 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -687,7 +687,7 @@ class StoreServiceModel extends \Business\AbstractModel{
}
}
public
function
getStoreClassesByStoreIds
(
$storeIds
,
$gcId
){
public
function
getStoreClassesByStoreIds
(
$storeIds
,
$gcId
){
$signStoreClassSql
=
' store_id in ('
.
implode
(
','
,
$storeIds
)
.
') and is_charged
=1
and gc_parent_id ='
.
$gcId
;
$signStoreClassSql
=
' store_id in ('
.
implode
(
','
,
$storeIds
)
.
') and is_charged
=1
and gc_parent_id ='
.
$gcId
;
$qmStoreClassDao
=
\DAO\QmStoreClassModel
::
getInstance
();
$qmStoreClassDao
=
\DAO\QmStoreClassModel
::
getInstance
();
$signClassStores
=
$qmStoreClassDao
->
selectByWhere
(
$signStoreClassSql
,
'store_id,gc_id'
);
$signClassStores
=
$qmStoreClassDao
->
selectByWhere
(
$signStoreClassSql
,
'store_id,gc_id'
);
//$signClassStores = $storeGoodsClassDao->selectByWhere($signStoreClassSql,'store_id,gc_id');
//$signClassStores = $storeGoodsClassDao->selectByWhere($signStoreClassSql,'store_id,gc_id');
...
...
application/models/Mysql/LinkMySQL.php
View file @
39a9005a
...
@@ -767,7 +767,7 @@ class LinkMySQLModel{
...
@@ -767,7 +767,7 @@ class LinkMySQLModel{
public
function
doRollback
()
public
function
doRollback
()
{
{
$bFlag
=
mysqli_rollback
(
$this
->
_connection
);
$bFlag
=
mysqli_rollback
(
$this
->
_connection
);
mysqli_autocommit
(
$this
->
_connection
,
TRUE
);
mysqli_autocommit
(
$this
->
_connection
,
TRUE
);
$this
->
bTransactionInProgress
=
FALSE
;
$this
->
bTransactionInProgress
=
FALSE
;
return
$bFlag
;
return
$bFlag
;
}
}
...
@@ -930,18 +930,15 @@ class LinkMySQLModel{
...
@@ -930,18 +930,15 @@ class LinkMySQLModel{
public
function
getJointWhereByTwoArray
(
$key
,
$array
)
public
function
getJointWhereByTwoArray
(
$key
,
$array
)
{
{
var_dump
(
'test'
);
var_dump
(
$key
)
;
var_dump
(
$array
);
var_dump
(
'test1'
);
if
(
count
(
$array
)
==
3
){
if
(
count
(
$array
)
==
3
){
if
(
!
())
if
(
!
(
$array
[
0
]
==
'between'
&&!
(
empty
(
$array
[
1
])
&&
empty
(
$array
[
2
]))
&&
$key
)){
return
false
;
}
}
else
{
}
else
{
if
(
empty
(
$array
)
||
!
$key
||
(
count
(
$array
)
!=
2
)
||
$array
[
1
]
===
''
||
$array
[
1
]
===
null
)
{
if
(
empty
(
$array
)
||
!
$key
||
(
count
(
$array
)
!=
2
)
||
$array
[
1
]
===
''
||
$array
[
1
]
===
null
)
{
return
false
;
return
false
;
}
}
}
}
echo
'test'
;
$return
=
''
;
$return
=
''
;
$strArray
=
explode
(
'|'
,
$key
);
$strArray
=
explode
(
'|'
,
$key
);
$count
=
count
(
$strArray
);
$count
=
count
(
$strArray
);
...
...
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