|
@@ -42,6 +42,7 @@ type ReportMappingHome struct {
|
|
|
SubCategoryName string `description:"主题名称"`
|
|
|
MatchTypeName string `description:"匹配类型"`
|
|
|
IsRed bool `description:"是否标红"`
|
|
|
+ ListGroup int `description:"第几组"`
|
|
|
}
|
|
|
|
|
|
type TradeReportMapping struct {
|
|
@@ -60,7 +61,11 @@ type ReportMappingResp struct {
|
|
|
}
|
|
|
|
|
|
type ReportMappingHomeResp struct {
|
|
|
- List []*ReportMappingHome
|
|
|
+ List []*ReportMappingHome
|
|
|
+ ListGroup1 []*ReportMappingHome
|
|
|
+ ListGroup2 []*ReportMappingHome
|
|
|
+ ListGroup3 []*ReportMappingHome
|
|
|
+ ListGroup4 []*ReportMappingHome
|
|
|
}
|
|
|
|
|
|
type TradeReportMappingResp struct {
|
|
@@ -99,6 +104,7 @@ func GetReportMappingStrategyHomeAllByCygx(chartPermissionId int) (items []*Repo
|
|
|
o := orm.NewOrm()
|
|
|
sql := `SELECT
|
|
|
re.id AS category_id,
|
|
|
+ re.list_group,
|
|
|
re.match_type_name
|
|
|
FROM
|
|
|
cygx_report_mapping_cygx AS re
|
|
@@ -108,6 +114,7 @@ WHERE
|
|
|
1 = 1
|
|
|
AND re.chart_permission_id = ?
|
|
|
AND re.report_type = 1
|
|
|
+ AND re.list_group > 0
|
|
|
GROUP BY
|
|
|
re.match_type_name
|
|
|
ORDER BY
|