今日工作票前三增加总数

This commit is contained in:
何美荣 2026-01-16 17:32:38 +08:00
parent ffeeb49573
commit 157da8d8f6

View File

@ -70,6 +70,7 @@ namespace APT.SC.WebApi.Controllers.Api.BI
/// </summary>
public class JobTodayTop3
{
public int totalQty { get; set; }
public int num { get; set; }
public string company { get; set; }
public List<JobTodayDetail> details { get; set; }
@ -250,6 +251,7 @@ namespace APT.SC.WebApi.Controllers.Api.BI
foreach (DataRow item in Table.Rows)
{
var JobTodayTop3 = new JobTodayTop3();
JobTodayTop3.totalQty = int.Parse(item["今日总数"].ToString()) != 0 ? int.Parse(item["今日总数"].ToString()) : 0;
JobTodayTop3.num = int.Parse(item["排名"].ToString()) != 0 ? int.Parse(item["排名"].ToString()) : 0;
JobTodayTop3.company = item["公司名称"] != null ? item["公司名称"].ToString() : "";
result.Add(JobTodayTop3);