|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace bizGhs\custom\services;
|
|
|
|
|
|
+use biz\ghs\classes\GhsClass;
|
|
|
use biz\sj\classes\SjClass;
|
|
|
use bizHd\base\services\BaseService;
|
|
|
use bizGhs\custom\classes\CustomClass;
|
|
|
@@ -28,6 +29,18 @@ class CustomService extends BaseService
|
|
|
CustomClass::build($shopId, $introShopId);
|
|
|
}
|
|
|
}
|
|
|
+ //申请人和介绍人都是花店,但是从供货商采购页邀请也建立关系
|
|
|
+ if ($applyData['style'] == SjClass::STYLE_RETAIL) {
|
|
|
+ if ($applyData['introStyle'] == SjClass::STYLE_RETAIL) {
|
|
|
+ $fromGhsId = $applyData['fromGhsId'] ?? 0;
|
|
|
+ if (!empty($fromGhsId)) {
|
|
|
+ $fromGhs = GhsClass::getById($fromGhsId, true);
|
|
|
+ $ghsShopId = $fromGhs->shopId ?? 0;
|
|
|
+ CustomClass::build($ghsShopId, $shopId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//客户列表 shish 20210715
|
|
|
@@ -43,7 +56,7 @@ class CustomService extends BaseService
|
|
|
}
|
|
|
|
|
|
//有带排序的列表 shish 20210913
|
|
|
- public static function getCustomSortList($where,$order)
|
|
|
+ public static function getCustomSortList($where, $order)
|
|
|
{
|
|
|
$data = CustomClass::getList('*', $where, $order);
|
|
|
$list = isset($data['list']) && !empty($data['list']) ? $data['list'] : [];
|