...
|
...
|
@@ -438,24 +438,24 @@ func (c *OrderInfoController) PageListOrderReal() { |
|
|
)
|
|
|
if len(param.UpdateTime) > 0 {
|
|
|
if len(param.UpdateTime[0]) > 0 {
|
|
|
t, err := time.ParseInLocation("2016-01-02", param.UpdateTime[0], time.Local)
|
|
|
t, err := time.ParseInLocation("2006-01-02", param.UpdateTime[0], time.Local)
|
|
|
if err != nil {
|
|
|
c.ResponseError(errors.New("UpdateTimeBegin 时间格式错误"))
|
|
|
return
|
|
|
}
|
|
|
updateTimeBegin = t.Format("2016-01-02 15:04:05+07")
|
|
|
updateTimeBegin = t.Format("2006-01-02 15:04:05+07")
|
|
|
}
|
|
|
}
|
|
|
if len(param.UpdateTime) > 1 {
|
|
|
if len(param.UpdateTime[1]) > 0 {
|
|
|
t, err := time.ParseInLocation("2016-01-02", param.UpdateTime[1], time.Local)
|
|
|
t, err := time.ParseInLocation("2006-01-02", param.UpdateTime[1], time.Local)
|
|
|
if err != nil {
|
|
|
c.ResponseError(errors.New("UpdateTimeEnd 时间格式错误"))
|
|
|
return
|
|
|
}
|
|
|
//设定时间边界
|
|
|
t.Add(86399 * time.Second)
|
|
|
updateTimeEnd = t.Format("2016-01-02 15:04:05+07")
|
|
|
updateTimeEnd = t.Format("2006-01-02 15:04:05+07")
|
|
|
}
|
|
|
}
|
|
|
companyId := c.GetUserCompany()
|
...
|
...
|
|