From d007db1b117284e73c933bf4f734af6e82d1b08d Mon Sep 17 00:00:00 2001 From: Shaobin Date: Fri, 20 Dec 2024 13:24:27 +0800 Subject: [PATCH] no message --- ICSSoft.ToERP/SQL/GetPurchaseReturnInfo.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ICSSoft.ToERP/SQL/GetPurchaseReturnInfo.cs b/ICSSoft.ToERP/SQL/GetPurchaseReturnInfo.cs index 23691a6..628cbc4 100644 --- a/ICSSoft.ToERP/SQL/GetPurchaseReturnInfo.cs +++ b/ICSSoft.ToERP/SQL/GetPurchaseReturnInfo.cs @@ -102,6 +102,7 @@ namespace ICSSoft.ERPWMS.SQL { foreach (DataRow dr in dt.Rows) { + GetPurchaseReturnEntity entity = new GetPurchaseReturnEntity(); entity.ID = dr["ID"].ToString(); @@ -125,21 +126,16 @@ namespace ICSSoft.ERPWMS.SQL } entity.WorkPoint = WorkPoint; - if (string.IsNullOrEmpty(dr["审核时间"].ToString())) - { - entity.Status = "1";//开立 - } - else + if (!string.IsNullOrEmpty(dr["审核时间"].ToString())) { entity.Status = "2";//审核 + entityList.Add(entity); } - - entityList.Add(entity); } res.IsSuccess = true; - res.Message = "执行成功!"; + res.Message = "执行成功,无已审核单据!"; res.data = entityList; return res; }