|
@@ -191,14 +191,20 @@ namespace TEAMModelOS.FunctionV4
|
|
|
|
|
|
}
|
|
|
List<string> sub = new();
|
|
|
- if (work.targets.Count > 0) {
|
|
|
- foreach (var course in work.targets) {
|
|
|
- var info = course.ToObject<List<string>>();
|
|
|
- if (info.Count > 1) {
|
|
|
- sub.Add(info[0]);
|
|
|
+ if (work.tchLists.Count == 0) {
|
|
|
+ if (work.targets.Count > 0)
|
|
|
+ {
|
|
|
+ foreach (var course in work.targets)
|
|
|
+ {
|
|
|
+ var info = course.ToObject<List<string>>();
|
|
|
+ if (info.Count > 1)
|
|
|
+ {
|
|
|
+ sub.Add(info[0]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if (addTmdidsCls.IsNotEmpty())
|
|
|
{
|
|
|
addTmdidsCls.ForEach(x =>
|