调整实体
This commit is contained in:
@@ -3,8 +3,7 @@ package com.njcn.dataProcess.api;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.dataProcess.api.fallback.DataOnlineRateFeignClientFallbackFactory;
|
||||
import com.njcn.dataProcess.pojo.dto.DataLimitRateDto;
|
||||
import com.njcn.dataProcess.pojo.dto.RStatOnlineRateDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataOnlineRateDto;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -20,6 +19,6 @@ import java.util.List;
|
||||
public interface DataOnlineRateFeignClient {
|
||||
|
||||
@PostMapping("/batchInsertion")
|
||||
HttpResult<String> batchInsertion(@RequestBody List<RStatOnlineRateDto.Detail> dataIDTOList);
|
||||
HttpResult<String> batchInsertion(@RequestBody List<DataOnlineRateDto.Detail> dataIDTOList);
|
||||
|
||||
}
|
||||
|
||||
@@ -4,8 +4,7 @@ import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.dataProcess.api.DataOnlineRateFeignClient;
|
||||
import com.njcn.dataProcess.pojo.dto.DataLimitRateDto;
|
||||
import com.njcn.dataProcess.pojo.dto.RStatOnlineRateDto;
|
||||
import com.njcn.dataProcess.pojo.dto.DataOnlineRateDto;
|
||||
import com.njcn.dataProcess.util.DataProcessingEnumUtil;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -38,7 +37,7 @@ public class DataOnlineRateFeignClientFallbackFactory implements FallbackFactory
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new DataOnlineRateFeignClient() {
|
||||
@Override
|
||||
public HttpResult<String> batchInsertion(List<RStatOnlineRateDto.Detail> dataIDTOList) {
|
||||
public HttpResult<String> batchInsertion(List<DataOnlineRateDto.Detail> dataIDTOList) {
|
||||
log.error("{}异常,降级处理,异常为:{}","批量插入数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.njcn.dataProcess.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据完整性日表
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2023-03-28
|
||||
*/
|
||||
@Data
|
||||
public class DataIntegrityDto {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String timeId;
|
||||
|
||||
|
||||
private String lineIndex;
|
||||
|
||||
/**
|
||||
* 应收数量
|
||||
*/
|
||||
private Integer dueTime;
|
||||
|
||||
/**
|
||||
* 实收数量
|
||||
*/
|
||||
private Integer realTime;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import lombok.Data;
|
||||
* @Date: 2025/3/10 11:28
|
||||
*/
|
||||
@Data
|
||||
public class RStatOnlineRateDto {
|
||||
public class DataOnlineRateDto {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -24,7 +24,7 @@ public class RStatOnlineRateDto {
|
||||
private Integer offlineMin;
|
||||
|
||||
@Data
|
||||
public static class Detail extends RStatOnlineRateDto{
|
||||
public static class Detail extends DataOnlineRateDto{
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.njcn.dataProcess.pojo.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||||
import com.njcn.db.bo.BaseEntity;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.data.annotation.Transient;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据完整性日表
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2023-03-28
|
||||
*/
|
||||
@Data
|
||||
@TableName("r_stat_integrity_d")
|
||||
public class RStatIntegrityD {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@MppMultiId
|
||||
@TableField(value = "time_id")
|
||||
private String timeId;
|
||||
|
||||
@MppMultiId
|
||||
@TableField(value = "line_index")
|
||||
private String lineIndex;
|
||||
|
||||
/**
|
||||
* 应收数量
|
||||
*/
|
||||
@TableField(value = "due_time")
|
||||
private Integer dueTime;
|
||||
/**
|
||||
* 实收数量
|
||||
*/
|
||||
@TableField(value = "real_time")
|
||||
private Integer realTime;
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user