Commit d42f30bb authored by 吴春's avatar 吴春
parents 2b22a78d f652a476
...@@ -2574,7 +2574,7 @@ namespace Mall.Module.Product ...@@ -2574,7 +2574,7 @@ namespace Mall.Module.Product
{ {
continue; continue;
} }
//item.SupplierId = gmodel.SpplierID;
item.CouponMoney = 0; item.CouponMoney = 0;
var couponModel = GoodsCouponList.Where(x => x.GoodsId == item.GoodsId).FirstOrDefault(); var couponModel = GoodsCouponList.Where(x => x.GoodsId == item.GoodsId).FirstOrDefault();
if (couponModel != null) if (couponModel != null)
...@@ -3463,7 +3463,8 @@ namespace Mall.Module.Product ...@@ -3463,7 +3463,8 @@ namespace Mall.Module.Product
IntegralMoney = item.IntegralMoney, IntegralMoney = item.IntegralMoney,
IntegralNumber = item.IntegralNumber, IntegralNumber = item.IntegralNumber,
CouponMoney = item.CouponMoney, CouponMoney = item.CouponMoney,
IntegralGoodsPresent = IntegralPresent IntegralGoodsPresent = IntegralPresent,
SupplierId = item.SupplierId
}, trans); }, trans);
item.Id = detailId; item.Id = detailId;
...@@ -5461,8 +5462,6 @@ namespace Mall.Module.Product ...@@ -5461,8 +5462,6 @@ namespace Mall.Module.Product
} }
//余额支付回滚 //余额支付回滚
//同意 创建财务单据
OrderRefundFinanceModule(omodel);
} }
//记录日志 //记录日志
string Content = $"客人申请取消订单,审核:{(type == 1 ? "同意" : "拒绝")}"; string Content = $"客人申请取消订单,审核:{(type == 1 ? "同意" : "拒绝")}";
...@@ -5482,6 +5481,10 @@ namespace Mall.Module.Product ...@@ -5482,6 +5481,10 @@ namespace Mall.Module.Product
}); });
} }
goods_OrderRepository.DBSession.Commit(); goods_OrderRepository.DBSession.Commit();
if (flag && type == 1) {
//同意 创建财务单据
OrderRefundFinanceModule(omodel);
}
return flag; return flag;
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -408,6 +408,10 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -408,6 +408,10 @@ namespace Mall.WebApi.Controllers.MallBase
} }
item.Specification = JsonConvert.SerializeObject(item.SpecificationList); item.Specification = JsonConvert.SerializeObject(item.SpecificationList);
} }
if ((demodel.Income ?? 0) <= 0) {
return ApiResult.ParamIsNull("订单金额不正确");
}
demodel.BuyerMessage ??= "";//买家留言 demodel.BuyerMessage ??= "";//买家留言
demodel.OrderSource ??= UserSourceEnum.WeiXin; demodel.OrderSource ??= UserSourceEnum.WeiXin;
......
...@@ -695,6 +695,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -695,6 +695,7 @@ namespace Mall.WebApi.Controllers.MallBase
} }
} }
else { else {
LogHelper.Write(JsonConvert.SerializeObject(Robj));
return ApiResult.Failed(); return ApiResult.Failed();
} }
} }
......
...@@ -1836,6 +1836,7 @@ namespace Mall.WebApi.Controllers.User ...@@ -1836,6 +1836,7 @@ namespace Mall.WebApi.Controllers.User
} }
else else
{ {
LogHelper.Write("企业付款失败RemitId:" + RemitId);
return ApiResult.Failed("支付失败"); return ApiResult.Failed("支付失败");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment