package org.ta.pddserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.ta.pddserver.entity.OrderMailDetailEntity;

import java.util.List;

@Mapper
public interface OrderMailDetailMapper extends BaseMapper<OrderMailDetailEntity> {

    @Select("SELECT * FROM `order_mail_detail` WHERE `logisticsOrderCode` = #{logisticsOrderCode} AND `state` > 0;")
    List<OrderMailDetailEntity> getListByCode(String logisticsOrderCode);
}
