service/progress.go
@@ -34,6 +34,7 @@
   return nil
}
// UpdateProgress 仅限plc数据采集定时任务用
func (slf ProgressService) UpdateProgress(deviceID string, channel int32, finishedQuantity int64) (err error) {
   progressCache, err := slf.GetCurrentProgress(deviceID, channel)
   if err != nil {
@@ -50,6 +51,7 @@
   return nil
}
// GetCurrentProgress 仅限plc数据采集定时任务用
func (slf ProgressService) GetCurrentProgress(deviceID string, channel int32) (progressCache *model.ProductionProgress, err error) {
   var ok bool
   progressCache, ok = ProgressCacheGet(deviceID, channel)