...
|
...
|
@@ -589,6 +589,11 @@ func (c *OrderInfoController) ListOrderForExcel() { |
|
|
c.ResponseError(errors.New("json数据解析失败"))
|
|
|
return
|
|
|
}
|
|
|
if param.Type != "ORDER_BASE" {
|
|
|
logs.Error(err)
|
|
|
c.ResponseError(errors.New("错误的操作类型"))
|
|
|
return
|
|
|
}
|
|
|
// 订单更新时间
|
|
|
var (
|
|
|
updateTimeBegin string
|
...
|
...
|
@@ -1135,8 +1140,15 @@ func (c *OrderInfoController) ImportOrderFromExcel() { |
|
|
orderQueryData.PartnerCategory = 0
|
|
|
}
|
|
|
|
|
|
//TODO 销售日期时间格式转换
|
|
|
timeValue, _ := time.Parse(row[4], "2015/02/08")
|
|
|
// 销售日期时间格式转换
|
|
|
timeValue, err := time.ParseInLocation("2006/01/02", row[4], time.Local)
|
|
|
if err != nil {
|
|
|
e := lib.ThrowError(lib.ARG_ERROR, err.Error())
|
|
|
c.ResponseError(e)
|
|
|
return
|
|
|
}
|
|
|
|
|
|
fmt.Print(timeValue, "\n")
|
|
|
|
|
|
// 初始化建订单命令集
|
|
|
orderCommands[hashString] = &orderCmd.CreateOrderCommand{
|
...
|
...
|
|