From 0b993a715c0d3e80f71da23a15fd39f3e286bed1 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 08 一月 2026 08:21:21 +0800
Subject: [PATCH] 四维尔条码PLC自动生成,有时候会多打印一个不相干的物料的条码。问题处理
---
WebAPI/Controllers/CJGL/Cj_SingleStationController.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs b/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
index 05274a5..bd7fe67 100644
--- a/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
+++ b/WebAPI/Controllers/CJGL/Cj_SingleStationController.cs
@@ -3446,7 +3446,8 @@
if (sWhere == null || sWhere.Equals(""))
{
- ds = oCN.RunProcReturn("select * from h_v_Sc_UnbindStation_BarList order by 鏉$爜鏃ユ湡 desc", "h_v_Sc_UnbindStation_BarList");
+ ds = oCN.RunProcReturn("select * from h_v_Sc_UnbindStation_BarList" +
+ " order by 鏉$爜鏃ユ湡 desc", "h_v_Sc_UnbindStation_BarList");
}
else
{
@@ -3700,7 +3701,7 @@
oCN.RunProc(sql);//鎻掑叆钃濈墮娴嬭瘯鏁版嵁
- objJsonResult.code = "1";
+ objJsonResult.code = "success";
objJsonResult.count = 1;
objJsonResult.Message = "钃濈墮娴嬭瘯鏁版嵁鎺ユ敹鎴愬姛锛乴otSn锛�" + lotSn;
objJsonResult.data = null;
@@ -3708,7 +3709,7 @@
}
catch (Exception e)
{
- objJsonResult.code = "0";
+ objJsonResult.code = "error";
objJsonResult.count = 0;
objJsonResult.Message = "鍙戠敓寮傚父锛�" + e.ToString();
objJsonResult.data = null;
--
Gitblit v1.9.1