|
|
@@ -11,16 +11,7 @@ use linslin\yii2\curl;
|
|
|
|
|
|
class GoodsStyleService extends BaseService
|
|
|
{
|
|
|
-
|
|
|
- public static $baseFile = '\biz\goods\classes\GoodsStyleClass';
|
|
|
|
|
|
- public static function updateGlhsGoods()
|
|
|
- {
|
|
|
- $styleList = GoodsStyleClass::getAllByCondition([], null, '*');
|
|
|
- foreach ($styleList as $style) {
|
|
|
- $goodsId = $style['goodsId'];
|
|
|
- GoodsClass::updateById($goodsId, ['goodsStyle' => 1]);
|
|
|
- }
|
|
|
- }
|
|
|
+ public static $baseFile = '\biz\goods\classes\GoodsStyleClass';
|
|
|
|
|
|
}
|