whycrzg
2021-02-23 351b9a53cb9ecebdf8f79db0117f540d9c42c2a4
src/main/java/com/fgkj/services/User_task_batt_testService.java
@@ -1,25 +1,22 @@
package com.fgkj.services;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.fgkj.controller.ActionUtil;
import com.fgkj.dto.BattInf;
import com.fgkj.dto.User_task;
import com.fgkj.util.*;
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.Task_Batt_Test;
import com.fgkj.dto.User_inf;
import com.fgkj.dto.User_task_batt_test;
import com.fgkj.mapper.impl.User_task_batt_testMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
@Service
public class User_task_batt_testService {
   @Autowired
   @Resource
   private User_task_batt_testMapper mapper;;
   
    public ServiceModel add(Object obj) {
@@ -131,8 +128,8 @@
            // System.out.println(method+":"+perid_Time);
            }
            model = new ServiceModel();
            model.setMsgN(perid_Time); // 时间段
            //TODO perry
            /*model.setMsgN(perid_Time); // 时间段
            model.setSum(allTask);     //总数
            Float percentTask=0f;
            if(allTask!=0){
@@ -151,7 +148,7 @@
            model.setMsg(list.get(i).getBinf().getSignalName());//执行人
            model.setMsgO(list.get(i).getBinf().getStationName1());    //维护区
            model.setMsgV(list.get(i).getBinf().getStationName());//机房站点
            model.setMsgT(list.get(i).getBinf().getBattGroupName());//电池组名称
            model.setMsgT(list.get(i).getBinf().getBattGroupName());//电池组名称*/
            listmodel.add(model);
         }
      } else {
@@ -160,7 +157,9 @@
         listmodel.add(model);
      }
      ServiceModel lastModel=new ServiceModel();
      lastModel.setMsgN("0");
      List<ServiceModel> last=new ArrayList<ServiceModel>();
      //TODO perry
      /*lastModel.setMsgN("0");
      lastModel.setCode(model.getCode());
      lastModel.setMsg(model.getMsg());
      lastModel.setLowCA(model.getLowCA());
@@ -206,7 +205,7 @@
               time=listmodel.get(i).getMsgN();
            }   
         }   
      }
      }*/
      /*for (ServiceModel s : last) {
         System.out.println(s);
      }*/
@@ -214,7 +213,7 @@
      return last;
   }
   
   public ServiceModel serchByCondition(Object obj){
   public ServiceModel serchByCondition(User_task obj){
      ServiceModel model = new ServiceModel();
      List list=mapper.serchByCondition(obj);
//      for (Object object : list) {