|
@@ -14,7 +14,7 @@ class WorkFlowService extends Service
|
|
|
{
|
|
|
public function orderList($data,$user){
|
|
|
$model = WorkFlow::where('del_time',0)
|
|
|
- ->select('title','id','menu_id','crt_time')
|
|
|
+ ->select('title','id','menu_id','crt_time','crt_id')
|
|
|
->orderby('id', 'desc');
|
|
|
|
|
|
if(! empty($data['title'])) $model->where('title', 'LIKE', '%'.$data['title'].'%');
|
|
@@ -470,4 +470,19 @@ class WorkFlowService extends Service
|
|
|
function settleTypeFour($tmp, $value, &$return){
|
|
|
$return[] = $tmp;
|
|
|
}
|
|
|
+
|
|
|
+ //触发工作流并生成
|
|
|
+ public function create($data, $user){
|
|
|
+ list($status, $msg) = $this->createRule($data, $user);
|
|
|
+ if(! $status) return [false, $msg];
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public function createRule($data, $user){
|
|
|
+ $oa = config('oa');
|
|
|
+ dd($oa);
|
|
|
+ foreach ($oa as $key => $value){
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|