Commit e9d15d14 authored by 吴春's avatar 吴春

提交代码

parent 584efe38
...@@ -37,6 +37,10 @@ namespace Mall.Repository.Miai ...@@ -37,6 +37,10 @@ namespace Mall.Repository.Miai
{ {
sb.AppendFormat(" and Id={0}", where.Id); sb.AppendFormat(" and Id={0}", where.Id);
} }
if (where.UserId > 0)
{
sb.AppendFormat(" and UserId={0}", where.UserId);
}
} }
return Get<RB_MiAi_BaseInfo_Extend>(sb.ToString()).ToList(); return Get<RB_MiAi_BaseInfo_Extend>(sb.ToString()).ToList();
} }
......
...@@ -38,6 +38,10 @@ namespace Mall.Repository.Miai ...@@ -38,6 +38,10 @@ namespace Mall.Repository.Miai
{ {
where += $@" and e.{nameof(RB_Miai_ActivityEnroll_Extend.UserId)} ={dmodel.UserId}"; where += $@" and e.{nameof(RB_Miai_ActivityEnroll_Extend.UserId)} ={dmodel.UserId}";
} }
if (dmodel.Id > 0)
{
where += $@" and e.{nameof(RB_Miai_ActivityEnroll_Extend.Id)} ={dmodel.Id}";
}
string sql = $@"select e.*,u.Name as UserName,u.Photo,b.Sex from RB_Miai_ActivityEnroll e string sql = $@"select e.*,u.Name as UserName,u.Photo,b.Sex from RB_Miai_ActivityEnroll e
left join rb_member_user u on e.UserId = u.Id left join rb_member_user u on e.UserId = u.Id
left join rb_miai_baseinfo b on e.UserId =b.UserId left join rb_miai_baseinfo b on e.UserId =b.UserId
......
...@@ -452,7 +452,9 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -452,7 +452,9 @@ namespace Mall.WebApi.Controllers.MallBase
x.PeopleNum, x.PeopleNum,
x.Remark, x.Remark,
x.IsFocus, x.IsFocus,
CreateDate = x.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") CreateDate = x.CreateDate.ToString("yyyy-MM-dd HH:mm:ss"),
x.MyFollowId,
x.OtherFollowId
}); });
return ApiResult.Success("", pagelist); return ApiResult.Success("", pagelist);
} }
...@@ -704,6 +706,9 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -704,6 +706,9 @@ namespace Mall.WebApi.Controllers.MallBase
{ {
oldBaseInfo.AlbumList = JsonConvert.DeserializeObject<List<string>>(oldBaseInfo.Album); oldBaseInfo.AlbumList = JsonConvert.DeserializeObject<List<string>>(oldBaseInfo.Album);
} }
else {
oldBaseInfo.AlbumList = new List<string>();
}
IsAttestation = 1;//已认证 IsAttestation = 1;//已认证
} }
else else
...@@ -713,18 +718,18 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -713,18 +718,18 @@ namespace Mall.WebApi.Controllers.MallBase
var result = new var result = new
{ {
oldBaseInfo.Id, oldUserInfo.Id,
oldBaseInfo.Name, oldUserInfo.Name,
oldBaseInfo.Photo, oldUserInfo.Photo,
IsAttestation, IsAttestation,
IsFollow = isFollow, IsFollow = isFollow,
oldBaseInfo?.Sex, Sex = oldBaseInfo?.Sex ?? 0,
oldBaseInfo?.IDCardNo, IDCardNo = oldBaseInfo?.IDCardNo ?? "",
oldBaseInfo?.RealName, RealName = oldBaseInfo?.RealName ?? "",
oldBaseInfo?.IDCard, IDCard = oldBaseInfo?.IDCard ?? "",
oldBaseInfo?.IDCardBack, IDCardBack = oldBaseInfo?.IDCardBack ?? "",
SexStr = (oldBaseInfo != null && oldBaseInfo.Id > 0) ? (oldBaseInfo.Sex == 1 ? "男" : "女") : "", SexStr = (oldBaseInfo != null && oldBaseInfo.Id > 0) ? (oldBaseInfo.Sex == 1 ? "男" : "女") : "",
oldBaseInfo.Birthday, Birthday = oldBaseInfo.Birthday ?? "",
Age = string.IsNullOrWhiteSpace(oldBaseInfo.Birthday) ? "" : StringHelper.GetAge(oldBaseInfo.Birthday),//年纪 Age = string.IsNullOrWhiteSpace(oldBaseInfo.Birthday) ? "" : StringHelper.GetAge(oldBaseInfo.Birthday),//年纪
ShenXiao = string.IsNullOrWhiteSpace(oldBaseInfo.Birthday) ? "" : StringHelper.GetShengXiao(Convert.ToDateTime((oldBaseInfo.Birthday))),//生肖 ShenXiao = string.IsNullOrWhiteSpace(oldBaseInfo.Birthday) ? "" : StringHelper.GetShengXiao(Convert.ToDateTime((oldBaseInfo.Birthday))),//生肖
ConoldBaseInfostellation = string.IsNullOrWhiteSpace(oldBaseInfo.Birthday) ? "" : StringHelper.GetAtomFromBirthday(Convert.ToDateTime((oldBaseInfo.Birthday))),//星座 ConoldBaseInfostellation = string.IsNullOrWhiteSpace(oldBaseInfo.Birthday) ? "" : StringHelper.GetAtomFromBirthday(Convert.ToDateTime((oldBaseInfo.Birthday))),//星座
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment