/// <summary>
 /// 设置退换货申请状态,追加备注
 /// </summary>
 /// <param name="applyId"></param>
 /// <param name="exchangedState"></param>
 /// <param name="description"></param>
 /// <param name="msg"> </param>
 /// <returns></returns>
 public int SetShopExchangedState(Guid applyId, int exchangedState, string description, out string msg)
 {
     try
     {
         msg = string.Empty;
         var state = _shopRefund.GetExchangeState(applyId, string.Empty);
         if (exchangedState <= state && exchangedState != 0)
         {
             msg = "退换货申请状态已改变";
             return(-1);
         }
         return(_shopRefund.UpdateExchangeState(applyId, exchangedState, description));
     }
     catch (Exception e)
     {
         msg = e.Message;
         return(-1);
     }
 }
Example #2
0
 /// <summary>  pass
 /// 获取退换货单的状态
 /// </summary>
 /// <param name="applyId"></param>
 /// <returns></returns>
 public int GetExchangeState(Guid applyId)
 {
     return(_shopExchangedApply.GetExchangeState(applyId, string.Empty));
 }