瀏覽代碼

Update LeaveFactory.java

ouchuangxin 4 年之前
父節點
當前提交
b66e66826a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      leave-service/src/main/java/ddd/leave/domain/leave/service/LeaveFactory.java

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

@@ -44,8 +44,8 @@ public class LeaveFactory {
                 .personName(leavePO.getApproverName())
                 .build();
         leave.setApprover(approver);
-        leave.setStartTime(leave.getStartTime());
-        leave.setStatus(leave.getStatus());
+        leave.setStartTime(leavePO.getStartTime());
+        leave.setStatus(leavePO.getStatus());
         List<ApprovalInfo> approvalInfos = getApprovalInfos(leavePO.getHistoryApprovalInfoPOList());
         leave.setHistoryApprovalInfos(approvalInfos);
         return leave;