|
|
@@ -133,7 +133,7 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
|
|
|
|
|
|
@Override
|
|
|
public void cancelApplyInvoice() {
|
|
|
- var invoiceList = lambdaQuery().eq(Invoice::getUserId, StpUtil.getLoginIdAsLong()).eq(Invoice::getStatus, Invoice.STATUS_开票中).orderByDesc(Invoice::getId).list();
|
|
|
+ var invoiceList = lambdaQuery().eq(Invoice::getUserId, StpUtil.getLoginIdAsLong()).eq(Invoice::getStatus, Invoice.STATUS_待开票).orderByDesc(Invoice::getId).list();
|
|
|
if (!CommUtil.isEmptyOrNull(invoiceList)) {
|
|
|
var invoice = invoiceList.get(0);
|
|
|
// 发票状态已作废
|