package com.sckw.car.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.car.entity.KwCarOrder;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface KwCarOrderMapper extends BaseMapper<KwCarOrder> {

    List<Map<String, Object>> countByStatus();

    @MapKey("waybillCount")
    int finishWaybillCount(String orderId);

}
