diff --git a/src/Starward/Pages/SelfQueryPage.xaml.cs b/src/Starward/Pages/SelfQueryPage.xaml.cs index f091778d7..59218ebe7 100644 --- a/src/Starward/Pages/SelfQueryPage.xaml.cs +++ b/src/Starward/Pages/SelfQueryPage.xaml.cs @@ -563,9 +563,17 @@ private void LoadMonthQueryItems(int type, string month) } if (gameBiz.ToGame() is GameBiz.ZZZ) { - ZZZQueryItemList = dapper.Query(""" + var list = ZZZQueryItemList = dapper.Query(""" SELECT * FROM ZZZQueryItem WHERE Uid=@uid AND Type=@type AND DateTime LIKE @month ORDER BY DateTime DESC; """, new { uid, type, month = month + "%" }).ToList(); + if (type is (int)ZZZQueryType.PurchaseGift) + { + foreach (var item in list) + { + item.Reason = item.ItemName; + } + } + ZZZQueryItemList = list; MonthAddNum = ZZZQueryItemList.Where(x => x.AddNum > 0).Sum(x => x.AddNum); MonthSubNum = ZZZQueryItemList.Where(x => x.AddNum < 0).Sum(x => x.AddNum); }