whyclxw
2022-01-18 d1b648071c23af0cf5df91cdf3b80cca70cbfc0f
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
package com.whyc.service;
 
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.mapper.Ld9testdatastopMapper;
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);
    }
}