信呼OA版本v2.3.8
This commit is contained in:
28
webmain/model/agent/jiankongModel.php
Normal file
28
webmain/model/agent/jiankongModel.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
class agent_jiankongClassModel extends agentModel
|
||||
{
|
||||
public function initModel()
|
||||
{
|
||||
$this->settable('flow_bill');
|
||||
}
|
||||
|
||||
|
||||
protected function agentdata($uid, $lx)
|
||||
{
|
||||
$rows = m('flowbill')->getrecord($uid, $lx, $this->page, $this->limit);
|
||||
$modearr= array();
|
||||
if($this->loadci==1){
|
||||
$modeids = '0';
|
||||
$rows1 = m('view')->getjilu($uid);
|
||||
foreach($rows1 as $k1=>$rs1){
|
||||
$modeids.=','.$rs1['modeid'].'';
|
||||
}
|
||||
$modearr = m('mode')->getmodemyarr(0,'and `id` in('.$modeids.')');
|
||||
}
|
||||
return array(
|
||||
'rows' =>$rows,
|
||||
'modearr' =>$modearr,
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user