CrazyIter_Bin hace 1 año
padre
commit
90bd8af364
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      TEAMModelOS/Controllers/System/BlobController.cs

+ 2 - 1
TEAMModelOS/Controllers/System/BlobController.cs

@@ -1100,7 +1100,7 @@ namespace TEAMModelOS.Controllers
                 string code = string.Empty;
                 if (ids.Any() && ids.Count > 0)
                 {
-                    string sql = $"select value c.id  from c where   c.id in ({string.Join(",", ids.Select(x => $"'{x}'"))})";
+                    string sql = $"select value c.id  from c where   c.id in ({string.Join(",", ids.Select(x => $"'{x}'"))}) ";
                     switch (true)
                     {
                         case bool when prefix.Equals("exam", StringComparison.OrdinalIgnoreCase):
@@ -1143,6 +1143,7 @@ namespace TEAMModelOS.Controllers
                             {
                                 tbname = scope.ToString().Equals("school") ? Constant.School : Constant.Teacher;
                                 code = scope.ToString().Equals("school") ? $"LessonRecord-{containerName}" : "LessonRecord";
+                                sql =$"{sql} and c.status<>404 ";
                                 break;
                             }
                     }