...
|
...
|
@@ -2,6 +2,7 @@ package controllers |
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
"oppmg/common/log"
|
|
|
"oppmg/models"
|
|
|
"oppmg/protocol"
|
...
|
...
|
@@ -32,15 +33,15 @@ func (c *AuditController) AuditList() { |
|
|
msg = protocol.BadRequestParam("1")
|
|
|
return
|
|
|
}
|
|
|
beginTime, err := time.Parse("2006-01-02", param.CreateTimeBeginS)
|
|
|
beginTime, err := time.ParseInLocation("2006-01-02", param.CreateTimeBeginS, time.Local)
|
|
|
if err == nil && len(param.CreateTimeBeginS) > 0 {
|
|
|
param.CreateTimeBegin = beginTime.Unix()
|
|
|
}
|
|
|
endTime, err := time.Parse("2006-01-02", param.CreateTimeEndS)
|
|
|
endTime, err := time.ParseInLocation("2006-01-02", param.CreateTimeEndS, time.Local)
|
|
|
if err == nil && len(param.CreateTimeEndS) > 0 {
|
|
|
param.CreateTimeEnd = endTime.Unix() + 864399
|
|
|
param.CreateTimeEnd = endTime.Unix() + 86399
|
|
|
}
|
|
|
|
|
|
fmt.Println(err, param.CreateTimeBegin, param.CreateTimeEnd)
|
|
|
if len(param.StatusS) > 0 {
|
|
|
param.Status, _ = strconv.Atoi(param.StatusS)
|
|
|
}
|
...
|
...
|
|