转PBOM优化-3(生产错问题)
This commit is contained in:
parent
ae38289524
commit
f5aab939e0
|
|
@ -59,7 +59,9 @@ public interface BomNewEbomParentMapper extends BaseMapper<BomNewEbomParentEntit
|
|||
|
||||
void delBatch(@Param("rowIds") List<Long> rowIds);
|
||||
|
||||
void updateStateBatchByRowIds(@Param("status") Integer status, String userName, @Param("list") List<Long> list);
|
||||
void updateStateBatchByRowIdsParent(@Param("status") Integer status, String userName, @Param("list") List<Long> list);
|
||||
|
||||
void updateStateBatchByRowIdsChild( @Param("list") List<Long> list);
|
||||
|
||||
Integer checkIsRoot(@Param("materialNo") String materialNo);
|
||||
|
||||
|
|
|
|||
|
|
@ -1028,7 +1028,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
}
|
||||
//List<Long> bomRowIds = bomTree.stream().filter(u ->!EBomStatusEnum.PUBLISHED.equalsValue(u.getStatus()) && u.getBomRowId() > 0).map(u -> u.getBomRowId()).collect(Collectors.toList());
|
||||
if (CollUtil.isNotEmpty(eBomToPBom.getAddEBomNew())) {
|
||||
this.getBaseMapper().updateStateBatchByRowIds(EBomStatusEnum.PUBLISHED.getValue(), SessionUtil.getRealName(), eBomToPBom.getAddEBomNew());
|
||||
this.getBaseMapper().updateStateBatchByRowIdsParent(EBomStatusEnum.PUBLISHED.getValue(), SessionUtil.getRealName(), eBomToPBom.getAddEBomNew());
|
||||
this.getBaseMapper().updateStateBatchByRowIdsChild(eBomToPBom.getAddEBomNew());
|
||||
}
|
||||
//替换需覆盖的受影响的虚拟包
|
||||
if(CollUtil.isNotEmpty(eBomToPBom.getUpgradeChangeResultForCover())){
|
||||
|
|
|
|||
|
|
@ -310,13 +310,18 @@
|
|||
</foreach>;
|
||||
</delete>
|
||||
|
||||
<update id="updateStateBatchByRowIds">
|
||||
<update id="updateStateBatchByRowIdsParent">
|
||||
update t_bom_new_ebom_parent set status=#{status} ,
|
||||
convert_to_ebom_time=now(),release_time=now(),release_user_name=#{userName},edit_status=2,exception_status=1
|
||||
where row_id in
|
||||
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>;
|
||||
</foreach>
|
||||
|
||||
</update>
|
||||
|
||||
<update id="updateStateBatchByRowIdsChild">
|
||||
|
||||
UPDATE t_bom_new_ebom_child SET edit_status=2 WHERE parent_row_id IN
|
||||
<foreach collection="list" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
|
|
|
|||
Loading…
Reference in New Issue