| | |
| | | ClothesOrderDraft clothesOrderDraft = clothesOrderDraftMapper.selectById(id); |
| | | |
| | | if (ObjectUtil.isNotNull(clothesOrderDraft)){ |
| | | Long draftId = clothesOrderDraft.getId(); |
| | | |
| | | Long typeId = clothesOrderDraft.getTypeId(); |
| | | ClothesType clothesType = clothesTypeMapper.selectById(typeId); |
| | | record.setTypeId(typeId); |
| | |
| | | record.setSizeId(sizeId); |
| | | record.setSizeName(clothesSize.getName()); |
| | | record.setSizePrice(clothesSize.getPrice()); |
| | | record.setSizeImage(clothesSize.getImage()); |
| | | } |
| | | } |
| | | } |
| | |
| | | BigDecimal totalPatternPrice = BigDecimal.ZERO; |
| | | List<ClothesPatternRemark> clothesPatternRemarks = clothesPatternRemarkMapper.selectList( |
| | | Wrappers.lambdaQuery(ClothesPatternRemark.class) |
| | | .eq(ClothesPatternRemark::getSourceId, record.getId()) |
| | | .eq(ClothesPatternRemark::getSourceId, draftId) |
| | | .eq(ClothesPatternRemark::getType, SocialPatternLocationTypeEnum.DRAFT.getValue()) |
| | | ); |
| | | if(CollUtil.isNotEmpty(clothesPatternRemarks)){ |
| | |
| | | vo.setPatternName(clothesPattern.getName()); |
| | | vo.setPatternPrice(clothesPattern.getPrice()); |
| | | vo.setPatternRemark(entity.getRemark()); |
| | | vo.setPatternImage(clothesPattern.getImage()); |
| | | vos.add(vo); |
| | | |
| | | totalPatternPrice = totalPatternPrice.add(clothesPattern.getPrice()); |
| | |
| | | BigDecimal totalLocationPrice = BigDecimal.ZERO; |
| | | List<ClothesLocationRemark> clothesLocationRemarks = clothesLocationRemarkMapper.selectList( |
| | | Wrappers.lambdaQuery(ClothesLocationRemark.class) |
| | | .eq(ClothesLocationRemark::getSourceId, record.getId()) |
| | | .eq(ClothesLocationRemark::getSourceId, draftId) |
| | | .eq(ClothesLocationRemark::getType, SocialPatternLocationTypeEnum.DRAFT.getValue()) |
| | | ); |
| | | if(CollUtil.isNotEmpty(clothesLocationRemarks)){ |
| | |
| | | vo.setLocationName(location.getName()); |
| | | vo.setLocationPrice(location.getPrice()); |
| | | vo.setLocationRemark(entity.getRemark()); |
| | | vo.setLocationImage(location.getImage()); |
| | | vos.add(vo); |
| | | |
| | | totalLocationPrice = totalLocationPrice.add(location.getPrice()); |
| | |
| | | record.setArtId(artId); |
| | | record.setArtName(clothesArt.getName()); |
| | | record.setArtPrice(clothesArt.getPrice()); |
| | | record.setArtImage(clothesArt.getImage()); |
| | | } |
| | | } |
| | | } |
| | |
| | | record.setClothId(clothId); |
| | | record.setClothName(clothesCloth.getName()); |
| | | record.setClothPrice(clothesCloth.getPrice()); |
| | | record.setClothImage(clothesCloth.getImage()); |
| | | } |
| | | } |
| | | } |