|
...
|
...
|
@@ -8,6 +8,7 @@ import ( |
|
|
|
serveaudit "oppmg/services/audit"
|
|
|
|
servecommon "oppmg/services/common"
|
|
|
|
"strconv"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AuditController struct {
|
|
...
|
...
|
@@ -27,6 +28,14 @@ func (c *AuditController) AuditList() { |
|
|
|
msg = protocol.BadRequestParam("1")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
beginTime, err := time.Parse("2006-01-02", param.CreateTimeBeginS)
|
|
|
|
if err == nil && len(param.CreateTimeBeginS) > 0 {
|
|
|
|
param.CreateTimeBegin = beginTime.Unix()
|
|
|
|
}
|
|
|
|
endTime, err := time.Parse("2006-01-02", param.CreateTimeEndS)
|
|
|
|
if err == nil && len(param.CreateTimeEndS) > 0 {
|
|
|
|
param.CreateTimeEnd = endTime.Unix() + 864399
|
|
|
|
}
|
|
|
|
uid := c.GetUserId()
|
|
|
|
companyId := c.GetCompanyId()
|
|
|
|
list, err := serveaudit.GetAuditList(param, companyId, uid)
|
...
|
...
|
|