Explorar el Código

sap资产残值同步

baishaojie hace 1 año
padre
commit
ac64357607
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      apiserver/service/job.go

+ 2 - 1
apiserver/service/job.go

@@ -32,7 +32,7 @@ func SapJobInit() {
 	//for {
 	//	i++
 	//for _, pasture := range pastureList {
-	//s.SapAssetSalvage(t, "1024", 346)
+
 	//}
 	//	if t.AddDate(0, 0, i).Format("2006-01-02") == "2023-08-24" {
 	//		break
@@ -51,6 +51,7 @@ func SapJobInit() {
 		for _, pasture := range pastureList {
 			s.SapSupplier(t, pasture.CompanyCode, pasture.ID)
 			s.SapAsset(t, code, pasture.CompanyCode)
+			s.SapAssetSalvage(t, pasture.CompanyCode, pasture.ID)
 		}
 		s.SapMaterial(t, code)
 		s.d.DB.Exec(`call createEqstatus()`)