src/main/java/com/whyc/dto/InfoDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/pojo/db_station/BattInf.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/pojo/db_station/PowerInf.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/pojo/db_station/StationInf.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/service/BattInfService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/service/PowerInfService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/whyc/service/StationInfService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/whyc/dto/InfoDto.java
@@ -79,7 +79,6 @@ @ApiModelProperty(value = "整流器使能[bit0-模块1 bit15-模块16]【1-可用 0-不可以】") private Long modelCfg; private List<PowerInfChange> pinfChangeList; @ApiModelProperty(value = "设备id") @@ -132,8 +131,6 @@ @ApiModelProperty(value = "标识是否加入电池组1:添加,0不添加") private Integer addBinfFlag; private List<BattInfChange> binfChangeList; @ApiModelProperty(value = "变更原因") private String updateReason; src/main/java/com/whyc/pojo/db_station/BattInf.java
@@ -10,6 +10,7 @@ import java.io.Serializable; import java.util.Date; import java.util.List; /** * <p> @@ -118,4 +119,7 @@ @TableField(exist = false) @ApiModelProperty(value = "包机组名称") private String baojiGroupName; @TableField(exist = false) private List<BattInfChange> binfChangeList; } src/main/java/com/whyc/pojo/db_station/PowerInf.java
@@ -13,6 +13,7 @@ import java.io.Serializable; import java.util.Date; import java.util.List; /** * <p> @@ -89,5 +90,7 @@ @TableField(exist = false) private String stationType; @TableField(exist = false) private List<PowerInfChange> pinfChangeList; } src/main/java/com/whyc/pojo/db_station/StationInf.java
@@ -1,6 +1,7 @@ package com.whyc.pojo.db_station; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; @@ -10,6 +11,7 @@ import lombok.experimental.Accessors; import java.io.Serializable; import java.util.List; /** * <p> @@ -65,4 +67,6 @@ @ApiModelProperty(value = "站点类型[0-非节点站,1-节点站]") private Integer nodeStation; @TableField(exist = false) private List<StationInfChange> sinfChangeList; } src/main/java/com/whyc/service/BattInfService.java
@@ -43,6 +43,7 @@ @Autowired(required = false) private InfoChangeService changeService; /*新建电池组(新的设备新的电池组) * @param binf * 1.在电源下新建设备,记录设备编号,devNum,设备名称为设备类型+devNum @@ -368,15 +369,6 @@ dto.setUid(user.getId()); PageHelper.startPage(dto.getPageNum(),dto.getPageSize()); List<InfoDto> list=mapper.getInfo(dto); for (InfoDto infoDto:list) { //获取机房,电源,电池组变更记录 List<StationInfChange> sinfChangeList=changeService.getSinfChange(infoDto.getStationId()); infoDto.setSinfChangeList(sinfChangeList); List<PowerInfChange> pinfChangeList=changeService.getPinfChange(infoDto.getPowerId()); infoDto.setPinfChangeList(pinfChangeList); List<BattInfChange> binfChangeList=changeService.getBinfChange(infoDto.getBattgroupId()); infoDto.setBinfChangeList(binfChangeList); } PageInfo pageInfo=new PageInfo(list); return new Response().setII(1,list!=null,pageInfo,"查询电池"); } @@ -415,6 +407,8 @@ wrapper.eq("battgroup_id",battgroupId); wrapper.last("limit 1"); BattInf binf=mapper.selectOne(wrapper); List<BattInfChange> binfChangeList=changeService.getBinfChange(battgroupId); binf.setBinfChangeList(binfChangeList); return binf; } //当没有内助测试时初始内阻值为标称内阻 src/main/java/com/whyc/service/PowerInfService.java
@@ -17,6 +17,7 @@ import com.whyc.mapper.StationInfMapper; import com.whyc.pojo.db_station.BattInf; import com.whyc.pojo.db_station.PowerInf; import com.whyc.pojo.db_station.PowerInfChange; import com.whyc.pojo.db_station.StationInf; import com.whyc.pojo.db_user.BaojigroupPower; import com.whyc.pojo.db_user.BaojigroupUsr; @@ -44,6 +45,9 @@ @Autowired(required = false) private BaojigroupPowerMapper bjPowerMapper; @Autowired(required = false) private InfoChangeService changeService; /*添加电源 1.判断当前用户是否是包组用户 @@ -144,6 +148,8 @@ wrapper.eq("power_id",powerId); wrapper.last("limit 1"); PowerInf pinf=mapper.selectOne(wrapper); List<PowerInfChange> pinfChangeList=changeService.getPinfChange(powerId); pinf.setPinfChangeList(pinfChangeList); return pinf; } //电源信息统计 src/main/java/com/whyc/service/StationInfService.java
@@ -4,12 +4,12 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.whyc.dto.InfoDto; import com.whyc.dto.Response; import com.whyc.dto.Station.Provice; import com.whyc.dto.Statistic.StationStic; import com.whyc.mapper.StationInfMapper; import com.whyc.pojo.db_station.PowerInf; import com.whyc.pojo.db_station.StationInf; import com.whyc.pojo.db_station.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -20,7 +20,8 @@ @Autowired(required = false) private StationInfMapper mapper; @Autowired(required = false) private InfoChangeService changeService; //获取左侧列表 public Response getLeftStation(int uid) { List<Provice> list=mapper.getLeftStation(uid); @@ -86,6 +87,9 @@ wrapper.eq("station_id",stationId); wrapper.last("limit 1"); StationInf sinf=mapper.selectOne(wrapper); //获取机房,电源,电池组变更记录 List<StationInfChange> sinfChangeList=changeService.getSinfChange(sinf.getStationId()); sinf.setSinfChangeList(sinfChangeList); return sinf; }