username@email.com
2023-12-11 72e4a4d81cb1b9776ffb7287e0c5ed67592eda8b
zhengcaioa/zhengcaioa/Timer/TimedBackgroundService.cs
@@ -139,14 +139,13 @@
                            jisuangonglinggongzi();
                        }
                        _logger.LogInformation("把超过90天还没有转化的档案客户的业务经理归为无");
                        this.ywjlguiling();
                        _logger.LogInformation("把超过90天还没有转化的档案客户的业务经理归为无执行结束");
                        _logger.LogInformation("把会员系统和oa系统手机号相同的客户关联起来");
                        this.huiyuanguanlian();
                        _logger.LogInformation("把会员系统和oa系统手机号相同的客户关联起来执行结束");
                        _logger.LogInformation("把超过90天还没有转化的档案客户的业务经理归为无");
                        this.ywjlguiling();
                        _logger.LogInformation("把超过90天还没有转化的档案客户的业务经理归为无执行结束");
                    }
                    catch (Exception ex)
                    {
@@ -329,6 +328,18 @@
                        if (frameworkUser != null)
                        {
                            cooperatecustomCustomer.HuiyuanId = frameworkUser.Id.ToString();
                            //2023-03-23 添加在职企业
                            var customerGuanlianhuiyuan1 = _context.CustomerGuanlianhuiyuans.Where(x => x.Huiyuanid == cooperatecustomCustomer.HuiyuanId && x.Customerid == cooperatecustomCustomer.Id).FirstOrDefault();
                            if (customerGuanlianhuiyuan1 == null)
                            {
                                CustomerGuanlianhuiyuan customerGuanlianhuiyuan = new CustomerGuanlianhuiyuan();
                                customerGuanlianhuiyuan.Id = Guid.NewGuid().ToString();
                                customerGuanlianhuiyuan.Huiyuanid = cooperatecustomCustomer.HuiyuanId;
                                customerGuanlianhuiyuan.Customerid = cooperatecustomCustomer.Id;
                                customerGuanlianhuiyuan.Customertype = "合作客户";
                                _context.CustomerGuanlianhuiyuans.Add(customerGuanlianhuiyuan);
                            }
                        }
                    }
@@ -349,6 +360,17 @@
                        if (frameworkUser != null)
                        {
                            intentionCustomer.HuiyuanId = frameworkUser.Id.ToString();
                            //2023-03-23 添加在职企业
                            var customerGuanlianhuiyuan1 = _context.CustomerGuanlianhuiyuans.Where(x => x.Huiyuanid == intentionCustomer.HuiyuanId && x.Customerid == intentionCustomer.Id).FirstOrDefault();
                            if (customerGuanlianhuiyuan1 == null)
                            {
                                CustomerGuanlianhuiyuan customerGuanlianhuiyuan = new CustomerGuanlianhuiyuan();
                                customerGuanlianhuiyuan.Id = Guid.NewGuid().ToString();
                                customerGuanlianhuiyuan.Huiyuanid = intentionCustomer.HuiyuanId;
                                customerGuanlianhuiyuan.Customerid = intentionCustomer.Id;
                                customerGuanlianhuiyuan.Customertype = "档案客户";
                                _context.CustomerGuanlianhuiyuans.Add(customerGuanlianhuiyuan);
                            }
                        }
                    }
@@ -1852,9 +1874,15 @@
                     
                    }
                    if(shiyongqichuqinlv>0 ||  hrSalaryDTO.Gongzuobutie != new decimal(0))
                    {
                        hrSalaryDTO.Gongzuobutie += Math.Round((BasicPrice * zhuanzhengchuqinlv ), 2);
                    }
                    else
                    {
                        hrSalaryDTO.Gongzuobutie += Math.Round((BasicPrice * zhuanzhengchuqinlv - hrSalaryDTO.Baomifei.Value - hrSalaryDTO.Jibengongzi.Value), 2);
                    }
                    hrSalaryDTO.Gongzuobutie += Math.Round((BasicPrice * zhuanzhengchuqinlv - hrSalaryDTO.Baomifei.Value - hrSalaryDTO.Jibengongzi.Value) , 2);