| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Slf4j |
| | |
| | | apiClothesTypeVo.setPatternState(clothesType.getPatternState()); |
| | | apiClothesTypeVo.setLocationState(clothesType.getLocationState()); |
| | | apiClothesTypeVo.setSizeState(clothesType.getSizeState()); |
| | | apiClothesTypeVo.setCarriageRuleId(10L); |
| | | } |
| | | |
| | | return new FebsResponse().success().data(apiClothesTypeVo); |
| | |
| | | |
| | | Long statureId = ObjectUtil.defaultIfNull(dto.getStatureId(),0L); |
| | | ClothesMemberStature clothesMemberStature = clothesMemberStatureMapper.selectById(statureId); |
| | | if (ObjectUtil.isNull(clothesMemberStature)){ |
| | | throw new FebsException("请选择身材数据"); |
| | | if (ObjectUtil.isNotNull(clothesMemberStature)){ |
| | | clothesOrderDraft.setStatureId(clothesMemberStature.getId()); |
| | | } |
| | | clothesOrderDraft.setStatureId(clothesMemberStature.getId()); |
| | | |
| | | clothesOrderDraftMapper.insert(clothesOrderDraft); |
| | | |
| | |
| | | |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse findDraftCnt() { |
| | | Long memberId = LoginUserUtil.getLoginUser().getId(); |
| | | Integer integer = clothesOrderDraftMapper.selectCount( |
| | | Wrappers.lambdaQuery(ClothesOrderDraft.class) |
| | | .eq(ClothesOrderDraft::getMemberId, memberId) |
| | | .eq(ClothesOrderDraft::getDelFlag, ClothesEnum.DOWN.getCode()) |
| | | ); |
| | | Map<String, Object> objectObjectHashMap = new HashMap<>(); |
| | | objectObjectHashMap.put("draftCnt", integer); |
| | | |
| | | return new FebsResponse().success().data(objectObjectHashMap); |
| | | } |
| | | } |