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