¶Ô±ÈÐÂÎļþ |
| | |
| | | // |
| | | // 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.CompanyMapper; |
| | | import com.flow.pojo.Chongzhi; |
| | | import com.flow.pojo.Company; |
| | | import com.flow.pojo.OperationLog; |
| | | import com.flow.service.ChongZhiService; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class ChongZhiServiceImpl extends ServiceImpl<ChongZhMapper, Chongzhi> implements ChongZhiService { |
| | | @Autowired |
| | | ChongZhMapper chongZhMapper; |
| | | |
| | | public ChongZhiServiceImpl() { |
| | | } |
| | | |
| | | public PageInfo<Chongzhi> FindChongzhiZi(String Zong, Integer page, Integer limit) throws Exception { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("none", "0"); |
| | | queryWrapper.eq("Company", Zong); |
| | | queryWrapper.select().orderByDesc("CzDate"); |
| | | PageHelper.startPage(page, limit); |
| | | List<Chongzhi> chongzhiList = ((ChongZhMapper)this.baseMapper).selectList(queryWrapper); |
| | | PageInfo<Chongzhi> info = new PageInfo(chongzhiList); |
| | | return info; |
| | | } |
| | | |
| | | public PageInfo<Chongzhi> FindChongZhi(Integer page, Integer limit) throws Exception { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("none", "0"); |
| | | queryWrapper.select().orderByDesc("CzDate"); |
| | | PageHelper.startPage(page, limit); |
| | | List<Chongzhi> chongzhiList = ((ChongZhMapper)this.baseMapper).selectList(queryWrapper); |
| | | PageInfo<Chongzhi> info = new PageInfo(chongzhiList); |
| | | return info; |
| | | } |
| | | |
| | | public List czl(String Zong) { |
| | | List list = new ArrayList(); |
| | | String jr; |
| | | String bz; |
| | | String by; |
| | | String zg; |
| | | if (Zong.equals("åææºæ§")) { |
| | | jr = this.chongZhMapper.jrfwl1(); |
| | | bz = this.chongZhMapper.bzfwl1(); |
| | | by = this.chongZhMapper.byflw1(); |
| | | zg = this.chongZhMapper.zgfwl1(); |
| | | list.add(jr); |
| | | list.add(bz); |
| | | list.add(by); |
| | | list.add(zg); |
| | | } else { |
| | | jr = this.chongZhMapper.jrfwl(Zong); |
| | | bz = this.chongZhMapper.bzfwl(Zong); |
| | | by = this.chongZhMapper.byflw(Zong); |
| | | zg = this.chongZhMapper.zgfwl(Zong); |
| | | list.add(jr); |
| | | list.add(bz); |
| | | list.add(by); |
| | | list.add(zg); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | public int addChongZhi(Chongzhi chongzhi) { |
| | | return ((ChongZhMapper)this.baseMapper).insert(chongzhi); |
| | | } |
| | | |
| | | public int upstatus(Chongzhi chongzhi) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("jyNum", chongzhi.getJynum()); |
| | | return ((ChongZhMapper)this.baseMapper).update(chongzhi, queryWrapper); |
| | | } |
| | | |
| | | public String findChongZhiJine() { |
| | | return this.chongZhMapper.findChongZhiJine(); |
| | | } |
| | | |
| | | public int DeleteChongZhi(String chongZhiId) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("num", chongZhiId); |
| | | Chongzhi chongzhi = new Chongzhi(); |
| | | chongzhi.setNone("1"); |
| | | // Company company1 = (Company)((CompanyMapper)this.baseMapper).selectOne(queryWrapper); |
| | | // OperationLog operationLog = new OperationLog(); |
| | | // operationLog.setCaozuotype("å é¤"); |
| | | // operationLog.setCaozuocontent("å é¤å
¬å¸ï¼"+company1.getCompanyname()); |
| | | // operationLogService.addOperationLog(operationLog); |
| | | return ((ChongZhMapper)this.baseMapper).update(chongzhi, queryWrapper); |
| | | } |
| | | public String findChongZhiJine1(Chongzhi chongzhi) { |
| | | return this.chongZhMapper.findChongZhiJine1(chongzhi); |
| | | } |
| | | } |