| | |
| | | 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) { |
| | |
| | | // 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){ |
| | |
| | | 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 { |
| | |
| | | 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()); |
| | |
| | | time=listmodel.get(i).getMsgN(); |
| | | } |
| | | } |
| | | } |
| | | }*/ |
| | | /*for (ServiceModel s : last) { |
| | | System.out.println(s); |
| | | }*/ |
| | |
| | | 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) { |