优化结算方式查询

master
chenzhi 5 years ago
parent c6b3d1948e
commit b63369cdba

@ -19,7 +19,8 @@ class CompanyStatementPoolController extends ThinkController
public $WithdrawType = [
"0"=>"周结",
"1"=>"月结",
"2"=>"下游个人补点"
"2"=>"下游个人补点",
"3"=>"其他",
];
public $VerifyStatus=[
"-2"=>"拒绝打款",
@ -174,7 +175,7 @@ class CompanyStatementPoolController extends ThinkController
$v['oplist'] = $this->OpAuth($v);
}
$count = $this->DBModel->field("count(id) count,SUM(statement_money) as statement_money")->where($map)->find();
$count = $this->DBModel->field("count(id) count,SUM(statement_money) as statement_money,SUM(lack_statement_money) lack_statement_money")->where($map)->find();
// dd($count);
$params['p'] = $page;
$params['row'] = $row;

@ -157,7 +157,7 @@
<th>结算周期</th>
<th>是否打款</th>
<th>结算金额</th>
<th>结算流水</th>
<!-- <th>结算流水</th> -->
<th>不结算金额</th>
<th>创建记录</th>
<th>审批状态</th>
@ -184,7 +184,7 @@
<td>{$data.withdraw_type}</td>
<td>{$data.is_payment_str}</td>
<td>{$data.statement_money}</td>
<td>{$data.platform_amount}</td>
<!-- <td>{$data.platform_amount}</td> -->
<td>{$data.lack_statement_money}</td>
<td>{$data.create}</td>
<td>
@ -217,7 +217,7 @@
</td>
</tr>
</volist>
<tr><td style="line-height: 42px;">合计</td><td colspan="13" style="line-height: 42px;">结算总金额:&nbsp;{$count.statement_money}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td style="line-height: 42px;">合计</td><td colspan="13" style="line-height: 42px;">结算总金额:&nbsp;{$count.statement_money}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;不结算总金额:{$count.lack_statement_money}&nbsp;&nbsp;&nbsp;</td></tr>
</notemtpy>
</tbody>
</table>

Loading…
Cancel
Save