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.TraceObjectEntity;

import java.util.List;

@Mapper
public interface TraceObjectMapper extends BaseMapper<TraceObjectEntity> {
    // 根据用户名查找用户
    @Select("SELECT * FROM `trace_object` WHERE `trackingNumber` = #{trackingNumber} AND `state` > 0;")
    List<TraceObjectEntity> selectByTrackingNumber(String trackingNumber);
}
