Skip to content

Commit

Permalink
fix lack of result num
Browse files Browse the repository at this point in the history
  • Loading branch information
陈遇文 committed May 10, 2023
1 parent f9f7dfc commit b97599c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions result.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ func (r *Result) addError(info ErrorInfo) {
r.errors = append(r.errors, info)
}

func (r *Result) TotalNum() int {
return r.totalRow
}

func (r *Result) ErrorNum() int {
return r.errorRow
}

func (f *File) removeDataLine(results *Result) (err error) {
var rows *excelize.Rows
if rows, err = f.excel().Rows(results.SheetName); err != nil {
Expand Down

0 comments on commit b97599c

Please sign in to comment.