whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/services/Cmcc_Power_DataService.java
@@ -1,5 +1,6 @@
package com.fgkj.services;
import com.fgkj.dto.BattInf;
import com.fgkj.dto.ServiceModel;
import com.fgkj.mapper.impl.Cmcc_Power_DataMapper;
import org.springframework.beans.factory.annotation.Autowired;
@@ -11,12 +12,13 @@
import java.util.List;
import javax.annotation.Resource;
@Service
public class Cmcc_Power_DataService {
   private ServiceModel model;
   ServiceModel model = new ServiceModel();
   @Autowired
   @Resource
   private Cmcc_Power_DataMapper mapper;;
   
   @PostMapping("/")
@@ -61,7 +63,7 @@
   
   //根据电池组id查询cmcc实时表中的实时电流画柱状图
   @GetMapping("byCondition")
   public ServiceModel serchByCondition(Object obj){
   public ServiceModel serchByCondition(BattInf obj){
      List list=mapper.serchByCondition(obj);
      if(list!=null&&list.size()>0){
         model.setCode(1);