EBOM PBOM SAP报错信息,显示创建日期字段

This commit is contained in:
10001392 2024-08-12 22:15:58 +08:00
parent 7db0f7555e
commit 44f3bf96e1
3 changed files with 15 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import org.apache.commons.lang.StringUtils;
import org.ttzero.excel.annotation.ExcelColumn; import org.ttzero.excel.annotation.ExcelColumn;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDateTime;
/** /**
* @author 曹鹏飞 * @author 曹鹏飞
@ -18,6 +19,14 @@ public class OperationErrorMsgVO extends OperationErrorMsgBaseVO implements Seri
@ExcelColumn("所在行") @ExcelColumn("所在行")
public String primaryKey; public String primaryKey;
/**
* 创建时间
*/
@ApiModelProperty(value = "创建时间")
@ExcelColumn("创建时间")
private LocalDateTime createdTime;
public OperationErrorMsgVO() { public OperationErrorMsgVO() {
} }

View File

@ -2812,7 +2812,9 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
.eq(BomNewSapErrorMsgEntity::getTargetRowId, rowId) .eq(BomNewSapErrorMsgEntity::getTargetRowId, rowId)
.one(); .one();
if (Objects.isNull(sapErrorMsgEntity)) return Collections.emptyList(); if (Objects.isNull(sapErrorMsgEntity)) return Collections.emptyList();
return JSON.parseArray(sapErrorMsgEntity.getData(), OperationErrorMsgVO.class); List<OperationErrorMsgVO> resultList = JSON.parseArray(sapErrorMsgEntity.getData(), OperationErrorMsgVO.class);
resultList.forEach(result -> result.setCreatedTime(sapErrorMsgEntity.getCreatedTime()));
return resultList;
} }

View File

@ -1568,7 +1568,9 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
.eq(BomNewSapErrorMsgEntity::getTargetRowId, rowId) .eq(BomNewSapErrorMsgEntity::getTargetRowId, rowId)
.one(); .one();
if (Objects.isNull(sapErrorMsgEntity)) return Collections.emptyList(); if (Objects.isNull(sapErrorMsgEntity)) return Collections.emptyList();
return JSON.parseArray(sapErrorMsgEntity.getData(), OperationErrorMsgVO.class); List<OperationErrorMsgVO> resultList = JSON.parseArray(sapErrorMsgEntity.getData(), OperationErrorMsgVO.class);
resultList.forEach(result -> result.setCreatedTime(sapErrorMsgEntity.getCreatedTime()));
return resultList;
} }
public List<BomNewPbomParentVO> getReverseBoms(Long parentRowId) { public List<BomNewPbomParentVO> getReverseBoms(Long parentRowId) {