- ExportOrders

This commit is contained in:
gazebo
2019-05-23 09:55:11 +08:00
parent 132e6a9fd7
commit e024203e2f
6 changed files with 313 additions and 2 deletions

View File

@@ -77,6 +77,10 @@ func Excel2Slice(reader io.Reader) (contents map[string][][]string) {
return contents
}
func genAxis(row, col int) string {
return fmt.Sprintf("%c%d", col+65, row+1)
func genAxis(row, col int) (pos string) {
pos, err := excelize.CoordinatesToCellName(col+1, row+1)
if err != nil {
globals.SugarLogger.Debugf("err:%v", err)
}
return pos
}