소스 검색

圣牧 手动上传云养牛更新

baishaojie 9 달 전
부모
커밋
b8f810e154

+ 3 - 3
conf/app.ini

@@ -50,8 +50,8 @@ Type = mysql
 User = root
 Password = root
 #Host = 8.130.17.8:3306
-#Host = 192.168.1.93:3326
-Host = 127.0.0.1:3316
+Host = 192.168.1.93:3326
+#Host = 127.0.0.1:3316
 #Name = haiyuan
 #Password = root
 #Password = root
@@ -75,7 +75,7 @@ Host = 127.0.0.1:3316
 #Name = tmrgo
 #Password = kepaiteng!QAZ
 #Host = 222.73.129.15:31306
-Name = tmrwatch2
+Name = tmrwatch5
 TablePrefix =
 
 ShowXormlog = false

+ 2 - 2
http/handle/api/ops.go

@@ -4715,14 +4715,14 @@ func FpdImportExcel(c *gin.Context) {
 			_, err = tx.SQL(` update  lpplandtl1  set lweight = 0 where pastureid = ? and  lppid in(select  id from lpplan where pastureid = ?  ) 
 	 and find_in_set(barid,(select barid from feedp where barname = ? )) `, pastureid, pastureid, barname).Execute()
 			if err != nil {
-				logs.Error(err)
+				logs.Error(err, "11111")
 				appG.Response(http.StatusInternalServerError, e.ERROR, err)
 				return
 			}
 			_, err = tx.SQL(` UPDATE fpdetail SET ptuse=0,ptsuse=0
 	 WHERE pastureid=?  and find_in_set(barid,(select barid from feedp where barname = ? )  )   `, pastureid, barname).Execute()
 			if err != nil {
-				logs.Error(err)
+				logs.Error(err, "22222")
 				appG.Response(http.StatusInternalServerError, e.ERROR, err)
 				return
 			}

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

@@ -131,7 +131,7 @@ func CronScheduled(ctx context.Context) {
 	dayCron.Start()
 	// udFeedSync(pastureinfo)
 	// //圣牧自动同步前天有进行中的任务
-	// manualUdData(pastureinfo)
+	manualUdData(pastureinfo)
 	// gm.GmUdSync(pastureinfo.Pastureid, pastureinfo.Werks)
 	// xdmy := cron.New()
 	// err = xdmy.AddFunc("0 30 4 * * *", func() {
@@ -146,7 +146,7 @@ func CronScheduled(ctx context.Context) {
 	// })
 
 	// xdmy.Start()
-	// InitMqttClient()
+	InitMqttClient()
 	// yq.YqCron()
 }
 

BIN
__debug_bin.exe → uploads.zip


BIN
uploads/file/导入导出模板/配方计划/Spreading.xlsx


BIN
uploads/file/导入导出模板/配方计划/配方模板导入模板.xlsx