diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/common/service/impl/OrderInfoServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/common/service/impl/OrderInfoServiceImpl.java index 40c5dc80..876b5c55 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/common/service/impl/OrderInfoServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/common/service/impl/OrderInfoServiceImpl.java @@ -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 dateRange = LeOrderUtil.queryDateRange(orderIds, orderDates); - return ((OrderInfoMapper)this.baseMapper).listOrderForAndroid(orderIds, (LocalDate)dateRange.get(0), + List 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; } } //