whycxzp
2025-04-14 8557f4a954278b76a3054ee1edbb93f656b533ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.BattTestInfDataMapper;
import com.whyc.pojo.db_dis_batt.BattTestInfData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class BattTestInfDataService {
    @Autowired(required = false)
    private BattTestInfDataMapper mapper;
 
    @Autowired
    private SubTableService service;
 
    //根据充放电记录查询单体放电历史详情
    public Response getByBattGroupIdAndTestRecordCount(int battGroupId, int testRecordCount) {
        List<BattTestInfData> list=service.getByBattGroupIdAndTestRecordCount(battGroupId,testRecordCount);
        return new Response().set(1,list);
    }
}