From 6e1231595e0e72b0fa421711d34bc77d3b406a4b Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期五, 21 四月 2023 10:14:37 +0800
Subject: [PATCH] 高级排程过工单信息测试接口(实现不了) 采购到货单接口开发

---
 VueWebApi/Tools/LabCodeStatusMessage.cs |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/VueWebApi/Tools/LabCodeStatusMessage.cs b/VueWebApi/Tools/LabCodeStatusMessage.cs
index fde90e8..b5337de 100644
--- a/VueWebApi/Tools/LabCodeStatusMessage.cs
+++ b/VueWebApi/Tools/LabCodeStatusMessage.cs
@@ -28,7 +28,21 @@
             mes.code = "200";
             try
             {
-
+                //0.鍒ゆ柇鏉$爜鏄惁涓哄綋鍓嶅姛鑳芥壂鎻忔潯鐮�
+                sql = @"select rightcode,hbilltype  from T_BarCodeBill where hbarcode=@hbarcode";
+                dynamicParams.Add("@hbarcode", hbarcode);
+                dt = DapperHelper.selectdata(sql, dynamicParams);
+                if (dt.Rows.Count>0)
+                {
+                    if (dt.Rows[0]["rightcode"].ToString() != rightcode && dt.Rows[0]["hbilltype"].ToString() != hbilltype) 
+                    {
+                        mes.code = "300";
+                        mes.count = 0;
+                        mes.Message = "褰撳墠鏉$爜鐘舵�佷笉婊¤冻姝ゅ姛鑳�!";
+                        mes.data = null;
+                        return mes;
+                    }
+                }
                 //1.鍒ゆ柇褰撳墠鍔熻兘鏉$爜鏄惁涓虹郴缁熺敓鎴愭湁鏁堟潯鐮�
                 sql = @"select *   from T_BarCodeBill where hbarcode=@hbarcode";
                 dynamicParams.Add("@hbarcode", hbarcode);

--
Gitblit v1.9.3