Exemple #1
0
        public ActionResult verify(string access_token, string comment, int info_id, int verified)
        {
            var user = UserBussiness.GetUserModel(m => m.OpenID == access_token);
            var si   = SignInRecordBussiness.GetSignInRecordModel(info_id);

            si.Status    = verified;
            si.AuditDesc = comment;
            bool flag = SignInRecordBussiness.UpdateSignInRecordModel(si);

            if (flag)
            {
                Task.Factory.StartNew(() =>
                {
                    AuditLogModel auditLogModel  = new AuditLogModel();
                    auditLogModel.CreateTime     = DateTime.Now;
                    auditLogModel.CreateUserID   = user.ID;
                    auditLogModel.remark         = comment;
                    auditLogModel.Status         = verified;
                    auditLogModel.SignInRecordID = info_id;
                    AuditLogBussiness.InsertActiveModel(auditLogModel);
                });
                return(Success("操作成功"));
            }
            else
            {
                return(Fail("请重试"));
            }
        }
Exemple #2
0
        public ActionResult comment(int info_id, string remark)
        {
            var model = SignInRecordBussiness.GetSignInRecordModel(info_id);

            model.Remark = remark;
            bool flag = SignInRecordBussiness.UpdateSignInRecordModel(model);

            if (flag)
            {
                return(Success(""));
            }
            else
            {
                return(Success("请重试"));
            }
        }