| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | |
| | | return new Response().setII(1,list.size()>0,list,"获取电压等级(下拉)"); |
| | | } |
| | | |
| | | public List<StationInf> getAllWithFields(String... fields) { |
| | | /*public List<StationInf> getAllWithFields(Integer userId, String... fields) { |
| | | QueryWrapper<StationInf> query = Wrappers.query(); |
| | | StringBuilder fieldsStr = new StringBuilder(); |
| | | //对fields进行拼接,拼接为select |
| | |
| | | |
| | | return mapper.selectList(query); |
| | | |
| | | } |
| | | }*/ |
| | | //站点信息统计 |
| | | public Response getStationStatistic(StationStic stic) { |
| | | PageHelper.startPage(stic.getPageNum(),stic.getPageSize()); |
| | |
| | | StationInf sinf=mapper.selectOne(wrapper); |
| | | return sinf; |
| | | } |
| | | |
| | | public List<StationInf> getListByUserId(Integer userId) { |
| | | return mapper.getListByUserId(userId); |
| | | } |
| | | } |