| | |
| | | package com.stylefeng.guns.modular.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.stylefeng.guns.core.util.ToolUtil; |
| | | import com.stylefeng.guns.modular.system.model.TOrderLogistics; |
| | | import com.stylefeng.guns.modular.system.dao.TOrderLogisticsMapper; |
| | | import com.stylefeng.guns.modular.system.service.ITOrderLogisticsService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | public Map<String, Object> getLogisticsOrderDetailById(Integer orderId) { |
| | | return this.baseMapper.getLogisticsOrderDetailById(orderId); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> paymentOrderStatisticsList(Page<Map<String, Object>> page, String paymentCode, String orderCode, String userPhone, String driverPhone, String createTime, String paymentTime, Integer orderType) { |
| | | String createTimeStart = null; |
| | | String createTimeEnd = null; |
| | | String paymentTimeStart = null; |
| | | String paymentTimeEnd = null; |
| | | if(ToolUtil.isNotEmpty(createTime)){ |
| | | String[] split = createTime.split(" - "); |
| | | createTimeStart = split[0]; |
| | | createTimeEnd = split[1]; |
| | | } |
| | | if(ToolUtil.isNotEmpty(paymentTime)){ |
| | | String[] split = paymentTime.split(" - "); |
| | | paymentTimeStart = split[0]; |
| | | paymentTimeEnd = split[1]; |
| | | } |
| | | return this.baseMapper.paymentOrderStatisticsList(page, paymentCode, orderCode, userPhone, driverPhone, createTimeStart, createTimeEnd, paymentTimeStart, paymentTimeEnd,orderType); |
| | | |
| | | } |
| | | } |