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);
|
}
|
}
|