From cd50e79ee0899945e12c0092b83b105649e70e84 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期五, 18 十月 2024 13:14:48 +0800
Subject: [PATCH] 结算单个人集体按用户绑定班组显示

---
 WebAPI/Controllers/工资管理/Pay_GroupBalBillController.cs |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs" "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs"
index 67730cb..0f5abd4 100644
--- "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs"
+++ "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_GroupBalBillController.cs"
@@ -102,6 +102,20 @@
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
+                //鍒ゆ柇鏄惁鏈夋煡鐪嬪叏閮ㄧ彮缁勭殑鏉冮檺
+                if (!DBUtility.ClsPub.Security_Log("Gy_Group_AllQuery", 3, false, user))
+                {
+                    //濡傛灉娌℃湁杩欎釜鏉冮檺
+                    //鏍规嵁鐢ㄦ埛瀵瑰簲鐝粍鐨勫叧绯伙紝杩囨护鏉′欢涓鍔犲彧鏄剧ず瀵瑰簲鐨勭彮缁�
+                    DataSet dsHitemID = oCn.RunProcReturn("exec h_p_Gy_GetSQLGroupByUser '" + user + "'", "h_p_Gy_GetSQLGroupByUser");
+                    string sqlGroupID = DBUtility.ClsPub.isStrNull(dsHitemID.Tables[0].Rows[0]["HBack"]);
+                    if (sqlGroupID == "" || sqlGroupID == null)//濡傛灉娌℃湁缁戝畾鐝粍鍒欒浠栫湅涓嶅埌鎵�鏈�
+                    {
+                        sqlGroupID = "and 1 = 2";
+                    }
+                    sqlGroupID = sqlGroupID.Replace("HitemID", "HGroupID");//鏇挎崲sql璇彞涓殑HitemID
+                    sWhere = sWhere + sqlGroupID;
+                }
                 sWhere = sWhere.Replace("'", "''");
                 if (sWhere == null || sWhere.Equals(""))
                 {

--
Gitblit v1.9.1