Selaa lähdekoodia

光明ud 路由缺少提交

baishaojie 1 vuosi sitten
vanhempi
commit
002a715faa
4 muutettua tiedostoa jossa 13 lisäystä ja 4 poistoa
  1. 2 3
      http/handle/api/scheduled.go
  2. 1 1
      http/handle/gm/udservice.go
  3. 10 0
      http/routers/app_api.go
  4. BIN
      tmr-watch.exe

+ 2 - 3
http/handle/api/scheduled.go

@@ -15,7 +15,6 @@ import (
 	"time"
 
 	"tmr-watch/conf/setting"
-	"tmr-watch/http/handle/gm"
 	"tmr-watch/http/handle/restful"
 	"tmr-watch/pkg/app"
 	"tmr-watch/pkg/e"
@@ -134,7 +133,7 @@ func CronScheduled(ctx context.Context) {
 
 	//
 	// //圣牧自动同步前天有进行中的任务
-	// manualUdData(pastureinfo)
+	manualUdData(pastureinfo)
 
 	//现代牧业sap同步
 	// xdmy := cron.New()
@@ -146,7 +145,7 @@ func CronScheduled(ctx context.Context) {
 	//光明ud同步
 	// gm.UdFeedSync(pastureinfo.Pastureid)
 
-	gm.UdBarFeedRemainPush(pastureinfo.Pastureid)
+	// gm.GmUdSync(pastureinfo.Pastureid, pastureinfo.Werks)
 
 }
 

+ 1 - 1
http/handle/gm/udservice.go

@@ -19,7 +19,7 @@ import (
 // "../../../routers/restful"
 
 func GmUdSync(pastureId, farmId string) {
-
+	fmt.Println(111)
 }
 
 func UdBarSync(pastureId, farmId string) {

+ 10 - 0
http/routers/app_api.go

@@ -200,6 +200,16 @@ func AppAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {
 			apiV1.POST("/dailydata/edit", api.UpdateDailyData)
 			apiV1.POST("/formulastatistics", api.GetFormulaStatistics)
 
+			apiV1.POST("/sap/feed", sap.SyncSapFeed)
+
+			apiV1.POST("/sap/bar", sap.SyncSapBar)
+
+			apiV1.POST("/sap/material", sap.MaterialOutbound)
+
+			apiV1.POST("/feedbackup/check", api.CheckFeedTrgaddress)
+
+			apiV1.POST("/ud/feedp/sync", api.UdFeedpSync)
+
 		}
 
 		//不需要登录验证的接口

BIN
tmr-watch.exe