更新
This commit is contained in:
parent
e57fc9cc84
commit
3417e462fb
@ -102,10 +102,9 @@ class OpurchaseclassController extends BaseAdminController
|
|||||||
if($find){
|
if($find){
|
||||||
$item['goods_name'] = $find['name'];
|
$item['goods_name'] = $find['name'];
|
||||||
$item['unit_name'] = $find['unit_name'];
|
$item['unit_name'] = $find['unit_name'];
|
||||||
$goodslabel = GoodsLabel::where('id','in',$item['sys_labels'])->column('id,name');
|
$goodslabel = GoodsLabel::where('id','in',$find['sys_labels'])->column('id,name');
|
||||||
if($goodslabel){
|
$item['sys_labels_arr'] = $goodslabel;
|
||||||
$item['sys_labels_arr'] = implode(',',$goodslabel);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -19,6 +19,8 @@ use app\common\model\supplier\Supplier;
|
|||||||
class OpurchaseclassofferLists extends BaseAdminDataLists implements ListsSearchInterface
|
class OpurchaseclassofferLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected $where;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notes 设置搜索条件
|
* @notes 设置搜索条件
|
||||||
@ -46,6 +48,16 @@ class OpurchaseclassofferLists extends BaseAdminDataLists implements ListsSearch
|
|||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
$where=[];
|
$where=[];
|
||||||
|
$is_mer=$this->request->get('is_mer',0);
|
||||||
|
$id=$this->request->get('id',0);
|
||||||
|
if($is_mer==2){
|
||||||
|
$arr=Opurchaseclass::where('id',$id)->value('order_arr');
|
||||||
|
if($arr){
|
||||||
|
$arr=explode(',',$arr);
|
||||||
|
$where[]=['order_id','in',$arr];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$this->where=$where;
|
||||||
return OpurchaseGoodsOffer::where($this->searchWhere)
|
return OpurchaseGoodsOffer::where($this->searchWhere)
|
||||||
->where($where)
|
->where($where)
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
@ -69,7 +81,7 @@ class OpurchaseclassofferLists extends BaseAdminDataLists implements ListsSearch
|
|||||||
*/
|
*/
|
||||||
public function count(): int
|
public function count(): int
|
||||||
{
|
{
|
||||||
return OpurchaseGoodsOffer::where($this->searchWhere)->count();
|
return OpurchaseGoodsOffer::where($this->searchWhere)->where($this->where)->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -138,9 +138,9 @@ class OrderLogic extends BaseLogic
|
|||||||
}
|
}
|
||||||
$mer_id = $user['merchant']['mer_id'];
|
$mer_id = $user['merchant']['mer_id'];
|
||||||
$where1 = ['paid' => 1,'is_opurchase'=>0];
|
$where1 = ['paid' => 1,'is_opurchase'=>0];
|
||||||
$where1 = ['pay_type','<>',9];
|
$where1[] = ['pay_type','<>',9];
|
||||||
$arrs = Cashierclass::where('merchant', $mer_id)->whereDay('create_time')->where($where1)->column('cart_id,id,address_id');
|
|
||||||
|
|
||||||
|
$arrs = Cashierclass::where('merchant', $mer_id)->whereDay('create_time')->where($where1)->column('cart_id,id,address_id');
|
||||||
// $order_id = Cashierclass::where('merchant', $mer_id)->whereDay('create_time')->where($where1)->column('id');
|
// $order_id = Cashierclass::where('merchant', $mer_id)->whereDay('create_time')->where($where1)->column('id');
|
||||||
$cart_arr = [];
|
$cart_arr = [];
|
||||||
$order_id = [];
|
$order_id = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user