feat(ebom): 修复last_version_is的设置问题

This commit is contained in:
曹鹏飞 2024-06-23 19:45:18 +08:00
parent c6e1c64104
commit e2bf276d25
1 changed files with 2 additions and 2 deletions

View File

@ -2526,8 +2526,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
return this.getBaseMapper().getLatestByMaterialNo(materialNos);
}
public void setLastVersionIs0(Set<String> pMaterialNos) {
this.lambdaUpdate().in(BomNewEbomParentEntity::getMaterialNo, pMaterialNos)
public void setLastVersionIs0(Collection<Long> rowIds) {
this.lambdaUpdate().in(BomNewEbomParentEntity::getRowId, rowIds)
.set(BomNewEbomParentEntity::getLastVersionIs, 0)
.set(BomNewEbomParentEntity::getModifyTime, LocalDateTime.now())
.update();