提交 2384b9c8 authored 作者: fengzy's avatar fengzy

oa付款单

上级 98e69f16
......@@ -62,8 +62,14 @@ class mode_fund_transferClassAction extends inputAction{
$model = 'c_fund_account';
$sql = " id =$numb";
$cdata = m($model)->getone($sql,'id,name,level');
$level=$cdata['level'];
$levelto=$cdata['level']-1;
if($cdata['level']==1){
$level=$cdata['level'];
$levelto=$cdata['level']+1;
}else{
$level=$cdata['level'];
$levelto=$cdata['level']+1;
}
$sqla = " id !=$numb and level =$level or level =$levelto";
$data = m($model)->getall($sqla,'id as value,name');
$this->returnjson($data);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论