| | |
| | | this.baseMapper.updateIsDefault(MallAddressInfo.IS_YOUR_Y, memberId, id); |
| | | } |
| | | |
| | | @Override |
| | | public void confirmOrder(Long id) { |
| | | Long memberId = LoginUserUtil.getAppUser().getId(); |
| | | MallOrderInfo orderInfo = mallOrderInfoMapper.selectById(id); |
| | | if (ObjectUtil.isEmpty(orderInfo)) { |
| | | throw new FebsException("订单不存在"); |
| | | } |
| | | |
| | | if (orderInfo.getStatus() != MallOrderInfo.STATUS_PAY) { |
| | | throw new FebsException("该状态不能确认收货"); |
| | | } |
| | | if (orderInfo.getDeliverState() != MallOrderInfo.DELIVER_STATUS_DONE) { |
| | | throw new FebsException("该状态不能确认收货"); |
| | | } |
| | | |
| | | orderInfo.setDeliverState(MallOrderInfo.DELIVER_STATUS_OVER); |
| | | mallOrderInfoMapper.updateById(orderInfo); |
| | | } |
| | | |
| | | public static List<List<String>> partitionList(List<String> originalList, int partitionSize) { |
| | | List<List<String>> partitionedList = new ArrayList<>(); |
| | | int size = originalList.size(); |