Browse Source

软删除

master
lemon 4 years ago
parent
commit
dea468bcb0
  1. 4
      app/Models/AgentProduct.php
  2. 2
      app/Models/AgentProductItem.php
  3. 2
      app/Models/DemandProduct.php
  4. 2
      app/Models/DepositLog.php
  5. 4
      app/Models/IndustryOrder.php
  6. 2
      app/Models/IndustryProduct.php
  7. 4
      app/Models/OrderProductItem.php
  8. 2
      app/Models/Product.php
  9. 2
      app/Models/User.php
  10. 2
      app/Models/UserMoneyLog.php

4
app/Models/AgentProduct.php

@ -24,7 +24,7 @@ class AgentProduct extends BaseModel
public function agent() public function agent()
{ {
return $this->belongsTo(Agent::class);
return $this->belongsTo(Agent::class)->withTrashed();
} }
public function category() public function category()
@ -39,7 +39,7 @@ class AgentProduct extends BaseModel
public function guide() public function guide()
{ {
return $this->belongsTo(Guide::class);
return $this->belongsTo(Guide::class)->withTrashed();
} }
public function item() public function item()

2
app/Models/AgentProductItem.php

@ -28,6 +28,6 @@ class AgentProductItem extends BaseModel
public function agent() public function agent()
{ {
return $this->belongsTo(Agent::class);
return $this->belongsTo(Agent::class)->withTrashed();
} }
} }

2
app/Models/DemandProduct.php

@ -42,7 +42,7 @@ class DemandProduct extends Model
public function supplier() public function supplier()
{ {
return $this->belongsTo(Supplier::class);
return $this->belongsTo(Supplier::class)->withTrashed();
} }
public function category() public function category()

2
app/Models/DepositLog.php

@ -16,6 +16,6 @@ class DepositLog extends Model
public function supplier() public function supplier()
{ {
return $this->belongsTo(Supplier::class);
return $this->belongsTo(Supplier::class)->withTrashed();
} }
} }

4
app/Models/IndustryOrder.php

@ -12,12 +12,12 @@ class IndustryOrder extends BaseModel
public function supplier() public function supplier()
{ {
return $this->belongsTo(Supplier::class);
return $this->belongsTo(Supplier::class)->withTrashed();
} }
public function agent() public function agent()
{ {
return $this->belongsTo(Agent::class);
return $this->belongsTo(Agent::class)->withTrashed();
} }
public function industryProduct() public function industryProduct()

2
app/Models/IndustryProduct.php

@ -21,7 +21,7 @@ class IndustryProduct extends BaseModel
public function supplier() public function supplier()
{ {
return $this->belongsTo(Supplier::class);
return $this->belongsTo(Supplier::class)->withTrashed();
} }
public function category() public function category()

4
app/Models/OrderProductItem.php

@ -28,11 +28,11 @@ class OrderProductItem extends BaseModel
public function supplier() public function supplier()
{ {
return $this->belongsTo(Supplier::class);
return $this->belongsTo(Supplier::class)->withTrashed();
} }
public function agent() public function agent()
{ {
return $this->belongsTo(Agent::class);
return $this->belongsTo(Agent::class)->withTrashed();
} }
} }

2
app/Models/Product.php

@ -42,7 +42,7 @@ class Product extends BaseModel
public function supplier() public function supplier()
{ {
return $this->belongsTo(Supplier::class);
return $this->belongsTo(Supplier::class)->withTrashed();
} }
public function category() public function category()

2
app/Models/User.php

@ -11,6 +11,6 @@ class User extends BaseModel
public function agent() public function agent()
{ {
return $this->belongsTo(Agent::class);
return $this->belongsTo(Agent::class)->withTrashed();
} }
} }

2
app/Models/UserMoneyLog.php

@ -17,7 +17,7 @@ class UserMoneyLog extends BaseModel
public function agent() public function agent()
{ {
return $this->belongsTo(Agent::class);
return $this->belongsTo(Agent::class)->withTrashed();
} }
public function order() public function order()

Loading…
Cancel
Save