修正流程引擎多人执行模式bug

This commit is contained in:
2021-04-13 00:01:21 +08:00
parent de8a7e82be
commit d5da54b817
27 changed files with 2383 additions and 85 deletions
+5 -6
View File
@@ -48,11 +48,10 @@ class Record11Hook
->get(['stock_record11_data.*', 'product.code as product_code']);
// 同步数据到外部接口
$ret = plugin_sync_api('postRecord11', ['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) {
@@ -61,7 +60,7 @@ class Record11Hook
// 检查外部接口单据是否存在
$ret = plugin_sync_api('getVouchExist', ['table' => 'Rdrecord11', 'field' => 'cCode', 'value' => $master['sn']]);
if ($ret['msg'] > 0) {
abort_error('用友存在原材料出库单['.$master['sn'].']无法弃审。');
abort_error('存在原材料出库单['.$master['sn'].']无法弃审。');
}
return $params;
}