| | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.BattInfAndEnduranceDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.BattInfMapper; |
| | | import com.whyc.mapper.BattinfUpdateRecordMapper; |
| | | import com.whyc.mapper.CommonMapper; |
| | | import com.whyc.mapper.StationInfMapper; |
| | | import com.whyc.pojo.Battinf; |
| | | import com.whyc.pojo.BattinfUpdateRecord; |
| | | import com.whyc.pojo.PowerInf; |
| | | import com.whyc.pojo.StationInf; |
| | | import com.whyc.mapper.*; |
| | | import com.whyc.pojo.*; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.ThreadLocalUtil; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | |
| | | @Autowired(required = false) |
| | | private StationInfMapper sinfMapper; |
| | | |
| | | @Autowired(required = false) |
| | | private BaoJiGroupBattGroupMapper bjBattMapper; |
| | | |
| | | public int searchMaxBattgroupId_zj() { |
| | | Integer id = battInfMapper.getMaxBattGroupId_zj(); |
| | |
| | | public void deleteByBattgroupId(Integer battgroupId){ |
| | | QueryWrapper<Battinf> wrapper = new QueryWrapper<Battinf>().eq("battgroupId",battgroupId); |
| | | battInfMapper.delete(wrapper); |
| | | //删除包机组下电池组 |
| | | QueryWrapper<BaojiGroupBattGroup> bjWrapper = new QueryWrapper<BaojiGroupBattGroup>().eq("battgroupId",battgroupId); |
| | | bjBattMapper.delete(bjWrapper); |
| | | //删除电池组后操作 |
| | | doAfterBattGroupChange(battgroupId); |
| | | } |
| | | |