|
|
@@ -207,7 +207,7 @@ class ItemService extends BaseService
|
|
|
return false;
|
|
|
}
|
|
|
$hasClassIds = array_column($ptClass, 'id');
|
|
|
- $relate = PtItemCatRelateClass::getAllByCondition(['catId' => ['in', $hasClassIds]], null, '*');
|
|
|
+ $relate = PtItemCatRelateClass::getAllByCondition(['catId' => ['in', $hasClassIds]], 'inTurn desc', '*');
|
|
|
$relateInfo = [];
|
|
|
$hasItemIds = [];
|
|
|
if (!empty($relate)) {
|
|
|
@@ -276,10 +276,10 @@ class ItemService extends BaseService
|
|
|
ProductClass::batchAdd($productAddData);
|
|
|
|
|
|
}
|
|
|
- //2021-5-7 增加默认分组
|
|
|
+ //2021-5-7 增加默认分类
|
|
|
$classData = [
|
|
|
'sjId' => $sjId,
|
|
|
- 'name' => '默认分组',
|
|
|
+ 'name' => '默认分类',
|
|
|
'inTurn' => -1,
|
|
|
'isDefault' => 1,
|
|
|
];
|