mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-07 13:57:56 +08:00
[fix] 处理进出口数据流量为空的问题
This commit is contained in:
parent
056bc16d38
commit
47b8dd68b3
@ -6,7 +6,7 @@ spring:
|
|||||||
password: laihui
|
password: laihui
|
||||||
database: 2
|
database: 2
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://127.0.0.1:3306/wu_lazy_cloud_netty_server?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&databaseTerm=SCHEMA
|
url: jdbc:mysql://124.222.48.62:30512/wu_lazy_cloud_netty_server?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&databaseTerm=SCHEMA
|
||||||
username: root
|
username: root
|
||||||
password: wujiawei
|
password: wujiawei
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
@ -4,92 +4,91 @@ import com.wu.framework.inner.layer.util.ByteSizeUtil;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
import java.lang.String;
|
import java.lang.String;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.lang.Long;
|
import java.lang.Long;
|
||||||
import java.lang.Integer;
|
import java.lang.Integer;
|
||||||
import java.lang.Boolean;
|
import java.lang.Boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* describe 访客端流量
|
* describe 访客端流量
|
||||||
*
|
*
|
||||||
* @author Jia wei Wu
|
* @author Jia wei Wu
|
||||||
* @date 2024/01/24 05:19 下午
|
* @date 2024/01/24 05:19 下午
|
||||||
* @see com.wu.framework.inner.lazy.persistence.reverse.lazy.ddd.DefaultDDDLazyDTO
|
* @see com.wu.framework.inner.lazy.persistence.reverse.lazy.ddd.DefaultDDDLazyDTO
|
||||||
**/
|
**/
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@Schema(title = "visitor_port_flow_command_dto",description = "访客端流量")
|
@Schema(title = "visitor_port_flow_command_dto", description = "访客端流量")
|
||||||
public class VisitorPortFlowDTO {
|
public class VisitorPortFlowDTO {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 客户端ID
|
* 客户端ID
|
||||||
*/
|
*/
|
||||||
@Schema(description ="客户端ID",name ="clientId",example = "")
|
@Schema(description = "客户端ID", name = "clientId", example = "")
|
||||||
private String clientId;
|
private String clientId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
@Schema(description ="创建时间",name ="createTime",example = "")
|
@Schema(description = "创建时间", name = "createTime", example = "")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 主键
|
* 主键
|
||||||
*/
|
*/
|
||||||
@Schema(description ="主键",name ="id",example = "")
|
@Schema(description = "主键", name = "id", example = "")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 当前访客当前进口流量
|
* 当前访客当前进口流量
|
||||||
*/
|
*/
|
||||||
@Schema(description ="当前访客当前进口流量",name ="inFlow",example = "")
|
@Schema(description = "当前访客当前进口流量", name = "inFlow", example = "")
|
||||||
private Integer inFlow;
|
private Integer inFlow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 是否删除
|
* 是否删除
|
||||||
*/
|
*/
|
||||||
@Schema(description ="是否删除",name ="isDeleted",example = "")
|
@Schema(description = "是否删除", name = "isDeleted", example = "")
|
||||||
private Boolean isDeleted;
|
private Boolean isDeleted;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 当前访客出口流量
|
* 当前访客出口流量
|
||||||
*/
|
*/
|
||||||
@Schema(description ="当前访客出口流量",name ="outFlow",example = "")
|
@Schema(description = "当前访客出口流量", name = "outFlow", example = "")
|
||||||
private Integer outFlow;
|
private Integer outFlow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 修改时间
|
* 修改时间
|
||||||
*/
|
*/
|
||||||
@Schema(description ="修改时间",name ="updateTime",example = "")
|
@Schema(description = "修改时间", name = "updateTime", example = "")
|
||||||
private LocalDateTime updateTime;
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* 访客端口
|
* 访客端口
|
||||||
*/
|
*/
|
||||||
@Schema(description ="访客端口",name ="visitorPort",example = "")
|
@Schema(description = "访客端口", name = "visitorPort", example = "")
|
||||||
private Integer visitorPort;
|
private Integer visitorPort;
|
||||||
|
|
||||||
public Integer getInFlowSize() {
|
public Integer getInFlowSize() {
|
||||||
|
if (inFlow == null) return 0;
|
||||||
return inFlow;
|
return inFlow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getOutFlowSize() {
|
public Integer getOutFlowSize() {
|
||||||
|
if (outFlow == null) return 0;
|
||||||
return outFlow;
|
return outFlow;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getInFlow() {
|
public String getInFlow() {
|
||||||
|
if (inFlow == null) return "0b";
|
||||||
return ByteSizeUtil.convertSize(inFlow);
|
return ByteSizeUtil.convertSize(inFlow);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOutFlow() {
|
public String getOutFlow() {
|
||||||
|
if (outFlow == null) return "0b";
|
||||||
return ByteSizeUtil.convertSize(outFlow);
|
return ByteSizeUtil.convertSize(outFlow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
"/": {
|
"/": {
|
||||||
// 'demo'是请求地址中,以demo开头都适用这个
|
// 'demo'是请求地址中,以demo开头都适用这个
|
||||||
// target: "http://127.0.0.1:6001", // 真实的服务器地址
|
target: "http://127.0.0.1:6001", // 真实的服务器地址
|
||||||
target: "http://124.222.48.62:30576", // 真实的服务器地址
|
// target: "http://124.222.48.62:30576", // 真实的服务器地址
|
||||||
changeOrigin: true, //
|
changeOrigin: true, //
|
||||||
secure: false, // 默认情况下,不接受运行在 HTTPS 上,且使用了无效证书的后端服务器。如果你想要接受设为false
|
secure: false, // 默认情况下,不接受运行在 HTTPS 上,且使用了无效证书的后端服务器。如果你想要接受设为false
|
||||||
ws: false, // 是否启用websockets
|
ws: false, // 是否启用websockets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user