瀏覽代碼

代码调整

wangliang 11 月之前
父節點
當前提交
acc827592b

+ 2 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/bean/dto/report/ReportCourseBasicInfoDto.java

@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
 
 
 import java.io.Serializable;
 import java.io.Serializable;
 import java.math.BigDecimal;
 import java.math.BigDecimal;
+import java.util.Objects;
 
 
 /**
 /**
  * @Description: 报告课程基本情况dto
  * @Description: 报告课程基本情况dto
@@ -73,7 +74,7 @@ public class ReportCourseBasicInfoDto implements Serializable {
         this.teachingObject = trBasicInfo.getTeachingObject();
         this.teachingObject = trBasicInfo.getTeachingObject();
         this.selectionCount = trBasicInfo.getSelectionCount();
         this.selectionCount = trBasicInfo.getSelectionCount();
         this.participantCount = trBasicInfo.getParticipantCount();
         this.participantCount = trBasicInfo.getParticipantCount();
-        this.courseDegree = trBasicInfo.getCourseDegree();
+        this.courseDegree = Objects.nonNull(trBasicInfo.getCourseDegree()) ? trBasicInfo.getCourseDegree() : this.courseDegree;
         this.teacher = trBasicInfo.getTeacher();
         this.teacher = trBasicInfo.getTeacher();
         this.director = trBasicInfo.getDirector();
         this.director = trBasicInfo.getDirector();
         this.participant = trBasicInfo.getParticipant();
         this.participant = trBasicInfo.getParticipant();

+ 2 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/entity/TRBasicInfo.java

@@ -10,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
 
 
 import java.io.Serializable;
 import java.io.Serializable;
 import java.math.BigDecimal;
 import java.math.BigDecimal;
+import java.util.Objects;
 
 
 /**
 /**
  * <p>
  * <p>
@@ -249,7 +250,7 @@ public class TRBasicInfo extends BaseEntity implements Serializable {
         this.reportResult = new ReportResult();
         this.reportResult = new ReportResult();
         this.cultureProgramId = cultureProgramId;
         this.cultureProgramId = cultureProgramId;
         this.courseId = courseId;
         this.courseId = courseId;
-        this.courseDegree = courseDegree;
+        this.courseDegree = Objects.nonNull(courseDegree) ? courseDegree : this.courseDegree;
         this.profession = profession;
         this.profession = profession;
         this.courseEnName = courseEnName;
         this.courseEnName = courseEnName;
         this.college = college;
         this.college = college;