Example #1
0
        private void ScheduleJob()
        {
            List <MEMBER_CHANGESTATUS_LOG> wxTmp = _logservice.QueryMemberActivateList();

            int mylen = wxTmp.Count;

            int len = (int)Math.Ceiling(mylen * 1.0m / 1000);

            _logdebug.Info("执行会员激活定时任务,当前时间:" + DateTime.Now + ";发送的数量" + mylen + ";");

            for (int i = 0; i < len; i++)
            {
                List <MEMBER_CHANGESTATUS_LOG> arry = wxTmp.OrderBy(a => a.ID).Skip(i * 1000).Take(1000).ToList();

                SendTmpsByMember(arry);
            }
        }
Example #2
0
 public List <MEMBER_CHANGESTATUS_LOG> QueryMemberActivateList()
 {
     return(log.QueryMemberActivateList());
 }