LEFT JOIN ( SELECT asset_id, NAME, tyshxydm, lxr, lxdh, gyszcdz, sfwtc FROM asset_supply_chain WHERE type = 5 GROUP BY asset_id ) b ON a.id = b.asset_id
LEFT JOIN ( SELECT asset_id, NAME, tyshxydm, lxr, lxdh, gyszcdz, sfwtc FROM asset_supply_chain WHERE type = 5 GROUP BY asset_id,NAME, tyshxydm, lxr, lxdh, gyszcdz, sfwtc ) b ON a.id = b.asset_id
LEFT JOIN (
LEFT JOIN (
SELECT
SELECT
asset_id,
asset_id,
@ -56,7 +56,13 @@
WHERE
WHERE
type = 7
type = 7
GROUP BY
GROUP BY
asset_id
asset_id,
NAME,
tyshxydm,
lxr,
lxdh,
gyszcdz,
sfwtc
) c ON a.id = c.asset_id
) c ON a.id = c.asset_id
LEFT JOIN (
LEFT JOIN (
SELECT
SELECT
@ -76,7 +82,11 @@
WHERE
WHERE
type = 1
type = 1
GROUP BY
GROUP BY
asset_id
asset_id,
sblx,
pp,
sb_ip,
czxt,czxtbb,yjxh,yjxlh,yjbbxx,yjyt,yjbsxx
) d ON a.id = d.asset_id
) d ON a.id = d.asset_id
LEFT JOIN (
LEFT JOIN (
SELECT
SELECT
@ -94,11 +104,13 @@
WHERE
WHERE
type = 2
type = 2
GROUP BY
GROUP BY
asset_id
asset_id,
sblx,
pp,sb_ip,yjxh,yjxlh,yjbbxx,yjyt,yjbsxx
) e ON a.id = e.asset_id
) e ON a.id = e.asset_id
LEFT JOIN ( SELECT
LEFT JOIN ( SELECT
asset_id, sblx AS aqwlsblx, pp AS aqwlpp, sb_ip AS aqwlsbIp
asset_id, sblx AS aqwlsblx, pp AS aqwlpp, sb_ip AS aqwlsbIp
FROM asset_basic_network WHERE type = 3 GROUP BY asset_id ) l ON a.id = l.asset_id
FROM asset_basic_network WHERE type = 3 GROUP BY asset_id,sblx,pp,sb_ip ) l ON a.id = l.asset_id