Min 1 سال پیش
والد
کامیت
160e6493bd
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      fhKeeper/formulahousekeeper/management-platform/src/main/resources/mapper/ReportMapper.xml

+ 2 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/resources/mapper/ReportMapper.xml

@@ -958,12 +958,13 @@
     <select id="getPushProjectReportToSap" resultType="java.util.Map">
         select r.id as ReportId, u.job_number as EmployeeID,r.create_date as StartDate,r.create_date as EndDate,r.start_time as StartTime,r.end_time as EndTime,
         r.working_time as Duration,t.sap_task_code as ProjectElementID,
-        r.sap_service_id as ServiceProductInternalID,r.content as WorkDescriptionText
+        sps.service_code as ServiceProductInternalID,r.content as WorkDescriptionText
         from report r
         left join user u on u.id=r.creator_id
         left join department d on u.department_id=d.department_id
         left join project p on p.id=r.project_id
         left join task t on t.id=r.task_id
+        left join sap_project_service sps on r.sap_service_id=sps.id
         where r.state=1
         and d.push_to_sap=1
         and r.company_id=#{companyId}