fix: 限制导入SAP出错时写入日志的错误内容的长度,以免数据库报错
This commit is contained in:
parent
7a329674d1
commit
37ae02f45c
|
|
@ -2,6 +2,7 @@ package com.nflg.product.bomnew.pojo.vo;
|
|||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.ttzero.excel.annotation.ExcelColumn;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -27,6 +28,6 @@ public class OperationErrorMsgVO extends OperationErrorMsgBaseVO implements Seri
|
|||
}
|
||||
|
||||
public static OperationErrorMsgVO create(String primaryKey, String msg) {
|
||||
return new OperationErrorMsgVO(primaryKey, msg);
|
||||
return new OperationErrorMsgVO(primaryKey, StringUtils.substring(msg, 0, 1000));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue