| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.constant.ExperimentType; |
| | | import com.whyc.dto.ExperimentConditionDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.ExperimentBaseDataKZMapper; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | PageInfo<Experiment> pageInfo = new PageInfo<>(experimentList); |
| | | return new Response<PageInfo<Experiment>>().set(1,pageInfo); |
| | | } |
| | | |
| | | /** |
| | | * 检查前置条件 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | public Response checkPrecondition(String type) { |
| | | boolean status = false; |
| | | //空载试验 |
| | | if (type.equals(ExperimentType.KZ.getValue())){ |
| | | //进线屏开关状态 |
| | | //出线屏开关状态 |
| | | //大功率整流电源电压 |
| | | //直流配电板A排电压 |
| | | //直流配电板B排电压 |
| | | //油站 |
| | | //水站 |
| | | //被试电机通讯 |
| | | |
| | | } |
| | | //负载试验 |
| | | else if (type.equals(ExperimentType.FZ.getValue())){ |
| | | |
| | | }else{ |
| | | |
| | | } |
| | | return new Response().set(1,status); |
| | | } |
| | | } |