CVT功能
This commit is contained in:
@@ -6,6 +6,7 @@ import com.njcn.prepare.harmonic.api.liteflow.fallback.LiteFlowFeignClientFallba
|
||||
import com.njcn.prepare.harmonic.pojo.bo.BaseParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
@@ -23,6 +24,9 @@ public interface LiteFlowFeignClient {
|
||||
@PostMapping("/measurementPointExecutor")
|
||||
void measurementPointExecutor(@RequestBody BaseParam baseParam);
|
||||
|
||||
@ApiOperation("监测点算法执行链(按小时执行的任务)")
|
||||
@PostMapping("/measurementPointExecutorByHour")
|
||||
public void measurementPointExecutorByHour(@RequestBody BaseParam baseParam);
|
||||
@ApiOperation("单位监测点算法执行链")
|
||||
@PostMapping("/orgPointExecutor")
|
||||
void orgPointExecutor(@RequestBody BaseParam baseParam);
|
||||
|
||||
@@ -28,6 +28,12 @@ public class LiteFlowFeignClientFallbackFactory implements FallbackFactory<LiteF
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void measurementPointExecutorByHour(BaseParam baseParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "监测点算法(按小时)执行链: ", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void orgPointExecutor(BaseParam baseParam) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "单位监测点算法执行链: ", throwable.toString());
|
||||
|
||||
@@ -32,15 +32,15 @@ public class BaseParam implements Serializable {
|
||||
private boolean repair;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "beginTime",value = "补招起始日期_yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "beginTime",value = "补招起始日期_yyyy-MM-dd(按小时跑的任务可加时分秒)")
|
||||
private String beginTime;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "endTime",value = "补招截止日期_yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "endTime",value = "补招截止日期_yyyy-MM-dd(按小时跑的任务可加时分秒)")
|
||||
private String endTime;
|
||||
|
||||
|
||||
@ApiModelProperty(name = "dataDate",value = "时间日期_yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "dataDate",value = "时间日期_yyyy-MM-dd(按小时跑的任务可加时分秒)")
|
||||
private String dataDate;
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.njcn.prepare.harmonic.pojo.mysql;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.time.LocalDateTime;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* Description:
|
||||
* Date: 2025/03/06 下午 2:07【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
@Data
|
||||
@TableName(value = "cvt_job_log")
|
||||
public class CvtJobLog {
|
||||
|
||||
/**
|
||||
* 执行日期
|
||||
*/
|
||||
@TableId(value = "excute_date_time")
|
||||
private LocalDateTime excuteDateTime;
|
||||
|
||||
/**
|
||||
* 记录数
|
||||
*/
|
||||
@TableField(value = "`row_count`")
|
||||
private Integer rowCount;
|
||||
|
||||
/**
|
||||
* 状态(0-执行中、1-成功、2-失败)
|
||||
*/
|
||||
@TableField(value = "`state`")
|
||||
private Integer state;
|
||||
|
||||
@TableField(value = "update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@TableField(value = "duration")
|
||||
private Double duration;
|
||||
|
||||
public CvtJobLog(LocalDateTime excuteDateTime, Integer rowCount, Integer state, LocalDateTime updateTime, Double duration) {
|
||||
this.excuteDateTime = excuteDateTime;
|
||||
this.rowCount = rowCount;
|
||||
this.state = state;
|
||||
this.updateTime = updateTime;
|
||||
this.duration = duration;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user