From e15f561a1f9eddfde503d59baf45a860b131928e Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期三, 13 八月 2025 14:22:50 +0800
Subject: [PATCH] 更新最新版代码

---
 src/main/java/com/flow/service/impl/InvoicesServiceImpl.java |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/flow/service/impl/InvoicesServiceImpl.java b/src/main/java/com/flow/service/impl/InvoicesServiceImpl.java
new file mode 100644
index 0000000..9945602
--- /dev/null
+++ b/src/main/java/com/flow/service/impl/InvoicesServiceImpl.java
@@ -0,0 +1,41 @@
+//
+// Source code recreated from a .class file by IntelliJ IDEA
+// (powered by FernFlower decompiler)
+//
+
+package com.flow.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.flow.mapper.InvoicesMapper;
+import com.flow.pojo.Invoices;
+import com.flow.service.InvoicesSevice;
+import org.springframework.stereotype.Service;
+
+@Service
+public class InvoicesServiceImpl extends ServiceImpl<InvoicesMapper, Invoices> implements InvoicesSevice {
+    public InvoicesServiceImpl() {
+    }
+
+    public Invoices findInvoices(Invoices invoices) {
+        QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.eq("company",  invoices.getCompany() );
+        return (Invoices)((InvoicesMapper)this.baseMapper).selectOne(queryWrapper);
+    }
+
+    public int findInvoicesAdd(Invoices invoices) {
+        return ((InvoicesMapper)this.baseMapper).insert(invoices);
+    }
+
+    public int findInvoicesChong(Invoices invoices) {
+        QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.eq("company", invoices.getCompany());
+        return Math.toIntExact(((InvoicesMapper)this.baseMapper).selectCount(queryWrapper));
+    }
+
+    public int updateInvoices(Invoices invoices) {
+        QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.eq("company", invoices.getCompany());
+        return ((InvoicesMapper)this.baseMapper).update(invoices, queryWrapper);
+    }
+}

--
Gitblit v1.9.3