对比新文件 |
| | |
| | | // |
| | | // 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.LoginJiLuMapper; |
| | | import com.flow.pojo.Loginjilu; |
| | | import com.flow.service.LoginJiLuService; |
| | | import com.flow.util.DESUtil; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | public class LoginJiLuServiceImpl extends ServiceImpl<LoginJiLuMapper, Loginjilu> implements LoginJiLuService { |
| | | @Autowired |
| | | LoginJiLuMapper loginJiLuMapper; |
| | | |
| | | public LoginJiLuServiceImpl() { |
| | | } |
| | | |
| | | public PageInfo<Loginjilu> FindLoginJiLu(Integer page, Integer limit) { |
| | | PageHelper.startPage(page, limit); |
| | | List<Loginjilu> cardList = this.loginJiLuMapper.findAllLoginJiLu(); |
| | | PageInfo<Loginjilu> info = new PageInfo(cardList); |
| | | return info; |
| | | } |
| | | |
| | | public PageInfo<Loginjilu> FindLoginJiLuZi(Loginjilu loginjilu, Integer page, Integer limit) { |
| | | |
| | | PageHelper.startPage(page, limit); |
| | | List<Loginjilu> cardList = this.loginJiLuMapper.findAllLoginJiLuZi(loginjilu.getLogincompany()); |
| | | PageInfo<Loginjilu> info = new PageInfo(cardList); |
| | | return info; |
| | | } |
| | | |
| | | public int LoginIp(Loginjilu loginjilu) throws Exception { |
| | | Date date = new Date(); |
| | | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | loginjilu.setLogindate(formatter.format(date)); |
| | | loginjilu.setLoginphone(DESUtil.encrypt(loginjilu.getLoginphone(), DESUtil.key)); |
| | | return ((LoginJiLuMapper)this.baseMapper).insert(loginjilu); |
| | | } |
| | | |
| | | public List fwl() { |
| | | List list = new ArrayList(); |
| | | String jr = this.loginJiLuMapper.jrfwl(); |
| | | String bz = this.loginJiLuMapper.bzfwl(); |
| | | String by = this.loginJiLuMapper.byflw(); |
| | | String zg = this.loginJiLuMapper.zgfwl(); |
| | | list.add(jr); |
| | | list.add(bz); |
| | | list.add(by); |
| | | list.add(zg); |
| | | return list; |
| | | } |
| | | |
| | | public String userdate(String Zong) { |
| | | return this.loginJiLuMapper.userdate(Zong); |
| | | } |
| | | |
| | | public int upuserdate(String Zong, String userdate) { |
| | | QueryWrapper queryWrapper = new QueryWrapper(); |
| | | queryWrapper.eq("LoginCompany", Zong); |
| | | queryWrapper.eq("LoginDate", userdate); |
| | | Loginjilu loginjilu = new Loginjilu(); |
| | | Date date = new Date(); |
| | | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | loginjilu.setLoginoutdate(formatter.format(date)); |
| | | return ((LoginJiLuMapper)this.baseMapper).update(loginjilu, queryWrapper); |
| | | } |
| | | } |