...
|
...
|
@@ -4,6 +4,7 @@ import ( |
|
|
"fmt"
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
|
|
"strconv"
|
|
|
"time"
|
|
|
|
|
|
"github.com/astaxie/beego/logs"
|
|
|
|
...
|
...
|
@@ -961,6 +962,8 @@ func (service OrderInfoService) ListOrderForExcel(listOrderQuery query.ListOrder |
|
|
}
|
|
|
var resultMaps []map[string]string
|
|
|
for i := range ordersData {
|
|
|
t, _ := time.ParseInLocation("2006-01-02 15:04:05", ordersData[i].SaleDate, time.Local)
|
|
|
fmt.Print(t, "\n")
|
|
|
m := map[string]string{
|
|
|
//"num": fmt.Sprint(i + 1),
|
|
|
//"order_code": ordersData[i].OrderCode,
|
...
|
...
|
@@ -982,7 +985,7 @@ func (service OrderInfoService) ListOrderForExcel(listOrderQuery query.ListOrder |
|
|
"partner": ordersData[i].PartnerName,
|
|
|
"update_time": ordersData[i].UpdateTime,
|
|
|
"create_time": ordersData[i].CreateTime,
|
|
|
"saleDate": ordersData[i].SaleDate,
|
|
|
"saleDate": t.Format("2006-01-02"),
|
|
|
"orderNum": fmt.Sprint(ordersData[i].PlanOrderCount),
|
|
|
"quantityControl": "",
|
|
|
"orderDist": fmt.Sprint(ordersData[i].RegionName),
|
...
|
...
|
|