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