| | |
| | | @Autowired |
| | | private PageParamService pageParamService; |
| | | |
| | | @Autowired |
| | | private SubTablePageInfoService subService; |
| | | |
| | | /*新版接口不包含内阻数据 |
| | | * */ |
| | | public PageInfo<BatttestdataInf> calcTestData(BattTestDataDTO paramDto, Integer pageNum, Integer pageSize) { |
| | |
| | | public boolean delete(Integer num, Integer battGroupId, Integer testRecordCount, Integer testType) { |
| | | |
| | | //充电,放电,在线监测 |
| | | if(testType == BattTestEnum.TEST_TYPE_CHARGE.getValue() || |
| | | /*if(testType == BattTestEnum.TEST_TYPE_CHARGE.getValue() || |
| | | testType == BattTestEnum.TEST_TYPE_DISCHARGE.getValue()|| |
| | | testType == BattTestEnum.TEST_TYPE_MONITOR.getValue() |
| | | )*/ |
| | | if(testType.equals(BattTestEnum.TEST_TYPE_CHARGE.getValue()) || |
| | | testType.equals(BattTestEnum.TEST_TYPE_DISCHARGE.getValue())|| |
| | | testType.equals(BattTestEnum.TEST_TYPE_MONITOR.getValue()) |
| | | ){ |
| | | //删除 测试表inf里的信息 |
| | | testDataInfMapper.deleteById(num); |
| | |
| | | //删除 测试表inf里的信息 |
| | | resDataInfMapper.deleteById(num); |
| | | //删除 测试表_battGroupId里面对应的单体信息 |
| | | resDataMapper.deleteByTestRecordCount(battGroupId,testRecordCount); |
| | | //resDataMapper.deleteByTestRecordCount(battGroupId,testRecordCount); |
| | | subService.deleteByTestRecordCount(battGroupId,testRecordCount); |
| | | } |
| | | return true; |
| | | } |