From a3e64c16c5390b552816b8e619b3d58acfd960c8 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期一, 17 十一月 2025 08:41:14 +0800
Subject: [PATCH] 提交
---
项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs"
index 6a0d029..9b0c138 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundOrderService.cs"
@@ -1,4 +1,6 @@
-锘縰sing AutoMapper;
+锘縰sing Autofac.Core;
+using AutoMapper;
+using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using WIDESEA_Core;
using WIDESEA_Core.BaseRepository;
@@ -179,6 +181,20 @@
}
}
+ /// <summary>
+ /// 鏍规嵁ID鑾峰彇鍑哄簱鍗�
+ /// </summary>
+ public async Task<WebResponseContent> GetById(int id)
+ {
+ var order = await Db.Queryable<Dt_OutboundOrder>().FirstAsync(o=>o.Id==id);
+ if (order == null)
+ {
+ return WebResponseContent.Instance.Error("鏈壘鍒板嚭搴撳崟淇℃伅");
+ }
+ return WebResponseContent.Instance.OK(null, order);
+ }
+
+
static object lock_code = new object();
public string CreateCodeByRule(string ruleCode)
{
--
Gitblit v1.9.3