|
|
@ -1,7 +1,6 @@ |
|
|
|
package task |
|
|
|
|
|
|
|
import ( |
|
|
|
omServices "LAPP_ACURA_MOM_BACKEND/services/om" |
|
|
|
services "LAPP_ACURA_MOM_BACKEND/services/schedule" |
|
|
|
) |
|
|
|
|
|
|
@ -24,31 +23,3 @@ func StartApsRelease() { |
|
|
|
services.ApsRelease(plantNr) |
|
|
|
} |
|
|
|
|
|
|
|
/****************************************************************************** |
|
|
|
* |
|
|
|
* @Struct Name : FeedbackFromMes |
|
|
|
*----------------------------------------------------------------------------- |
|
|
|
* |
|
|
|
* @Description : 从mes系统回写状态 时间等数据 |
|
|
|
* |
|
|
|
* @Author : zhangxin |
|
|
|
* |
|
|
|
* @Date : 2021-05-13 |
|
|
|
* |
|
|
|
******************************************************************************/ |
|
|
|
func FeedbackFromMes() { |
|
|
|
if ApsReleaseStatus == 1 { |
|
|
|
return |
|
|
|
} |
|
|
|
if feedbackFromMesTaskStatus == 0 { |
|
|
|
feedbackFromMesTaskStatus = 1 |
|
|
|
defer func() { |
|
|
|
feedbackFromMesTaskStatus = 0 |
|
|
|
}() |
|
|
|
} else { |
|
|
|
return |
|
|
|
} |
|
|
|
plantNr := 100 |
|
|
|
omServicesImpl := omServices.NewOmToMesService() |
|
|
|
omServicesImpl.FeedbackFromMes(plantNr) |
|
|
|
} |