提交 091e9f9d 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix issues

上级 3bcbe62a
......@@ -388,7 +388,7 @@ func (s *ExcelService) genExcelValuesWithExpr(field *domain.DefField, fieldNameT
type ExcelChangedResult struct {
Id uint
Name string
Path string
ChangeTime int64 `gorm:"column:changeTime"`
}
......@@ -425,7 +425,7 @@ func (s *ExcelService) isExcelChanged(path string) (changed bool, sqlBeforeCompl
if record.Id > 0 { // found
found = true
if path == record.Name && record.ChangeTime < fileChangeTime { // update exist record
if path == record.Path && record.ChangeTime < fileChangeTime { // update exist record
changed = true
}
} else { // not found, to add a record
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册