| | |
| | | res.setProduct(binf.getProduct()); |
| | | //获取电池组未放电记录(指定时间段的标准核容放电) |
| | | getNoDischargeData(binf.getBattgroupId(),stic.getTestStartTime(),stic.getTestEndTime(),stic.getTypeList(),res); |
| | | reslist.add(res); |
| | | //2.获取电池组在给定时间段的放电记录(指定时间段的标准核容放电) |
| | | BatttestdataInf tinf =getLastStandardTestDataByTime(binf.getBattgroupId(),stic.getTestStartTime(),stic.getTestEndTime()); |
| | | res.setTinf(tinf); |
| | | if(stic.getStopReasonType()==0){ |
| | | reslist.add(res); |
| | | }else { |
| | | if(res.getStopReasonType()==stic.getStopReasonType()){ |
| | | reslist.add(res); |
| | | } |
| | | } |
| | | if(tinf==null){ |
| | | if(!groupName.equals("none")){ |
| | | BanZu bz= (BanZu) map.get(groupName); |
| | |
| | | List<String> stopList=new ArrayList<>(); |
| | | if(tinfList!=null&&tinfList.size()>0){ |
| | | res.setErrorNum(tinfList.size()); |
| | | res.setStopReasonType(1); |
| | | for (BatttestdataInf tinf:tinfList) { |
| | | String stopReason=StopReasonEnum.getValue(tinf.getTestStoptype()); |
| | | stopList.add(stopReason); |
| | |
| | | }else { |
| | | res.setErrorNum(0); |
| | | res.setStopList(new ArrayList<>()); |
| | | res.setStopReasonType(0); |
| | | } |
| | | } |
| | | //获取核容停止原因类型(下拉) |