Esempio n. 1
0
        /// <summary>
        /// 将会员状态更改为“激活”时失败的信息记录下来
        /// </summary>
        /// <param name="ztype"></param>
        /// <param name="status"></param>
        /// <param name="message"></param>
        /// <param name="zpass"></param>
        /// <param name="mobile"></param>
        public void ChangeStatusLog(string ztype, string status, string message, string zpass, string mobile)
        {
            MEMBER_CHANGESTATUS_LOG logs = new MEMBER_CHANGESTATUS_LOG()
            {
                ZTYPE       = ztype,
                STATUS      = status,
                MESSAGE     = message,
                ZPASS       = zpass,
                MOBILE      = mobile,
                CREATE_DATE = DateTime.Now
            };

            log.Insert(logs);
        }
Esempio n. 2
0
        /// <summary>
        /// 添加失败的记录
        /// </summary>
        /// <param name="record"></param>
        /// <returns></returns>
        public int InsertFailRecord(MEMBER_CHANGESTATUS_LOG record)
        {
            string sql = "insert MEMBER_CHANGESTATUS_LOG(ZTYPE,STATUS,MESSAGE,ZPASS,MOBILE,CREATE_DATE,USED) values(@ZTYPE,@STATUS,@MESSAGE,@ZPASS,@MOBILE,@CREATE_DATE,0);";

            return(base.Excute(sql, new { ZTYPE = record.ZTYPE, STATUS = record.STATUS, MESSAGE = record.MESSAGE, ZPASS = record.ZPASS, MOBILE = record.MOBILE, CREATE_DATE = record.CREATE_DATE }));
        }