r.sql 1.1 KB

123456789101112131415161718
  1. select sqlstr from apisql where sqlname='getStockPastureList';
  2. select params from apisql where sqlname='getStockPastureList';
  3. select sqlstr from apisql where sqlname='getBigStockLaidList';
  4. select params from apisql where sqlname='getBigStockLaidList';
  5. select sqlstr from apisql where sqlname='getBigPartuseList';
  6. select params from apisql where sqlname='getBigPartuseList';
  7. select ps.* from part_repertory ps join pasture p ON ps.pastureId = p.id where p.name='新乐牧场';
  8. select ps.* from part_repertory ps join warehouse w on ps.locationId = w.id join pasture p on w.pastureId = p.id where p.name='新乐牧场';
  9. select bpl.* from bigpartlaid bpl JOIN pasture p ON p.id = bpl.pastureId where p.name='新乐牧场';
  10. select bp.* from partlaid bp join bigpartlaid bpl on bp.bigid =bpl.id JOIN pasture p ON p.id = bpl.pastureId where p.name='新乐牧场';
  11. select bpu.* from bigpartuse bpu JOIN pasture p ON p.id = bpu.pastureId where p.name='新乐牧场';
  12. select pu.* from partuse pu join bigpartuse bpu on pu.bigid =bpu.id JOIN pasture p ON p.id = bpu.pastureId where p.name='新乐牧场';