|
|
@@ -12,22 +12,20 @@ class CustomService extends BaseService
|
|
|
public static $baseFile = '\bizGhs\custom\classes\CustomClass';
|
|
|
|
|
|
//分享建立客户和供货商关系 ssh 2021.2.28
|
|
|
- public static function shareBuildTrade($applyData, $newSj, $newShop)
|
|
|
+ public static function shareBuildTrade($applyData, $newShop)
|
|
|
{
|
|
|
- $sjId = $newSj['id'] ?? 0;
|
|
|
$shopId = $newShop['id'] ?? 0;
|
|
|
- $introSjId = $applyData['introSjId'] ?? 0;
|
|
|
$introShopId = $applyData['introShopId'] ?? 0;
|
|
|
//申请人是花店,介绍人是供货商
|
|
|
if ($applyData['style'] == SjClass::STYLE_RETAIL) {
|
|
|
if ($applyData['introStyle'] == SjClass::STYLE_SUPPLIER) {
|
|
|
- CustomClass::buildTrade($introShopId, $introSjId, $shopId, $sjId);
|
|
|
+ CustomClass::build($introShopId, $shopId);
|
|
|
}
|
|
|
}
|
|
|
//申请人是供货商,介绍人是花店
|
|
|
if ($applyData['style'] == SjClass::STYLE_SUPPLIER) {
|
|
|
if ($applyData['introStyle'] == SjClass::STYLE_RETAIL) {
|
|
|
- CustomClass::buildTrade($shopId, $sjId, $introShopId, $introSjId);
|
|
|
+ CustomClass::build($shopId, $introShopId);
|
|
|
}
|
|
|
}
|
|
|
}
|