BUGFIX:design pin逻辑;
This commit is contained in:
@@ -1208,20 +1208,22 @@ public class PythonService {
|
|||||||
//如果包含Pin只传一个
|
//如果包含Pin只传一个
|
||||||
if (isPin) {
|
if (isPin) {
|
||||||
List<CollectionElement> finalPinData = pinData;
|
List<CollectionElement> finalPinData = pinData;
|
||||||
DesignPythonItem.OUTWEAR_DRESS_BLOUSE.forEach(type -> {
|
for (String type : DesignPythonItem.OUTWEAR_DRESS_BLOUSE) {
|
||||||
//剩余的的PinData
|
// 剩余的的 PinData
|
||||||
List<CollectionElement> residueInnerPinData = residuePinData(finalPinData, existPinDataIds, elementVO.getHasUseMd5List());
|
List<CollectionElement> residueInnerPinData = residuePinData(finalPinData, existPinDataIds, elementVO.getHasUseMd5List());
|
||||||
CollectionElement elementNew = residueInnerPinData.stream()
|
CollectionElement elementNew = residueInnerPinData.stream()
|
||||||
.filter(element -> element.getLevel2Type().equals(type)).findFirst().orElse(null);
|
.filter(element -> element.getLevel2Type().equals(type)).findFirst().orElse(null);
|
||||||
if (Objects.nonNull(elementNew)) {
|
if (Objects.nonNull(elementNew)) {
|
||||||
items.add(coverToDesignPythonItem(elementNew.getId(), type, elementNew.getUrl(), elementVO));
|
items.add(coverToDesignPythonItem(elementNew.getId(), type, elementNew.getUrl(), elementVO));
|
||||||
//去重用
|
// 去重用
|
||||||
existPinDataIds.add(elementNew.getId());
|
existPinDataIds.add(elementNew.getId());
|
||||||
//添加md5
|
// 添加md5
|
||||||
elementVO.getHasUseMd5List().add(elementNew.getMd5());
|
elementVO.getHasUseMd5List().add(elementNew.getMd5());
|
||||||
|
|
||||||
|
// 提前结束循环
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user