소스 검색

wip:公司部门id查询判断

wangkaiyue 1 년 전
부모
커밋
8d0f886f1b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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").