From 871d4095b07cedacb7fbef4c38d64982f539c404 Mon Sep 17 00:00:00 2001 From: fei.wang <wf18701153496@163.com> Date: 星期四, 09 五月 2024 15:40:15 +0800 Subject: [PATCH] 测试提交 --- src/main/java/com/flow/service/impl/ChongZhiServiceImpl.java | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 110 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/flow/service/impl/ChongZhiServiceImpl.java b/src/main/java/com/flow/service/impl/ChongZhiServiceImpl.java new file mode 100644 index 0000000..e9c4cc0 --- /dev/null +++ b/src/main/java/com/flow/service/impl/ChongZhiServiceImpl.java @@ -0,0 +1,110 @@ +// +// 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); + } +} -- Gitblit v1.9.3