From 2369258bc0b452cf3cab2dd5e8e2d9fde112b8d0 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 26 七月 2021 16:17:25 +0800
Subject: [PATCH] 今日开发   加班申请·                统计报表:没有任何工作的人,不显示。显示人员的      部门  职位  姓名   工作时间                   在计算考勤的时候只有有加班申请的加班才算加班

---
 zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
index 12c1eea..cdbb115 100644
--- a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs
@@ -240,12 +240,20 @@
                     data.shenpi_status = "D";
                     data.status = "A";
                     resultEntity = _hrSalaryService.CheckAppea(data);
+                    if (!resultEntity.Result)
+                    {
+                        return new JsonResult(resultEntity);
+                    }
                 }
                    
 
                 //鍙戣捣娴佺▼鐩稿叧
 
                 resultEntity = _wfRunProcessService.WfSalaryAppeal(data.id, data.Step, data.Tongguojujue, curentuser.Id, data.Content, data.tittle, "v1");
+                if (!resultEntity.Result)
+                {
+                    return new JsonResult(resultEntity);
+                }
                 scope.Complete();
             }
             return new JsonResult(resultEntity);

--
Gitblit v1.9.1