소스 검색

处理人数记录异常

Li 3 년 전
부모
커밋
7498dedef1
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      TEAMModelOS.FunctionV4/HttpTrigger/IESHttpTrigger.cs

+ 4 - 4
TEAMModelOS.FunctionV4/HttpTrigger/IESHttpTrigger.cs

@@ -344,10 +344,10 @@ namespace TEAMModelOS.FunctionV4.HttpTrigger
                 }
                 }
 
 
                 string tbHourSql = $"PartitionKey eq 'HourLogin' and RowKey le '{delTbHour}'";
                 string tbHourSql = $"PartitionKey eq 'HourLogin' and RowKey le '{delTbHour}'";
-                await table.DeleteStringWhere<BIOptLog>(rowKey: tbHourSql);  //删除168小时前的数据
+                await table.DeleteStringWhere<HourLogin>(rowKey: tbHourSql);  //删除168小时前的数据
 
 
                 string tbDaySql = $"PartitionKey eq 'DayLogin' and RowKey le '{delTbDay}'";
                 string tbDaySql = $"PartitionKey eq 'DayLogin' and RowKey le '{delTbDay}'";
-                await table.DeleteStringWhere<BIOptLog>(rowKey: tbDaySql);   //删除180天前的数据
+                await table.DeleteStringWhere<DayLogin>(rowKey: tbDaySql);   //删除180天前的数据
 
 
                 if (!string.IsNullOrWhiteSpace(school))
                 if (!string.IsNullOrWhiteSpace(school))
                 {
                 {
@@ -466,10 +466,10 @@ namespace TEAMModelOS.FunctionV4.HttpTrigger
                     }
                     }
 
 
                     string tbScHourSql = $"PartitionKey eq 'HourLogin-{school}' and RowKey le '{delTbHour}'";
                     string tbScHourSql = $"PartitionKey eq 'HourLogin-{school}' and RowKey le '{delTbHour}'";
-                    await table.DeleteStringWhere<BIOptLog>(rowKey: tbScHourSql); //删除学校168小时前的数据
+                    await table.DeleteStringWhere<HourLogin>(rowKey: tbScHourSql); //删除学校168小时前的数据
 
 
                     string tbScDaySql = $"PartitionKey eq 'DayLogin-{school}' and RowKey le '{delTbDay}'";
                     string tbScDaySql = $"PartitionKey eq 'DayLogin-{school}' and RowKey le '{delTbDay}'";
-                    await table.DeleteStringWhere<BIOptLog>(rowKey: tbScDaySql); //删除学校180天前的数据
+                    await table.DeleteStringWhere<DayLogin>(rowKey: tbScDaySql); //删除学校180天前的数据
                 }
                 }
 
 
                 await response.WriteAsJsonAsync(new { data = json });
                 await response.WriteAsJsonAsync(new { data = json });