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

import java.util.List;

@Mapper
public interface UnpackMailDetailMapper extends BaseMapper<UnpackMailDetailEntity> {

    @Select("SELECT * FROM `unpack_mail_detail` WHERE `mailNo` = #{mailNo};")
    UnpackMailDetailEntity findByMailNo(String mailNo);

    @Select("SELECT * FROM `unpack_mail_detail` WHERE `orderCode` = #{orderCode};")
    List<UnpackMailDetailEntity> findByOrderCode(String orderCode);
}
