|
@@ -143,7 +143,14 @@ func (this *ReportApproveFlowController) List() {
|
|
|
if v.ReportType == report_approve.FlowReportTypeEnglish {
|
|
|
t.ReportClassify = fmt.Sprintf("%s/%s/%s/%s", report_approve.FlowReportTypeMap[v.ReportType], enClassifyIdName[enRootIdMap[v.ClassifySecondId]], enClassifyIdName[v.ClassifyFirstId], enClassifyIdName[v.ClassifySecondId])
|
|
|
} else {
|
|
|
- t.ReportClassify = fmt.Sprintf("%s/%s/%s", report_approve.FlowReportTypeMap[v.ReportType], cnClassifyIdName[v.ClassifyFirstId], cnClassifyIdName[v.ClassifySecondId])
|
|
|
+ reportClassify := fmt.Sprintf("%s/%s", report_approve.FlowReportTypeMap[v.ReportType], cnClassifyIdName[v.ClassifyFirstId])
|
|
|
+ if v.ClassifySecondId > 0 {
|
|
|
+ reportClassify = fmt.Sprintf("%s/%s", reportClassify, cnClassifyIdName[v.ClassifySecondId])
|
|
|
+ }
|
|
|
+ if v.ClassifyThirdId > 0 {
|
|
|
+ reportClassify = fmt.Sprintf("%s/%s", reportClassify, cnClassifyIdName[v.ClassifyThirdId])
|
|
|
+ }
|
|
|
+ t.ReportClassify = reportClassify
|
|
|
}
|
|
|
resp.List = append(resp.List, t)
|
|
|
}
|