feat: 新增总体影响情况接口
parent
4f700a341f
commit
86f4e54eaa
@ -0,0 +1,22 @@
|
|||||||
|
package com.cuit.solarenergy.entity.vo.ret;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@ApiModel(description = "总体影响情况返回类")
|
||||||
|
public class SituationRet {
|
||||||
|
@ApiModelProperty(value = "起报时间",name = "startpretime")
|
||||||
|
private String startpretime;
|
||||||
|
@ApiModelProperty(value = "预报时间",name = "startpretime")
|
||||||
|
private String startruntime;
|
||||||
|
@ApiModelProperty(value = "运行进度",name = "runprogress")
|
||||||
|
private String runprogress;
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.cuit.solarenergy.service;
|
||||||
|
|
||||||
|
import com.cuit.solarenergy.entity.vo.ret.SituationRet;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface SituationService {
|
||||||
|
public List<SituationRet> getSituations();
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.cuit.solarenergy.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.cuit.solarenergy.entity.TDictData;
|
||||||
|
import com.cuit.solarenergy.entity.vo.ret.SituationRet;
|
||||||
|
import com.cuit.solarenergy.entity.vo.ret.Stream;
|
||||||
|
import com.cuit.solarenergy.mapper.*;
|
||||||
|
import com.cuit.solarenergy.service.CommonService;
|
||||||
|
import com.cuit.solarenergy.service.SituationService;
|
||||||
|
import com.cuit.solarenergy.utils.AssertUtil;
|
||||||
|
import com.cuit.solarenergy.vo.TDataOriginMethod;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: Tjb
|
||||||
|
* @CreateTime: 2023-06-17 09:52
|
||||||
|
* @Description: 检测数据实现类
|
||||||
|
* @Version: 1.0
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class SituationServiceImpl implements SituationService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<SituationRet> getSituations() {
|
||||||
|
ArrayList<SituationRet> lists = new ArrayList<>();
|
||||||
|
//构造数据
|
||||||
|
lists.add(new SituationRet("11-20 11:23:32","11-20 11:23:32","进行中"));
|
||||||
|
lists.add(new SituationRet("11-21 12:27:31","11-21 12:27:31","进行中"));
|
||||||
|
lists.add(new SituationRet("11-22 13:25:30","11-22 13:25:30","进行中"));
|
||||||
|
lists.add(new SituationRet("11-23 14:26:35","11-23 14:26:35","进行中"));
|
||||||
|
lists.add(new SituationRet("11-24 13:27:36","11-24 13:27:36","进行中"));
|
||||||
|
lists.add(new SituationRet("11-25 16:30:20","11-25 16:30:20","进行中"));
|
||||||
|
lists.add(new SituationRet("11-26 14:32:00","11-26 14:32:00","进行中"));
|
||||||
|
lists.add(new SituationRet("11-27 12:30:39","11-27 12:30:39","进行中"));
|
||||||
|
lists.add(new SituationRet("11-28 17:31:40","11-28 17:31:40","进行中"));
|
||||||
|
return lists;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue