j.sql 210 B

123456789
  1. SELECT
  2. w.id,
  3. w.warehoseCode,
  4. w.pastureId
  5. FROM
  6. warehouse w
  7. INNER JOIN warehouse_provider wp
  8. ON wp.`warehouseId` = w.`id`
  9. WHERE w.`enable`=1 AND isWhPostion = 1 AND (w.pastureId=541) AND wp.`providerId`= 2795