| | |
| | | @TableField(exist = false) |
| | | private String battGroupName; |
| | | |
| | | /**标称单体电压*/ |
| | | @TableField(exist = false) |
| | | private int monVol; |
| | | |
| | | /**标称容量*/ |
| | | @TableField(exist = false) |
| | | private int monCap; |
| | | |
| | | } |
| | |
| | | public Response getDischargePage(int pageNum, int pageSize) { |
| | | PageHelper.startPage(pageNum, pageSize); |
| | | List<BattTestInf> list =mapper.getDischargeList(); |
| | | list.forEach(item->{ |
| | | //小时率 |
| | | int hourRate = BattCapFactory.GetHourRate(item.getMonCap(), item.getTestCurr()); |
| | | //容量计算 |
| | | Double realCap = BattCapFactory.GetMonomerCap(item.getMonCap(), hourRate, item.getTestCap(), item.getMaxMonvol(), item.getMinMonvol(), item.getMonVol(), BattCapFactory.CapType_Real); |
| | | item.setRealCap(realCap.floatValue()); |
| | | }); |
| | | |
| | | PageInfo pageInfo = new PageInfo(list); |
| | | return new Response().set(1, pageInfo); |
| | | } |
| | |
| | | </select> |
| | | <select id="getDischargeList" resultType="com.whyc.pojo.db_dis_batt.BattTestInf"> |
| | | select |
| | | binf_name as battGroupName,batt_test_inf.binf_id as battGroupId,test_record_count,group_vol,test_curr,max_monvol,min_monvol,test_cap,test_starttime,record_time,test_timelong,test_stoptype |
| | | binf_name as battGroupName,batt_test_inf.binf_id as battGroupId,mon_cap,mon_vol,test_record_count,group_vol,test_curr,max_monvol,min_monvol,test_cap,test_starttime,record_time,test_timelong,test_stoptype |
| | | from db_dis_batt.batt_test_inf,db_batt.power_inf where db_batt.power_inf.binf_id=db_dis_batt.batt_test_inf.binf_id |
| | | and test_starttype=3 and test_type=3 |
| | | and (test_stoptype in (3, 4, 6) |