feat(pbom): 添加导入SAP失败的数量显示和列表
This commit is contained in:
parent
e1367525e5
commit
511f8c2a3a
|
|
@ -67,4 +67,8 @@ public interface BomNewPbomParentMapper extends BaseMapper<BomNewPbomParentEntit
|
||||||
|
|
||||||
|
|
||||||
List<BomNewPbomParentEntity> getLatestParents(Set<String> materialNos, String facCode);
|
List<BomNewPbomParentEntity> getLatestParents(Set<String> materialNos, String facCode);
|
||||||
|
|
||||||
|
Page<BomNewPbomParentVO> getSapErrorWorksheet(Page<BomNewPbomParentQuery> page, String userCode);
|
||||||
|
|
||||||
|
Integer getSapErrorNum(String userCode);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -342,10 +342,11 @@ public class BomNewPbomParentEntity implements Serializable {
|
||||||
private LocalDateTime modifyTime;
|
private LocalDateTime modifyTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导入SAP状态,1-未导入;3-已导入
|
* 导入SAP状态,1-未导入;2-导入中;3-全部导入成功;4-部分导入失败;5全部导入失败
|
||||||
|
* @see com.nflg.product.bomnew.constant.SapStatusEnum
|
||||||
*/
|
*/
|
||||||
@TableField(value = "sap_state")
|
@TableField(value = "sap_state")
|
||||||
@ApiModelProperty(value = "导入SAP状态,1-未导入;3-已导入")
|
@ApiModelProperty(value = "导入SAP状态,1-未导入;2-导入中;3-全部导入成功;4-部分导入失败;5全部导入失败")
|
||||||
private Integer sapState;
|
private Integer sapState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,12 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public IPage<BomNewPbomParentVO> releaseListByPage(BomNewPbomParentQuery query) {
|
public IPage<BomNewPbomParentVO> releaseListByPage(BomNewPbomParentQuery query) {
|
||||||
Page<BomNewPbomParentVO> result = this.getBaseMapper().releaseListByPage(new Page<>(query.getPage(), query.getPageSize()), query);
|
Page<BomNewPbomParentVO> result;
|
||||||
|
if (StrUtil.equals(query.getMaterialNo(), "0")) {
|
||||||
|
result = this.getBaseMapper().getSapErrorWorksheet(new Page<>(query.getPage(), query.getPageSize()), SessionUtil.getUserCode());
|
||||||
|
} else {
|
||||||
|
result = this.getBaseMapper().releaseListByPage(new Page<>(query.getPage(), query.getPageSize()), query);
|
||||||
|
}
|
||||||
materialMainService.intiMaterialInfo(result.getRecords(), EBomConstant.EBOM_IGNORED_FIELDS_INIT_MATERIAL_DEFAULT);
|
materialMainService.intiMaterialInfo(result.getRecords(), EBomConstant.EBOM_IGNORED_FIELDS_INIT_MATERIAL_DEFAULT);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue