Commit 753f345e authored by 黄奎's avatar 黄奎
parents 388a9382 58472ea7
...@@ -65,7 +65,7 @@ namespace Mall.Model.Entity.TradePavilion ...@@ -65,7 +65,7 @@ namespace Mall.Model.Entity.TradePavilion
public string MedalImageBig { get; set; } public string MedalImageBig { get; set; }
/// <summary> /// <summary>
/// 候选状态 1报名中 2候选 3淘汰 /// 候选状态 1未评比 2候选 3淘汰
/// </summary> /// </summary>
public int CandidateState { get; set; } public int CandidateState { get; set; }
......
...@@ -796,8 +796,8 @@ namespace Mall.Module.TradePavilion ...@@ -796,8 +796,8 @@ namespace Mall.Module.TradePavilion
if (listModel.PrizeNum != deList.Count()) { return "名单数量不正确"; } if (listModel.PrizeNum != deList.Count()) { return "名单数量不正确"; }
//首先清除历史评比 //首先清除历史评比
firstShop_ListEnrollRepository.ClearHostoryAppraisal(listId, mallBaseId); firstShop_ListEnrollRepository.ClearHostoryAppraisal(listId, mallBaseId);
int RankListState = type == 1 ? 3 : 2; int RankListState = type == 1 ? 3 : 1;
if (type == 1) if (type == 2)
{ {
//设置榜单为已放榜 //设置榜单为已放榜
Dictionary<string, object> keyValues = new Dictionary<string, object>() { Dictionary<string, object> keyValues = new Dictionary<string, object>() {
...@@ -823,7 +823,7 @@ namespace Mall.Module.TradePavilion ...@@ -823,7 +823,7 @@ namespace Mall.Module.TradePavilion
{ nameof(RB_FirstShop_ListEnroll_Extend.MedalImageBig),item.MedalImageBig }, { nameof(RB_FirstShop_ListEnroll_Extend.MedalImageBig),item.MedalImageBig },
{ nameof(RB_FirstShop_ListEnroll_Extend.RankListState),RankListState }, { nameof(RB_FirstShop_ListEnroll_Extend.RankListState),RankListState },
{ nameof(RB_FirstShop_ListEnroll_Extend.UpdateBy),empId }, { nameof(RB_FirstShop_ListEnroll_Extend.UpdateBy),empId },
{ nameof(RB_FirstShop_ListEnroll_Extend.UpdateDate),item.Reviews } { nameof(RB_FirstShop_ListEnroll_Extend.UpdateDate),DateTime.Now }
}; };
List<WhereHelper> wheres = new List<WhereHelper>() { List<WhereHelper> wheres = new List<WhereHelper>() {
new WhereHelper(){ new WhereHelper(){
......
...@@ -189,7 +189,7 @@ where {where} order by w.Id desc ...@@ -189,7 +189,7 @@ where {where} order by w.Id desc
} }
if (dmodel.CreateBy > 0) if (dmodel.CreateBy > 0)
{ {
where += $@" and w.{nameof(RB_FirstShop_ListEnroll_Extend.UserId)}={dmodel.CreateBy}"; where += $@" and e.{nameof(RB_FirstShop_ListEnroll_Extend.UserId)}={dmodel.CreateBy}";
} }
string sql = $@"select w.*,e.ObjectType,e.ObjectId,e.Rank,e.MedalImage,e.RankListState from RB_FirstShop_List w string sql = $@"select w.*,e.ObjectType,e.ObjectId,e.Rank,e.MedalImage,e.RankListState from RB_FirstShop_List w
......
...@@ -2426,6 +2426,7 @@ namespace Mall.WebApi.Controllers.TradePavilion ...@@ -2426,6 +2426,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
RB_FirstShop_List_Extend demodel = JsonHelper.DeserializeObject<RB_FirstShop_List_Extend>(req.msg.ToString()); RB_FirstShop_List_Extend demodel = JsonHelper.DeserializeObject<RB_FirstShop_List_Extend>(req.msg.ToString());
demodel.TenantId = userInfo.TenantId; demodel.TenantId = userInfo.TenantId;
demodel.MallBaseId = userInfo.MallBaseId; demodel.MallBaseId = userInfo.MallBaseId;
demodel.CreateBy = userInfo.UserId;
var list = firstShopListModule.GetAppletMyEnrollFistShopListPageList(pageModel.pageIndex, pageModel.pageSize, out long count, demodel); var list = firstShopListModule.GetAppletMyEnrollFistShopListPageList(pageModel.pageIndex, pageModel.pageSize, out long count, demodel);
pageModel.count = Convert.ToInt32(count); pageModel.count = Convert.ToInt32(count);
......
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