修正流程引擎多人执行模式bug
This commit is contained in:
@@ -39,10 +39,10 @@ class Record01Hook
|
||||
->get(['stock_record01_data.*', 'product.code as product_code']);
|
||||
// 同步数据到外部接口
|
||||
$ret = plugin_sync_api('postRecord01', ['master' => $master, 'rows' => $rows]);
|
||||
if ($ret['success'] == true) {
|
||||
return $params;
|
||||
}
|
||||
abort_error($ret['msg']);
|
||||
if ($ret['error_code'] > 0) {
|
||||
abort_error($ret['msg']);
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
|
||||
public function onBeforeAbort($params) {
|
||||
@@ -51,7 +51,7 @@ class Record01Hook
|
||||
// 检查外部接口单据是否存在
|
||||
$ret = plugin_sync_api('getVouchExist', ['table' => 'Rdrecord01', 'field' => 'cCode', 'value' => $master['sn']]);
|
||||
if ($ret['msg'] > 0) {
|
||||
abort_error('用友存在采购单['.$master['sn'].']无法弃审。');
|
||||
abort_error('存在采购单['.$master['sn'].']无法弃审。');
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user