public ActionResult RecheckCommit(ApplyRecheckStatus applyStatus, string nextRecheckUserId)
        {
            ApplyService applayService = new ApplyService();
            // 查询当前提交审核的申请,审核人的审核信息
            RecheckStatusDtlDto recheckStatus = applayService.RecheckDtlSearch(applyStatus.ApplyId.ToString()).Where(x => x.SeqNO == applyStatus.SeqNO.ToString()).FirstOrDefault();

            // 只有当审核人还没有审核的时候执行下面的操作,如果审核人已经审核过的话,不需要再执行
            //正常情况下不会出现这样的数据,为了解决特定网络情况下导致的重复数据,所以添加了这个判断
            if (string.IsNullOrEmpty(recheckStatus.RecheckStatusCode))
            {
                MyApplyDto applyInfo = applayService.ApplySearchById(applyStatus.ApplyId.ToString()).FirstOrDefault();
                if (applyStatus.RecheckStatusCode == "拒绝")
                {
                    nextRecheckUserId = applayService.PreRecheckUserSearch(applyStatus.ApplyId.ToString(), UserInfo.UserId);
                }
                applyStatus.RecheckUserId = UserInfo.UserId;
                applyStatus.InDateTime    = DateTime.Now;
                if (nextRecheckUserId == null)
                {
                    nextRecheckUserId = "";
                }
                applayService.ApplyRecheckStatusUpdate(applyStatus, nextRecheckUserId);
                if (applyStatus.RecheckStatusCode == "拒绝")
                {
                    ApplyEmailSend(applyInfo, nextRecheckUserId, "拒绝");
                }
                else
                {
                    ApplyEmailSend(applyInfo, nextRecheckUserId, "");
                }
                // 状态更新后再查询一遍,如果是完成的话则发送邮件给申请人,邮件通知已经审核完成
                MyApplyDto afterUpdate = applayService.ApplySearchById(applyStatus.ApplyId.ToString()).FirstOrDefault();
                if (afterUpdate.ApplyStatusCode == "完成")
                {
                    ApplyEmailSend(applyInfo, nextRecheckUserId, "完成");
                }
            }

            return(Json(""));
        }
        public ActionResult RecheckListCommit(string applyStatusList, string recheckReason, string nextRecheckUserId)
        {
            ApplyService applayService = new ApplyService();

            string[] applyList = new string[] { };
            if (applyStatusList.Length > 0)
            {
                applyList = applyStatusList.Split(';');
            }
            foreach (string item in applyList)
            {
                // 查询当前提交审核的申请,审核人的审核信息
                RecheckStatusDtlDto recheckStatus = applayService.RecheckDtlSearch(item.Split(',')[0].ToString()).Where(x => x.SeqNO == item.Split(',')[1].ToString()).FirstOrDefault();
                // 只有当审核人还没有审核的时候执行下面的操作,如果审核人已经审核过的话,不需要再执行
                //正常情况下不会出现这样的数据,为了解决特定网络情况下导致的重复数据,所以添加了这个判断
                if (string.IsNullOrEmpty(recheckStatus.RecheckStatusCode))
                {
                    ApplyRecheckStatus applyStatus = new ApplyRecheckStatus();
                    applyStatus.RecheckUserId     = UserInfo.UserId;
                    applyStatus.InDateTime        = DateTime.Now;
                    applyStatus.ApplyId           = Convert.ToInt32(item.Split(',')[0]);
                    applyStatus.SeqNO             = Convert.ToInt32(item.Split(',')[1]);
                    applyStatus.RecheckStatusCode = "同意";
                    applyStatus.RecheckReason     = recheckReason;
                    applayService.ApplyRecheckStatusUpdate(applyStatus, nextRecheckUserId);
                    MyApplyDto applyInfo = applayService.ApplySearchById(applyStatus.ApplyId.ToString()).FirstOrDefault();
                    ApplyEmailSend(applyInfo, nextRecheckUserId, "");
                    // 状态更新后再查询一遍,如果是完成的话则发送邮件给申请人,邮件通知已经审核完成
                    MyApplyDto afterUpdate = applayService.ApplySearchById(applyStatus.ApplyId.ToString()).FirstOrDefault();
                    if (afterUpdate.ApplyStatusCode == "完成")
                    {
                        ApplyEmailSend(applyInfo, nextRecheckUserId, "完成");
                    }
                }
            }
            return(Json(""));
        }