问题修复

This commit is contained in:
luoliming 2023-12-06 21:59:28 +08:00
parent b821b9e2cb
commit 1b81a44e01
3 changed files with 8 additions and 2 deletions

View File

@ -117,6 +117,10 @@ public class BomNewOriginalChildEntity implements Serializable {
@ApiModelProperty(value = "处理状态1=待处理、2=已处理") @ApiModelProperty(value = "处理状态1=待处理、2=已处理")
private Integer editStatus; private Integer editStatus;
@ApiModelProperty("状态 1=待转换、2=已转")
private Integer status;
public BigDecimal getTotalWeight() { public BigDecimal getTotalWeight() {
return NumberUtil.mul(this.getUnitWeight(), this.num); return NumberUtil.mul(this.getUnitWeight(), this.num);
} }

View File

@ -16,6 +16,7 @@ import lombok.Setter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects;
import java.util.concurrent.RecursiveTask; import java.util.concurrent.RecursiveTask;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -92,7 +93,7 @@ public class OriginalBomDetailTask extends RecursiveTask<List<BomOriginalListVO>
result.addAll(bomDetail); result.addAll(bomDetail);
if (CollUtil.isNotEmpty(bomDetail)) { if (CollUtil.isNotEmpty(bomDetail)) {
List<BomOriginalListVO> collect = bomDetail.stream().filter(u -> u.getStatus().equals(1)).collect(Collectors.toList()); List<BomOriginalListVO> collect = bomDetail.stream().filter(u -> Objects.isNull(u.getStatus())|| u.getStatus().equals(1)).collect(Collectors.toList());
levelNumAdd(collect.size()); levelNumAdd(collect.size());
List<Long> childBowIds = bomDetail.stream().filter(u-> u.getChildBomRowId()!=null && u.getChildBomRowId() > 0).map(u->u.getChildBomRowId()).collect(Collectors.toList()); List<Long> childBowIds = bomDetail.stream().filter(u-> u.getChildBomRowId()!=null && u.getChildBomRowId() > 0).map(u->u.getChildBomRowId()).collect(Collectors.toList());
if(CollUtil.isNotEmpty(childBowIds)) { if(CollUtil.isNotEmpty(childBowIds)) {

View File

@ -18,7 +18,8 @@
<result column="remark" property="remark" jdbcType="VARCHAR"/> <result column="remark" property="remark" jdbcType="VARCHAR"/>
<result column="created_by" property="createdBy" jdbcType="VARCHAR"/> <result column="created_by" property="createdBy" jdbcType="VARCHAR"/>
<result column="edit_status" property="editStatus" jdbcType="INTEGER"/> <result column="edit_status" property="editStatus" jdbcType="INTEGER"/>
<result column="created_time" property="createdTime" jdbcType="TIMESTAMP"/> <result column="created_time" property="createdTime" jdbcType="TIMESTAMP"/>
<result column="status" property="status" jdbcType="INTEGER"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">