BUGFIX: 男装 outwear single design;

This commit is contained in:
shahaibo
2023-11-09 13:19:18 +08:00
parent ebbe39468e
commit f3fcaa3ed6
5 changed files with 178 additions and 5 deletions

View File

@@ -413,7 +413,7 @@ public class CollectionElementServiceImpl extends ServiceImpl<CollectionElementM
}
outerwearNum = designDTO.getSketchBoards().stream()
.filter(skecth -> skecth.getIsPin() == 1
&& DesignPythonItem.OUTERWEAR.contains(skecth.getLevel2Type())).count();
&& DesignPythonItem.OUTWEAR.contains(skecth.getLevel2Type())).count();
if (topNum > 8 || bottomNum > 8 || outerwearNum > 8) {
throw new BusinessException("the.number.of.PIN.top.or.bottom.or.outerwear.sketchBoard.cannot.be.more.than.8");
}