|
@@ -2124,6 +2124,10 @@ namespace JLHHJSvr.Helper
|
|
|
var bednetAreaDic = ToDictionary(bedentArea);
|
|
|
|
|
|
var rateList = GetDuoquVal(bednetAreaDic, attrKey);
|
|
|
+ if(bednet.sponge_mtrlid > 0 && rateList.Count <= 0)
|
|
|
+ {
|
|
|
+ throw new LJCommonException("包边物料没有设置床网分区包边比例");
|
|
|
+ }
|
|
|
rateList = rateList.GetRange(0, springList.Count);
|
|
|
var totality = rateList.Sum();
|
|
|
|
|
@@ -2196,7 +2200,7 @@ namespace JLHHJSvr.Helper
|
|
|
|
|
|
// 忽略数组末尾连续的 0
|
|
|
int i = arr.Count - 1;
|
|
|
- while (arr[i] == 0)
|
|
|
+ while (i >= 0 && arr[i] == 0)
|
|
|
{
|
|
|
i--;
|
|
|
}
|