SELECT * from (SELECT a.*,mu.`Name` as SuperiorName, b.Id as BaseInfoId,b.Album,b.Birthday,b.Height,b.IsFaTie,b.Weight,b.YearMoney,b.EducationType,b.Marriage,b.CarInfo,b.HouseInfo,(YEAR (curdate()) - YEAR (b.Birthday) - 1 + ( DATE_FORMAT(b.Birthday, '%m%d') <= ( DATE_FORMAT(curdate(), '%m%d') ) )) Age
SELECT * from (SELECT a.*,mu.`Name` as SuperiorName,b.WechatNo, b.Id as BaseInfoId,b.Album,b.Birthday,b.Height,b.IsFaTie,b.Weight,b.YearMoney,b.EducationType,b.Marriage,b.CarInfo,b.HouseInfo,(YEAR (curdate()) - YEAR (b.Birthday) - 1 + ( DATE_FORMAT(b.Birthday, '%m%d') <= ( DATE_FORMAT(curdate(), '%m%d') ) )) Age
FROM RB_Member_User AS a LEFT JOIN rb_miai_baseinfo AS b ON a.Id = b.UserId LEFT JOIN rb_member_user as mu on a.SuperiorId=mu.Id) as t where {where} order by {orderBy}
FROM RB_Member_User AS a LEFT JOIN rb_miai_baseinfo AS b ON a.Id = b.UserId LEFT JOIN rb_member_user as mu on a.SuperiorId=mu.Id) as t where {where} order by {orderBy}
@@ -113,8 +116,26 @@ WHERE Status=1 AND SendTime<='{0}' and SendStatus=2 ", DateTime.Now.ToString("yy
...
@@ -113,8 +116,26 @@ WHERE Status=1 AND SendTime<='{0}' and SendStatus=2 ", DateTime.Now.ToString("yy
returnflag;
returnflag;
}
}
/// <summary>
/// 相亲每日随机查询信息删除
/// </summary>
/// <returns></returns>
publicstaticboolDailyRandomModule()
{
boolflag=false;
StringBuilderbuilder=newStringBuilder();
builder.AppendFormat(@" SELECT * from RB_MiAi_BaseInfoDayQuery where Status=0 and DATE_FORMAT(CreateDate,'%Y-%m-%d' ) < DATE_FORMAT('{0}','%Y-%m-%d' )",DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));