This commit is contained in:
weiz 2024-01-15 14:08:56 +08:00
parent f3c2c82c62
commit b139c7f638
59 changed files with 113 additions and 113 deletions

View File

@ -62,7 +62,7 @@ class BidBiddingDecisionLogic extends BaseLogic
'project_assurance' => $params['project_assurance'] ?? 0,
'bid_project_overview' => $params['bid_project_overview'] ?? '',
'project_desc' => $params['project_desc'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Project::where('id',$params['project_id'])->update([
'status' => 2,
@ -106,7 +106,7 @@ class BidBiddingDecisionLogic extends BaseLogic
'project_assurance' => $params['project_assurance'] ?? 0,
'bid_project_overview' => $params['bid_project_overview'] ?? '',
'project_desc' => $params['project_desc'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_time' => time(),
]);
Db::commit();

View File

@ -58,7 +58,7 @@ class BidResultLogic extends BaseLogic
'bidder_company' => $params['bidder_company'],
'bidder_amount' => $params['bidder_amount'],
'bid_summary' => $params['bid_summary'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -91,7 +91,7 @@ class BidResultLogic extends BaseLogic
'bidder_company' => $params['bidder_company'],
'bidder_amount' => $params['bidder_amount'],
'bid_summary' => $params['bid_summary'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -52,7 +52,7 @@ class BidSecurityApplyLogic extends BaseLogic
'pay_type' => $params['pay_type'],
'refund_date' => !empty($params['refund_date']) ? strtotime($params['refund_date']) : 0,
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'deposit_bank' => $params['deposit_bank'],
'account_name' => $params['account_name'],
'account' => $params['account'],
@ -87,7 +87,7 @@ class BidSecurityApplyLogic extends BaseLogic
'pay_type' => $params['pay_type'],
'refund_date' => !empty($params['refund_date']) ? strtotime($params['refund_date']) : 0,
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'deposit_bank' => $params['deposit_bank'],
'account_name' => $params['account_name'],
'account' => $params['account'],

View File

@ -52,7 +52,7 @@ class BidSecurityRefundLogic extends BaseLogic
'refund_amount' => $params['refund_amount'],
'refund_date' => strtotime($params['refund_date']),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'bank_account_id' => $params['bank_account_id'] ?? 0,
]);
Db::commit();
@ -83,7 +83,7 @@ class BidSecurityRefundLogic extends BaseLogic
'refund_amount' => $params['refund_amount'],
'refund_date' => strtotime($params['refund_date']),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'bank_account_id' => $params['bank_account_id'] ?? 0,
]);

View File

@ -47,7 +47,7 @@ class BuildProcessSettingsLogic extends BaseLogic
'process_step_no' => $params['process_step_no'],
'process_step' => $params['process_step'],
'quality_control_points' => $params['quality_control_points'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -77,7 +77,7 @@ class BuildProcessSettingsLogic extends BaseLogic
'process_step_no' => $params['process_step_no'],
'process_step' => $params['process_step'],
'quality_control_points' => $params['quality_control_points'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -76,7 +76,7 @@ class ContractLogic extends BaseLogic
"contract_date" => strtotime($params['contract_date']),
"main_content" => $params['main_content'] ?? '',
"remark" => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($returned_money as $item)
{
@ -145,7 +145,7 @@ class ContractLogic extends BaseLogic
"contract_date" => strtotime($params['contract_date']),
"main_content" => $params['main_content'] ?? '',
"remark" => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -81,7 +81,7 @@ class ProcurementContractLogic extends BaseLogic
//质保金比例
'retention_money_rate' => $params['retention_money_rate'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($procurement_contract_detail as $v)
{
@ -164,7 +164,7 @@ class ProcurementContractLogic extends BaseLogic
//质保金比例
'retention_money_rate' => $params['retention_money_rate'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($procurement_contract_detail as $v)
{

View File

@ -81,7 +81,7 @@ class SubcontractingContractLogic extends BaseLogic
//质保金比例
'retention_money_rate' => $params['retention_money_rate'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($subcontracting_contract_detail as $v)
{
@ -165,7 +165,7 @@ class SubcontractingContractLogic extends BaseLogic
//质保金比例
'retention_money_rate' => $params['retention_money_rate'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($subcontracting_contract_detail as $v)
{

View File

@ -80,7 +80,7 @@ class CustomContactsLogic extends BaseLogic
'telephone' => $params['telephone'] ?? '',
'email' => $params['email'] ?? '',
'notes' => $params['notes'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -83,7 +83,7 @@ class CustomFollowLogic extends BaseLogic
'date' => strtotime($params['date']),
'types' => $params['types'],
'description' => $params['description'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'coordinate' => $params['coordinate'] ?? '',
'executor' => $params['executor'] ?? '',
'next_follow_date' => strtotime($params['next_follow_date']),

View File

@ -55,7 +55,7 @@ class CustomerDemandLogic extends BaseLogic
'importance' => $params['importance'],
'recording_time' => strtotime($params['recording_time']),
'demand_content' => $params['demand_content'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -90,7 +90,7 @@ class CustomerDemandLogic extends BaseLogic
'importance' => $params['importance'],
'recording_time' => strtotime($params['recording_time']),
'demand_content' => $params['demand_content'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -55,7 +55,7 @@ class CustomerDemandSolutionLogic extends BaseLogic
'submission_time' => strtotime($params['submission_time']),
'solution_content' => $params['solution_content'] ?? '',
'customer_feedback' => $params['customer_feedback'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -89,7 +89,7 @@ class CustomerDemandSolutionLogic extends BaseLogic
'submission_time' => strtotime($params['submission_time']),
'solution_content' => $params['solution_content'] ?? '',
'customer_feedback' => $params['customer_feedback'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -63,7 +63,7 @@ class FinanceInvoiceApplyLogic extends BaseLogic
'content' => $params['content'] ?? '',
'invoice_no' => $params['invoice_no'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'invoicing_company_name' => $params['invoicing_company_name'] ?? '',
'taxpayer_identification_number' => $params['taxpayer_identification_number'] ?? '',
'deposit_bank' => $params['deposit_bank'] ?? '',
@ -112,7 +112,7 @@ class FinanceInvoiceApplyLogic extends BaseLogic
'content' => $params['content'] ?? '',
'invoice_no' => $params['invoice_no'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'invoicing_company_name' => $params['invoicing_company_name'] ?? '',
'taxpayer_identification_number' => $params['taxpayer_identification_number'] ?? '',
'deposit_bank' => $params['deposit_bank'] ?? '',

View File

@ -69,7 +69,7 @@ class FinancePaymentApplyLogic extends BaseLogic
'amount' => $params['amount'],
'desc' => $params['desc'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'payee_bank' => $params['payee_bank'],
'payee_account_name' => $params['payee_account_name'],
'payee_account' => $params['payee_account'],
@ -118,7 +118,7 @@ class FinancePaymentApplyLogic extends BaseLogic
'amount' => $params['amount'],
'desc' => $params['desc'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'payee_bank' => $params['payee_bank'],
'payee_account_name' => $params['payee_account_name'],
'payee_account' => $params['payee_account'],

View File

@ -69,7 +69,7 @@ class FinanceReceiptRecordLogic extends BaseLogic
'amount_excluding_tax' => $params['invoice_amount'] * (1 - $tax_rate[$params['invoice_tax_rate']] / 100),
'receipt_date' => strtotime($params['receipt_date']),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;
@ -116,7 +116,7 @@ class FinanceReceiptRecordLogic extends BaseLogic
'amount_excluding_tax' => $params['invoice_amount'] * (1 - $tax_rate[$params['invoice_tax_rate']] / 100),
'receipt_date' => strtotime($params['receipt_date']),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -55,7 +55,7 @@ class FinanceRefundApplyLogic extends BaseLogic
'refund_type' => $params['refund_type'],
'refund_user' => $params['refund_user'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'collection_bank' => $params['collection_bank'],
'collection_account' => $params['collection_account'],
'bank_account_id' => $params['bank_account_id'],
@ -91,7 +91,7 @@ class FinanceRefundApplyLogic extends BaseLogic
'refund_type' => $params['refund_type'],
'refund_user' => $params['refund_user'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'collection_bank' => $params['collection_bank'],
'collection_account' => $params['collection_account'],
'bank_account_id' => $params['bank_account_id'],

View File

@ -63,7 +63,7 @@ class FinanceRefundRecordLogic extends BaseLogic
'refund_type' => $params['refund_type'],
'reason' => $params['reason'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'bank_account_id' => $params['bank_account_id'],
]);
Db::commit();
@ -105,7 +105,7 @@ class FinanceRefundRecordLogic extends BaseLogic
'refund_type' => $params['refund_type'],
'reason' => $params['reason'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'bank_account_id' => $params['bank_account_id'],
'update_time' => time(),
]);

View File

@ -54,7 +54,7 @@ class FinanceReturnedMoneyLogic extends BaseLogic
'return_status' => $params['return_status'],
'return_duty_id' => $params['return_duty_id'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;
@ -87,7 +87,7 @@ class FinanceReturnedMoneyLogic extends BaseLogic
'return_status' => $params['return_status'],
'return_duty_id' => $params['return_duty_id'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -58,7 +58,7 @@ class FinanceReturnedRecordLogic extends BaseLogic
'return_desc' => $params['return_desc'] ?? '',
'receiver' => $params['receiver'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'bank_account_id' => $params['bank_account_id'],
]);
Db::commit();
@ -95,7 +95,7 @@ class FinanceReturnedRecordLogic extends BaseLogic
'return_desc' => $params['return_desc'] ?? '',
'receiver' => $params['receiver'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'bank_account_id' => $params['bank_account_id'],
'update_time' => time(),
]);

View File

@ -55,7 +55,7 @@ class MaterialLogic extends BaseLogic
'inventory' => $params['inventory'] ?? 0,
'sales_price' => $params['sales_price'] ?? 0,
'cost_price' => $params['cost_price'] ?? 0,
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -93,7 +93,7 @@ class MaterialLogic extends BaseLogic
'inventory' => $params['inventory'] ?? 0,
'sales_price' => $params['sales_price'] ?? 0,
'cost_price' => $params['cost_price'] ?? 0,
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_user' => $admin_id,
'update_time' => time()
]);

View File

@ -54,7 +54,7 @@ class MaterialPurchaseRequestLogic extends BaseLogic
'apply_date' => strtotime($params['apply_date']),
'arrival_date' => strtotime($params['arrival_date']),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($detail as $item)
{
@ -100,7 +100,7 @@ class MaterialPurchaseRequestLogic extends BaseLogic
'apply_date' => strtotime($params['apply_date']),
'arrival_date' => strtotime($params['arrival_date']),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -55,7 +55,7 @@ class MaterialWarehouseLogic extends BaseLogic
'address' => $params['address'] ?? '',
'telephone' => $params['telephone'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;
@ -89,7 +89,7 @@ class MaterialWarehouseLogic extends BaseLogic
'address' => $params['address'] ?? '',
'telephone' => $params['telephone'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_time' => time()
]);
Db::commit();

View File

@ -55,7 +55,7 @@ class CompetitorLogic extends BaseLogic
'competitor_advantages' => $params['competitor_advantages'] ?? '',
'competitor_disadvantages' => $params['competitor_disadvantages'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -92,7 +92,7 @@ class CompetitorLogic extends BaseLogic
'competitor_advantages' => $params['competitor_advantages'] ?? '',
'competitor_disadvantages' => $params['competitor_disadvantages'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -49,7 +49,7 @@ class ProjectAttendanceRecordLogic extends BaseLogic
'attendance_code' => $attendance_code,
'attendance_date' => strtotime($params['attendance_date']),
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
foreach($attendance_detail as $v){
ProjectAttendanceDetail::create([

View File

@ -49,7 +49,7 @@ class ProjectDocumentLogic extends BaseLogic
'name' => $params['name'],
'describe' => $params['describe'],
'version' => $params['version'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;
@ -78,7 +78,7 @@ class ProjectDocumentLogic extends BaseLogic
'name' => $params['name'],
'describe' => $params['describe'],
'version' => $params['version'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();

View File

@ -60,7 +60,7 @@ class ProjectEstimateLogic extends BaseLogic
'technician' => $params['technician'] ?? 0,
'estimate_amount' => $params['estimate_amount'] ?? 0,
'ask' => $params['ask'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -98,7 +98,7 @@ class ProjectEstimateLogic extends BaseLogic
'technician' => $params['technician'] ?? 0,
'estimate_amount' => $params['estimate_amount'] ?? 0,
'ask' => $params['ask'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -58,7 +58,7 @@ class ProjectFollowUpLogic extends BaseLogic
'follow_stage' => $params['follow_stage'],
'notes' => $params['notes'] ?? '',
'next_follow_up_date' => !empty($params['next_follow_up_date']) ? strtotime($params['next_follow_up_date']) : 0,
'file' => $params['file']?json_encode($params['file']) :'',
'file' => $params['file']? json_encode($params['file']) : null,
]);
Project::where('id', $params['project_id'])->update([
'status' => 1,
@ -101,7 +101,7 @@ class ProjectFollowUpLogic extends BaseLogic
'follow_stage' => $params['follow_stage'],
'notes' => $params['notes'] ?? '',
'next_follow_up_date' => !empty($params['next_follow_up_date']) ? strtotime($params['next_follow_up_date']) : 0,
'file' => $params['file']?json_encode($params['file']) :'',
'file' => $params['file']? json_encode($params['file']) : null,
'update_time' => time(),
]);
Db::commit();

View File

@ -55,7 +55,7 @@ class ProjectInsuranceManagementLogic extends BaseLogic
'insurance_detail' => $params['insurance_detail'],
'invoice_no' => $params['invoice_no'],
'handler' => $params['handler'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;
@ -91,7 +91,7 @@ class ProjectInsuranceManagementLogic extends BaseLogic
'insurance_detail' => $params['insurance_detail'],
'invoice_no' => $params['invoice_no'],
'handler' => $params['handler'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -57,7 +57,7 @@ class ProjectLaborContractLogic extends BaseLogic
'release_time' => strtotime($params['release_time']),
'release_reason' => $params['release_reason'],
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -96,7 +96,7 @@ class ProjectLaborContractLogic extends BaseLogic
'release_time' => strtotime($params['release_time']),
'release_reason' => $params['release_reason'],
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -74,7 +74,7 @@ class ProjectLogic extends BaseLogic
'strategic_significance' => $params['strategic_significance'] ?? 0,
'industry' => $params['industry'] ?? 0,
'unit_nature' => $params['unit_nature'] ?? 0,
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'status' => 0,
'is_budget' => 0,
'add_user' => $adminId
@ -130,7 +130,7 @@ class ProjectLogic extends BaseLogic
'strategic_significance' => $params['strategic_significance'] ?? 0,
'industry' => $params['industry'] ?? 0,
'unit_nature' => $params['unit_nature'] ?? 0,
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_time' => time(),
]);
Db::commit();

View File

@ -57,7 +57,7 @@ class ProjectManagerAppointmentLogic extends BaseLogic
'start_date' => strtotime($params['start_date']),
'delivery_date' => strtotime($params['delivery_date']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;
@ -90,7 +90,7 @@ class ProjectManagerAppointmentLogic extends BaseLogic
'start_date' => strtotime($params['start_date']),
'delivery_date' => strtotime($params['delivery_date']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -51,7 +51,7 @@ class ProjectMaterialBudgetLogic extends BaseLogic
'project_id' => $params['project_id'],
'material_budget_code' => data_unique_code('项目材料预算'),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($detail as $item)
{
@ -93,7 +93,7 @@ class ProjectMaterialBudgetLogic extends BaseLogic
'dept_id' => $params['dept_id'],
'project_id' => $params['project_id'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($detail as $item)
{

View File

@ -51,7 +51,7 @@ class ProjectPlanLogic extends BaseLogic
'deliver_time' => strtotime($params['deliver_time']),
'declare_time' => strtotime($params['declare_time']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $adminId,
]);
Db::commit();
@ -82,7 +82,7 @@ class ProjectPlanLogic extends BaseLogic
'deliver_time' => strtotime($params['deliver_time']),
'declare_time' => strtotime($params['declare_time']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;

View File

@ -55,7 +55,7 @@ class ProjectSalaryPaymentLogic extends BaseLogic
'total_amount' => $params['total_amount'],
'total_amount_uppercase' => $params['total_amount_uppercase'],
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach($payment_detail as $v){
ProjectSalaryDetail::create([

View File

@ -52,7 +52,7 @@ class ProjectSettlementLogic extends BaseLogic
'remaining_amount' => $params['remaining_amount'],
'settlement_date' => strtotime($params['settlement_date']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id
]);
Db::commit();
@ -84,7 +84,7 @@ class ProjectSettlementLogic extends BaseLogic
'remaining_amount' => $params['remaining_amount'],
'settlement_date' => strtotime($params['settlement_date']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_time' => time()
]);
Db::commit();

View File

@ -52,7 +52,7 @@ class ProjectSubcontractSettlementLogic extends BaseLogic
'remaining_amount' => $params['remaining_amount'],
'settlement_date' => strtotime($params['settlement_date']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $admin_id,
]);
@ -85,7 +85,7 @@ class ProjectSubcontractSettlementLogic extends BaseLogic
'remaining_amount' => $params['remaining_amount'],
'settlement_date' => strtotime($params['settlement_date']),
'remark' => $params['remark'],
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'add_user' => $params['add_user'],
'update_time' => time(),
]);

View File

@ -51,7 +51,7 @@ class ProjectSubpackageBudgetLogic extends BaseLogic
'project_id' => $params['project_id'],
'subpackage_budget_code' => data_unique_code('项目分包预算'),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($detail as $item)
{
@ -96,7 +96,7 @@ class ProjectSubpackageBudgetLogic extends BaseLogic
'project_id' => $params['project_id'],
'subpackage_budget_code' => data_unique_code('项目分包预算'),
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($detail as $item)
{

View File

@ -53,7 +53,7 @@ class QualityAcceptLogic extends BaseLogic
'engineer' => $params['engineer'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -87,7 +87,7 @@ class QualityAcceptLogic extends BaseLogic
'engineer' => $params['engineer'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -56,7 +56,7 @@ class QualityAccidentLogic extends BaseLogic
'not_our_company_user' => $params['not_our_company_user'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -94,7 +94,7 @@ class QualityAccidentLogic extends BaseLogic
'not_our_company_user' => $params['not_our_company_user'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -64,7 +64,7 @@ class QualityDetectionLogic extends BaseLogic
'data_content_requirements' => $params['data_content_requirements'],
'detection_situation' => $params['detection_situation'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -109,7 +109,7 @@ class QualityDetectionLogic extends BaseLogic
'data_content_requirements' => $params['data_content_requirements'],
'detection_situation' => $params['detection_situation'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time()
]);

View File

@ -50,7 +50,7 @@ class QualityDetectionTempLogic extends BaseLogic
'serial_number' => $params['serial_number'],
'standard_duration' => $params['standard_duration'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -82,7 +82,7 @@ class QualityDetectionTempLogic extends BaseLogic
'serial_number' => $params['serial_number'],
'standard_duration' => $params['standard_duration'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -53,7 +53,7 @@ class QualityEventLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -87,7 +87,7 @@ class QualityEventLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -53,7 +53,7 @@ class QualityMboLogic extends BaseLogic
'target_specification' => $params['target_specification'],
'basic_requirements' => $params['basic_requirements'],
'allowable_deviation' => $params['allowable_deviation'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -87,7 +87,7 @@ class QualityMboLogic extends BaseLogic
'target_specification' => $params['target_specification'],
'basic_requirements' => $params['basic_requirements'],
'allowable_deviation' => $params['allowable_deviation'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -51,7 +51,7 @@ class QualitySpecificationLogic extends BaseLogic
'release_date' => strtotime($params['release_date']),
'release_dept' => $params['release_dept'],
'content' => $params['content'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -84,7 +84,7 @@ class QualitySpecificationLogic extends BaseLogic
'release_date' => $params['release_date'],
'release_dept' => $params['release_dept'],
'content' => $params['content'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -51,7 +51,7 @@ class QualitySuperviseLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -83,7 +83,7 @@ class QualitySuperviseLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -67,7 +67,7 @@ class QuotationLogic extends BaseLogic
'total_amount' => $amount_including_tax + $params['freight'] + $params['other_fee'],
'customer_require' => $params['customer_require'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
foreach ($quotation_detail as $item)
{

View File

@ -57,7 +57,7 @@ class SafetyAccidentLogic extends BaseLogic
'not_our_company_user' => $params['not_our_company_user'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -95,7 +95,7 @@ class SafetyAccidentLogic extends BaseLogic
'not_our_company_user' => $params['not_our_company_user'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -61,7 +61,7 @@ class SafetyCheckLogic extends BaseLogic
'safety_hazard' => $params['safety_hazard'],
'modify_term' => $params['modify_term'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'check_nature' => $params['check_nature'],
'quality_hazard' => $params['quality_hazard'],
'sub_table' => $params['sub_table'],
@ -106,7 +106,7 @@ class SafetyCheckLogic extends BaseLogic
'safety_hazard' => $params['safety_hazard'],
'modify_term' => $params['modify_term'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'check_nature' => $params['check_nature'],
'quality_hazard' => $params['quality_hazard'],
'sub_table' => $params['sub_table'],

View File

@ -51,7 +51,7 @@ class SafetyEmergencyPlanLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
Db::commit();
return true;
@ -82,7 +82,7 @@ class SafetyEmergencyPlanLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_time' => time()
]);
Db::commit();

View File

@ -50,7 +50,7 @@ class SafetyEvaluateLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
Db::commit();
return true;
@ -81,7 +81,7 @@ class SafetyEvaluateLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
Db::commit();
return true;

View File

@ -52,7 +52,7 @@ class SafetyEventLogic extends BaseLogic
'happen_time' => strtotime($params['happen_time']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -85,7 +85,7 @@ class SafetyEventLogic extends BaseLogic
'happen_time' => strtotime($params['happen_time']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time()
]);

View File

@ -62,7 +62,7 @@ class SafetyHazardLogic extends BaseLogic
'manage_measure' => $params['manage_measure'],
'emergency_measure' => $params['emergency_measure'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -105,7 +105,7 @@ class SafetyHazardLogic extends BaseLogic
'manage_measure' => $params['manage_measure'],
'emergency_measure' => $params['emergency_measure'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -55,7 +55,7 @@ class SafetyProductMonthLogic extends BaseLogic
'current_important_work' => $params['current_important_work'],
'next_important_work' => $params['next_important_work'],
'item' => $params['item'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
Db::commit();
return true;
@ -90,7 +90,7 @@ class SafetyProductMonthLogic extends BaseLogic
'current_important_work' => $params['current_important_work'],
'next_important_work' => $params['next_important_work'],
'item' => $params['item'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
Db::commit();
return true;

View File

@ -51,7 +51,7 @@ class SafetyRehearsalLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
Db::commit();
return true;
@ -82,7 +82,7 @@ class SafetyRehearsalLogic extends BaseLogic
'happen_date' => strtotime($params['happen_date']),
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
]);
Db::commit();
return true;

View File

@ -50,7 +50,7 @@ class SafetyStandardLogic extends BaseLogic
'name' => $params['name'],
'publish_dep' => $params['publish_dep'],
'content' => $params['content'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -82,7 +82,7 @@ class SafetyStandardLogic extends BaseLogic
'name' => $params['name'],
'publish_dep' => $params['publish_dep'],
'content' => $params['content'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time()
]);

View File

@ -53,7 +53,7 @@ class SafetySuperviseLogic extends BaseLogic
'device_accident' => $params['device_accident'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -88,7 +88,7 @@ class SafetySuperviseLogic extends BaseLogic
'device_accident' => $params['device_accident'],
'content' => $params['content'],
'remark' => $params['remark'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time(),
]);

View File

@ -54,7 +54,7 @@ class SafetyTargetLogic extends BaseLogic
'target_standard' => $params['target_standard'],
'pass_rate' => $params['pass_rate'],
'deviation' => $params['deviation'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'add_user' => $admin_id,
'update_user' => $admin_id,
]);
@ -89,7 +89,7 @@ class SafetyTargetLogic extends BaseLogic
'target_standard' => $params['target_standard'],
'pass_rate' => $params['pass_rate'],
'deviation' => $params['deviation'],
'file' => !empty($params['file']) ? $params['file'] : null,
'file' => $params['file']? json_encode($params['file']) : null,
'update_user' => $admin_id,
'update_time' => time()
]);

View File

@ -61,7 +61,7 @@ class SupplierContactsLogic extends BaseLogic
'id_type' => $params['id_type'] ?? 0,
'idcard' => $params['idcard'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
]);
Db::commit();
return true;
@ -104,7 +104,7 @@ class SupplierContactsLogic extends BaseLogic
'id_type' => $params['id_type'] ?? 0,
'idcard' => $params['idcard'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'update_time' => time(),
]);
Db::commit();

View File

@ -62,7 +62,7 @@ class SupplierLogic extends BaseLogic
'email' => $params['email'] ?? '',
'address' => $params['address'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'invoice_company_name' => $params['invoice_company_name'] ?? '',
'taxpayer_identification_number' => $params['taxpayer_identification_number'] ?? '',
'bank_name' => $params['bank_name'] ?? '',
@ -113,7 +113,7 @@ class SupplierLogic extends BaseLogic
'email' => $params['email'] ?? '',
'address' => $params['address'] ?? '',
'remark' => $params['remark'] ?? '',
'annex' => $params['annex']? json_encode($params['annex']) : '',
'annex' => $params['annex']? json_encode($params['annex']) : null,
'invoice_company_name' => $params['invoice_company_name'] ?? '',
'taxpayer_identification_number' => $params['taxpayer_identification_number'] ?? '',
'bank_name' => $params['bank_name'] ?? '',