作者 唐旭辉

bug 修复

... ... @@ -23,6 +23,9 @@ func (c *AuditController) AuditList() {
c.ResposeJson(msg)
}()
var param protocol.RequestAuditList
param.Status = -1
param.ReviewStatus = -1
param.PublishStatus = -1
if err := json.Unmarshal(c.Ctx.Input.RequestBody, &param); err != nil {
log.Error("json 解析失败", err)
msg = protocol.BadRequestParam("1")
... ... @@ -36,9 +39,16 @@ func (c *AuditController) AuditList() {
if err == nil && len(param.CreateTimeEndS) > 0 {
param.CreateTimeEnd = endTime.Unix() + 864399
}
param.Status, _ = strconv.Atoi(param.StatusS)
param.ReviewStatus, _ = strconv.Atoi(param.ReviewStatusS)
param.PublishStatus, _ = strconv.Atoi(param.PublishStatusS)
if len(param.StatusS) > 0 {
param.Status, _ = strconv.Atoi(param.StatusS)
}
if len(param.ReviewStatusS) > 0 {
param.ReviewStatus, _ = strconv.Atoi(param.ReviewStatusS)
}
if len(param.PublishStatusS) > 0 {
param.PublishStatus, _ = strconv.Atoi(param.PublishStatusS)
}
uid := c.GetUserId()
companyId := c.GetCompanyId()
list, err := serveaudit.GetAuditList(param, companyId, uid)
... ...
... ... @@ -237,7 +237,7 @@ type RequestAuditList struct {
ReviewStatus int `json:"-"` //
ReviewStatusS string `json:"review_status"` //
Status int `json:"-"` //关闭状态
StatusS string `json:"enable_status"` //关闭状态
StatusS string `json:"status"` //关闭状态
DepartmentID int `json:"department_id"` //提交部门
CreateTimeBegin int64 `json:"-"` //
CreateTimeBeginS string `json:"create_time_begin"`
... ...