|
|
@@ -98,6 +98,7 @@ use App\Services\StorageService;
|
|
|
use App\Services\StoreItemService;
|
|
|
use App\Services\StoreService;
|
|
|
use App\Services\SyriusTaskService;
|
|
|
+use App\Services\UserService;
|
|
|
use App\Services\WorkOrderService;
|
|
|
use App\SortingStation;
|
|
|
use App\Station;
|
|
|
@@ -174,7 +175,15 @@ class TestController extends Controller
|
|
|
dd($c($a));
|
|
|
}
|
|
|
public function test(Request $request)
|
|
|
- {
|
|
|
+ {$user = User::query()->where("name","yanyuanmin")->first();
|
|
|
+ dd($user->id);
|
|
|
+ dd($codes = app('OwnerService')->getQuery($user->id)->select("code")->pluck("code"));
|
|
|
+
|
|
|
+
|
|
|
+ $ownerIds=app('UserService')->getPermittingOwnerIds($user);
|
|
|
+ $owners = Owner::query()->select("id","name","code")->whereIn('id', $ownerIds)->whereNull('deleted_at')->get();
|
|
|
+ $codes = array_column($owners->toArray(), 'code');
|
|
|
+ dd($codes);
|
|
|
dd(Order::class);
|
|
|
$c = "test";
|
|
|
$a = function ($b)use($c){
|