提交 506db604 authored 作者: fengzy's avatar fengzy

oa付款单

上级 bc308ee6
......@@ -55,13 +55,16 @@ class flow_oafkClassModel extends flowModel
$id=$this->rs['id'];
$sql = " mid ='$id' and `table`='c_fininfom_oafk' ";
$flow_bill = m('flow_bill')->getone($sql,'allcheckid');
// explode(',',$flow_bill['allcheckid'])
$allcheckid=explode(',',$flow_bill['allcheckid']);
$option = m('option')->getall('pid = 1497 and num =1 order by sort desc','num,name,value,sort');//当前部门
echo "<pre>";
var_dump($option);die;
// foreach ($option as $key => $value) {
// }
// echo "<pre>";
// var_dump($option);die;
foreach ($option as $key => $value) {
if(in_array($value['value'], $allcheckid)){
echo $value['value'];
break;
}
}
var_dump(explode(',',$flow_bill['allcheckid']));die;
//zt 1代表同意
if($zt==1){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论