whyclxw
2025-05-30 4a110e47cc8420c8b6d681c0cf1286a19169d3cb
蓄电池核容信息统计
3个文件已修改
11 ■■■■ 已修改文件
src/main/java/com/whyc/pojo/db_batt_testdata/BatttestdataInf.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/BatttestdataInfService.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/BatttestdataInfMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/pojo/db_batt_testdata/BatttestdataInf.java
@@ -113,10 +113,13 @@
    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;
@@ -136,6 +139,9 @@
    private Float restTime;
    @TableField(exist = false)
    private Float realCap;
    @TableField(exist = false)
    private String precentCap;
src/main/java/com/whyc/service/BatttestdataInfService.java
@@ -53,6 +53,7 @@
                //剩余容量和剩余时间计算
                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);
                //获取电池组实时数据
src/main/resources/mapper/BatttestdataInfMapper.xml
@@ -5,7 +5,7 @@
    <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