---带子表的新增修改bug修改
This commit is contained in:
@ -104,6 +104,23 @@ public class DataChangeLog implements Serializable{
|
||||
@ApiModelProperty("操作IP地址")
|
||||
private String operationIp;
|
||||
|
||||
private List<DataChangeLog> children;
|
||||
|
||||
public DataChangeLog addChild(OperationType type) {
|
||||
DataChangeLog child = new DataChangeLog();
|
||||
child.setPid(this.id);
|
||||
child.setFlowId(this.flowId);
|
||||
child.setEntityId(this.entityId);
|
||||
child.setOperationIp(operationIp);
|
||||
child.setOperatorId(operatorId);
|
||||
child.setOperatorName(operatorName);
|
||||
child.setOperationTime(operationTime);
|
||||
child.setOperationType(type);
|
||||
if(this.children==null) this.children = new ArrayList<>();
|
||||
this.children.add(child);
|
||||
return child;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 判断是否有字段变更
|
||||
@ -116,5 +133,14 @@ public class DataChangeLog implements Serializable{
|
||||
public void addFiledChnage(FieldChange change) {
|
||||
fieldChanges.add(change);
|
||||
}
|
||||
|
||||
|
||||
public boolean hasChildLogs() {
|
||||
return this.children!=null && this.children.size()>0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user