Commit 0848f2fa authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 46cc3397
...@@ -506,7 +506,7 @@ class InvoiceService ...@@ -506,7 +506,7 @@ class InvoiceService
{ {
$updatedInvoiceResult = $this->invoiceRecordRepository->getInvoiceRecordByNumber($params); $updatedInvoiceResult = $this->invoiceRecordRepository->getInvoiceRecordByNumber($params);
$this->apiService->pushQueue([ $this->apiService->pushQueue([
'params' => $updatedInvoiceResult, 'params' => current($updatedInvoiceResult),
'consumer' => __CLASS__, 'consumer' => __CLASS__,
'method' => 'sendInvoiceEmail' 'method' => 'sendInvoiceEmail'
],'invoiceEmailPush'); ],'invoiceEmailPush');
...@@ -515,9 +515,12 @@ class InvoiceService ...@@ -515,9 +515,12 @@ class InvoiceService
public function sendInvoiceEmail($invoiceParams) public function sendInvoiceEmail($invoiceParams)
{ {
$sended = $this->apiService->getPlatformDataEntries('invoice_sended_mail_list','data_values'); $sended = $this->apiService->getPlatformDataEntries('invoice_sended_mail_list','data_values');
if($sended){
if(in_array($invoiceParams['invoice_real_number'],json_decode($sended,true))){ if(in_array($invoiceParams['invoice_real_number'],json_decode($sended,true))){
return true; return true;
} }
}
$sended = array($sended);
//获取发票地址 //获取发票地址
if(isset($invoiceParams['invoice_pdf_url']) && !empty($invoiceParams['invoice_pdf_url'])){ if(isset($invoiceParams['invoice_pdf_url']) && !empty($invoiceParams['invoice_pdf_url'])){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment