31 lines
905 B
C#
31 lines
905 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using WX.CRM.BLL;
|
|
using WX.CRM.IBLL.Wx;
|
|
using WX.CRM.Model.Entity;
|
|
|
|
namespace AY.CRM.BLL.Wx
|
|
{
|
|
public class WX_ALIVE_BL : DbContextRepository<WX_ALIVE>, IWX_ALIVE
|
|
{
|
|
/// <summary>
|
|
/// 返回大于条件时间的 微信号
|
|
/// </summary>
|
|
/// <param name="lasttime"></param>
|
|
/// <returns></returns>
|
|
public List<String> GetWx_AliveByLastTime(DateTime lasttime)
|
|
{
|
|
using (crmContext db = new crmContext())
|
|
{
|
|
var al = db.WX_ALIVE.Where(m => m.LASTTIME >= lasttime).AsQueryable<WX_ALIVE>();
|
|
var query = (from a in al
|
|
join b in db.WX_WORKACCOUNT on a.USERNAME equals b.USERNAME
|
|
select b.ALIAS);
|
|
|
|
return query.ToList();
|
|
}
|
|
}
|
|
}
|
|
}
|