baishaojie преди 2 дни
родител
ревизия
0b5b4f6b74
променени са 4 файла, в които са добавени 6 реда и са изтрити 3 реда
  1. BIN
      TMRWatchComm
  2. BIN
      TMRWatchComm.zip
  3. 5 2
      http/handle/api/ops.go
  4. 1 1
      http/handle/api/scheduled.go

BIN
TMRWatchComm


BIN
TMRWatchComm.zip


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

@@ -1170,7 +1170,7 @@ func GetRJSBData(c *gin.Context) {
 				go func(value map[string]interface{}) {
 					defer wg.Done()
 					// ,havebutton = 1
-					_, err = tx.SQL(`update downloadedplan set  artificial = 2 where id = ? and pastureid = ? `, value["projuctid"], value["pastureid"]).Execute()
+					_, err = tx.SQL(`update downloadedplan set  artificial = 2,havebutton = 1 where id = ? and pastureid = ? `, value["projuctid"], value["pastureid"]).Execute()
 				}(value)
 			}
 			wg.Wait()
@@ -12321,4 +12321,7 @@ func GetLyUdData(c *gin.Context) {
 
 
 	// appG.Response(http.StatusOK, e.SUCCESS, fpdetailFnameList)
-}
+}
+
+
+

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

@@ -1086,7 +1086,7 @@ func processAnalysisEarlyWarning(target []string, pastureId string, serviceId in
 
 func manualUdData(pastureinfo *udPastureInfo) {
 	c := cron.New()
-	c.AddFunc("10 13 * * *", func() {
+	c.AddFunc("10 10 * * *", func() {
 		tx := restful.Engine.NewSession()
 		defer tx.Close()
 		now := time.Now().AddDate(0, 0, -1).Format("2006-01-02")