This commit is contained in:
sxu 2025-03-19 18:26:32 +08:00
parent f4cf35091e
commit ab986c3c41
1 changed files with 9 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import com.bonus.canteen.core.order.web.vo.OrderDeliveryDetailVO;
import com.bonus.canteen.core.order.web.vo.OrderListWebVO;
import com.bonus.canteen.core.order.web.vo.OrderRefundWebVO;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.utils.encryption.Sm4Utils;
import com.bonus.common.houqin.constant.LeConstants;
import com.bonus.canteen.core.common.constant.LeRetCodeEnum;
import com.bonus.canteen.core.order.android.vo.OrderListAndroidVO;
@ -53,6 +54,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.lang.invoke.SerializedLambda;
@ -535,8 +537,14 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
return CollUtil.newArrayList(new OrderListAndroidVO[0]);
} else {
List<LocalDate> dateRange = LeOrderUtil.queryDateRange(orderIds, orderDates);
return ((OrderInfoMapper)this.baseMapper).listOrderForAndroid(orderIds, (LocalDate)dateRange.get(0),
List<OrderListAndroidVO> list = ((OrderInfoMapper)this.baseMapper).listOrderForAndroid(orderIds, (LocalDate)dateRange.get(0),
(LocalDate)dateRange.get(1));
if (!CollectionUtils.isEmpty(list)) {
for (OrderListAndroidVO vo : list) {
vo.setMobile(Sm4Utils.decrypt(vo.getMobile()));
}
}
return list;
}
}
//