|
|
@@ -33,7 +33,7 @@ class CustomClass extends BaseClass
|
|
|
$currentPy = stringUtil::py($currentName);
|
|
|
if ($applyData['style'] == SjClass::STYLE_RETAIL) {
|
|
|
if ($applyData['introStyle'] == SjClass::STYLE_SUPPLIER) {
|
|
|
- $custom = CustomClass::getByCondition(['ownShopId' => $applyData['introShopId'], 'shopId' => $shopId]);
|
|
|
+ $custom = self::getByCondition(['ownShopId' => $applyData['introShopId'], 'shopId' => $shopId]);
|
|
|
if (empty($custom)) {
|
|
|
$customData = [
|
|
|
'sjId' => $sjId,//零售商家id
|
|
|
@@ -50,7 +50,7 @@ class CustomClass extends BaseClass
|
|
|
'long' => $applyData['long'],
|
|
|
'lat' => $applyData['lat'],
|
|
|
];
|
|
|
- $custom = CustomClass::addCustom($customData);
|
|
|
+ $custom = self::addCustom($customData);
|
|
|
}
|
|
|
$customId = $custom['id'];
|
|
|
|
|
|
@@ -91,14 +91,14 @@ class CustomClass extends BaseClass
|
|
|
];
|
|
|
$ghs = GhsClass::addGhs($ghsData);
|
|
|
$ghsId = $ghs['id'] ?? 0;
|
|
|
- CustomClass::updateById($customId, ['ghsId' => $ghsId]);
|
|
|
+ self::updateById($customId, ['ghsId' => $ghsId]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if ($applyData['style'] == SjClass::STYLE_SUPPLIER) {
|
|
|
if ($applyData['introStyle'] == SjClass::STYLE_RETAIL) {
|
|
|
- $has = CustomClass::getByCondition(['ownShopId' => $shopId, 'shopId' => $applyData['introShopId']]);
|
|
|
+ $has = self::getByCondition(['ownShopId' => $shopId, 'shopId' => $applyData['introShopId']]);
|
|
|
$introSjId = $applyData['introSjId'] ?? 0;
|
|
|
$introShopId = $applyData['introShopId'] ?? 0;
|
|
|
if (empty($has)) {
|
|
|
@@ -129,7 +129,7 @@ class CustomClass extends BaseClass
|
|
|
'long' => $applyData['long'],
|
|
|
'lat' => $applyData['lat'],
|
|
|
];
|
|
|
- $has = CustomClass::addCustom($customData);
|
|
|
+ $has = self::addCustom($customData);
|
|
|
}
|
|
|
$customId = $has['id'] ?? 0;
|
|
|
$ghs = GhsClass::getByCondition(['ownShopId' => $introShopId, 'shopId' => $shopId]);
|
|
|
@@ -159,7 +159,7 @@ class CustomClass extends BaseClass
|
|
|
];
|
|
|
$ghs = GhsClass::addGhs($ghsData);
|
|
|
$ghsId = $ghs['id'] ?? 0;
|
|
|
- CustomClass::updateById($customId, ['ghsId' => $ghsId]);
|
|
|
+ self::updateById($customId, ['ghsId' => $ghsId]);
|
|
|
}
|
|
|
}
|
|
|
}
|