Commit 78b6d61e authored by hujun's avatar hujun

截止确认分佣时间

parent cdcb8b78
...@@ -1633,6 +1633,11 @@ class Finance extends Basic ...@@ -1633,6 +1633,11 @@ class Finance extends Basic
$where['b.name'] = [ 'like', '%' . $this->params['name'] . '%' ]; $where['b.name'] = [ 'like', '%' . $this->params['name'] . '%' ];
} }
if (!empty($this->params['confirm_date'])) {
$where['a.confirm_date'] = ['<=', $this->params['confirm_date'] . ' 23:59:59'];
$where['a.confirm_status'] = 1;
}
$m_bargain = new OPartialCommission(); $m_bargain = new OPartialCommission();
$fields = 'd.income_time,c.create_time,c.id,a.agent_id,b.name,b.phone'; $fields = 'd.income_time,c.create_time,c.id,a.agent_id,b.name,b.phone';
if (empty($this->params['excel']) && $this->params['excel'] != 1) { if (empty($this->params['excel']) && $this->params['excel'] != 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment