| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | |
| | | if (flag == 1) { |
| | | //分页信息 |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List list = battInfMapper.selectList(null); |
| | | List list = battInfMapper.selectList((Wrapper<Battinf>) ActionUtil.objeNull); |
| | | PageInfo pageInfo = new PageInfo(list); |
| | | return new Response().set(1, pageInfo); |
| | | } else { |
| | |
| | | if (flag == 1) { |
| | | //分页信息 |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List list = powerInfMapper.selectList(null); |
| | | List list = powerInfMapper.selectList((Wrapper<PowerInf>) ActionUtil.objeNull); |
| | | PageInfo pageInfo = new PageInfo(list); |
| | | return new Response().set(1, pageInfo); |
| | | } else { |
| | |
| | | //获取所有第三方码的信息 |
| | | public Response getInterface(int pageNum, int pageSize) { |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List<Interface> list = interfaceMapper.selectList(null); |
| | | List<Interface> list = interfaceMapper.selectList((Wrapper<Interface>) ActionUtil.objeNull); |
| | | if (list != null && list.size() > 0) { |
| | | for (Interface iface : list) { |
| | | String random = iface.getInterfaceNumber(); |
| | |
| | | UpdateWrapper wrapper = new UpdateWrapper(); |
| | | wrapper.set("enable", enable); |
| | | wrapper.eq("num", num); |
| | | interfaceMapper.update(null, wrapper); |
| | | interfaceMapper.update((Interface) ActionUtil.objeNull, wrapper); |
| | | return new Response().set(1, true, "编辑是否可用"); |
| | | } |
| | | |