Merge branch 'ext-dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into ext-dev
commit
910a99dbd7
@ -0,0 +1,33 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.bsp.server.bean.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/15 16:06
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@ApiModel(value = "应用管理")
|
||||||
|
@Data
|
||||||
|
public class AppGroupVo {
|
||||||
|
|
||||||
|
@ApiModelProperty("所属应用类型")
|
||||||
|
private Integer softType;
|
||||||
|
|
||||||
|
@ApiModelProperty("服务地址")
|
||||||
|
private String appAddress;
|
||||||
|
|
||||||
|
@ApiModelProperty("应用状态")
|
||||||
|
private Integer isValid;
|
||||||
|
|
||||||
|
@ApiModelProperty("注册开始时间")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("注册结束时间")
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.bsp.server.bean.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/14 9:48
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "Dashboard调用成功率")
|
||||||
|
public class DashboardSuccessRate {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "周环比")
|
||||||
|
private String weeksFrom;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "日环比")
|
||||||
|
private String daysFrom;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "日调用成功率")
|
||||||
|
private String successRate;
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.bsp.server.bean.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/15 17:21
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@ApiModel("批量修改执行器组开启、禁用")
|
||||||
|
public class GroupValidVo {
|
||||||
|
|
||||||
|
@ApiModelProperty("执行器组的id列表")
|
||||||
|
private List<Long> idList;
|
||||||
|
|
||||||
|
@ApiModelProperty("执行器组的状态")
|
||||||
|
private Integer isValid;
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.bsp.server.bean.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/15 17:30
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@ApiModel("实例管理")
|
||||||
|
public class InstanceVo {
|
||||||
|
|
||||||
|
@ApiModelProperty("所属应用类型")
|
||||||
|
private Integer softType;
|
||||||
|
|
||||||
|
@ApiModelProperty("注册时间开始")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("注册时间结束")
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("心跳状态")
|
||||||
|
private Integer heartBeat;
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.bsp.server.bean.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/14 14:45
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@ApiModel(value = "查询方法组")
|
||||||
|
@Data
|
||||||
|
public class MethodGroupVo {
|
||||||
|
@ApiParam(value = "方法组名称")
|
||||||
|
private String groupName;
|
||||||
|
@ApiParam(value = "是否启用")
|
||||||
|
private Integer valid;
|
||||||
|
}
|
@ -0,0 +1,32 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.bsp.server.bean.vo;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Castle
|
||||||
|
* @CreateDate : 2022/1/15 13:36
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "历史日志查询")
|
||||||
|
public class MethodLogVo {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "方法名称")
|
||||||
|
private String methodName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "所属应用")
|
||||||
|
private String appName;
|
||||||
|
|
||||||
|
// @ApiModelProperty(value = "方法状态")
|
||||||
|
// private Integer isValid;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "调用方法开始时间")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "调用方法结束时间")
|
||||||
|
private String endTime;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean.health;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 测算方式
|
||||||
|
* @author link
|
||||||
|
*/
|
||||||
|
public enum WmsHealthIndexCalcWay {
|
||||||
|
/**
|
||||||
|
* 数据库脚本
|
||||||
|
*/
|
||||||
|
DATABSE("10"),
|
||||||
|
/**
|
||||||
|
* 本地函数
|
||||||
|
*/
|
||||||
|
LOCALMETHOD("20"),
|
||||||
|
/**
|
||||||
|
* 脚本
|
||||||
|
*/
|
||||||
|
SCRIPT("30");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
private WmsHealthIndexCalcWay(String value){
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean.health;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 健康度指标标识
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
public class WmsHealthIndexId{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工厂代码
|
||||||
|
*/
|
||||||
|
private final String organizeCode;
|
||||||
|
/**
|
||||||
|
* 指标代码
|
||||||
|
*/
|
||||||
|
private final String indicatorCode;
|
||||||
|
|
||||||
|
public WmsHealthIndexId(final String organizeCode,final String indicatorCode){
|
||||||
|
if(null==indicatorCode){
|
||||||
|
throw new IllegalArgumentException("indicatorCode can't be null");
|
||||||
|
}
|
||||||
|
if(null==organizeCode){
|
||||||
|
throw new IllegalArgumentException("organizeCode can't be null");
|
||||||
|
}
|
||||||
|
this.indicatorCode = indicatorCode;
|
||||||
|
this.organizeCode = indicatorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static WmsHealthIndexId of(String organizeCode,String indicatorCode){
|
||||||
|
return new WmsHealthIndexId(organizeCode,indicatorCode);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean.health;
|
||||||
|
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 健康度指标查询
|
||||||
|
* @author link
|
||||||
|
*/
|
||||||
|
@Builder
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class WmsHealthIndexQuery{
|
||||||
|
private Long beginTime;
|
||||||
|
private Long endTime;
|
||||||
|
private Integer pageIndex;
|
||||||
|
private Integer pageSize;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean.health;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 健康度指标计算值
|
||||||
|
* @author link
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
public class WmsHealthIndexValue{
|
||||||
|
/**
|
||||||
|
* 测算结果
|
||||||
|
*/
|
||||||
|
private final String result;
|
||||||
|
@Setter
|
||||||
|
private Long time;
|
||||||
|
|
||||||
|
public WmsHealthIndexValue(final String result){
|
||||||
|
if(null==result){
|
||||||
|
throw new IllegalArgumentException("result can't be null");
|
||||||
|
}
|
||||||
|
this.result = result;
|
||||||
|
this.time = System.currentTimeMillis();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean.health;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 健康度指标变量
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Value
|
||||||
|
public class WmsHealthIndexVariableId {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工厂代码
|
||||||
|
*/
|
||||||
|
private final String organizeCode;
|
||||||
|
/**
|
||||||
|
* 指标变量代码
|
||||||
|
*/
|
||||||
|
private final String variable;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean.health;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 健康度变量计算结果
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Value
|
||||||
|
public class WmsHealthIndexVariableValue {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 指标变量代码值
|
||||||
|
*/
|
||||||
|
private final Integer value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详细信息
|
||||||
|
*/
|
||||||
|
private final Object detail;
|
||||||
|
|
||||||
|
|
||||||
|
public static WmsHealthIndexVariableValue empty(){
|
||||||
|
return new WmsHealthIndexVariableValue(-1,"");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.wms.bean.health.WmsHealthIndexEntity;
|
||||||
|
import cn.estsh.i3plus.pojo.wms.bean.health.WmsHealthIndexId;
|
||||||
|
import cn.estsh.i3plus.pojo.wms.bean.health.WmsHealthIndexQuery;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 健康度指标
|
||||||
|
*/
|
||||||
|
public interface IWmsHealthIndexRepository {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查找并初始化指标信息
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
WmsHealthIndexEntity findAndInit(WmsHealthIndexId id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取上一次记录的健康度指标值
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
Optional<WmsHealthIndexEntity> getLastRecord(final WmsHealthIndexId id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存查询记录
|
||||||
|
* @param wmsHealthIndexEntity
|
||||||
|
* @param source 统计渠道
|
||||||
|
*/
|
||||||
|
void save(final WmsHealthIndexEntity wmsHealthIndexEntity,String source);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取查询记录
|
||||||
|
* @param id
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<WmsHealthIndexEntity> query(final WmsHealthIndexId id,
|
||||||
|
final WmsHealthIndexQuery param);
|
||||||
|
}
|
Loading…
Reference in New Issue