|
|
|
@ -19,7 +19,7 @@ class InvoiceIssuanceTask extends Base |
|
|
|
{ |
|
|
|
$limit = 100; |
|
|
|
$where = ['status' => 0, 'delete_time' => 0]; |
|
|
|
$InvoiceIssuanceData = (new InvoiceIssuanceModel())->where($where)->page($limit)->select(); |
|
|
|
$InvoiceIssuanceData = (new InvoiceIssuanceModel())->where($where)->page(1, $limit)->select(); |
|
|
|
foreach ($InvoiceIssuanceData as $InvoiceIssuanceValue) { |
|
|
|
(new InvoiceIssuanceService())->IssueAnInvoice($InvoiceIssuanceValue); |
|
|
|
} |
|
|
|
@ -38,7 +38,7 @@ class InvoiceIssuanceTask extends Base |
|
|
|
{ |
|
|
|
$limit = 100; |
|
|
|
$where = ['status' => 2, 'delete_time' => 0]; |
|
|
|
$InvoiceIssuanceData = (new InvoiceIssuanceModel())->where($where)->page($limit)->select(); |
|
|
|
$InvoiceIssuanceData = (new InvoiceIssuanceModel())->where($where)->page(1, $limit)->select(); |
|
|
|
foreach ($InvoiceIssuanceData as $InvoiceIssuanceValue) { |
|
|
|
(new InvoiceIssuanceService())->cancelInitiateAgain($InvoiceIssuanceValue); |
|
|
|
} |
|
|
|
|