fei.wang
2024-04-15 61747a14819075bf6da2c1597b6c22e22e026686
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//
// 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.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;
import com.github.pagehelper.PageInfo;
import java.util.List;
import org.springframework.stereotype.Service;
 
@Service
public class ZongInvoiceServiceImpl extends ServiceImpl<zongInvoicesMapper, Zonginvoices> implements zongInvoicesService {
    public ZongInvoiceServiceImpl() {
    }
 
    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);
        return info;
    }
 
    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);
        PageInfo<Zonginvoices> info = new PageInfo(cardList);
        return info;
    }
 
    public int zongfpadd(Zonginvoices zonginvoices) {
        return ((zongInvoicesMapper)this.baseMapper).insert(zonginvoices);
    }
 
    public Zonginvoices findsqnum(Zonginvoices zonginvoices) {
        QueryWrapper queryWrapper = new QueryWrapper();
        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;
    }
 
}