From 7ef0e8ac0b8ecbb32393e16707ee28bca35de821 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 08 十二月 2023 16:45:27 +0800
Subject: [PATCH] 根据用户获取职员、部门、主管报错处理
---
WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
index afe951a..fe47eeb 100644
--- a/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
+++ b/WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
@@ -1856,11 +1856,11 @@
try
{
string sql = @"select
- c.HEmpID
+ ISNULL(c.HEmpID,0) HEmpID
,e.HName HEmpName
- ,c.HDeptID
+ ,ISNULL(c.HDeptID,0) HDeptID
,d.HName HDeptName
- ,d.HEmpID HManagerID
+ ,ISNULL(d.HEmpID,0) HManagerID
,e1.HName HManagerName
from Gy_Czygl as c
left join Gy_Employee as e on c.HEmpID = e.HItemID
--
Gitblit v1.9.1