修正流程引擎多人执行模式bug
This commit is contained in:
@@ -78,10 +78,10 @@ class Record09Hook
|
||||
}
|
||||
// 同步数据到外部接口
|
||||
$ret = plugin_sync_api($post_type, ['master' => $master, 'rows' => $rows]);
|
||||
if ($ret['success'] == true) {
|
||||
return $params;
|
||||
if ($ret['error_code'] > 0) {
|
||||
abort_error($ret['msg']);
|
||||
}
|
||||
abort_error($ret['msg']);
|
||||
return $params;
|
||||
}
|
||||
|
||||
public function onBeforeAbort($params) {
|
||||
@@ -92,12 +92,12 @@ class Record09Hook
|
||||
if ($master['type_id'] == 2) {
|
||||
$ret = plugin_sync_api('getVouchExist', ['table' => 'DispatchList', 'field' => 'cDLCode', 'value' => $master['sn']]);
|
||||
if ($ret['msg'] > 0) {
|
||||
abort_error('用友存在样品申请单['.$master['sn'].']无法弃审。');
|
||||
abort_error('存在样品申请单['.$master['sn'].']无法弃审。');
|
||||
}
|
||||
} else {
|
||||
$ret = plugin_sync_api('getVouchExist', ['table' => 'Rdrecord09', '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