Merge pull request 'feat: 增加查询已支付订单的条件' (#93) from dev into rose
Reviewed-on: #93
This commit is contained in:
commit
bc385e3c2f
@ -52,6 +52,8 @@ class StoreOrderCartInfoGroupLists extends BaseAdminDataLists implements ListsSe
|
||||
if($this->request->get('start_time')==''){
|
||||
$this->searchWhere[]=['create_time','between',[strtotime(date('Y-m-d 00:00:00')),strtotime(date('Y-m-d 23:59:59'))]];
|
||||
}
|
||||
$this->searchWhere[]=['is_pay','=',1];
|
||||
$this->searchWhere[]=['status','>=',0];
|
||||
return StoreOrderCartInfo::where($this->searchWhere)
|
||||
->field('product_id,price,SUM(total_price) as total_price,SUM(cart_num) as cart_num')->group('product_id')
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
|
@ -52,6 +52,8 @@ class StoreOrderCartInfoTwoLists extends BaseAdminDataLists implements ListsSear
|
||||
if ($this->request->get('start_time') == '') {
|
||||
$this->searchWhere[] = ['create_time', 'between', [strtotime(date('Y-m-d 00:00:00')), strtotime(date('Y-m-d 23:59:59'))]];
|
||||
}
|
||||
$this->searchWhere[]=['is_pay','=',1];
|
||||
$this->searchWhere[]=['status','>=',0];
|
||||
$query = StoreOrderCartInfo::where($this->searchWhere);
|
||||
if ($this->request->get('is_group') == 1) {
|
||||
$query->field('store_id,product_id,price,SUM(total_price) as total_price,SUM(cart_num) as cart_num')->group(['store_id', 'product_id']);
|
||||
|
@ -563,6 +563,7 @@ class PayNotifyLogic extends BaseLogic
|
||||
*/
|
||||
public static function afterPay($order, $transaction_id = 0)
|
||||
{
|
||||
StoreOrderCartInfo::where('oid', $order['id'])->update(['is_pay' => 1]);
|
||||
$financeLogic = new StoreFinanceFlowLogic();
|
||||
$off_activity = Config::where('name', 'off_activity')->value('value');
|
||||
$village_uid = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user