totalsModel.php 559 B

1234567891011121314151617181920
  1. <?php
  2. class totalsClassModel extends Model
  3. {
  4. //首页统计的
  5. public function gettotals($uid)
  6. {
  7. $optdt = $this->rock->now;
  8. $arr = array();
  9. $bidb = m('flowbill');
  10. $todo = m('todo')->rows("uid='$uid' and `status`=0 and `tododt`<='$optdt'");
  11. $arr['todo'] = $todo;
  12. $arr['daiban'] = $bidb->daibanshu($uid);
  13. $arr['applywtg']= $bidb->applymywgt($uid);
  14. $arr['workwwc'] = m('work')->getwwctotals($uid);
  15. $arr['email'] = m('emailm')->wdtotal($uid);
  16. $arr['flowtodo']= m('flowtodo')->getwdtotals($uid);
  17. return $arr;
  18. }
  19. }
粤ICP备19079148号