|  | @@ -50,9 +50,8 @@ where pid in (select id from downloadedplan  where mydate = ?  and havebutton =
 | 
	
		
			
				|  |  |    tx.Exec(`update downloadplandtl1_exec set 
 | 
	
		
			
				|  |  |  actualweightminus = lweight ,lastactualweight =lweight ,actualweight = lweight 
 | 
	
		
			
				|  |  |  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)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -   tx.Exec(`update downloadedplan set havebutton = 1 ,iscompleted = 1 ,completedtime =mydate ,intime= mydate   where mydate = ? and havebutton = 0`,date)
 | 
	
		
			
				|  |  | -   
 | 
	
		
			
				|  |  |  	// token := getToken()
 | 
	
		
			
				|  |  |  	// syncBar(token, pastureinfo.Pastureid, pastureinfo.Werks)
 | 
	
		
			
				|  |  |  	c := cron.New()
 | 
	
	
		
			
				|  | @@ -68,9 +67,33 @@ where pid in (select id from downloadedplan  where mydate = ?  and havebutton =
 | 
	
		
			
				|  |  |  		syncBar(token, pastureinfo.Pastureid, pastureinfo.Werks)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +		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)
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +	tx.Exec(`update downloadplandtl1 set 
 | 
	
		
			
				|  |  | +	actualweightminus = lweight ,lastactualweight =lweight ,actualweight = lweight 
 | 
	
		
			
				|  |  | +	where pid in (select id from downloadedplan  where mydate = ?  and havebutton = 0)`,date)
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  | +	  tx.Exec(`update downloadplandtl1_exec set 
 | 
	
		
			
				|  |  | +	actualweightminus = lweight ,lastactualweight =lweight ,actualweight = lweight 
 | 
	
		
			
				|  |  | +	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)
 | 
	
		
			
				|  |  |  	})
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +	// token := getToken()
 | 
	
		
			
				|  |  | +	// fmt.Println(token)
 | 
	
		
			
				|  |  | +	// now := "2025-10-11"
 | 
	
		
			
				|  |  | +	// YcFeedtempletPush(pastureinfo.Pastureid, pastureinfo.Werks, now, token)
 | 
	
		
			
				|  |  | +	// YcFeedPush(pastureinfo.Pastureid, pastureinfo.Werks, token)
 | 
	
		
			
				|  |  | +	// YcPlanPush(pastureinfo.Pastureid, pastureinfo.Werks, now, token)
 | 
	
		
			
				|  |  | +	// YcUtirPush(pastureinfo.Pastureid, pastureinfo.Werks, now, token)
 | 
	
		
			
				|  |  | +	// YcMaterialIssuePush(pastureinfo.Pastureid, pastureinfo.Werks, now, token)
 | 
	
		
			
				|  |  | +	// YcBarFeedRemainPush(pastureinfo.Pastureid, pastureinfo.Werks, now, token)
 | 
	
		
			
				|  |  | +	// syncBar(token, pastureinfo.Pastureid, pastureinfo.Werks)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	c.AddFunc("0 0 6 * * *", func() {
 | 
	
		
			
				|  |  |  		token := getToken()
 | 
	
		
			
				|  |  |  		now := time.Now().Format("2006-01-02")
 |