|
@@ -94,7 +94,14 @@ class Workflow extends \think\Model
|
|
|
"addtime"=>date("Y-m-d H:i:s"),
|
|
|
"updatetime"=>date("Y-m-d H:i:s")
|
|
|
];
|
|
|
- ProcessWait::add($data);
|
|
|
+ $da=ProcessWait::where(['order_code'=>$data['order_code'],"order_type"=>$data['order_type']])
|
|
|
+ ->find();
|
|
|
+ if($da==false){
|
|
|
+ ProcessWait::insert($data);
|
|
|
+ }else{
|
|
|
+ ProcessWait::where(['order_code'=>$data['order_code'],"order_type"=>$data['order_type']])->update
|
|
|
+ ($data);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|