Browse Source

fix:切库

Roc 1 year ago
parent
commit
0030a52647
1 changed files with 3 additions and 3 deletions
  1. 3 3
      controllers/company_user.go

+ 3 - 3
controllers/company_user.go

@@ -2985,12 +2985,12 @@ func (this *CompanyUserController) ViewReportList() {
 	total := item.FiccViewTotal + item.RaiViewTotal
 	switch txtType {
 	case 1:
-		baseCondition = ` AND source = ? `
+		baseCondition += ` AND source = ? `
 		basePars = append(basePars, 4)
 		total = item.FiccViewTotal
 	// 权益
 	case 2: // ficc
-		baseCondition = ` AND source in (?,?,?) `
+		baseCondition += ` AND source in (?,?,?) `
 		basePars = append(basePars, 1, 2, 3)
 		total = item.RaiViewTotal
 	}
@@ -3020,7 +3020,7 @@ func (this *CompanyUserController) ViewReportList() {
 			secondCondition += `AND create_time <  ?`
 			secondPars = append(secondPars, lastViewTime)
 
-			_, items, err := obj.GetViewReportList(lastViewTimeT.Year(), secondCondition, secondPars, int(total)-pageSize)
+			_, items, err = obj.GetViewReportList(lastViewTimeT.Year(), secondCondition, secondPars, int(total)-pageSize)
 			if err != nil {
 				br.Msg = "获取失败"
 				br.Msg = "获取失败,Err:" + err.Error()