| | |
| | | import com.google.common.collect.ImmutableMap; |
| | | import com.xiaopeng.api.dto.account.GetUserCouponDto; |
| | | import com.xiaopeng.api.dto.operation.LonLatDto; |
| | | import com.xiaopeng.api.dto.order.GetOrderNumDto; |
| | | import com.xiaopeng.api.dto.order.HistoryEndPointsDto; |
| | | import com.xiaopeng.api.dto.order.HistoryStartPointsDto; |
| | | import com.xiaopeng.api.dto.statistics.DailyCountDTO; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 添加订单 |
| | | * @param xpOrder |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addOrder(XpOrder xpOrder) { |
| | | int insert = this.baseMapper.insert(xpOrder); |
| | | if (insert <= 0) { |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public XpVehicle queryVehicleByOrderId(Long orderId, String uid) { |
| | |
| | | return xpVehicle; |
| | | } |
| | | |
| | | /** |
| | | * 获取订单数量 |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer getOrderNum(String timeStr) { |
| | | this.baseMapper.selectCount(new LambdaQueryWrapper<XpOrder>()); |
| | | |
| | | return 0; |
| | | public Integer getOrderNum(GetOrderNumDto dto) { |
| | | Long num = this.baseMapper.selectCount(new LambdaQueryWrapper<XpOrder>().eq(XpOrder::getCityId, dto.getOpenCityId()).between(BaseModel::getCreateTime, dto.getTimeStr(), new Date())); |
| | | return num.intValue(); |
| | | } |
| | | |
| | | |