package org.ta.pddserver.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.ta.pdd.entity.UnpackMailDetailEntity;
import org.ta.pddserver.mapper.UnpackMailDetailMapper;
import org.ta.pddserver.service.UnpackMailDetailService;

import java.util.List;

@Service
public class UnpackMailDetailImpl extends ServiceImpl<UnpackMailDetailMapper, UnpackMailDetailEntity> implements UnpackMailDetailService {

    public UnpackMailDetailEntity getByMailNo(String mailNo) {
        return this.baseMapper.findByMailNo(mailNo);
    }

    public List<UnpackMailDetailEntity> getListByCode(String orderCode) {
        return this.baseMapper.findByOrderCode(orderCode);
    }

    public Integer deleteByOrderCode(String orderCode) {
        return this.baseMapper.deleteByOrderCode(orderCode);
    }

    public Integer updateMailToProblem(String mailNo) {
        return this.baseMapper.updateMailToProblem(mailNo);
    }

    public Integer updateMailToReturnBack(String mailNo) {
        return this.baseMapper.updateMailToReturnBack(mailNo);
    }
}