提交 a0db30c5 authored 作者: zhoushaopan's avatar zhoushaopan

新增了旧状态(oldStatus)

上级 f7dbafa8
...@@ -45,6 +45,11 @@ public class TaskLogBto { ...@@ -45,6 +45,11 @@ public class TaskLogBto {
@ApiModelProperty(value = "操作时间") @ApiModelProperty(value = "操作时间")
private Date createTime; private Date createTime;
@ApiModelProperty(value = "存放旧状态")
private Integer oldStatus;
public TaskLogBto(Integer taskId, String remark, List<FileVo> fileVoList) { public TaskLogBto(Integer taskId, String remark, List<FileVo> fileVoList) {
this.taskId = taskId; this.taskId = taskId;
this.remark = remark; this.remark = remark;
......
...@@ -87,6 +87,9 @@ public class TaskLog { ...@@ -87,6 +87,9 @@ public class TaskLog {
@ApiModelProperty(value = "区块链记录id") @ApiModelProperty(value = "区块链记录id")
private String recordId; private String recordId;
@ApiModelProperty(value = "存放旧状态")
private Integer oldStatus;
/** /**
* do类转化为bto类 * do类转化为bto类
*/ */
......
...@@ -38,4 +38,7 @@ public class TaskLogUserVo { ...@@ -38,4 +38,7 @@ public class TaskLogUserVo {
@ApiModelProperty(value = "手机号") @ApiModelProperty(value = "手机号")
private String phoneNum; private String phoneNum;
@ApiModelProperty(value = "存放旧状态")
private Integer oldStatus;
} }
...@@ -184,6 +184,7 @@ public class LogAspect { ...@@ -184,6 +184,7 @@ public class LogAspect {
log.warn("[业务操作日志]存储失败:找不到业务类型为+"+outPutTask.getBusinessType()+",旧状态为" + this.oldStatus + ",新状态为" + this.newStatus + "的日志模板"); log.warn("[业务操作日志]存储失败:找不到业务类型为+"+outPutTask.getBusinessType()+",旧状态为" + this.oldStatus + ",新状态为" + this.newStatus + "的日志模板");
} else { } else {
TaskLogBto taskLogBto = new TaskLogBto(this.outPutTask.getId(), this.opreation, this.fileVos); TaskLogBto taskLogBto = new TaskLogBto(this.outPutTask.getId(), this.opreation, this.fileVos);
taskLogBto.setOldStatus(this.oldStatus);
taskLogService.addLog(taskLogBto); taskLogService.addLog(taskLogBto);
this.fileVos = new ArrayList<>(); this.fileVos = new ArrayList<>();
this.opreation = null; this.opreation = null;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论