From ea037964dba48654bdaf7169517c64508984841e Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 19 七月 2021 14:53:45 +0800
Subject: [PATCH] 今日开发: 工作考评 按部门排序。不显示离职员工                  工作统计,去掉标题                  所有查询,只选择开始或者结束日期,自动补充另外一个日期                  工作统计增加根据日期查询,只显示有数据的项                  增加全员工作统计菜单,可以查询每个每个在职员工的工作统计

---
 zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs
index 5635721..8e30987 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs
@@ -190,6 +190,26 @@
             if (string.IsNullOrEmpty(data.Shifoutianjiaweixin))
             {
                 data.Shifoutianjiaweixin = "D";
+                data.Weixiner = null;
+                data.Weixintime = null;
+            }
+            else
+            {
+                if (String.IsNullOrEmpty(data.Id))
+                {
+                    data.Weixiner = curentuser.Id;
+                    data.Weixintime = DateTime.Now;
+                }
+                else
+                {
+                 var cooperatecustomCustomerDTO    =   _cooperatecustomCustomerService.Get(data.Id);
+                    if (string.IsNullOrEmpty(cooperatecustomCustomerDTO.Weixiner) )
+                    {
+                        data.Weixiner = curentuser.Id;
+                        data.Weixintime = DateTime.Now;
+                    }
+
+                }
             }
             if (String.IsNullOrEmpty(data.Id))
             {

--
Gitblit v1.9.1