|
|
@@ -91,10 +91,10 @@ class ProcessDataJob implements ShouldQueue
|
|
|
"dVeriDate" => $time1 . ".000",
|
|
|
]);
|
|
|
}elseif($type == Record::type_four){
|
|
|
- list($status, $msg) = $this->inventoryAddToU8($record, $service->db);
|
|
|
+ list($status, $msg) = $this->inventoryAddToU8($record, $name, $service->db);
|
|
|
if(! $status) return [false, $msg];
|
|
|
}elseif($type == Record::type_five){
|
|
|
- list($status, $msg) = $this->vendorAddToU8($record, $service->db);
|
|
|
+ list($status, $msg) = $this->vendorAddToU8($record, $name, $service->db);
|
|
|
if(! $status) return [false, $msg];
|
|
|
}
|
|
|
|
|
|
@@ -330,7 +330,7 @@ class ProcessDataJob implements ShouldQueue
|
|
|
* @param object $service 用友数据库连接实例 (DB Service)
|
|
|
* @return array [bool, string]
|
|
|
*/
|
|
|
- public function inventoryAddToU8($data, $service)
|
|
|
+ public function inventoryAddToU8($data, $username, $service)
|
|
|
{
|
|
|
// 1. 获取本地存货记录
|
|
|
$inventory = Inventory::where('del_time', 0)
|
|
|
@@ -439,7 +439,7 @@ class ProcessDataJob implements ShouldQueue
|
|
|
'bInvBatch' => '0',
|
|
|
'bInvEntrust' => '0',
|
|
|
'bInvOverStock' => '0',
|
|
|
- 'cCreatePerson' => $user['username'] ?? 'admin',
|
|
|
+ 'cCreatePerson' => $username,
|
|
|
'dModifyDate' => date("Y-m-d H:i:s.000"),
|
|
|
'bPlanInv' => '0',
|
|
|
'bATOModel' => '0',
|
|
|
@@ -530,7 +530,7 @@ class ProcessDataJob implements ShouldQueue
|
|
|
}
|
|
|
|
|
|
//U8 供应商新增
|
|
|
- public function vendorAddToU8($data, $user,$service){
|
|
|
+ public function vendorAddToU8($data, $username,$service){
|
|
|
$vendor = Vendor::where('del_time', 0)
|
|
|
->where('order_number', $data['order_number'])
|
|
|
->where('login_type', $data['login_type'])
|
|
|
@@ -565,8 +565,8 @@ class ProcessDataJob implements ShouldQueue
|
|
|
'iLRMoney' => '0.0',
|
|
|
'iFrequency' => '0',
|
|
|
'bVenTax' => '1',
|
|
|
- 'cCreatePerson' => 'demo',
|
|
|
- 'cModifyPerson' => 'demo',
|
|
|
+ 'cCreatePerson' => $username,
|
|
|
+ 'cModifyPerson' => $username,
|
|
|
'dModifyDate' => date("Y-m-d H:i:s.000"),
|
|
|
'iGradeABC' => '-1',
|
|
|
'bLicenceDate' => '0',
|