|
|
|
@ -15,7 +15,6 @@ namespace app\timer\model\dealer; |
|
|
|
|
use app\common\enum\order\OrderStatus as OrderStatusEnum; |
|
|
|
|
use app\common\model\dealer\Order as OrderModel; |
|
|
|
|
use app\timer\model\dealer\Setting as DealerSettingModel; |
|
|
|
|
use think\facade\Db; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分销商订单模型 |
|
|
|
@ -41,8 +40,6 @@ class Order extends OrderModel |
|
|
|
|
]; |
|
|
|
|
// 佣金结算天数 |
|
|
|
|
$filter[] = ['order.receipt_time', '<=', DealerSettingModel::getSettleTerm($storeId)]; |
|
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => "设置分销订单查询条件", 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($filter), 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
|
// 获取订单列表记录 |
|
|
|
|
return $this->alias('m') |
|
|
|
|
->field(['m.*']) |
|
|
|
@ -53,7 +50,6 @@ class Order extends OrderModel |
|
|
|
|
->where('m.is_settled', '=', 0) |
|
|
|
|
->where('m.store_id', '=', $storeId) |
|
|
|
|
->select(); |
|
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => Db::getLastSql(), 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|