Beispiel #1
0
 public void CanAddMailReturnGoodsLogs(string trackNumber, int reasonType)
 {
     if (!_wayBillInfoRepository.Exists(p => p.TrackingNumber == trackNumber))
     {
         throw new Exception("该单不存在");
     }
     if (_mailReturnGoodsLogRepository.Exists(p => p.TrackNumber == trackNumber))
     {
         throw new Exception("该单已是退件");
     }
     //string postBagNumber = _mailPostBagInfoRepository.GetPostBagNumber(trackNumber);
     //if (postBagNumber == null) throw new Exception("该单不为国际小包优+");
 }