提交 e2fae757 authored 作者: fengzy's avatar fengzy

test

上级 d5cdff4b
...@@ -15,7 +15,7 @@ class flow_oafkClassModel extends flowModel ...@@ -15,7 +15,7 @@ class flow_oafkClassModel extends flowModel
$sql = " mid ='$id' and `table`='c_fininfom_oafk' "; $sql = " mid ='$id' and `table`='c_fininfom_oafk' ";
$flow_bill = m('flow_bill')->getone($sql,'allcheckid'); $flow_bill = m('flow_bill')->getone($sql,'allcheckid');
$allcheckid=explode(',',$flow_bill['allcheckid']); $allcheckid=explode(',',$flow_bill['allcheckid']);
$option = m('option')->getall('pid = 1533 and num =1 order by sort desc','num,name,value,sort'); $option = m('option')->getall('pid = 1497 and num =1 order by sort desc','num,name,value,sort');
foreach ($option as $key => $value) { foreach ($option as $key => $value) {
if(in_array($value['value'], $allcheckid)){ if(in_array($value['value'], $allcheckid)){
$checkid= $value['value']; $checkid= $value['value'];
...@@ -24,7 +24,7 @@ class flow_oafkClassModel extends flowModel ...@@ -24,7 +24,7 @@ class flow_oafkClassModel extends flowModel
} }
if(empty($checkid)){ if(empty($checkid)){
$option = m('option')->getall('pid = 1533 and num =2 order by sort desc','num,name,value,sort,`explain`'); $option = m('option')->getall('pid = 1497 and num =2 order by sort desc','num,name,value,sort,`explain`');
foreach ($option as $key => $value) { foreach ($option as $key => $value) {
if(in_array($value['value'], $allcheckid)){ if(in_array($value['value'], $allcheckid)){
$checkid= $value['value']; $checkid= $value['value'];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论