فهرست منبع

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;