对比新文件 |
| | |
| | | // |
| | | // 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); |
| | | } |
| | | } |