Commit b60bd982 authored by 黄奎's avatar 黄奎

页面修改

parent c4b74a4a
...@@ -8,6 +8,7 @@ using Mall.Common.API; ...@@ -8,6 +8,7 @@ using Mall.Common.API;
using Mall.Common.Enum.Goods; using Mall.Common.Enum.Goods;
using Mall.Common.Enum.User; using Mall.Common.Enum.User;
using Mall.Common.Plugin; using Mall.Common.Plugin;
using Mall.Model.Entity.Finance;
using Mall.Model.Entity.Product; using Mall.Model.Entity.Product;
using Mall.Model.Extend.BaseSetUp; using Mall.Model.Extend.BaseSetUp;
using Mall.Model.Extend.Finance; using Mall.Model.Extend.Finance;
...@@ -3734,7 +3735,7 @@ namespace Mall.Module.Product ...@@ -3734,7 +3735,7 @@ namespace Mall.Module.Product
/// <param name="extModel"></param> /// <param name="extModel"></param>
/// <param name="tradeModel"></param> /// <param name="tradeModel"></param>
/// <returns></returns> /// <returns></returns>
public bool UpdateERPGoodsOrderInfoModule(RB_Goods_Order_Extend extModel, RB_Goods_Online_Trade_Extend tradeModel) public bool UpdateERPGoodsOrderInfoModule(RB_Goods_Order_Extend extModel, RB_Goods_Online_Trade_Extend tradeModel,int FinanceId=0)
{ {
bool flag = false; bool flag = false;
Dictionary<string, object> fileds = new Dictionary<string, object>() Dictionary<string, object> fileds = new Dictionary<string, object>()
...@@ -3742,7 +3743,24 @@ namespace Mall.Module.Product ...@@ -3742,7 +3743,24 @@ namespace Mall.Module.Product
{nameof(RB_Goods_Order_Extend.MerchantsNo),extModel.MerchantsNo }, {nameof(RB_Goods_Order_Extend.MerchantsNo),extModel.MerchantsNo },
{nameof(RB_Goods_Order_Extend.OrderStatus),extModel.OrderStatus }, {nameof(RB_Goods_Order_Extend.OrderStatus),extModel.OrderStatus },
{nameof(RB_Goods_Order_Extend.PaymentTime),extModel.PaymentTime }, {nameof(RB_Goods_Order_Extend.PaymentTime),extModel.PaymentTime },
{nameof(RB_Goods_Order_Extend.Fee),extModel.Fee}
}; };
var detailsList= goods_OrderDetailRepository.GetOrderDetailList(new RB_Goods_OrderDetail_Extend() { OrderId = extModel.OrderId });
if (detailsList != null && detailsList.Count > 0)
{
foreach (var item in detailsList)
{
RB_ECFinanceId_Relation rModel = new RB_ECFinanceId_Relation()
{
FinanceId = FinanceId,
CreateDate = DateTime.Now,
ECOrderDetailId = item.Id,
ECOrderId = extModel.OrderId,
Status = Common.Enum.DateStateEnum.Normal
};
flag = new RB_ECFinanceId_RelationRepository().Insert(rModel) > 0;
}
}
flag = goods_OrderRepository.Update(fileds, new WhereHelper(nameof(RB_Goods_Order_Extend.OrderId), extModel.OrderId)); flag = goods_OrderRepository.Update(fileds, new WhereHelper(nameof(RB_Goods_Order_Extend.OrderId), extModel.OrderId));
if (flag) if (flag)
{ {
......
...@@ -611,12 +611,14 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -611,12 +611,14 @@ namespace Mall.WebApi.Controllers.MallBase
{ {
var req = RequestParm; var req = RequestParm;
JObject parms = JObject.Parse(req.msg.ToString()); JObject parms = JObject.Parse(req.msg.ToString());
var FinanceId = parms.GetInt("FinanceId", 0);
RB_Goods_Order_Extend extModel = new RB_Goods_Order_Extend() RB_Goods_Order_Extend extModel = new RB_Goods_Order_Extend()
{ {
OrderId=parms.GetInt("OrderId"), OrderId=parms.GetInt("OrderId"),
MerchantsNo=parms.GetStringValue("MerchantsNo"), MerchantsNo=parms.GetStringValue("MerchantsNo"),
OrderStatus= OrderStatusEnum.WaitSendGoods, OrderStatus= OrderStatusEnum.WaitSendGoods,
PaymentTime=DateTime.Now, PaymentTime=DateTime.Now,
Fee=parms.GetDecimal("Fee"),
}; };
RB_Goods_Online_Trade_Extend tradeModel = new RB_Goods_Online_Trade_Extend() RB_Goods_Online_Trade_Extend tradeModel = new RB_Goods_Online_Trade_Extend()
...@@ -643,7 +645,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -643,7 +645,7 @@ namespace Mall.WebApi.Controllers.MallBase
TenantId = 1, TenantId = 1,
CreateDate = DateTime.Now, CreateDate = DateTime.Now,
}; };
bool flag = orderModule.UpdateERPGoodsOrderInfoModule(extModel, tradeModel); bool flag = orderModule.UpdateERPGoodsOrderInfoModule(extModel, tradeModel,FinanceId:FinanceId);
return flag ? ApiResult.Success() : ApiResult.Failed(); return flag ? ApiResult.Success() : 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