货品档案列表.sql 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. SELECT t1.itemid,
  2. t1.itemno,
  3. t1.itemname,
  4. t1.model,
  5. t1.spec,
  6. t1.marketprice,
  7. t2.unitname,
  8. t1.unitid,
  9. t1.createdate,
  10. t1.isonsale,
  11. t1.status,
  12. t1.orderaddqty,
  13. t1.orderminqty,
  14. t1.remarks,
  15. t1.barcode,
  16. t1.skucontrol,
  17. t1.batchcontrol,
  18. t1.grossweight,
  19. t1.weight,
  20. t1.height,
  21. t1.width,
  22. t1.length,
  23. t1.delivery,
  24. t1.istool,
  25. t1.ismodule,
  26. t1.packageqty,
  27. t1.iswoodproducts,
  28. t1.financeclasstype,
  29. t1.color,
  30. t1.cheek,
  31. t1.delistingstatus,
  32. t6.auxunitid,
  33. t6. unitgroupname,
  34. t7.unitname axunitname,
  35. t8.caliber,
  36. t8.pressure,
  37. t8.material,
  38. t8.butterflyplatedrive,
  39. t8.connection,
  40. t8.valveplatematerial,
  41. t8.bodymaterial,
  42. t8.actuatortype,
  43. t8.actuatorbrand,
  44. t8.isbutterfly,
  45. t8.erpitemno,
  46. t8.erpitemname,
  47. t8.specalnote,
  48. t8.prodline,
  49. t8.device
  50. FROM plm_item t1
  51. LEFT JOIN plm_unit t2 ON t2.unitid = t1.unitid AND t2.siteid = t1.siteid
  52. LEFT JOIN plm_unitgroup t6 ON t6.unitgroupid = t1.unitgroupid
  53. LEFT JOIN plm_unit t7 ON t7.unitid = t6.unitid AND t7.siteid = t6.siteid
  54. LEFT JOIN plm_itemextend t8 ON t8.itemid= t1.itemid AND t8.siteid = t1.siteid
  55. WHERE t1.siteid = $siteid$
  56. and $where$