作者 tangxvhui

bug 修复

... ... @@ -22,7 +22,7 @@ func GetAuditListForExcel(param protocol.RequestAuditList, companyid int64, user
return nil, nil
}
datasql, _, cond := GetAuditListSql(param, companyid, userid, usercompany.Id)
_, datasql, cond := GetAuditListSql(param, companyid, userid, usercompany.Id)
var soureData []orm.Params
o := orm.NewOrm()
_, err = o.Raw(datasql, cond...).Values(&soureData)
... ...
... ... @@ -88,6 +88,8 @@ var RouterPermission = map[string]PermissionBase{
"/v1/config/score": PermissionBase{CodeName: M_SYSTEM_RATING, ActionName: "default"},
"/v1/config/score/get": PermissionBase{CodeName: M_SYSTEM_RATING, ActionName: "default"},
"/v1/audit/list": PermissionBase{CodeName: M_SYSTEM_OPPORTUNITY, ActionName: "check"},
"/v1/chance/store/change": PermissionBase{CodeName: M_SYSTEM_OPPORTUNITY, ActionName: "default"},
//"/v1/chance/export_chance_list": PermissionBase{CodeName: M_SYSTEM_OPPORTUNITY, ActionName: "default"},
"/v1/audit/info": PermissionBase{CodeName: M_SYSTEM_OPPORTUNITY, ActionName: "check"},
"/v1/audit/allow_forbid": PermissionBase{CodeName: M_SYSTEM_OPPORTUNITY, ActionName: "close_chance"},
"/v1/rank/type/list": PermissionBase{CodeName: M_SYSTEM_RANK, ActionName: "default"},
... ... @@ -117,6 +119,9 @@ var RouterPermission = map[string]PermissionBase{
"/v1/audit/check_result/list": PermissionBase{CodeName: M_SYSTEM_CHECK_RESULT, ActionName: "default"},
"/v1/audit/check_result/info": PermissionBase{CodeName: M_SYSTEM_CHECK_RESULT, ActionName: "default"},
"/v1/audit/check_result/pass_or_no": PermissionBase{CodeName: M_SYSTEM_CHECK_RESULT, ActionName: "default"},
"/v1/reserve_type/list": PermissionBase{CodeName: M_SYSTEM_RESERVE_TYPE, ActionName: "default"},
"/v1/reserve_type/delete": PermissionBase{CodeName: M_SYSTEM_RESERVE_TYPE, ActionName: "default"},
"/v1/reserve_type/edit": PermissionBase{CodeName: M_SYSTEM_RESERVE_TYPE, ActionName: "default"},
}
type CodeToObject func() PermissionOptionObject
... ...