From 760eede869d8bc0b1b5a4ff38b2d3d94f5e2cb86 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 04 八月 2021 14:29:15 +0800 Subject: [PATCH] 今日开发 专家派工-没有审批的专家不能派工 意向客户访问新增,短信发送不要红星 合作客户 在客户资料列表增加快捷访问链接 工作报表 修改排版 问题维护 试用法条 改为1000字, 问题查询打开直接默认未审核,不要停两秒再刷新 项目新增 增加字段:采购预算 万元 工作考评 考聘不称职当天无工资 --- zhengcaioa/zhengcaioa/Timer/TimedBackgroundService.cs | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Timer/TimedBackgroundService.cs b/zhengcaioa/zhengcaioa/Timer/TimedBackgroundService.cs index 55d12c3..d0fcf9d 100644 --- a/zhengcaioa/zhengcaioa/Timer/TimedBackgroundService.cs +++ b/zhengcaioa/zhengcaioa/Timer/TimedBackgroundService.cs @@ -48,7 +48,8 @@ private readonly IDtChannelArticleNewsService _dtChannelArticleNewsService; private readonly IConfiguration _configuration; private readonly IHttpClientFactory _clientFactory; - private readonly IAskService _askService; + private readonly IAskService _askService; + private readonly IAdmEvaluateService _admEvaluateService; private readonly decimal jiabangongzibiaozhun = new decimal(21.5); public TimedBackgroundService(ILogger<TimedBackgroundService> logger, IServiceScopeFactory factory) @@ -81,6 +82,7 @@ _configuration = factory.CreateScope().ServiceProvider.GetRequiredService<IConfiguration>(); _clientFactory = factory.CreateScope().ServiceProvider.GetRequiredService<IHttpClientFactory>(); _askService= factory.CreateScope().ServiceProvider.GetRequiredService<IAskService>(); + _admEvaluateService = factory.CreateScope().ServiceProvider.GetRequiredService<IAdmEvaluateService>(); } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { @@ -1336,8 +1338,10 @@ searchEntity.AttendanceId = admAttendanceDTO.Id; List<AdmAttendanceDtlDTO> admAttendanceDtlDTOs = _admAttendanceDtlService.GetList(searchEntity).OrderBy(x => x.SgninDate).ToList(); + //鏌ヨ鏄惁鏈変笉绉拌亴鐨勫伐浣滆�冭瘎 + var admEvaluateDTOs = _admEvaluateService.GetListsalary(userList[i].Id, dateminkaoqin, datemaxkaoqin).Where(x=>x.EvaluateValue == "03").ToList(); //褰撴湀鍑哄嫟鐜� - decimal chuqinlv = Math.Round(admAttendanceDTO.Shijichuqin / admAttendanceDTO.Yingchuqin,4); + decimal chuqinlv = Math.Round((admAttendanceDTO.Shijichuqin- admEvaluateDTOs.Count) / admAttendanceDTO.Yingchuqin,4); //鏌ヨ褰撳墠鍛樺伐鑱屽姟鐨勫熀鏈伐璧勯厤缃� @@ -1392,7 +1396,12 @@ } } } - shiyongqichuqinlv = Math.Round(shiyongqichuqintianshu / admAttendanceDTO.Yingchuqin, 4); + + //鏌ヨ鏄惁鏈変笉绉拌亴鐨勫伐浣滆�冭瘎 + var admEvaluateDTOsshiyongqi = _admEvaluateService.GetListsalary(userList[i].Id, dateminkaoqin, userList[i].ShiyongDateEnd.Value.AddDays(1)).Where(x => x.EvaluateValue == "03").ToList(); + + + shiyongqichuqinlv = Math.Round((shiyongqichuqintianshu- admEvaluateDTOsshiyongqi.Count) / admAttendanceDTO.Yingchuqin, 4); } else { -- Gitblit v1.9.1