This commit is contained in:
2023-08-24 10:52:26 +08:00
parent d56c4f76b5
commit 8ac572b215
2 changed files with 47 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import (
"time"
cmschema "ems.agt/crontask/cm/schema"
"ems.agt/lib/dborm"
"ems.agt/lib/global"
"ems.agt/lib/log"
@@ -69,6 +70,9 @@ func (t *TaskFunc) GenNFXmlFile(neType string) error {
resultMap, _ := t.ReadCmYaml(cmfile)
var cmResults []dborm.NorthboundCm
err = dborm.XormGetNorthboundCm(neType, &cmResults)
ti := time.Now()
timestamp := ti.Format("2006-01-02 15:04:05")
timefile := ti.Format("20060102150405")