今日工作票前三增加总数
This commit is contained in:
parent
ffeeb49573
commit
157da8d8f6
@ -70,6 +70,7 @@ namespace APT.SC.WebApi.Controllers.Api.BI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class JobTodayTop3
|
public class JobTodayTop3
|
||||||
{
|
{
|
||||||
|
public int totalQty { get; set; }
|
||||||
public int num { get; set; }
|
public int num { get; set; }
|
||||||
public string company { get; set; }
|
public string company { get; set; }
|
||||||
public List<JobTodayDetail> details { 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)
|
foreach (DataRow item in Table.Rows)
|
||||||
{
|
{
|
||||||
var JobTodayTop3 = new JobTodayTop3();
|
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.num = int.Parse(item["排名"].ToString()) != 0 ? int.Parse(item["排名"].ToString()) : 0;
|
||||||
JobTodayTop3.company = item["公司名称"] != null ? item["公司名称"].ToString() : "";
|
JobTodayTop3.company = item["公司名称"] != null ? item["公司名称"].ToString() : "";
|
||||||
result.Add(JobTodayTop3);
|
result.Add(JobTodayTop3);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user