##通用方法
~~~
//任务
function task_step_status($task_id,$step){
// $uid=get_user_id();
$row = M('task_log')->where("task_id=".$task_id." and status in (3,4) and step=".$step)->select(); //and executor=".$uid."
if (!empty($row)) {
$result =1;
}
return $result;
}
// 流程
function flow_step_status($flow_id,$step){
$step = 2.$step;
$row = M('flow_log')->where("flow_id=".$task_id." and status in (0,1) and step=".$step)->select(); //and executor=".$uid."
}
if (!empty($row)) {
$result =1;
}
return $result;
}
~~~
##使用方法
###后台
~~~
$this->step1 = task_step_status(81,1); //判断id为81的task 是否完全完成
$this->step2 = flow_step_status(81,1); //判断id为81的flow 是否完全完成
~~~
###前台
~~~
<eq name ="step1" value="1">
...
</eq>
~~~