|
@@ -23,6 +23,9 @@ func (c *AuditController) AuditList() { |
|
@@ -23,6 +23,9 @@ func (c *AuditController) AuditList() { |
23
|
c.ResposeJson(msg)
|
23
|
c.ResposeJson(msg)
|
24
|
}()
|
24
|
}()
|
25
|
var param protocol.RequestAuditList
|
25
|
var param protocol.RequestAuditList
|
|
|
26
|
+ param.Status = -1
|
|
|
27
|
+ param.ReviewStatus = -1
|
|
|
28
|
+ param.PublishStatus = -1
|
26
|
if err := json.Unmarshal(c.Ctx.Input.RequestBody, ¶m); err != nil {
|
29
|
if err := json.Unmarshal(c.Ctx.Input.RequestBody, ¶m); err != nil {
|
27
|
log.Error("json 解析失败", err)
|
30
|
log.Error("json 解析失败", err)
|
28
|
msg = protocol.BadRequestParam("1")
|
31
|
msg = protocol.BadRequestParam("1")
|
|
@@ -36,9 +39,16 @@ func (c *AuditController) AuditList() { |
|
@@ -36,9 +39,16 @@ func (c *AuditController) AuditList() { |
36
|
if err == nil && len(param.CreateTimeEndS) > 0 {
|
39
|
if err == nil && len(param.CreateTimeEndS) > 0 {
|
37
|
param.CreateTimeEnd = endTime.Unix() + 864399
|
40
|
param.CreateTimeEnd = endTime.Unix() + 864399
|
38
|
}
|
41
|
}
|
39
|
- param.Status, _ = strconv.Atoi(param.StatusS)
|
|
|
40
|
- param.ReviewStatus, _ = strconv.Atoi(param.ReviewStatusS)
|
|
|
41
|
- param.PublishStatus, _ = strconv.Atoi(param.PublishStatusS)
|
42
|
+
|
|
|
43
|
+ if len(param.StatusS) > 0 {
|
|
|
44
|
+ param.Status, _ = strconv.Atoi(param.StatusS)
|
|
|
45
|
+ }
|
|
|
46
|
+ if len(param.ReviewStatusS) > 0 {
|
|
|
47
|
+ param.ReviewStatus, _ = strconv.Atoi(param.ReviewStatusS)
|
|
|
48
|
+ }
|
|
|
49
|
+ if len(param.PublishStatusS) > 0 {
|
|
|
50
|
+ param.PublishStatus, _ = strconv.Atoi(param.PublishStatusS)
|
|
|
51
|
+ }
|
42
|
uid := c.GetUserId()
|
52
|
uid := c.GetUserId()
|
43
|
companyId := c.GetCompanyId()
|
53
|
companyId := c.GetCompanyId()
|
44
|
list, err := serveaudit.GetAuditList(param, companyId, uid)
|
54
|
list, err := serveaudit.GetAuditList(param, companyId, uid)
|