作者 yangfu

订单商品查询修改

@@ -179,13 +179,13 @@ func (repository *OrderGoodRepository) Find(queryOptions map[string]interface{}) @@ -179,13 +179,13 @@ func (repository *OrderGoodRepository) Find(queryOptions map[string]interface{})
179 query.Where("order_good_id IN (?)", pg.In(orderGoodIds)) 179 query.Where("order_good_id IN (?)", pg.In(orderGoodIds))
180 } 180 }
181 if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 { 181 if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 {
182 - query.Where("company->>'companyId' = '?'", companyId) 182 + query.Where("company_id = '?'", companyId)
183 } 183 }
184 if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 { 184 if orgId, ok := queryOptions["orgId"]; ok && orgId.(int64) != 0 {
185 - query.Where("org->>'orgId' = '?'", orgId) 185 + query.Where("org_id = '?'", orgId)
186 } 186 }
187 if orgIds, ok := queryOptions["orgIds"]; ok && len(orgIds.([]int64)) > 0 { 187 if orgIds, ok := queryOptions["orgIds"]; ok && len(orgIds.([]int64)) > 0 {
188 - query.Where("org->>'orgId' in (?)", pg.In(orgIds)) 188 + query.Where("org_id in (?)", pg.In(orgIds))
189 } 189 }
190 offsetLimitFlag := true 190 offsetLimitFlag := true
191 if offsetLimit, ok := queryOptions["offsetLimit"]; ok { 191 if offsetLimit, ok := queryOptions["offsetLimit"]; ok {