فهرست منبع

-导师带徒bugfix

jiangbiao 1 سال پیش
والد
کامیت
ea40dce25d

+ 2 - 1
master/src/main/java/com/ruoyi/project/training/bccnew/controller/TTsFlplanController.java

@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 
 /**
  * 分离培训Controller
@@ -65,7 +66,7 @@ public class TTsFlplanController extends BaseController {
                     planDate.append(format.format(item.getPlanDate()));
                 content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";");
             } else {
-                if (entity.getTopic().equals(item.getTopic())) {
+                if (Objects.equals(entity.getPid(), item.getPid())) {
                     content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";");
                 } else {
                     if (tTsFlplans.get(i - 1).getPlanDate() != null)

+ 2 - 1
master/src/main/java/com/ruoyi/project/training/bccnew/controller/TTsFtplanController.java

@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.*;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 
 /**
  * 芳烃培训Controller
@@ -63,7 +64,7 @@ public class TTsFtplanController extends BaseController {
                     planDate.append(format.format(item.getPlanDate()));
                 content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";");
             } else {
-                if (entity.getTopic().equals(item.getTopic())) {
+                if (Objects.equals(entity.getPid(), item.getPid())) {
                     content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";");
                 } else {
                     if (tTsFtplans.get(i - 1).getPlanDate() != null)

+ 2 - 1
master/src/main/java/com/ruoyi/project/training/bccnew/controller/TTsLjplanController.java

@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.*;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 
 /**
  * 裂解培训Controller
@@ -66,7 +67,7 @@ public class TTsLjplanController extends BaseController {
                     planDate.append(format.format(item.getPlanDate()));
                 content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";"); //拼接内容字段 培训计划:内容;
             } else {
-                if (entity.getTopic().equals(item.getTopic())) { // 判断当前对象的主题是否为当前返回对象的主题
+                if (Objects.equals(entity.getPid(), item.getPid())) { // 判断当前对象的主题是否为当前返回对象的主题
                     content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";");
                 } else {
                     if (tTsLjplans.get(i - 1).getPlanDate() != null)

+ 2 - 1
master/src/main/java/com/ruoyi/project/training/bccnew/controller/TTsYsplanController.java

@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.*;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 
 /**
  * 转岗培训Controller
@@ -63,7 +64,7 @@ public class TTsYsplanController extends BaseController {
                     planDate.append(format.format(item.getPlanDate()));
                 content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";");
             } else {
-                if (entity.getTopic().equals(item.getTopic())) {
+                if (Objects.equals(entity.getPid(), item.getPid())) {
                     content.append(item.getCourseDay()).append(":").append(item.getContent()).append(";");
                 } else {
                     if (tTsYsplans.get(i - 1).getPlanDate() != null)