From 7a9c5808da244c8d1b981cf796fbe99d7c167da3 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期五, 13 十二月 2024 22:17:13 +0800
Subject: [PATCH] 1
---
service/Warehouse/WomdaaManager.cs | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/service/Warehouse/WomdaaManager.cs b/service/Warehouse/WomdaaManager.cs
index fbc29f9..b4d4e28 100644
--- a/service/Warehouse/WomdaaManager.cs
+++ b/service/Warehouse/WomdaaManager.cs
@@ -1,5 +1,6 @@
锘縰sing System.Data;
using System.Data.SqlClient;
+using Masuit.Tools;
using NewPdaSqlServer.DB;
using NewPdaSqlServer.Dto.service;
using NewPdaSqlServer.entity;
@@ -35,6 +36,20 @@
string _intSum = "";
using (var conn = new SqlConnection(DbHelperSQL.strConn))
{
+
+ if (query.userName.IsNullOrEmpty())
+ {
+ throw new Exception("鐢ㄦ埛鍚嶄笉鍏佽涓虹┖");
+ }
+ if (query.daa001.IsNullOrEmpty())
+ {
+ throw new Exception("棰嗘枡鍗曞彿涓嶅厑璁镐负绌�");
+ }
+ if (query.barcode.IsNullOrEmpty())
+ {
+ throw new Exception("鏉$爜涓嶅厑璁镐负绌�");
+ }
+
using (var cmd =new SqlCommand("[prc_pda_SCLL]", conn))
{
try
@@ -96,6 +111,25 @@
//prC_pda_SCLL_CF
public ProductionPickDto ScanCodeCF(WarehouseQuery query)
{
+
+ if (query.userName.IsNullOrEmpty())
+ {
+ throw new Exception("鐢ㄦ埛鍚嶄笉鍏佽涓虹┖");
+ }
+ if (query.daa001.IsNullOrEmpty())
+ {
+ throw new Exception("棰嗘枡鍗曞彿涓嶅厑璁镐负绌�");
+ }
+ if (query.barcode.IsNullOrEmpty())
+ {
+ throw new Exception("鏉$爜涓嶅厑璁镐负绌�");
+ }
+
+ if (query.Num is null or 0)
+ {
+ throw new Exception("鏉$爜鎷嗗垎鏁颁笉鍏佽涓虹┖鎴栬�呬负0");
+ }
+
string _strMsg = "";
string _intSum = "";
using (var conn = new SqlConnection(DbHelperSQL.strConn))
--
Gitblit v1.9.3