From 61747a14819075bf6da2c1597b6c22e22e026686 Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期一, 15 四月 2024 14:25:11 +0800
Subject: [PATCH] 4-15修改提交

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

diff --git a/src/main/java/com/flow/service/impl/ZongInvoiceServiceImpl.java b/src/main/java/com/flow/service/impl/ZongInvoiceServiceImpl.java
index ef71c0c..b3baab1 100644
--- a/src/main/java/com/flow/service/impl/ZongInvoiceServiceImpl.java
+++ b/src/main/java/com/flow/service/impl/ZongInvoiceServiceImpl.java
@@ -7,7 +7,13 @@
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.flow.mapper.ChongZhMapper;
+import com.flow.mapper.ManagerMapper;
+import com.flow.mapper.TbFuwuqiMapper;
 import com.flow.mapper.zongInvoicesMapper;
+import com.flow.pojo.Chongzhi;
+import com.flow.pojo.Manager;
+import com.flow.pojo.TbFuwuqi;
 import com.flow.pojo.Zonginvoices;
 import com.flow.service.zongInvoicesService;
 import com.github.pagehelper.PageHelper;
@@ -22,6 +28,7 @@
 
     public PageInfo<Zonginvoices> findinvoicesjilu(Integer page, Integer limit) {
         QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.eq("none", "0");
         PageHelper.startPage(page, limit);
         List<Zonginvoices> cardList = ((zongInvoicesMapper)this.baseMapper).selectList(queryWrapper);
         PageInfo<Zonginvoices> info = new PageInfo(cardList);
@@ -30,6 +37,7 @@
 
     public PageInfo<Zonginvoices> findinvoicesjilu(Integer page, Integer limit, Zonginvoices zonginvoices) {
         QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.eq("none", "0");
         queryWrapper.eq("company", zonginvoices.getCompany());
         PageHelper.startPage(page, limit);
         List<Zonginvoices> cardList = ((zongInvoicesMapper)this.baseMapper).selectList(queryWrapper);
@@ -46,10 +54,48 @@
         queryWrapper.eq("sqnum", zonginvoices.getSqnum());
         return (Zonginvoices)((zongInvoicesMapper)this.baseMapper).selectOne(queryWrapper);
     }
+    public int UpdateKaiPiao(Zonginvoices zonginvoices) {
+        QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.eq("sqnum", zonginvoices.getSqnum());
+//        TbFuwuqi tbFuwuqi1 = (TbFuwuqi)((TbFuwuqiMapper)this.baseMapper).selectOne(queryWrapper);
+//        OperationLog operationLog = new OperationLog();
+//        operationLog.setCaozuotype("淇敼");
+//        operationLog.setCaozuocontent("淇敼鏈嶅姟鍣細"+tbFuwuqi1.getServername());
+//        operationLogService.addOperationLog(operationLog);
+
+        return ((zongInvoicesMapper) this.baseMapper).update(zonginvoices, queryWrapper);
+    }
+
+
+    public int DeleteKaiPiao(String kaipiaoId) {
+        QueryWrapper queryWrapper = new QueryWrapper();
+        queryWrapper.eq("sqnum", kaipiaoId);
+        Zonginvoices zonginvoices = new Zonginvoices();
+        zonginvoices.setNone("1");
+//        Company company1 = (Company)((CompanyMapper)this.baseMapper).selectOne(queryWrapper);
+//        OperationLog operationLog = new OperationLog();
+//        operationLog.setCaozuotype("鍒犻櫎");
+//        operationLog.setCaozuocontent("鍒犻櫎鍏徃锛�"+company1.getCompanyname());
+//        operationLogService.addOperationLog(operationLog);
+        return ((zongInvoicesMapper)this.baseMapper).update(zonginvoices, queryWrapper);
+    }
 
     public int adddanhao(Zonginvoices zonginvoices) {
         QueryWrapper queryWrapper = new QueryWrapper();
         queryWrapper.eq("sqnum", zonginvoices.getSqnum());
         return ((zongInvoicesMapper)this.baseMapper).update(zonginvoices, queryWrapper);
     }
+
+    public PageInfo<Zonginvoices> tableSearch(Zonginvoices manager, int page, int limit) throws Exception {
+        QueryWrapper queryWrapper = new QueryWrapper();
+        PageHelper.startPage(page, limit);
+        PageInfo<Zonginvoices> info = null;
+        queryWrapper.like("fptt", manager.getFptt());
+        queryWrapper.eq("none", 0);
+        info = new PageInfo(((zongInvoicesMapper) this.baseMapper).selectList(queryWrapper));
+
+
+        return info;
+    }
+
 }

--
Gitblit v1.9.3