|
|
@@ -3,8 +3,10 @@
|
|
|
namespace pt\controllers;
|
|
|
|
|
|
use biz\admin\classes\AdminClass;
|
|
|
+use biz\ghs\classes\GhsClass;
|
|
|
use biz\shop\classes\ShopAdminClass;
|
|
|
use biz\sj\classes\SjClass;
|
|
|
+use bizGhs\custom\classes\CustomClass;
|
|
|
use bizHd\admin\services\ShopAdminService;
|
|
|
use bizHd\saas\classes\ApplyClass;
|
|
|
use common\components\util;
|
|
|
@@ -54,6 +56,18 @@ class ShopAdminController extends BaseController
|
|
|
if (!empty($shopAdmin)) {
|
|
|
$shopAdmin->delete();
|
|
|
}
|
|
|
+ $ghsList = GhsClass::getAllByCondition(['ownSjId' => $sjId], null, '*', null, true);
|
|
|
+ if (!empty($ghsList)) {
|
|
|
+ foreach ($ghsList as $ghs) {
|
|
|
+ $ghs->delete();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $customList = CustomClass::getAllByCondition(['ownSjId' => $sjId], null, '*', null, true);
|
|
|
+ if (!empty($customList)) {
|
|
|
+ foreach ($customList as $custom) {
|
|
|
+ $custom->delete();
|
|
|
+ }
|
|
|
+ }
|
|
|
$transaction->commit();
|
|
|
util::complete();
|
|
|
} catch (Exception $exception) {
|