| | |
| | | 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.*; |
| | |
| | | if (experiments.isEmpty()){ |
| | | return new Response().set(-1,"暂无试验"); |
| | | } |
| | | return new Response().set(1,experiments); |
| | | Experiment experiment = experiments.get(0); |
| | | String url = null; |
| | | if (experiment.getId().toLowerCase().contains(ExperimentType.KZ.getValue())){ |
| | | url = "noLoadTest"; |
| | | } |
| | | else if(experiment.getId().toLowerCase().contains(ExperimentType.FZ.getValue())){ |
| | | url = "loadTest"; |
| | | } |
| | | else if(experiment.getId().toLowerCase().contains(ExperimentType.RZ.getValue())){ |
| | | url = "windingTest"; |
| | | }else{ |
| | | url ="不存在呀"; |
| | | } |
| | | return new Response().set(1,url); |
| | | } |
| | | |
| | | /** |