2.28号功能提交

master
zhengyongxing 4 years ago
parent 1ec35eeb32
commit bc3f4f02d3

@ -125,6 +125,8 @@ class SubCompanyStatementPoolController extends ThinkController
$v['oplist'] = $this->OpWmAuth($v);
}
$sum = $this->DBModel->field("sum(sum_money) sum_money")->where($map)->find();
$count = $this->DBModel->field("count(id) count")->where($map)->find();
// dd($count);
$params['p'] = $page;
@ -134,6 +136,7 @@ class SubCompanyStatementPoolController extends ThinkController
$this->assign('_page', $page);
}
$this->assign("sum",$sum);
$this->assign('data',$data);
$this->assign('count',$count);
$this->display();

@ -129,7 +129,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;不结算总金额:{$count.lack_statement_money}&nbsp;&nbsp;&nbsp;</td></tr>
<tr><td style="line-height: 42px;">合计</td><td colspan="13" style="line-height: 42px;">结算总金额:&nbsp;{$sum.sum_money}</td></tr>
</notemtpy>
</tbody>
</table>

Loading…
Cancel
Save