|
@@ -419,19 +419,17 @@ namespace TEAMModelBI.Controllers.BIHome
|
|
|
//scProCnt.serial = ScProductSum.serial.Count();
|
|
|
//scProCnt.service = ScProductSum.service.Count();
|
|
|
//scProCnt.hard = ScProductSum.hard.Count();
|
|
|
- int pSeriCnt = ScProductSum.serial.Count();
|
|
|
- int pServCnt = ScProductSum.service.Count();
|
|
|
- int pHardCnt = ScProductSum.hard.Count();
|
|
|
+ List<string> pSeriCnt = ScProductSum.serial.Select(s=> s.prodCode).ToList();
|
|
|
+ List<string> pServCnt = ScProductSum.service.Select(s=>s.prodCode).ToList();
|
|
|
+ List<string> pHardCnt = ScProductSum.hard.Select(s=>s.prodCode).ToList();
|
|
|
scProCnt.serial = pSeriCnt;
|
|
|
scProCnt.service = pServCnt;
|
|
|
scProCnt.hard = pHardCnt;
|
|
|
- if (scProCnt.scale >= 500 && (pSeriCnt > 0 || pServCnt > 0 || pHardCnt > 0)) peCnt += 1;
|
|
|
+ if (scProCnt.scale >= 500 && (pSeriCnt.Count > 0 || pServCnt.Count > 0 || pHardCnt.Count > 0)) peCnt += 1;
|
|
|
}
|
|
|
|
|
|
- if (scProCnt.scale >= 500 && scProCnt.serial == 0 && scProCnt.service == 0 && scProCnt.hard == 0) seCnt += 1;
|
|
|
+ if (scProCnt.scale >= 500 && scProCnt.serial.Count == 0 && scProCnt.service.Count == 0 && scProCnt.hard.Count == 0) seCnt += 1;
|
|
|
if (scProCnt.scale == 0) beCnt += 1;
|
|
|
-
|
|
|
-
|
|
|
});
|
|
|
|
|
|
return Ok(new { state = 200, beCnt, seCnt, peCnt, scEdCnt });
|
|
@@ -446,9 +444,9 @@ namespace TEAMModelBI.Controllers.BIHome
|
|
|
public string name { get; set; }
|
|
|
public int size { get; set; }
|
|
|
public int scale { get; set; }
|
|
|
- public int serial { get; set; } = 0;//软体
|
|
|
- public int service { get; set; } = 0; //服务
|
|
|
- public int hard { get; set; } = 0; //硬体
|
|
|
+ public List<string> serial { get; set; } = new List<string>();//软体
|
|
|
+ public List<string> service { get; set; } = new List<string>(); //服务
|
|
|
+ public List<string> hard { get; set; } = new List<string>(); //硬体
|
|
|
}
|
|
|
|
|
|
/// <summary>
|