| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.whyc.dto.Real.QuarterDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.Statistic.ComPareChangeCurve; |
| | | import com.whyc.dto.Statistic.ComPareChart; |
| | | import com.whyc.mapper.BattresdataInfMapper; |
| | | import com.whyc.mapper.CommonMapper; |
| | |
| | | } |
| | | return chart; |
| | | } |
| | | //点击右侧折线图画出电池组单体的所有内阻测试单体内阻变化图(1.2.15/16/17) |
| | | public Response getMonResChangeByBattgroupId(Integer battgroupId, Integer monNum) { |
| | | QueryWrapper wrapper = new QueryWrapper(); |
| | | wrapper.eq("battgroup_id", battgroupId); |
| | | wrapper.last(" ORDER BY test_starttime asc "); |
| | | List<BattresdataInf> list = mapper.selectList(wrapper); |
| | | List<ComPareChangeCurve> curvelist=new ArrayList<>(); |
| | | for (BattresdataInf rinf:list) { |
| | | String existTableName = commonMapper.existTable("db_batt_testdata", "tb_battresdata_"+battgroupId); |
| | | if(existTableName != null){ |
| | | //取内阻测试指定单体的单体电压 |
| | | ComPareChangeCurve curve=subTablePageInfoService.getMonResChangeByBattgroupId(battgroupId,rinf.getTestRecordCount(),monNum); |
| | | if(curve!=null){ |
| | | curvelist.add(curve); |
| | | } |
| | | } |
| | | } |
| | | return new Response().setII(1,list.size()>0,curvelist,"点击右侧折线图画出电池组单体的所有内阻测试单体内阻变化图(1.2.15/16/17)"); |
| | | } |
| | | } |