소스 검색

Update Leave.java

ouchuangxin 5 년 전
부모
커밋
ce7e4ca1f2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      leave-service/src/main/java/ddd/leave/domain/leave/entity/Leave.java

+ 2 - 2
leave-service/src/main/java/ddd/leave/domain/leave/entity/Leave.java

@@ -34,7 +34,7 @@ public class Leave {
     }
 
     public Leave addHistoryApprovalInfo(ApprovalInfo approvalInfo) {
-        if (historyApprovalInfos == null)
+        if (null == historyApprovalInfos)
             historyApprovalInfos = new ArrayList<>();
         this.historyApprovalInfos.add(approvalInfo);
         return this;
@@ -66,4 +66,4 @@ public class Leave {
         this.setDuration(this.getEndTime().getTime() - this.getStartTime().getTime());
         return this;
     }
-}
+}