From 439f10462e6b1ab0ebd454f53c2156c6fab24266 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 14 十一月 2022 11:12:46 +0800
Subject: [PATCH] 抓取的项目,      已确认,未确认  未确认为橙色 客户档案管理       有无手机号,未确认为橙色 客户资料页面查看访问记录

---
 zhengcaioa/Services/HrPositionService.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/Services/HrPositionService.cs b/zhengcaioa/Services/HrPositionService.cs
index 0dcbcb3..3369f80 100644
--- a/zhengcaioa/Services/HrPositionService.cs
+++ b/zhengcaioa/Services/HrPositionService.cs
@@ -63,7 +63,7 @@
         public HrPositionDTO Get(string id)
         {
             var entity = _context.HrPositions.Find(id);
-            if (entity.RecStatus != "A")
+            if (entity==null || entity.RecStatus != "A")
             {
                 entity = new HrPosition();
             }

--
Gitblit v1.9.1