对比新文件 |
| | |
| | | // |
| | | // 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.mailMapper; |
| | | import com.flow.pojo.Mail; |
| | | import com.flow.service.mailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class mailServiceImpl extends ServiceImpl<mailMapper, Mail> implements mailService { |
| | | public mailServiceImpl() { |
| | | } |
| | | |
| | | public int findMail(String company) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("company", company); |
| | | return Math.toIntExact(((mailMapper)this.baseMapper).selectCount(queryWrapper)); |
| | | } |
| | | |
| | | public int addMail(Mail mail) { |
| | | return ((mailMapper)this.baseMapper).insert(mail); |
| | | } |
| | | |
| | | public int updateMail(Mail mail) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("company", mail.getCompany()); |
| | | return ((mailMapper)this.baseMapper).update(mail, queryWrapper); |
| | | } |
| | | |
| | | public Mail findMailUser(String company) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("company", company); |
| | | return (Mail)((mailMapper)this.baseMapper).selectOne(queryWrapper); |
| | | } |
| | | } |