作者 yangfu

合约数修改

@@ -135,7 +135,7 @@ func (ptr *CooperationStatisticsService) cooperationContractCount(numbers []stri @@ -135,7 +135,7 @@ func (ptr *CooperationStatisticsService) cooperationContractCount(numbers []stri
135 query.ColumnExpr("count(*) total") 135 query.ColumnExpr("count(*) total")
136 query.Where("cooperation_contract_number in (?)", pg.In(numbers)) 136 query.Where("cooperation_contract_number in (?)", pg.In(numbers))
137 if status > 0 { 137 if status > 0 {
138 - query.Where("status =? ") 138 + query.Where("status =? ", status)
139 } 139 }
140 query.Select(&total) 140 query.Select(&total)
141 return total 141 return total