| | |
| | | private String stationName; |
| | | |
| | | @TableField(exist = false) |
| | | private String stationId; |
| | | private Integer stationId; |
| | | |
| | | @TableField(exist = false) |
| | | private Integer powerId; |
| | | |
| | | @TableField(exist = false) |
| | | private Integer devId; |
| | | |
| | | @TableField(exist = false) |
| | | private String battgroupName; |
| | |
| | | private Float restTime; |
| | | |
| | | @TableField(exist = false) |
| | | private Float realCap; |
| | | |
| | | @TableField(exist = false) |
| | | private String precentCap; |
| | | |
| | | |
| | |
| | | //剩余容量和剩余时间计算 |
| | | int hourRate = BattCapFactory.GetHourRate(tinf.getTestCap(), tinf.getTestCurr()); |
| | | Float restCap = (float) BattCapFactory.GetMonomerCap(tinf.getTestCap(), hourRate, tinf.getTestCap(), tinf.getMaxMonvol(), tinf.getMinMonvol(), tinf.getGroupVol(), BattCapFactory.CapType_Rest); |
| | | Float realCap = (float) BattCapFactory.GetMonomerCap(tinf.getTestCap(), hourRate, tinf.getTestCap(), tinf.getMaxMonvol(), tinf.getMinMonvol(), tinf.getGroupVol(), BattCapFactory.CapType_Real); |
| | | tinf.setRestCap(restCap); |
| | | tinf.setRestTime(0f); |
| | | //获取电池组实时数据 |
| | |
| | | <select id="getBattTinfStatistic" resultType="com.whyc.pojo.db_batt_testdata.BatttestdataInf"> |
| | | select tb_batttestdata_inf.* |
| | | ,tb_station_inf.station_name,tb_station_inf.provice,tb_station_inf.city,tb_station_inf.country,tb_station_inf.full_name |
| | | ,tb_batt_inf.battgroup_name,tb_batt_inf.power_id,tb_batt_inf.station_id |
| | | ,tb_batt_inf.battgroup_name,tb_batt_inf.power_id,tb_batt_inf.station_id,tb_batt_inf.dev_id |
| | | from db_batt_testdata.tb_batttestdata_inf,db_station.tb_station_inf,db_station.tb_batt_inf |
| | | <where> |
| | | tb_batttestdata_inf.battgroup_id=tb_batt_inf.battgroup_id |