|
@@ -21,6 +21,7 @@ import okhttp3.WebSocket;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.*;
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
@@ -2530,10 +2531,17 @@ public class ReportController {
|
|
|
|
|
|
//todo:推送工时管家工时考勤数据到SAP
|
|
|
@RequestMapping("/pushProjectReportToSap")
|
|
|
+ @LimitRequest(count = 1)
|
|
|
public HttpRespMsg pushProjectReportToSap(String pushDate,Integer reportId){
|
|
|
return reportService.pushProjectReportToSap(pushDate,reportId);
|
|
|
}
|
|
|
|
|
|
+ //todo:推送工时管家工时考勤数据到SAP
|
|
|
+ @RequestMapping("/cancelHasPushForSap")
|
|
|
+ public HttpRespMsg cancelHasPushForSap(String uuids){
|
|
|
+ return reportService.cancelHasPushForSap(uuids);
|
|
|
+ }
|
|
|
+
|
|
|
//todo:查询已推送到SAP的工时管家工时考勤数据 并撤销推送
|
|
|
@RequestMapping("/getHasPushForSap")
|
|
|
public HttpRespMsg getHasPushForSap(String startDate,String endDate,String employeeID){
|