This commit is contained in:
2024-05-10 15:55:26 +08:00
parent 3fec4b8a8a
commit 253f301fcf
3 changed files with 11 additions and 8 deletions
+9 -6
View File
@@ -115,15 +115,18 @@
}
else
{
int rnum = Funs.GetRandomNum(1, jotList.Count());
int j = 1;
foreach (var g in jotList)
if (jotList.Count() > 0)
{
if (rnum == j)
int rnum = Funs.GetRandomNum(1, jotList.Count());
int j = 1;
foreach (var g in jotList)
{
BLL.Batch_PointBatchItemService.UpdatePointBatchItem(g.PointBatchItemId, "1", System.DateTime.Now, null);
if (rnum == j)
{
BLL.Batch_PointBatchItemService.UpdatePointBatchItem(g.PointBatchItemId, "1", System.DateTime.Now, null);
}
j++;
}
j++;
}
}