company
This commit is contained in:
parent
98d69274bd
commit
4fc607f182
@ -25,8 +25,8 @@ class AddedOrderSync extends Command
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$this->datetime = $this->getDateTime();
|
$this->datetime = $this->getDateTime();
|
||||||
$this->companies = app(CompanyRepository::class)->get()->keyBy('sn');
|
$this->companies = app(CompanyRepository::class)->withTrashed()->get()->keyBy('sn');
|
||||||
$this->packages = app(PackageRepository::class)->get()->keyBy('sn');
|
$this->packages = app(PackageRepository::class)->withTrashed()->get()->keyBy('sn');
|
||||||
|
|
||||||
$orders = $this->getOrders();
|
$orders = $this->getOrders();
|
||||||
$orderItems = $this->getOrderItems($orders);
|
$orderItems = $this->getOrderItems($orders);
|
||||||
|
@ -29,8 +29,8 @@ class OrderBaseSync extends Command
|
|||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$this->companies = app(CompanyRepository::class)->get()->keyBy('sn');
|
$this->companies = app(CompanyRepository::class)->withTrashed()->get()->keyBy('sn');
|
||||||
$this->packages = app(PackageRepository::class)->get()->keyBy('sn');
|
$this->packages = app(PackageRepository::class)->withTrashed()->get()->keyBy('sn');
|
||||||
|
|
||||||
$orders = $this->getOrders();
|
$orders = $this->getOrders();
|
||||||
$cards = $this->getCards($orders);
|
$cards = $this->getCards($orders);
|
||||||
|
@ -28,7 +28,7 @@ class PackageSync extends Command
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$datetime = $this->getDateTime();
|
$datetime = $this->getDateTime();
|
||||||
$this->companies = app(CompanyRepository::class)->get()->pluck('sn')->toArray();
|
$this->companies = app(CompanyRepository::class)->withTrashed()->get()->pluck('sn')->toArray();
|
||||||
|
|
||||||
$basePackages = $this->getBasePackages();
|
$basePackages = $this->getBasePackages();
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class ProductSync extends Command
|
|||||||
|
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$packages = app(PackageRepository::class)->where('type', 0)->get()->keyBy('sn')->toArray();
|
$packages = app(PackageRepository::class)->withTrashed()->where('type', 0)->get()->keyBy('sn')->toArray();
|
||||||
|
|
||||||
$fields = ['company', 'content', 'order_account'];
|
$fields = ['company', 'content', 'order_account'];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user