From 573f8cd63ce36c531ec019c8c5e20353090f12ac Mon Sep 17 00:00:00 2001 From: yxj <yxj@hz-kingdee.com> Date: 星期四, 07 三月 2024 10:17:30 +0800 Subject: [PATCH] 工序工价模块,保存修改时增加写入新字段,选择物料时根据组织过滤物料信息 --- WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs | 24 +----------------------- 1 files changed, 1 insertions(+), 23 deletions(-) diff --git a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs index 5df7cf7..f81653f 100644 --- a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs +++ b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs @@ -2218,29 +2218,7 @@ } else { - string sql = "select * from Gy_UserCustomerRelation where HUserID = '" + CurUserID + "'"; - ds = oCN.RunProcReturn(sql, "Gy_UserCustomerRelation"); - if (ds == null || ds.Tables[0].Rows.Count == 0) - { - sWhere = " and 1 = 0"; - } - else - { - sWhere = " and HCusID in ("; - for (var i = 0; i < ds.Tables[0].Rows.Count; i++) - { - if (i < ds.Tables[0].Rows.Count - 1) - { - sWhere += ds.Tables[0].Rows[i]["HCusID"].ToString() + ","; - } - else - { - sWhere += ds.Tables[0].Rows[i]["HCusID"].ToString() + ")"; - } - } - } - - //sWhere = " and 1=1 "; + sWhere = " and HCusID in (select hcusid from Gy_UserCustomerRelation Where HUserID = '" + CurUserID + "') "; } objJsonResult.code = "1"; -- Gitblit v1.9.1