From 46e98339480d853fc78a014c34d7ff9fcaf13890 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 05 十二月 2024 14:09:02 +0800 Subject: [PATCH] 产线协议 --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Base/OutboundOrderService.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Base/OutboundOrderService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Base/OutboundOrderService.cs" index b5ce69c..bf5df44 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Base/OutboundOrderService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Base/OutboundOrderService.cs" @@ -25,7 +25,7 @@ { private readonly IMapper _mapper; private readonly IMaterielInfoService _materielInfoService; - private readonly IStockInfoService _stockService; + private readonly IStockInfoService _stockService; private readonly IStockInfoDetailService _stockDetailService; public IOutboundOrderRepository Repository => BaseDal; @@ -35,7 +35,7 @@ _mapper = mapper; _materielInfoService = materielInfoService; _stockDetailService = stockDetailService; - _stockService = stockInfoService; + _stockService = stockInfoService; } public override WebResponseContent AddData(SaveModel saveModel) @@ -60,7 +60,7 @@ return WebResponseContent.Instance.Error("鐗╂枡閲嶅"); } outboundOrderDetails = outboundOrderDetails.Where(x => (x.Id > 0 && x.OrderDetailStatus == OrderDetailStatusEnum.New.ObjToInt()) || x.Id == 0).ToList(); - + List<Dictionary<string, object>> dics = new List<Dictionary<string, object>>(); JsonSerializerSettings settings = new JsonSerializerSettings(); settings.ContractResolver = new CamelCasePropertyNamesContractResolver(); @@ -86,6 +86,7 @@ #endregion Dt_OutboundOrder outboundOrder = _mapper.Map<Dt_OutboundOrder>(orderAddDTO); + outboundOrder.OrderNo = DateTime.Now.ToString("yyMMddHHmmss"); outboundOrder.OrderStatus = InboundStatusEnum.鏈紑濮�.ObjToInt(); bool a = BaseDal.Db.InsertNav(outboundOrder).Include(x => x.Details).ExecuteCommand(); content = WebResponseContent.Instance.OK(); -- Gitblit v1.9.3