feat: add delete nbi_cm expired record task

This commit is contained in:
simon
2025-04-28 18:54:54 +08:00
parent b31ee42265
commit 3e2ba34fd1
7 changed files with 14 additions and 12 deletions

View File

@@ -1,10 +1,7 @@
package syncNbiNRM
import (
"encoding/json"
"be.ems/lib/log"
"be.ems/src/framework/cron"
)
var NewProcessor = &BarProcessor{
@@ -33,16 +30,11 @@ type BarParams struct {
func (s *BarProcessor) Execute(data any) (any, error) {
s.count++
options := data.(cron.JobData)
sysJob := options.SysJob
var params BarParams
// options := data.(cron.JobData)
// sysJob := options.SysJob
// var params BarParams
err := json.Unmarshal([]byte(sysJob.TargetParams), &params)
if err != nil {
return nil, err
}
err = s.SyncAmfNbiCM()
err := s.SyncAmfNbiCM()
if err != nil {
log.Errorf("SyncAmfNbiCM error: %v", err)
return nil, err