Browse Source

no message

xingzai 1 year ago
parent
commit
0f12a4866b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      controllers/report.go

+ 5 - 1
controllers/report.go

@@ -53,7 +53,7 @@ func (this *MobileReportController) TradeList() {
 	mapCategory := make(map[int]int)
 	if ChartPermissionId == utils.CE_LUE_ID || ChartPermissionId == utils.GU_SHOU_ID {
 		listTrade, errTrade := models.GetReportMappingStrategyHomeAllByCygx(user.UserId, ChartPermissionId)
-		list = listTrade
+
 		err = errTrade
 		if ChartPermissionId == utils.CE_LUE_ID {
 			cf, err := models.GetConfigByCode(utils.CYGX_TACTICS_TIME_LINE_STATUS)
@@ -70,6 +70,10 @@ func (this *MobileReportController) TradeList() {
 			}
 		}
 
+		for _, v := range listTrade {
+			list = append(list, v)
+		}
+
 		if user.Mobile != "" {
 			//策略的处理
 			categoryList, err := models.GetCygxXzsChooseCategoryList(user.Mobile)