From d4a6d65f5e449c3e5464aa18ae97bf8953987217 Mon Sep 17 00:00:00 2001 From: LR-20210131IOQH\Administrator <jackcold@163.com> Date: 星期二, 10 八月 2021 15:44:14 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa --- zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs | 30 +++++++++++++++++++++++++++--- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs index 12c1eea..dbe815e 100644 --- a/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs +++ b/zhengcaioa/zhengcaioa/Controllers/HR/SalaryCheckController.cs @@ -69,7 +69,7 @@ /// <returns></returns> public IActionResult GetList(HrSalaryDTOSearch search) { - _hrSalaryService.AutoCheck(); + //_hrSalaryService.AutoCheck(); return new JsonResult(_hrSalaryService.SearchSalaryByPaging(search)); } @@ -85,6 +85,22 @@ if (!string.IsNullOrEmpty(id)) { dto = _hrSalaryService.Get(id); + } + if(!dto.Jiangjin.HasValue) + { + dto.Jiangjin = 0; + } + if (!dto.Bufagongzi.HasValue) + { + dto.Bufagongzi = 0; + } + if (!dto.Peichang.HasValue) + { + dto.Peichang = 0; + } + if (!dto.Jiucuo.HasValue) + { + dto.Jiucuo = 0; } ViewData.Model = dto; return View(); @@ -188,7 +204,7 @@ else { dangqianbuzhou = wfRunProcessDTO.Step; - //鏌ヨ鍘嗗彶鎰忚 + //鏌ヨ瀹℃壒杩涘害 lishiyijian = _wfHistoryService.GetListshenpi(wfRunProcessDTO.Id); if (wfRunProcessDTO.Step != "鎻愪氦") { @@ -240,12 +256,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); @@ -282,7 +306,7 @@ public IActionResult GetSearchList(HrSalaryDTOSearch search) { //鑷姩纭 - _hrSalaryService.AutoCheck(); + //_hrSalaryService.AutoCheck(); return new JsonResult(_hrSalaryService.SearchByPagingFinish(search)); } -- Gitblit v1.9.1