From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 28 二月 2023 13:25:09 +0800
Subject: [PATCH] 工资绩效改版

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

diff --git a/zhengcaioa/Services/CooperatecustomCustomerService.cs b/zhengcaioa/Services/CooperatecustomCustomerService.cs
index 3e6ca7f..aaef706 100644
--- a/zhengcaioa/Services/CooperatecustomCustomerService.cs
+++ b/zhengcaioa/Services/CooperatecustomCustomerService.cs
@@ -60,7 +60,7 @@
                         cooperatecustomCustomer.Ywjltime = DateTime.Now;
                         var Cooper = _context.CooperatecustomCustomers.Count(x => x.RecStatus == "A" && x.Ywjl == cooperatecustomCustomer.Ywjl);
                         var Inten = _context.IntentionCustomers.Count(x => x.RecStatus == "A" && x.Ywjl == cooperatecustomCustomer.Ywjl);
-                        if (Cooper + Inten >= 2000)
+                        if (Cooper + Inten > 2000)
                         {
                             resultEntity.Result = false;
                             resultEntity.Message = "璇ヤ笟鍔$粡鐞嗭紝瀹㈡埛鍗曚綅鍜屽悎浣滃鎴峰悎璁¤秴杩�2000锛�";
@@ -128,7 +128,10 @@
                     updateproject.Modifier = cooperatecustomCustomer.Modifier;
                     updateproject.Modifytime = cooperatecustomCustomer.Modifytime;
                     updateproject.Weixin = cooperatecustomCustomer.Weixin;
-                    updateproject.HuiyuanId = cooperatecustomCustomer.HuiyuanId;
+                    if (!string.IsNullOrEmpty(cooperatecustomCustomer.HuiyuanId))
+                    {
+                        updateproject.HuiyuanId = cooperatecustomCustomer.HuiyuanId;
+                    }  
                     updateproject.Shifoutianjiaweixin = cooperatecustomCustomer.Shifoutianjiaweixin;
                     updateproject.Weixintime = cooperatecustomCustomer.Weixintime;
                     updateproject.Weixiner = cooperatecustomCustomer.Weixiner;

--
Gitblit v1.9.1