|
|
@@ -68,6 +68,7 @@ tx.Exec(`update downloadedplan set iweight = lweight ,oweight = lweight ,havebut
|
|
|
|
|
|
|
|
|
date := time.Now().AddDate(0,0,-1).Format("2006-01-02")
|
|
|
+
|
|
|
tx.Exec(`update downloadplandtl2 set
|
|
|
actualweightminus = lweight ,lastactualweight =lweight ,actualweight = lweight
|
|
|
where pid in(select id from downloadedplan where mydate =? and havebutton = 0)`,date)
|
|
|
@@ -81,7 +82,11 @@ tx.Exec(`update downloadedplan set iweight = lweight ,oweight = lweight ,havebut
|
|
|
where pid in (select id from downloadedplan where mydate = ? and havebutton = 0)`,date)
|
|
|
|
|
|
tx.Exec(`update downloadedplan set havebutton = 1 ,iscompleted = 1 ,completedtime = concat(?,' 23:00:00'),intime= concat(?,' 23:00:00') where mydate = ? and havebutton = 0`,date,date,date)
|
|
|
- })
|
|
|
+
|
|
|
+
|
|
|
+ YcMaterialIssuePush(pastureinfo.Pastureid, pastureinfo.Werks, date, token)
|
|
|
+ YcBarFeedRemainPush(pastureinfo.Pastureid, pastureinfo.Werks, date, token)
|
|
|
+})
|
|
|
|
|
|
// token := getToken()
|
|
|
// fmt.Println(token)
|