| | |
| | | @Transactional |
| | | public FebsResponse leaderOrderConfirm(ApiLeaderOrderConfirmDto apiLeaderOrderConfirmDto) { |
| | | log.info("确认到达",apiLeaderOrderConfirmDto.getIds()); |
| | | List<Long> ids = apiLeaderOrderConfirmDto.getIds(); |
| | | if(CollUtil.isEmpty(ids)){ |
| | | List<String> idsStr = StrUtil.splitTrim(apiLeaderOrderConfirmDto.getIds(),","); |
| | | if(CollUtil.isEmpty(idsStr)){ |
| | | return new FebsResponse().fail().message("请选择订单"); |
| | | } |
| | | for(Long orderId : ids){ |
| | | for(String orderIdStr : idsStr){ |
| | | long orderId = Long.parseLong(orderIdStr); |
| | | MallOrderInfo mallOrderInfo = mallOrderInfoMapper.selectById(orderId); |
| | | if(ObjectUtil.isEmpty(mallOrderInfo)){ |
| | | continue; |