Pārlūkot izejas kodu

wip:公司部门id查询判断

wangkaiyue 1 gadu atpakaļ
vecāks
revīzija
8d0f886f1b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      service/balanceService.go

+ 1 - 1
service/balanceService.go

@@ -210,7 +210,7 @@ func (service *BalanceService) UseUserDetailed(duplicateRemoval int64, balanceDa
 	}
 
 	if producMap[balanceData.ResourceType] != nil {
-		sql += " and  sourceType=? "
+		sql += " and  sourceType!=? "
 		val = append(val, sourceTypeStr)
 		_, err = orm.Table(AccountResources).
 			Select("sum(number) as  number").