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
6ec10962
Commit
6ec10962
authored
Feb 13, 2019
by
lingqingmei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lyz_cart' of
http://git.shenbd.com/api-project-dev/api.shenbd.com
into master_dev
parents
94aaa1ed
b149c438
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
GoodsCommonService.php
application/models/Business/Goods/GoodsCommonService.php
+4
-2
No files found.
application/models/Business/Goods/GoodsCommonService.php
View file @
6ec10962
...
@@ -1359,7 +1359,6 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -1359,7 +1359,6 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
}
else
{
}
else
{
$plusFlag
=
true
;
$plusFlag
=
true
;
}
}
$goodsClassStrMinus
=
$storeOnlineGoodsClassDao
->
getChangedGoodsClass
(
\Our\ApiConst
::
minus
);
$goodsClassStrMinus
=
$storeOnlineGoodsClassDao
->
getChangedGoodsClass
(
\Our\ApiConst
::
minus
);
if
(
$goodsClassStrMinus
&&
$minusFlag
==
false
){
if
(
$goodsClassStrMinus
&&
$minusFlag
==
false
){
$goodsClassMinus
=
unserialize
(
$goodsClassStrMinus
);
$goodsClassMinus
=
unserialize
(
$goodsClassStrMinus
);
...
@@ -1384,6 +1383,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -1384,6 +1383,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$oldTemp
=
$storeOnlineGoodsClassDao
->
findByWhere
(
$goodsClass
);
$oldTemp
=
$storeOnlineGoodsClassDao
->
findByWhere
(
$goodsClass
);
if
(
!
$oldTemp
){
if
(
!
$oldTemp
){
$storeOnlineGoodsClassDao
->
insert
(
$goodsClass
);
$storeOnlineGoodsClassDao
->
insert
(
$goodsClass
);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db6\StoreOnlineGoodsClassRedisModel
::
getInstance
(),
array
(
&
$storeOnlineGoodsClassDao
,
'getStoreOnlineGoodsClassesByGcId'
),
array
(),
array
(
$goodsClass
[
'store_id'
]));
}
}
return
true
;
return
true
;
}
}
...
@@ -1395,16 +1395,18 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
...
@@ -1395,16 +1395,18 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$gcFrom
=
$goodsClass
[
'gc_from'
];
$gcFrom
=
$goodsClass
[
'gc_from'
];
$where
[
'gc_id_1'
]
=
$goodsClass
[
'gc_id_1'
];
$where
[
'gc_id_1'
]
=
$goodsClass
[
'gc_id_1'
];
$where
[
'gc_id_2'
]
=
$goodsClass
[
'gc_id_2'
];
$where
[
'gc_id_2'
]
=
$goodsClass
[
'gc_id_2'
];
$where
[
'gc_id_3'
]
=
$goodsClass
[
'gc_id_3'
];
$where
[
'store_id'
]
=
$goodsClass
[
'store_id'
];
$where
[
'store_id'
]
=
$goodsClass
[
'store_id'
];
$where
[
'goods_state'
]
=
\Our\ApiConst
::
onlineGoodsState
;
$where
[
'goods_state'
]
=
\Our\ApiConst
::
onlineGoodsState
;
$where
[
'goods_verify'
]
=
\Our\ApiConst
::
onlineGoodsVerify
;
$where
[
'goods_verify'
]
=
\Our\ApiConst
::
onlineGoodsVerify
;
if
(
$gcFrom
==
\Our\ApiConst
::
one
){
if
(
$gcFrom
==
\Our\ApiConst
::
one
){
$where
[
'goods_class_t_id'
]
=
$goodsClass
[
'gc_id_3'
];
$where
[
'goods_class_t_id'
]
=
$goodsClass
[
'gc_id_3'
];
}
else
{
$where
[
'gc_id_3'
]
=
$goodsClass
[
'gc_id_3'
];
}
}
$tempOne
=
$goodsCommonDao
->
getOne
(
$where
,
'goods_commonid'
);
$tempOne
=
$goodsCommonDao
->
getOne
(
$where
,
'goods_commonid'
);
if
(
!
$tempOne
){
if
(
!
$tempOne
){
$storeOnlineGoodsClassDao
->
del
(
$goodsClass
);
$storeOnlineGoodsClassDao
->
del
(
$goodsClass
);
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db6\StoreOnlineGoodsClassRedisModel
::
getInstance
(),
array
(
&
$storeOnlineGoodsClassDao
,
'getStoreOnlineGoodsClassesByGcId'
),
array
(),
array
(
$goodsClass
[
'store_id'
]));
}
}
}
}
}
}
...
...
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