whycxzp
2023-02-25 ade751704a36681e5eb0e55c3db8458896a0135c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.whyc.service;
 
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.mapper.Ld9testdatastopMapper;
import com.whyc.pojo.Ld9testdataInf;
import com.whyc.pojo.Ld9testdatastop;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
@Service
public class Ld9testdatastopService {
    @Resource
    private Ld9testdatastopMapper mapper;
 
    //查询LD9测试组端数据
    public Response serchByInfo(int testRecordCount, int battGroupId, int testMonNum) {
        List<Ld9testdatastop> list=mapper.serchByInfo(testRecordCount,battGroupId,testMonNum);
        PageInfo pageInfo=new PageInfo(list);
        return new Response().set(1,pageInfo);
    }
    //查询LD9一次测试中所有单体的实际容量
    public Response serchByCondition(int testRecordCount, int battGroupId) {
        List<Ld9testdatastop> list=mapper.serchByCondition(testRecordCount,battGroupId);
        PageInfo pageInfo=new PageInfo(list);
        return new Response().set(1,pageInfo);
    }
    //查询存放ld9stop在testrecordcount下有哪些单体存在放电记录
    public List<Ld9testdatastop> searchlinftestdata(Ld9testdataInf linf) {
        List<Ld9testdatastop> list=mapper.searchlinftestdata(linf);
        return list;
    }
}