whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/services/Ld9/Ld9testdatastopService.java
@@ -1,26 +1,23 @@
package com.fgkj.services.Ld9;
import com.fgkj.dto.Ld9testdatastop;
import com.fgkj.dto.ServiceModel;
import com.fgkj.mapper.impl.Ld9.Ld9testdatastopMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
// import com.fgkj.dto.Ld9testdatastop;
@Service
public class Ld9testdatastopService {
   
   @Autowired
   private Ld9testdatastopMapper mapper;;
   private ServiceModel model;
   @Resource
   private Ld9testdatastopMapper mapper;
   
   //历史监测容量的柱状图
   public ServiceModel serchByCondition(Object obj){
      List list=mapper.serchByCondition(obj);
   public ServiceModel serchByCondition(Ld9testdatastop ld9){
      ServiceModel model = new ServiceModel();
      List list=mapper.serchByCondition(ld9);
      if(list!=null&&list.size()>0){
         model.setData(list);
         model.setCode(1);
@@ -33,8 +30,9 @@
   }
   
   //根据电池组id;单体编号,test_record_count查询测试结束的信息
   public ServiceModel serchByInfo(Object obj){
      List list=mapper.serchByInfo(obj);
   public ServiceModel serchByInfo(Ld9testdatastop ld9){
      ServiceModel model = new ServiceModel();
      List list=mapper.serchByInfo(ld9);
      if(list!=null&&list.size()>0){
         model.setData(list);
         model.setCode(1);