Merge pull request '2.28号功能提交' (#184) from feature/add_item into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/184
master
郑永星 4 years ago
commit d73e2bae02

@ -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;
@ -133,7 +135,8 @@ class SubCompanyStatementPoolController extends ThinkController
if ($page) {
$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