소스 검색

提交

master
gwbvipvip 8 달 전
부모
커밋
3474851a51
2개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. +13
    -0
      BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Service/WeighOrderService.cs
  2. +1
    -0
      BPA.KitChen.WeChat/WechatServer/Service/WechatPayService.cs

+ 13
- 0
BPA.KitChen.GroupMealOrder.Application/Service/WeighOrder/Service/WeighOrderService.cs 파일 보기

@@ -123,6 +123,17 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Service
/// <returns></returns>
public async Task<bool> AddWeighOrderGoods(List<WeighOrderGoodsCreateDto> inputDto)
{

try
{

}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}

var ids = inputDto.Select(x => x.OrderId).FirstOrDefault();
var weighOrder = await db.Queryable<BPA_WeighOrder>().FirstAsync(x => x.Id == ids);
if (weighOrder == null || weighOrder.States == 1)
@@ -184,6 +195,8 @@ namespace BPA.KitChen.GroupMealOrder.Application.Service.WeighOrder.Service

weighOrder.TotalAmount = TotalAmount;

db.Updateable(weighOrder).ExecuteCommandAsync();


}



+ 1
- 0
BPA.KitChen.WeChat/WechatServer/Service/WechatPayService.cs 파일 보기

@@ -66,6 +66,7 @@ namespace BPA.KitChen.WeChat.WechatServer.Service
//查询订单

var order = await SqlSugarDb.Db.Queryable<BPA_WeighOrder>()
.ClearFilter()
.FirstAsync(x => x.OrderNumber == ordernumber);
if (order==null)
{


불러오는 중...
취소
저장