liujie
2025-08-20 9a044f2f4b810a0f7a3d568998bfd2b13797427e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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;
 
/**
 * <p>
 * 订单-小件物流 服务实现类
 * </p>
 *
 * @author 吕雪
 * @since 2020-09-24
 */
@Service
public class TOrderLogisticsServiceImpl extends ServiceImpl<TOrderLogisticsMapper, TOrderLogistics> implements ITOrderLogisticsService {
 
    @Override
    public List<Map<String, Object>> getLogisticsOrderList(Page<Map<String, Object>> page, String beginTime, String endTime, Integer roleType, Integer nowUserId, String orderNum, Integer orderSource, Integer type, String userName, String userPhone, String recipient, String recipientPhone, String driver, Integer state) {
        return this.baseMapper.getLogisticsOrderList(page, beginTime, endTime, roleType, nowUserId, orderNum, orderSource, type, userName, userPhone, recipient, recipientPhone, driver, state);
    }
 
    @Override
    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);
 
    }
}