Example #1
0
        public IList <MsgRecord> getMsgRecord(GetMsgModel getMsgModel)
        {
            var msgQuery = from msgContainer in base._MsgContainer
                           join groupids in getMsgModel.GroupIDs on msgContainer.MsgRecipientObjectID equals groupids into tempgroupids
                           from groupids in getMsgModel.GroupIDs.DefaultIfEmpty()
                           where (msgContainer.MsgRecipientObjectID == getMsgModel.ObjectID || (groupids != null && msgContainer.SendType == 1)) &&
                           (DateTime.Compare(msgContainer.SendTime, getMsgModel.EndTime) < 0 && DateTime.Compare(msgContainer.SendTime, getMsgModel.StartTime) > 0)
                           select msgContainer;

            if (DateTime.Compare(getMsgModel.StartTime, saveTime) < 0)
            {
                IMsgRecordService msgRecordService = ObjectContainerFactory.CurrentContainer.Resolver <IMsgRecordService>();
                MsgRecordQuery    msgRecordQuery   = new MsgRecordQuery();
                msgRecordQuery.
                msgRecordService.LoadMsgRecord(MsgRecordQuery)
            }

            return(msgQuery.ToList());
        }
Example #2
0
        public IList <MsgRecord> GetMsg(GetMsgModel getMsgModel)
        {
            getMsgModel.EndTime = DateTime.Now;

            return(_OutMsgContainer.getMsgRecord(getMsgModel));
        }