perf:过程日志改造

This commit is contained in:
曾文豪
2024-08-26 13:20:45 +08:00
parent 1db8ef9d85
commit ecb5aa1b29
19 changed files with 404 additions and 216 deletions

View File

@@ -51,18 +51,18 @@ public class CoreLogProcess extends DaoBase {
@TableField(value = "fail_file")
private String failFile;
/**
* 异常说明
*/
@TableField(value = "error")
private String error;
/**
* 进度
*/
@TableField(value = "`process`")
private Integer process;
/**
* 异常说明
*/
@TableField(value = "params")
private String params;
/**
* 获取标题
*
@@ -189,24 +189,6 @@ public class CoreLogProcess extends DaoBase {
this.failFile = failFile;
}
/**
* 获取异常说明
*
* @return error - 异常说明
*/
public String getError() {
return error;
}
/**
* 设置异常说明
*
* @param error 异常说明
*/
public void setError(String error) {
this.error = error;
}
/**
* 获取进度
*
@@ -224,4 +206,22 @@ public class CoreLogProcess extends DaoBase {
public void setProcess(Integer process) {
this.process = process;
}
/**
* 获取异常说明
*
* @return params - 异常说明
*/
public String getParams() {
return params;
}
/**
* 设置异常说明
*
* @param params 异常说明
*/
public void setParams(String params) {
this.params = params;
}
}

View File

@@ -0,0 +1,33 @@
package com.tiesheng.web.pojos.imex;
import com.alibaba.fastjson.JSONObject;
import javax.validation.constraints.NotEmpty;
public class ExportDealDTO {
@NotEmpty(message = "模版ID")
private String imexId;
private JSONObject params;
///////////////////////////////////////////////////////////////////////////
// setter\getter
///////////////////////////////////////////////////////////////////////////
public String getImexId() {
return imexId;
}
public void setImexId(String imexId) {
this.imexId = imexId;
}
public JSONObject getParams() {
return params;
}
public void setParams(JSONObject params) {
this.params = params;
}
}

View File

@@ -1,25 +1,27 @@
package com.tiesheng.web.pojos.dto;
package com.tiesheng.web.pojos.imex;
import com.alibaba.fastjson.JSONObject;
import javax.validation.constraints.NotEmpty;
public class TemplateDealDTO {
public class ImportDealDTO {
@NotEmpty(message = "模版ID")
private String templateId;
private String imexId;
@NotEmpty(message = "文件路径必填")
private String file;
private Object params;
private JSONObject params;
///////////////////////////////////////////////////////////////////////////
// setter\getter
///////////////////////////////////////////////////////////////////////////
public String getTemplateId() {
return templateId;
public String getImexId() {
return imexId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
public void setImexId(String imexId) {
this.imexId = imexId;
}
public String getFile() {
@@ -30,11 +32,11 @@ public class TemplateDealDTO {
this.file = file;
}
public Object getParams() {
public JSONObject getParams() {
return params;
}
public void setParams(Object params) {
public void setParams(JSONObject params) {
this.params = params;
}
}

View File

@@ -1,10 +1,15 @@
package com.tiesheng.web.pojos.dto;
package com.tiesheng.web.pojos.imex;
public class TemplateInfoDTO {
import javax.validation.constraints.NotEmpty;
public class ImportInfoDTO {
@NotEmpty(message = "操作必须存在")
private String action;
private Object params;
@NotEmpty(message = "类型必须存在")
private String type;
///////////////////////////////////////////////////////////////////////////
// setter\getter
@@ -18,11 +23,11 @@ public class TemplateInfoDTO {
this.action = action;
}
public Object getParams() {
return params;
public String getType() {
return type;
}
public void setParams(Object params) {
this.params = params;
public void setType(String type) {
this.type = type;
}
}

View File

@@ -0,0 +1,29 @@
package com.tiesheng.web.pojos.imex;
public class ImportInfoVO {
private String imexId;
private String templateUrl;
///////////////////////////////////////////////////////////////////////////
// setter\getter
///////////////////////////////////////////////////////////////////////////
public String getImexId() {
return imexId;
}
public void setImexId(String imexId) {
this.imexId = imexId;
}
public String getTemplateUrl() {
return templateUrl;
}
public void setTemplateUrl(String templateUrl) {
this.templateUrl = templateUrl;
}
}

View File

@@ -1,37 +0,0 @@
package com.tiesheng.web.pojos.vo;
public class TemplateInfoVO {
private String templateId;
private String templateUrl;
private Object params;
///////////////////////////////////////////////////////////////////////////
// setter\getter
///////////////////////////////////////////////////////////////////////////
public String getTemplateId() {
return templateId;
}
public void setTemplateId(String templateId) {
this.templateId = templateId;
}
public String getTemplateUrl() {
return templateUrl;
}
public void setTemplateUrl(String templateUrl) {
this.templateUrl = templateUrl;
}
public Object getParams() {
return params;
}
public void setParams(Object params) {
this.params = params;
}
}